Applying machine learning to pharmacovigilance data: A proof‐of‐concept study

AIM: Machine learning (ML) applications in pharmacovigilance remain limited and underexplored. Using data from the French National pharmacovigilance database (FNPV), this proof-of-concept study aimed to assess the feasibility of using a ML algorithm-eXtreme Gradient Boosting (XGBoost)-combined with SHapley Additive exPlanations (SHAP) analysis, to classify a well-defined drug-adverse reaction pair (warfarin-associated gastrointestinal bleeding) and identify risk factors for reporting this adverse reaction. METHODS: We extracted individual case safety reports (ICSRs) involving warfarin from the FNPV. Following data preprocessing, the dataset was randomly split into a training set (75%) and an independent test set (25%). The XGBoost algorithm was trained to classify reports as either gastrointestinal bleeding or non-gastrointestinal bleeding adverse reactions. Model performance was assessed on the test set using multiple metrics: accuracy, recall, precision, F1-score and the area under the receiver operating characteristic curve (AUC-ROC). Feature importance and directional effects were interpreted using SHAP values. RESULTS: A total of 2025 ICSRs involving warfarin were extracted from the FNPV. After preprocessing, 1045 ICSRs were retained. On the test set, the XGBoost model demonstrated an accuracy of 0.68, recall of 0.80, precision of 0.68, F1-score of 0.74 and an AUC-ROC of 0.716. SHAP analysis revealed the four most influential features in predicting gastrointestinal bleeding reporting: age, gastrointestinal bleeding risk, antiplatelet and history of renal dysfunction. CONCLUSION: We demonstrated the feasibility of using an XGBoost algorithm combined with SHAP analysis to pharmacovigilance data for the classification of adverse drug reactions and identify predictive features of reporting, following post hoc model interpretation by pharmacologists.

Authors

Institutions

Publication Details

Journal
British Journal of Clinical Pharmacology
Published
2026-06-17
DOI
https://doi.org/10.1002/bcp.70655
Primary Topic
Pharmacovigilance and Adverse Drug Reactions
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Applying machine learning to pharmacovigilance data: A proof‐of‐concept study

Claire de Canecaude, François Montastruc, Piero Schirò, Romain Barus et al.
British Journal of Clinical Pharmacology
Pharmacovigilance and Adverse Drug Reactions
article

Applying machine learning to pharmacovigilance data: A proof‐of‐concept study

Claire de Canecaude, François Montastruc, Piero Schirò, Romain Barus, Jean‐Luc Faillie, Johana Béné, Romane Freppel
article en

Abstract

AIM: Machine learning (ML) applications in pharmacovigilance remain limited and underexplored. Using data from the French National pharmacovigilance database (FNPV), this proof-of-concept study aimed to assess the feasibility of using a ML algorithm-eXtreme Gradient Boosting (XGBoost)-combined with SHapley Additive exPlanations (SHAP) analysis, to classify a well-defined drug-adverse reaction pair (warfarin-associated gastrointestinal bleeding) and identify risk factors for reporting this adverse reaction. METHODS: We extracted individual case safety reports (ICSRs) involving warfarin from the FNPV. Following data preprocessing, the dataset was randomly split into a training set (75%) and an independent test set (25%). The XGBoost algorithm was trained to classify reports as either gastrointestinal bleeding or non-gastrointestinal bleeding adverse reactions. Model performance was assessed on the test set using multiple metrics: accuracy, recall, precision, F1-score and the area under the receiver operating characteristic curve (AUC-ROC). Feature importance and directional effects were interpreted using SHAP values. RESULTS: A total of 2025 ICSRs involving warfarin were extracted from the FNPV. After preprocessing, 1045 ICSRs were retained. On the test set, the XGBoost model demonstrated an accuracy of 0.68, recall of 0.80, precision of 0.68, F1-score of 0.74 and an AUC-ROC of 0.716. SHAP analysis revealed the four most influential features in predicting gastrointestinal bleeding reporting: age, gastrointestinal bleeding risk, antiplatelet and history of renal dysfunction. CONCLUSION: We demonstrated the feasibility of using an XGBoost algorithm combined with SHAP analysis to pharmacovigilance data for the classification of adverse drug reactions and identify predictive features of reporting, following post hoc model interpretation by pharmacologists.

British Journal of Clinical Pharmacology
Inserm (FR), Université de Bourgogne (FR), Université de Montpellier (FR), Université de Lille (FR), Centre Hospitalier Universitaire de Lille (FR), Centre Hospitalier Universitaire de Montpellier (FR), CHU Dijon Bourgogne (FR), Pharmacochimie et Biologie pour le Développement (FR)
Good health and well-being
Openalex Percentile: Top 7%
Pharmacovigilance and Adverse Drug Reactions
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.