Losartan Adverse Effects Analysis | XData Lab - Pharmacovigilance Research

Losartan Adverse Effects Analysis

Multi-Modal Machine Learning for Pharmacovigilance

Advanced ML analysis of Losartan 50mg adverse effects using FDA FAERS data. Combining 5 machine learning models with propensity scoring for comprehensive drug safety assessment and predictive risk analysis.

500 Reports Analyzed
15 Adverse Events
5 ML Models
75% Best Accuracy

Comprehensive Analysis Pipeline

End-to-end pharmacovigilance research powered by machine learning

🔬

Data Collection

Automated fetching from FDA FAERS API with multi-source validation including EudraVigilance, WHO VigiAccess, and Health Canada databases.

🧬

Feature Engineering

Advanced feature extraction including age groups, severity scores, frequency encoding, and demographic standardization.

🤖

Multi-Model ML

Ensemble approach combining Logistic Regression, Random Forest, Gradient Boosting, Neural Networks, and Voting Classifiers.

📊

Propensity Scoring

Novel risk assessment combining severity rates and frequency with reliability scores for statistical confidence.

📈

Visualizations

16 professional charts including EDA plots, ROC curves, confusion matrices, and feature importance analysis.

📄

Comprehensive Reports

Executive summaries, detailed methodology documentation, and clinical recommendations for healthcare providers.

Machine Learning Models

Five distinct models evaluated on accuracy, F1 score, and ROC AUC

Logistic Regression
Accuracy 56.0%
F1 Score 0.353
ROC AUC 0.518
Random Forest BEST AUC
Accuracy 74.0%
F1 Score 0.316
ROC AUC 0.639
Gradient Boosting
Accuracy 72.0%
F1 Score 0.177
ROC AUC 0.607
Neural Network
Accuracy 71.0%
F1 Score 0.216
ROC AUC 0.411
Ensemble (Voting) BEST ACCURACY
Accuracy 75.0%
F1 Score 0.242
ROC AUC 0.609

Top 10 High-Risk Adverse Events

Ranked by propensity score (severity rate × log(1 + frequency))

Rank Adverse Event Risk Level Propensity Severity % Reports
1 Cough Very High 1.525 44.8% 29
2 Angioedema High 1.298 34.1% 44
3 Insomnia High 1.290 37.9% 29
4 Nausea High 1.180 32.4% 37
5 Hyperkalemia High 1.114 30.0% 40
6 Dizziness High 1.082 32.1% 28
7 Upper Respiratory Infection Moderate 0.962 28.6% 28
8 Renal Impairment Moderate 0.938 27.6% 29
9 Headache Moderate 0.874 25.0% 32
10 Hypotension Moderate 0.792 20.9% 43

Open Source on GitHub

Complete codebase, datasets, and documentation available for research and collaboration

📦
16 Files
MIT License
🔬
800+ Lines of Code
# Clone the repository
git clone https://github.com/YOUR_USERNAME/losartan-adverse-effects-analysis.git

# Install dependencies
pip install -r requirements.txt

# Run analysis
python src/losartan_adverse_effects_analysis.py
View Repository