Contrastive learning of adverse events to provide effective and interpretable vector representations for machine-assisted pharmacovigilance.
Olivér M Balogh, Mátyás Pétervári, Áron M Csernák, Eszter Puhl, András Horváth, Péter Ferdinandy, Bence Ágg
Department of Pharmacology and Pharmacotherapy, Semmelweis University, Üllői út 26., Üllői út 26., H-1085 Budapest, Hungary. · Faculty of Information Technology and Bionics, Pázmány Péter Catholic University, Práter utca 50/A., H-1083 Budapest, Hungary.
Key points
From the paper's conclusion- Therefore, we propose an interpretable adverse event vector representation, serving as a general resource that could enable the development of a wide array of machine learning applications to support decision-making in pharmacovigilance and facilitate patient safety.
Abstract
Post-marketing surveillance is crucial for drug safety, yet the tools of pharmacovigilance rely solely on text-based data that may limit contemporary machine learning methodologies in the support of decision-making. With the recent surge of employing large language models (LLMs) for text-based tasks, there also arises an unmet need for a different approach which is not grounded in the linguistic patterns of unfiltered natural text, like LLMs, but rather based on real-world drug safety data. Here, we adapt contrastive learning algorithms to generate adverse event vector representations from spontaneous adverse event reports to serve as machine-readable (i.e. numerical) resources for downstream pharmacovigilance applications, such as drug-event association prediction for signal detection or causality assessment. We present comprehensive interpretability analyses of the resulting representations through density-based clustering, semantic evaluation, and comparison of multivariate dispersions, revealing patterns that reflect both functional and causal relations of the adverse events while also capturing drug-safety-related information better than existing medical terminologies and encoder-only LLMs. Furthermore, we demonstrate the applicability of our representations as input features in our downstream classifier model, outperforming the reporting odds ratio method, commonly used by regulatory agencies, and also LLM-generated representations (area under the receiver operating characteristic curve: 0.88 versus 0.76-0.83) on drug-event association prediction benchmarks. Therefore, we propose an interpretable adverse event vector representation, serving as a general resource that could enable the development of a wide array of machine learning applications to support decision-making in pharmacovigilance and facilitate patient safety.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Generative large language models and pretrained transformer encoders for postmarketing drug safety surveillance: a systematic reviewFrontiers in Pharmacology · 2026
- Large Language Models in Adverse Drug Reaction Detection and Pharmacovigilance: A Systematic Review of Current Applications, Challenges, and Future Directions.Diagnostics (Basel, Switzerland) · 2026
- Critical Appraisal of Artificial Intelligence for Rare-Event Recognition: Principles and Pharmacovigilance Case StudiesDrug Safety · 2026
- Automating postmarketing pharmacovigilance with large language model agentsmedRxiv · 2026
- Expert-referenced evaluation of large language models for primary suspect drug identification in the FAERS database.Frontiers in pharmacology · 2026
- GraphRAG-ADR: a knowledge graph-enhanced approach for extracting Adverse Drug Reactions (ADRs) from patient narratives.BioData mining · 2026