Machine Learning for Antidiabetic Drug Safety: Data Sources, Explainability and Methodological Challenges
Main Article Content
Abstract
Long-term treatment of type 2 diabetes mellitus exposes patients to adverse drug reactions (ADRs), creating a need for better pharmacovigilance. This narrative review examines machine-learning (ML) approaches relevant to antidiabetic drug safety across electronic health records (EHRs), spontaneous reporting systems, social media, and drug–target and in vitro pharmacology datasets. The manuscript reports a literature search through March 2025. Diabetes-specific evidence is distinguished from methodological examples involving other therapeutic areas. A small metformin-related Twitter study reported 94% classification accuracy, but its engagement-based labelling and inconsistent performance statistics limit clinical interpretation. Broader studies illustrate the use of ensemble methods for signal detection, hybrid language models for extracting ADR-related entities, and target-based random forests for mechanistic association analysis. These tasks are distinct: text extraction does not establish causality, signal detection does not estimate incidence, and retrospective discrimination does not establish clinical benefit. Major limitations include class imbalance, reporting and selection biases, outcome heterogeneity, data leakage, limited external validation and insufficient assessment of calibration and clinical utility. Explainable models may help prioritise hypotheses, but feature importance alone does not establish a biological mechanism. Future research should develop and externally validate drug-class-specific models in diabetes populations and prospectively evaluate their effects on medication safety and clinical workload.
