MedElevator Войти в исследования
← Поиск публикаций

DOI 10.1186/s12911-025-03107-3

Медицинская библиотека · BMC medical informatics and decision making · 2025

Development and external validation of a machine learning model for predicting drug-induced immune thrombocytopenia in a real-world hospital cohort.

Van Dung Hoang, Tan Vu Manh, Dieu Nguyen Thi, Van Linh Pham, Van Khai Nguyen, Ngan Tran Thi, Phuong Nguyen Thi Thu

СтатьяВалидационное исследованиеПеревод пока не подготовлен

Аннотация

BACKGROUND

Drug-induced immune thrombocytopenia (DITP) is a rare but potentially life-threatening adverse drug reaction, often underrecognized due to its nonspecific presentation and the lack of real-time diagnostic tools. Early identification of at-risk patients is critical to improving medication safety and preventing severe complications.

OBJECTIVE

To develop and externally validate a machine learning model for predicting the risk of DITP using routinely collected hospital data, and to optimize its clinical applicability through threshold adjustment.

METHODS

We conducted a retrospective cohort study using electronic medical records from Hai Phong International Hospital (2018-2024) for model development and internal validation. An independent cohort from Hai Phong International Hospital - Vinh Bao (2024) served as external validation. Eligible patients received at least one drug previously implicated in DITP and had serial platelet counts. A Light Gradient Boosting Machine (LightGBM) model was trained on demographic, clinical, laboratory, and pharmacological features. Model performance was assessed using area under the ROC curve (AUC), accuracy, recall, and F1-score. Shapley Additive explanations (SHAP) were used to interpret feature contributions. Threshold tuning and decision curve analysis (DCA) supported clinical applicability.

RESULTS

Among 17,546 patients in the training cohort and 1,403 in the external cohort, DITP occurred in 432 (2.46%) and 70 (4.99%) patients, respectively. In internal validation, LightGBM achieved an AUC of 0.860, recall of 0.392, and F1-score of 0.310. External validation confirmed model robustness with an AUC of 0.813 and an F1-score of 0.341 at the optimized threshold (0.09). SHAP analysis identified AST, baseline platelet count, and renal function as key contributors. DCA and clinical impact curves demonstrated potential benefit in supporting real-time risk stratification. Clopidogrel and vancomycin were frequently associated with suspected DITP cases.

CONCLUSION

This externally validated machine learning model enables early identification of hospitalized patients at risk of DITP using data available in routine care. Its integration into electronic medical records may support clinical decision-making, reduce diagnostic delays, and improve pharmacovigilance practices in hospital settings.

Другие публикации по теме

Machine LearningRetrospective StudiesPurpura, Thrombocytopenic, IdiopathicElectronic Health Records
Для цитирования: Van Dung Hoang, Tan Vu Manh, Dieu Nguyen Thi, Van Linh Pham, Van Khai Nguyen, Ngan Tran Thi, Phuong Nguyen Thi Thu. Development and external validation of a machine learning model for predicting drug-induced immune thrombocytopenia in a real-world hospital cohort.. BMC medical informatics and decision making. 2025. DOI: 10.1186/s12911-025-03107-3.

Перевод полного текста: Перевод в очереди

Полный текст источника

https://creativecommons.org/licenses/by-nc-nd/4.0/

Текст сохранён. Часть иллюстраций пока доступна только в первоисточнике; загрузка будет проверена повторно.

Hoang Van Dung

Vu Manh Tan

Nguyen Thi Dieu

Pham Van Linh

Nguyen Van Khai

Tran Thi Ngan

Nguyen Thi Thu Phuong

Corresponding author.

Received 2025 May 15; Accepted 2025 Jul 8; Collection date 2025.

Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ .

Abstract

Background

Drug-induced immune thrombocytopenia (DITP) is a rare but potentially life-threatening adverse drug reaction, often underrecognized due to its nonspecific presentation and the lack of real-time diagnostic tools. Early identification of at-risk patients is critical to improving medication safety and preventing severe complications.

Objective

To develop and externally validate a machine learning model for predicting the risk of DITP using routinely collected hospital data, and to optimize its clinical applicability through threshold adjustment.

Methods

We conducted a retrospective cohort study using electronic medical records from Hai Phong International Hospital (2018–2024) for model development and internal validation. An independent cohort from Hai Phong International Hospital – Vinh Bao (2024) served as external validation. Eligible patients received at least one drug previously implicated in DITP and had serial platelet counts. A Light Gradient Boosting Machine (LightGBM) model was trained on demographic, clinical, laboratory, and pharmacological features. Model performance was assessed using area under the ROC curve (AUC), accuracy, recall, and F1-score. Shapley Additive explanations (SHAP) were used to interpret feature contributions. Threshold tuning and decision curve analysis (DCA) supported clinical applicability.

Results

Among 17,546 patients in the training cohort and 1,403 in the external cohort, DITP occurred in 432 (2.46%) and 70 (4.99%) patients, respectively. In internal validation, LightGBM achieved an AUC of 0.860, recall of 0.392, and F1-score of 0.310. External validation confirmed model robustness with an AUC of 0.813 and an F1-score of 0.341 at the optimized threshold (0.09). SHAP analysis identified AST, baseline platelet count, and renal function as key contributors. DCA and clinical impact curves demonstrated potential benefit in supporting real-time risk stratification. Clopidogrel and vancomycin were frequently associated with suspected DITP cases.

Conclusion

This externally validated machine learning model enables early identification of hospitalized patients at risk of DITP using data available in routine care. Its integration into electronic medical records may support clinical decision-making, reduce diagnostic delays, and improve pharmacovigilance practices in hospital settings.

Supplementary Information

The online version contains supplementary material available at 10.1186/s12911-025-03107-3.

Keywords: Drug-induced immune thrombocytopenia (DITP), Machine learning, LightGBM, External validation, Pharmacovigilance, Clinical prediction model, Adverse drug reaction

Introduction

Thrombocytopenia is a clinically significant hematologic condition frequently encountered in hospitalized patients and is associated with an increased risk of bleeding, prolonged hospitalization, and elevated mortality. Among its etiologies, drug-induced immune thrombocytopenia (DITP) represents a rare but potentially life-threatening adverse drug reaction characterized by a sudden and severe decline in platelet count [ 1 ]. Although rare in the general population, DITP may account for up to 10% of acute thrombocytopenia cases in hospitalized adults [ 2 ], especially among patients exposed to multiple drugs. Delayed recognition of DITP can result in prolonged exposure to the causative agent, worsening thrombocytopenia, and increased bleeding risk [ 3 ]. DITP is primarily immune-mediated, resulting from mechanisms such as drug-dependent antibodies, hapten formation, or immune complex deposition on platelets [ 2 ].

Emerging evidence also implicates drug-induced antibodies in the direct impairment of megakaryocyte function, suggesting that DITP may involve both peripheral platelet destruction and reduced platelet production [ 4 ]. A special subtype of DITP, heparin-induced thrombocytopenia (HIT), is distinguished by a paradoxical prothrombotic risk and further underscores the clinical heterogeneity of drug-related thrombocytopenia [ 5 ]. Given these diagnostic complexities and potential clinical consequences, the need for accurate and scalable tools to identify patients at risk for DITP is increasingly recognized.

Despite its clinical importance, DITP remains a diagnostic challenge due to its heterogeneous presentation and multifactorial etiology. Clinically, DITP often develops 5–10 days after the initiation of the offending drug and is marked by abrupt thrombocytopenia. Platelet counts typically recover within several days following drug discontinuation [ 6 ]. DITP is characterized by abrupt-onset, severe thrombocytopenia that may lead to bleeding complications, yet its identification is frequently obscured by the concurrent use of multiple medications and the presence of underlying comorbidities [ 2 , 7 ]. Unlike thrombocytopenia caused by sepsis, chemotherapy, or bone marrow failure, DITP is largely reversible if promptly recognized and treated. To date, more than 100 medications have been implicated in DITP, with quinine, certain antibiotics, and heparin among the most frequently reported agents [ 8 , 9 ]. The underlying mechanism typically involves the formation of drug-dependent antibodies targeting specific platelet membrane glycoproteins, resulting in immune-mediated platelet destruction [ 10 ]. However, these immunopathologic processes are not readily detectable with routine diagnostics.

Diagnosis of DITP relies on a constellation of clinical criteria, including a clear temporal relationship between drug exposure and platelet decline, rapid platelet count recovery upon drug cessation, and the exclusion of other etiologies [ 11 ]. Although specialized assays for detecting drug-dependent platelet antibodies exist, their limited availability and lack of standardization hinder routine use in clinical practice. Management of DITP centers on the immediate withdrawal of the suspected drug, with adjunctive therapies such as platelet transfusion or intravenous immunoglobulin reserved for patients presenting with active bleeding or profound thrombocytopenia [ 1 ]. A unique and clinically significant subtype, HIT, is distinguished by its prothrombotic phenotype and requires different therapeutic considerations [ 12 ].

Given the diagnostic complexity and clinical severity of DITP, there is a critical need for predictive tools to support early recognition and clinical decision-making. Machine learning (ML) models have shown considerable potential in predicting adverse drug events (ADEs) using routinely collected electronic health record (EHR) data. A recent systematic review demonstrated that ML algorithms such as random forest, XGBoost, and LightGBM achieved strong overall performance in ADEs prediction across diverse drugs and clinical settings [ 13 ]. Moreover, combining signal detection from spontaneous reporting systems and EHR-based ML models has been shown to significantly improve the precision of ADR identification, supporting their utility in clinical pharmacovigilance workflows [ 14 ]. Recent attempts to apply ML in the context of thrombocytopenia have shown promise but remain limited in scope. For example [ 15 ], developed a k-nearest neighbors model to predict DITP-related toxicity, achieving 75.6% accuracy; however, the model lacked external validation and was developed using structured chemical data rather than clinical features. Similarly, Kim et al. (2021) applied ensemble decision trees to predict chronic immune thrombocytopenia in pediatric patients [ 16 ], while Abou-Ismail et al. (2024) used ML to assess mortality risk in immune-mediated thrombotic thrombocytopenic purpura—both conditions distinct from DITP in pathogenesis and clinical course [ 16 ]. To date, no machine learning model has been externally validated specifically for DITP prediction, and none have been designed to integrate real-world clinical data for bedside applications. This lack of robust, generalizable models underscores the need for systematic development and validation of ML-based decision support tools tailored to DITP, particularly in inpatient settings where polypharmacy is common and diagnostic timelines are constrained.

This study aims to develop and validate machine learning models for predicting DITP using real-world inpatient data. Multiple algorithms were compared to identify the most suitable model, and threshold tuning was applied to enhance clinical relevance. External validation using data from a separate hospital was performed to assess generalizability. The findings are intended to support future integration of predictive tools into clinical decision-making for early detection of DITP.

Methods

Study design and data source

This retrospective cohort study utilized structured electronic medical records (EMRs) extracted from the health information system of Hai Phong International Hospital. The source EMR system integrates physician orders, medication administration records, laboratory results, and administrative data using standardized coding systems, including International Classification of Diseases, 10th Revision for diagnoses and Anatomical Therapeutic Chemical Classification System for medications. The study population comprised all inpatients admitted between January 1, 2018, and December 31, 2024.

A comprehensive analytical dataset was constructed, including patient-level variables on demographics, comorbidities, drug exposures, laboratory investigations, and hospitalization characteristics. The overall study workflow including cohort construction, feature extraction, model development, and external validation is summarized in Fig. 1 .

Иллюстрация — в первоисточнике ↗

Overview of the study design and model development workflow

Study population and case definition

The study population comprised two distinct cohorts: a development cohort (training and internal validation) and an external validation cohort.

Development cohort

Data were obtained from Hai Phong International Hospital between January 1, 2018, and December 31, 2024. All adult inpatients (aged ≥ 18 years) were screened for eligibility. Patients were included if they: (1) were hospitalized during the study period; (2) received at least one medication previously implicated in DITP, as identified from pharmacovigilance databases, case series, or systematic reviews [ 11 ]; and (3) had both baseline and follow-up platelet counts available during the same hospitalization.

External validation cohort

This independent cohort was drawn from Hai Phong International Hospital – Vinh Bao between January 1 and December 31, 2024, using identical inclusion and exclusion criteria. The external site operates under the same clinical governance system but serves a geographically and demographically distinct patient population.

DITP case definition

DITP was defined as a ≥ 50% decrease in platelet count from baseline following exposure to a suspect drug, with exclusion of alternative causes. Each candidate case was reviewed and adjudicated independently by a multidisciplinary panel of clinical pharmacologists and hematologists. The panel assessed the plausibility based on temporal relationship to drug initiation, dose-response characteristics, and evidence of platelet recovery after withdrawal.

Exclusion criteria (applied to both cohorts) included: (1) underlying hematologic malignancies or bone marrow failure syndromes; (2) ongoing chemotherapy or radiotherapy; (3) known immune-mediated thrombocytopenia such as ITP or HIT; (4) clinical conditions likely to confound platelet interpretation including sepsis, disseminated intravascular coagulation (DIC), or dengue fever; and (5)Patients with missing or incomplete platelet data were also excluded.

Control selection

Controls were sampled from the same admission periods and hospital systems. Eligible controls were defined as patients who received one or more DITP-associated drugs but did not develop thrombocytopenia. Controls were frequency-matched to cases on age group and sex. Only records with complete clinical and laboratory data were retained.

Feature extraction and preprocessing

Clinical and pharmacologic variables were extracted from a priori based on biological plausibility and prior literature. All features were grouped into six predefined domains: (1) demographic characteristics, (2) comorbidities, (3) drug exposures, (4) laboratory values, (5) clinical context, and (6) treatment outcomes.

Demographic variables included age, sex, weight, height, and body mass index (BMI).

Comorbidities were encoded as binary indicators for hypertension, diabetes mellitus, chronic kidney disease, liver disease, infection, heart disease, and cancer, which are conditions known to potentially affect platelet kinetics or hemostatic function.

Patients with conditions that could severely confound platelet count interpretation, including hematologic malignancies or bone marrow failure syndromes, ongoing chemotherapy or radiotherapy, known immune-mediated thrombocytopenia (immune thrombocytopenic purpura or HIT), and severe infections such as sepsis, disseminated intravascular coagulation, or dengue fever, were excluded according to predefined criteria.

Drug exposures were characterized both qualitatively and quantitatively. Suspected agents were identified by generic names and mapped to second-level Anatomical Therapeutic Chemical (ATC) classifications. Drug burden was quantified by the total number of distinct medications prescribed and by the cumulative dosage administered within the first 24 h of hospitalization (24 h-dose). All high-risk agents were independently reviewed and verified by clinical pharmacologists. To account for temporal proximity between drug exposure and platelet decline, time intervals between initial drug administration and nadir platelet count were also calculated and included as candidate features.

Laboratory variables encompassed baseline platelet counts prior to suspected drug administration, serial platelet measurements, and additional hematologic and biochemical parameters, including white blood cell (WBC) count, red blood cell (RBC) count, serum creatinine, aspartate aminotransferase (AST), alanine aminotransferase (ALT), prothrombin time, and markers of systemic inflammation.

To ensure consistency and comparability, continuous variables were standardized using z-score transformation. Binary categorical variables were retained in their original format. Variables with more than 20% missingness were excluded from analysis. For the remaining missing values, multiple imputations were performed using chained equations (MICE). To reduce collinearity, pairwise Pearson correlation was assessed, and features with correlation coefficients exceeding 0.90 were eliminated. All feature engineering and preprocessing procedures were applied identically to both development and external validation datasets. The final retained features, their correlation structure, and the rationale for inclusion or exclusion are detailed in Supplementary Table 4 .

Model development

The primary hypothesis of this study was that a combination of demographic characteristics, comorbidities, baseline laboratory values, drug classes, and 24-hour drug doses would be predictive of suspected DITP. These features were defined as the independent variables, while the occurrence of suspected DITP served as the dependent outcome.

The dataset was randomly partitioned into training (80%) and internal validation (20%) subsets using stratified sampling to preserve the outcome distribution. This two-part split, combined with five-fold cross-validation within the training set, was chosen to maximize data utilization and reduce the risk of data fragmentation in this rare-event context. Six supervised learning algorithms were implemented: logistic regression, random forest, support vector machine (SVM), naïve Bayes, extreme gradient boosting (XGBoost), and LightGBM.

Feature engineering for all models included drug class encoding, baseline labs, demographic and comorbidity profiles, and 24-hour drug dose. All pipelines were developed using scikit-learn (v1.3.1) and associated libraries. To address class imbalance inherent in rare event prediction tasks, algorithm-specific class weighting schemes (e.g., class_weight=’balanced’) or equivalent techniques were applied during model training.

Model optimization was conducted via five-fold cross-validation using grid search and Bayesian optimization, depending on the algorithm. Feature selection incorporated both domain knowledge and data-driven metrics, including univariate filtering and L1 regularization. For all models, predictions were generated as continuous probability scores for the positive class, ensuring consistent calculation of ROC curves and AUC metrics.

Internal validation and model selection

Performance was evaluated on the held-out internal validation set using the following metrics: area under the receiver operating characteristic curve (AUC), accuracy, recall (sensitivity) for the DITP class, and F1-score for the DITP class. Due to the rare-event nature of DITP, priority was given to maximizing recall and F1-score over accuracy alone.

Among all models, LightGBM achieved the best overall performance, demonstrating superior balance between sensitivity and precision, and was therefore selected as the final predictive model for further threshold tuning and external evaluation.

Threshold optimization and external validation

To determine the optimal clinical decision threshold, the LightGBM model was evaluated across a range of predicted probability cutoffs (0.01 to 0.5) in the external validation dataset. The threshold corresponding to the highest F1-score was selected to optimize the sensitivity–precision balance. In this context, the threshold refers to the predicted probability cutoff above which a patient is classified as positive for DITP.

External validation was conducted using an independent dataset from Hai Phong International Hospital – Vinh Bao, applying the same inclusion criteria and preprocessing pipeline without further model retraining. All hyperparameters were predefined and stored before evaluation to ensure unbiased assessment.

Model performance in the external cohort was assessed using ROC AUC, precision, recall, F1-score, calibration plots, decision curve analysis (DCA), and clinical impact curves to quantify real-world utility.

Statistical analysis

Descriptive statistics were used to summarize patient characteristics, with means and standard deviations reported for continuous variables, and counts and percentages for categorical variables. Comparisons between training and external validation cohorts were performed using Student’s t-test or Mann–Whitney U test for continuous variables, and chi-square test or Fisher’s exact test for categorical variables, as appropriate.

All model development and evaluation procedures were conducted using Python (version 3.10), with support from the scikit-learn, xgboost, and lightgbm packages. The significance threshold was set at p < 0.05 (two-tailed) for all inferential tests.

Ethical considerations

The study protocol was reviewed and approved by the Institutional Ethics Committee of Hai Phong International Hospital (Approval No. 2024.014/IRB). The study complied with the principles outlined in the Declaration of Helsinki.

All data used in this study were fully anonymized prior to access and analysis. Informed consent was waived by the Ethics Committee in accordance with Article 7, Clause 1b of Circular No. 43/2024/TT-BYT, issued by the Vietnamese Ministry of Health, which permits waiver of informed consent in retrospective studies where personal data are fully anonymized, and where obtaining such consent is not feasible, provided that the rights and safety of participants are protected.

Results

A total of 17,546 patients were included in the training cohort and 1,403 patients in the external validation cohort. Baseline demographic and clinical characteristics of both cohorts are summarized in Table 1 . Significant differences were observed in multiple variables, highlighting the heterogeneity between the two datasets.

Table 1.

Baseline characteristics of the training and external validation cohorts

VariableTraining ( n = 17,546)External ( n = 1,404)p -value
Age (years)55.9 ± 21.153.6 ± 22.1< 0.001
Male sex9,408 (53.6%)716 (51.0%)0.062
BMI (kg/m²)22.6 ± 19.121.8 ± 3.9< 0.001
Baseline PLT (10⁹/L)256.4 ± 87.2298.4 ± 85.2< 0.001
GFR (mL/min/1.73 m²)75.9 ± 40.173.5 ± 30.10.005
AST (U/L)47.3 ± 246.735.3 ± 43.7< 0.001
ALT (U/L)39.0 ± 100.430.9 ± 44.8< 0.001
WBC (10⁹/L)10.0 ± 3.99.2 ± 3.5< 0.001
RBC (10¹²/L)4.4 ± 0.74.3 ± 0.7< 0.001
No. of drugs18.4 ± 9.918.6 ± 8.00.481
Hospital stay (days)7.2 ± 4.56.7 ± 3.6< 0.001
24-hour dose (mg)200.1 ± 1089.2159.2 ± 383.20.002
DITP (n (%))432 (2.46%)70 (4.99%)< 0.001
Diabetes (n (%))4,503 (25.7%)202 (14.4%)< 0.001
Chronic kidney disease (n (%))1,623 (9.2%)76 (5.4%)< 0.001
Infection (n (%))7,066 (40.3%)646 (46.0%)< 0.001
Cancer (n (%))433 (2.5%)23 (1.6%)0.063
Heart disease (n (%))1,634 (9.3%)194 (13.8%)< 0.001

Values are presented as mean ± standard deviation for continuous variables and number (percentage) for binary variables. P-values were calculated using the independent t-test for continuous variables and the Chi-square test for categorical variables

Patients in the external cohort were slightly younger (mean age: 53.6 vs. 55.9 years, p < 0.001) and had lower BMI (21.8 ± 3.9 vs. 22.6 ± 19.1 kg/m², p < 0.001). Laboratory values also differed significantly, with higher baseline platelet counts (298.4 ± 85.2 vs. 256.4 ± 87.2 × 10⁹/L, p < 0.001) and lower liver enzyme levels (AST and ALT, both p < 0.001) in the external cohort.

Although the average number of administered drugs was comparable between cohorts (18.6 vs. 18.4, p = 0.481), the cumulative 24-hour drug dose was significantly lower in the external cohort (159.2 ± 383.2 vs. 200.1 ± 1089.2 mg, p = 0.002). Comorbidities also varied: the external cohort had lower prevalence of diabetes (14.4% vs. 25.7%, p < 0.001) and chronic kidney disease (5.4% vs. 9.2%, p < 0.001), but higher prevalence of heart disease (13.8% vs. 9.3%, p < 0.001) and infection (46.0% vs. 40.3%, p < 0.001). A total of 432 (2.46%) patients in the training cohort and 70 (4.99%) in the external validation cohort were identified as DITP. The proportion of DITP was significantly higher in the validation cohort compared to the training cohort ( p < 0.001).

Several commonly used medications were associated with higher proportions of suspected DITP in both the training and external validation cohorts (Table 2 ; Supplement 3 ). In the training cohort, vancomycin (9.0%), rivaroxaban (7.1%), and trimethoprim (5.5%) showed the highest DITP rates, while clopidogrel and ibuprofen had a moderate rate of 3.2% and 3.8%, respectively. In the validation cohort, clopidogrel had the highest DITP rate (18.8%), followed by vancomycin (16.7%), trimethoprim (14.0%), and rivaroxaban (11.6%). Rosuvastatin, and atorvastatin remained in the lower range (3.5–4.7%), while diclofenac and ibuprofen , although showing modest rates (3.4–4.0%), remain of interest due to their high frequency of use.

Table 2.

Common drugs associated with suspected DITP in the training and validation cohorts

Active ingredientDrug classn (train)% DITP (train)24 h dose (train)n (validation)% DITP (validation)24 h dose (validation)
DiclofenacNSAID7,8271.1975.0 (75.0-150.0)650475.0 (75.0-150.00)
AtorvastatinStatin3,6263.210.0 (10.0–40.00)2583.4910.0 (10.0–30.00)
RosuvastatinStatin1,6992.7110.0 (5.0–40.0)1074.6710.0 (10.0–20.00)
Acetylsalicylic acidAntiplatelet7171.67100.0 (75.0-400.0)893.37100.0 (100.0-300.0)
IbuprofenNSAID6923.76160.0 (20.0-2000.0)583.45200.0 (200.0-400.00)
ClopidogrelAntiplatelet3433.2175.0 (75.0-600.0)1618.7575.0 (75.0-150.00)
VancomycinGlycopeptide3358.962000.0 (500.0-4000.0)616.671000.0 (500.0-3000.00)
AciclovirAntiviral2493.211200.0 (50.0-1200.0)2711.111200.0 (100.0-1600.0)
RivaroxabanAnticoagulant2107.1415.0 (10.0–30.0)9511.5815.0 (15.0–30.0)
TrimethoprimAntibiotic915.49320.0 (80.0-2880.0)5014960.0 (200.0-2880.0)

Values are presented as number (%) for DITP incidence and median [IQR] for 24-hour dose. DITP incidence was defined by platelet drop temporally associated with drug exposure

Six machine learning algorithms were evaluated to select a suitable model for predicting DITP using internal validation data. The performance metrics, including area under the receiver operating characteristic curve (ROC AUC), accuracy, recall for the positive class, and F1-score, are summarized in Table 3 . LightGBM showed a favorable balance across the metrics, with a ROC AUC of 0.860, accuracy of 0.959, recall of 0.392, and F1-score of 0.310. Although the random forest model achieved the highest AUC (0.875), its recall was substantially lower (0.013), which limited its effectiveness in identifying rare DITP cases. Logistic regression and Naive Bayes yielded higher recall values but lower F1-scores, reflecting limited precision under class imbalance. The support vector machine (SVM) model achieved a recall of 0.506 but still performed less well than LightGBM in terms of F1-score.

Table 3.

Comparison of model performance in internal validation

ModelROC AUCAccuracyRecall (positive class)F1-score (positive class)
Logistic regression0.8150.7760.7340.135
Random forest0.8750.9770.0130.025
XGBoost0.8510.9730.1770.239
LightGBM0.860.9590.3920.31
Support vector machine0.8650.9150.5060.22
Naive Bayes0.8010.8890.430.155

Figure 2 presents the ROC curves of all models. LightGBM and SVM both demonstrated reasonable class separation, with LightGBM maintaining a better balance between sensitivity and specificity. Based on these results, LightGBM was selected for subsequent threshold tuning and external validation.

Receiver operating characteristic (ROC) curves comparing the performance of six machine learning algorithms on internal validation. AUC: area under the curve
Receiver operating characteristic (ROC) curves comparing the performance of six machine learning algorithms on internal validation. AUC: area under the curve

The LightGBM-based prediction model was first evaluated using internal validation. At the default threshold of 0.5, the model achieved a high accuracy of 91.7% and an area under the ROC curve (AUC) of 0.839, indicating strong discriminative performance (Fig. 3 -A). The confusion matrix (Fig. 3 -B) revealed a high number of correctly classified non-DITP cases (true negatives = 3168), but also highlighted limitations in positive class identification, with only 49 of 86 true positives correctly identified (recall = 0.57).

Internal validation performance of the LightGBM model. ( A ) ROC curve showing the model’s discriminative ability (AUC = 0.839). ( B ) Confusion matrix at the default threshold (0…
Internal validation performance of the LightGBM model. ( A ) ROC curve showing the model’s discriminative ability (AUC = 0.839). ( B ) Confusion matrix at the default threshold (0.5), illustrating the trade-off between sensitivity and specificity. ( C ) Precision–recall curve highlighting performance in the context of class imbalance (PR AUC = 0.249). ( D ) Calibration curve comparing predicted probabilities with observed event frequencies

Despite the strong overall discrimination, the precision was relatively low (0.161) due to the class imbalance, resulting in an F1-score of 0.251. The precision–recall curve (Fig. 3 -C) confirmed the trade-off between sensitivity and positive predictive value, with an area under the PR curve of 0.249. Furthermore, the calibration curve (Fig. 3 -D) indicated that the model tended to underestimate risk probabilities, particularly in the intermediate probability range, suggesting room for further probability calibration.

To account for class imbalance and maximize predictive performance, the LightGBM model was evaluated across a range of probability thresholds in the external validation cohort (Table 4 ). As expected, a lower threshold of 0.01 yielded high sensitivity (recall = 0.971) but at the cost of substantial false positives (precision = 0.074), resulting in poor discrimination overall (F1-score = 0.137, accuracy = 0.391). Conversely, increasing the threshold to 0.30 or 0.50 improved precision (up to 0.750) and accuracy (up to 0.952), but drastically reduced recall (< 0.06), indicating under-identification of true DITP cases. The optimal balance was achieved at a threshold of 0.09, which provided the highest F1-score (0.341) with acceptable recall (0.543) and high accuracy (0.895). Notably, the ROC AUC remained stable across thresholds (0.813), confirming that threshold adjustment affects the operating point on the ROC curve without changing the model’s intrinsic discriminatory capacity. This analysis supports the selection of 0.09 as the decision threshold for clinical application of the model.

Table 4.

External validation performance of the LightGBM model at varying probability thresholds

ThresholdPrecisionRecallF1-scoreAccuracyROC AUC
0.010.0740.9710.1370.3910.813
0.09 *0.2480.5430.3410.8950.813
0.30.2670.0570.0940.9450.813
0.50.750.0430.0810.9520.813

*Threshold 0.09 was selected for final evaluation due to its optimal balance between sensitivity and precision, as reflected by the highest F1-score

The final LightGBM model was evaluated on an independent external validation dataset using an optimized decision threshold of 0.09. As shown in Fig. 3 , the model achieved a ROC AUC of 0.813 (Fig. 4 A), indicating good discriminative performance on unseen data. The confusion matrix (Fig. 4 B) showed that 38 out of 70 DITP cases were correctly identified (sensitivity = 0.543), and 1219 out of 1334 non-DITP cases were correctly classified (specificity = 0.914), consistent with the results presented in Table 4 . The precision–recall curve (Fig. 4 C) yielded an area under the curve of 0.248, reflecting limited precision due to class imbalance, although recall was improved. This pattern is common in rare event prediction, where sensitivity is prioritized over precision. The calibration curve (Fig. 4 D) showed some deviation from perfect calibration, with a slight overestimation of risk in the mid-probability range. Predictions at the lower and upper extremes (e.g., < 0.2 or > 0.8) were generally well aligned with observed outcomes.

External validation of the LightGBM model at the optimized decision threshold (0.09). ( A ) ROC curve; ( B ) Confusion matrix; ( C ) Precision–recall curve; ( D ) Calibration curve
External validation of the LightGBM model at the optimized decision threshold (0.09). ( A ) ROC curve; ( B ) Confusion matrix; ( C ) Precision–recall curve; ( D ) Calibration curve

To further evaluate clinical relevance, decision curve analysis (DCA) and clinical impact curve (CIC) were generated using the external validation data (Fig. 5 ). The DCA curve (Fig. 5 A) showed that the model offered a net benefit over the “treat-all” and “treat-none” strategies across a range of threshold probabilities, approximately between 0.02 and 0.40. This suggests potential utility in guiding clinical decisions with fewer false positives. In the CIC (Fig. 5 B), the number of patients classified as high risk and the number of true positives began to diverge at thresholds below 0.1, reflecting a common trade-off between sensitivity and over-intervention. At the selected threshold of 0.09, the model identified approximately 38 true positives among 153 patients flagged as high risk, indicating practical feasibility for use in settings with limited resources.

Decision curve analysis (DCA) and clinical impact curve (CIC) for external validation. ( A ) DCA curve comparing net benefit of the model versus treat-all and treat-none strategie…
Decision curve analysis (DCA) and clinical impact curve (CIC) for external validation. ( A ) DCA curve comparing net benefit of the model versus treat-all and treat-none strategies. ( B ) CIC showing the number of high-risk patients flagged and true positives captured across thresholds

Model interpretability was assessed using SHAP to examine both global and individual feature contributions. The summary plot (Supplementary Fig. 1 ) identified AST, baseline platelet count, total drug exposure, and GFR as the most influential features. For individual-level interpretation, SHAP was applied to the patient with the highest predicted risk in the validation cohort (predicted probability = 0.991). The SHAP waterfall plot (Supplementary Fig. 2 ) illustrated the additive contributions of key features to the risk estimate. Notable positive contributors included elevated red blood cell (RBC) count (+ 2.92), low white blood cell (WBC) count (+ 2.72), and increased AST (+ 0.82). Additional contributing factors included higher total daily drug dose, reduced GFR, and recent hospitalization. In contrast, baseline platelet count, absence of infection, and male sex were associated with lower predicted risk. These effects were outweighed by stronger positive contributors, resulting in a high overall risk prediction for this case.

Discussion

This study developed and externally validated a machine learning model for predicting DITP using structured EMRs. A total of 17,548 hospitalized patients were included in the training cohort and 1,403 patients in the external validation cohort. Significant differences in demographic and clinical characteristics such as younger mean age (53.6 vs. 55.9 years, p < 0.001), higher baseline platelet count (298.4 ± 85.2 vs. 256.4 ± 87.2 × 10⁹/L, p < 0.001), and lower prevalence of diabetes (14.4% vs. 25.7%, p < 0.001) underscored the importance of external validation across heterogeneous populations.

In this study, the LightGBM model demonstrated superior performance in predicting DITP, particularly in balancing sensitivity and precision under extreme class imbalance. While the random forest model achieved the highest ROC AUC in internal validation (0.875), it yielded a recall of only 0.013, indicating that it failed to identify nearly all true positive DITP cases. This trade-off is a well-documented limitation of ensemble tree models when trained on imbalanced datasets without additional adjustment. Similarly, although XGBoost showed a strong AUC (0.851), its recall (0.177) and F1-score (0.239) remained suboptimal. In contrast, LightGBM achieved a recall of 0.392 and an F1-score of 0.310 in internal validation, improving to 0.543 and 0.341 respectively in external validation after threshold optimization, confirming its robustness and clinical applicability.

These findings are consistent with the broader literature on ML applications in thrombocytopenia-related prediction. For example, Wang et al. (2022) developed a random forest model using molecular descriptors to predict the DITP risk of 225 drug compounds [ 15 ]. Their model achieved a respectable AUC of 0.85 and accuracy of 0.82, but it was built entirely from chemical properties without patient-level clinical data or real-world validation. As a result, the model’s translational potential into clinical practice is limited by the lack of exposure context, dosage, and patient susceptibility factors. In contrast, our study incorporated patient-specific variables, including baseline laboratory values, comorbidities, and 24-hour drug exposure, enabling individualized risk prediction directly from EMRs.

Similarly, Kim et al. (2021) applied several ML algorithms, including random forest, to predict chronic immune thrombocytopenia (cITP) at initial diagnosis in 696 pediatric patients [ 16 ]. Their random forest model achieved a recall of 0.737 and an F1-score of 0.734, identifying MPV, IPF, and ANA titer as key predictive features. Although their performance metrics were higher, their target outcome was chronicity of ITP rather than acute DITP events. Moreover, their study population was restricted to pediatric patients with a single disease spectrum, limiting generalizability across broader inpatient populations.

Compared to these prior efforts, our model is one of the first to be both developed and externally validated for DITP prediction using large-scale real-world hospital data [ 2 , 15 , 16 ]. The inclusion of diverse clinical features and the application of threshold tuning based on F1-score optimization further enhances the model’s relevance for operational deployment. Importantly, the use of decision curve analysis (DCA) and clinical impact curves (CIC) in our evaluation provides additional insight into how the model may improve decision-making under routine clinical conditions—an aspect rarely addressed in previous DITP-related ML studies [ 17 , 18 ].

In clinical prediction models particularly those aimed at detecting rare adverse drug reactions such as DITP reliance on the default classification threshold of 0.5 can result in suboptimal clinical performance [ 19 , 20 ]. Default thresholds assume roughly balanced class distributions, which are rarely held in real-world clinical datasets. In highly imbalanced settings, such as DITP where the prevalence may be < 2%, classifiers tend to be biased toward the majority class, maximizing overall accuracy while failing to capture true positive cases [ 21 ]. This leads to poor sensitivity and can undermine the model’s clinical utility, particularly when early identification of rare but severe outcomes is critical for patient safety [ 22 ].

Without explicit threshold adjustment, models risk overlooking rare yet clinically significant events, as they are trained to minimize loss functions dominated by the majority class. Threshold optimization thus becomes an essential calibration step that allows prediction models to reflect clinical priorities whether favoring sensitivity for safety or precision to avoid overtreatment.

Threshold tuning enables clinicians and model developers to adjust a classifier’s decision point to match clinical priorities, such as maximizing sensitivity for early detection or balancing precision and recall to avoid unnecessary interventions. For DITP, where timely recognition is critical to mitigate bleeding risks, a higher recall may be clinically desirable even at the expense of precision. By evaluating model performance across a range of thresholds and selecting the one that optimizes the F1-score or maximizes net clinical benefit (as shown through decision curve analysis), predictive models can be adapted for real-world application where trade-offs are necessary [ 19 , 20 ].

Moreover, in the context of rare event prediction, precision–recall (PR) curves and threshold-specific performance metrics offer a more accurate and clinically relevant evaluation than traditional receiver operating characteristic (ROC) curves. While ROC curves include true negatives in their calculation, they may overstate model performance in highly imbalanced datasets by inflating the contribution of correctly classified majority-class instances. In contrast, PR curves focus exclusively on the minority class i.e., true positives and false positives making them more sensitive to the model’s ability to identify rare but clinically critical outcomes such as DITP. As demonstrated in studies evaluating rare species detection models, the area under the precision–recall curve (AUC-PR) remains stable and meaningful even as the imbalance between presence and absence increases, unlike AUC-ROC which deteriorates under the same conditions due to its dependence on true negatives [ 23 ]. Therefore, threshold optimization is not merely a statistical refinement but a necessary calibration step to ensure that machine learning models serve meaningful roles in patient safety and clinical decision-making.

In both the training and external validation cohorts, vancomycin, clopidogrel, trimethoprim, and rivaroxaban showed consistently high DITP rates, with clopidogrel reaching 18.8% and vancomycin 16.7% in the external dataset. These findings are in line with prior pharmacovigilance studies. For instance, Fuentes et al. (2022) reported elevated reporting odds ratios for vancomycin (ROR 4.2) and clopidogrel (ROR 3.0) in VigiBase [ 24 ]. Similarly, trimethoprim has long been recognized as a common DITP culprit [ 2 , 12 ].

Unlike most prior studies on DITP, which have been limited to algorithm development or internal validation only, this study incorporated an external validation phase using an independent hospital cohort. External validation is a critical step in assessing the generalizability and clinical utility of prediction models, particularly in settings with heterogeneous populations and real-world data complexity. By evaluating the model on a separate population with distinct demographic and clinical characteristics, the present study provides stronger evidence of robustness compared to earlier efforts, which often lacked prospective or multi-site evaluation. This approach is aligned with established recommendations for model development and validation in clinical prediction research [ 25 , 26 ].

Among the top-ranked features identified by the model, elevated AST levels were consistently associated with high predicted risk of DITP. This finding aligns with prior mechanistic and clinical studies suggesting a potential link between liver injury and drug-induced thrombocytopenia. Hepatic damage may contribute to DITP through several immunologic and hematologic pathways, including the dysregulation of antigen processing, impaired clearance of immune complexes, and altered expression of platelet antigens during systemic inflammation [ 9 , 27 ]. Preclinical and clinical studies have shown that certain hepatotoxic agents can provoke immune-mediated thrombocytopenia in the setting of liver injury. For instance, thioacetamide-induced hepatotoxicity in animal models has been shown to concurrently reduce platelet counts and induce hepatic inflammation, potentially mimicking the immune microenvironment observed in DITP [ 28 ]. Similarly, cases of oxaliplatin-related idiosyncratic liver injury were reported to coincide with thrombocytopenia, suggesting a shared immune mechanism [ 29 ]. These interactions may be mediated by increased exposure of cryptic antigens or enhanced presentation of drug-hapten complexes on hepatocyte or platelet membranes. Reduced GFR was identified as a key predictor of DITP risk in the model, supporting the hypothesis that impaired renal clearance contributes to increased susceptibility to drug-induced immune reactions. Several studies have reported that renal dysfunction leads to prolonged systemic exposure to certain drugs and their metabolites, some of which are known to trigger immune-mediated thrombocytopenia [ 30 , 31 ]. For instance, patients with decreased renal function receiving linezolid were found to have higher plasma concentrations and a significantly increased risk of thrombocytopenia compared to those with normal renal clearance [ 32 , 33 ]. The accumulation of drugs or reactive intermediates in renal impairment may promote immune sensitization through enhanced antigen presentation or altered drug-protein interactions [ 34 ]. This mechanism is particularly relevant for drugs eliminated primarily by the kidneys or for those administered at high doses without dose adjustment. In critically ill patients, where renal impairment is common, the incidence of drug-induced thrombocytopenia may reach up to 58%, further emphasizing the importance of renal function in modulating hematologic toxicity [ 9 ]. The association between reduced GFR and increased DITP risk in our model is thus consistent with known pharmacokinetic–pharmacodynamic relationships and highlights the need for careful monitoring and individualized dosing in patients with compromised renal function.

The proposed machine learning model offers significant potential for improving patient safety by enabling early identification of patients at risk for DITP. By generating risk predictions at the time of drug administration or hospital admission, the model could help clinicians intervene proactively such as by monitoring platelet counts more closely or reconsidering medication choices thereby reducing the likelihood of severe bleeding complications. Integration into EMRs or clinical decision support (CDS) systems would further enhance utility, allowing automated alerts to be generated in real-time during routine clinical workflows. Such systems have demonstrated clinical benefit in prior studies involving adverse drug reaction prediction [ 26 , 35 ]. Moreover, by tuning the classification threshold, the model can be adapted to suit different clinical settings and resource constraints. In emergency departments or intensive care units, a lower threshold may be favored to prioritize recall and ensure that high-risk cases are not missed. Conversely, in resource-limited environments, a higher threshold may enhance precision and reduce false alerts, optimizing clinical efficiency. Such threshold customization supports a context-aware deployment strategy aligned with institutional priorities [ 36 , 37 ]. Overall, the model’s ability to predict DITP before critical events occur represents a promising advance in personalized pharmacovigilance and may inform risk mitigation strategies in medication safety programs.

This study has several noteworthy limitations that warrant consideration in the interpretation and application of the results. First, although external validation was conducted using data from a geographically and administratively distinct hospital branch, all data originated from within a single healthcare system in Vietnam. This homogeneity in healthcare infrastructure, clinical practices, and patient population may limit the generalizability of the model across diverse international settings. Prior research has underscored that predictive models often exhibit degraded performance when applied to external datasets with differing case-mix or data collection protocols, emphasizing the need for rigorous multicenter and cross-national validation to ensure robust model transportability [ 26 , 38 ]. Second, the present study relied exclusively on structured EMR variables and did not include mechanistic or immunogenetic data such as human leukocyte antigen (HLA) polymorphisms, anti-platelet antibody assays, or detailed pharmacokinetic–pharmacodynamic interactions. These factors have been implicated in the pathogenesis of immune-mediated thrombocytopenia and may enhance predictive accuracy when integrated into future models [ 7 , 8 ]. For example, certain HLA alleles have been linked to drug hypersensitivity reactions, suggesting that inclusion of genetic markers could improve individual risk stratification [ 39 ].

Third, although the LightGBM algorithm is often characterized as a “black-box” model, we addressed this interpretability challenge by incorporating explainable artificial intelligence (XAI) analyses. Both global (summary plot) and local (waterfall plot) SHAP were applied to elucidate the contribution of individual predictors to model output. These visualizations not only improved transparency but also highlighted key clinical and pharmacologic features driving high-risk predictions, offering potential utility in bedside decision-making [ 40 , 41 ]. Finally, the extreme class imbalance of DITP, in which positive cases are exceedingly rare, remains a significant modeling challenge. Despite the application of threshold tuning to enhance sensitivity and F1-score, several drugs with suspected DITP risk were underrepresented in the external cohort. This sparsity limits strong conclusions about drug-specific model stability and underscores the need for future validation in larger, prospectively collected datasets with pharmacogenetic data.

Future research should aim to improve both the generalizability and interpretability of the predictive model. While this study achieved external validation using a separate hospital branch, broader validation across multiple centers and diverse healthcare systems is necessary to confirm robustness and facilitate international implementation. In addition, incorporating genomic and immunologic data such as HLA genotypes, drug-dependent anti-platelet antibodies, or inflammatory biomarkers may further enhance the biological relevance and predictive power of future models. These mechanistic variables could provide deeper insights into individual susceptibility to DITP. Enhancing model transparency is also crucial for clinical adoption; future iterations should integrate XAI techniques such as allowing clinicians to interpret predictions at the individual level. Finally, real-world prospective implementation studies are warranted to assess the clinical impact of the model, including its integration into electronic medical records and clinical decision support systems, where it may facilitate earlier recognition of DITP and safer prescribing practices in routine hospital care.

Conclusion

In conclusion, this study successfully developed and externally validated a machine learning model based on LightGBM to predict the risk of drug-induced immune thrombocytopenia (DITP) in hospitalized patients. The model demonstrated robust discriminatory ability and consistent performance across multiple evaluation metrics, including ROC AUC, calibration, and decision curve analysis, even in an independent external cohort. By integrating diverse clinical, pharmacologic, and laboratory variables, and applying threshold optimization to address the inherent class imbalance of DITP, the model provides a feasible and scalable tool for early risk stratification in real-world hospital settings. Furthermore, the application of explainable artificial intelligence (SHAP) enhanced model interpretability, allowing both global and patient-level insights into prediction rationale. These features support the model’s potential integration into electronic health records and clinical decision support systems to improve patient safety by facilitating timely identification of high-risk exposures. Future efforts should prioritize multi-center validation, inclusion of immunogenetic markers, and prospective evaluation of clinical impact to strengthen model generalizability and real-world utility.

Electronic supplementary material

Below is the link to the electronic supplementary material.

Supplementary Material 1: Supplementary Table 1. Training Dataset for Model Development

Supplementary Material 2: Supplementary Table 2. External Validation Dataset

Supplementary Material 3: Supplementary Table 3. List of DITP-associated drugs

Supplementary Material 4: Supplementary Table 4. Final included features, correlation analysis and rationale

Supplementary Material 5: Supplementary Fig. 1. SHAP summary plot showing the global feature importance for the LightGBM model in predicting drug-induced immune thrombocytopenia (DITP). Colors represent the magnitude and direction of feature values, with red indicating high values and blue indicating low values

Supplementary Material 6: Supplementary Fig. 2. SHAP waterfall plot for the highest-risk patient (predicted probability of DITP = 0.991) in the external validation cohort. The plot shows the cumulative contribution of top features toward the model’s output. Red bars indicate features that increase the predicted risk, while blue bars indicate features that decrease it

Acknowledgements

The authors would like to express their gratitude to the clinical pharmacology and hematology teams at Hai Phong International Hospital and Hai Phong International Hospital-Vinh Bao for their expert adjudication of DITP cases. We also acknowledge the support of the Hospital IT Department in facilitating access to electronic medical records for research purposes. Furthermore, we greatly appreciate the invaluable support provided by Hai Phong University of Medicine and Pharmacy for our Biomedical - Pharmaceutical Sciences Research Group in this endeavor.

Author contributions

Hoang Van Dung: Conceptualization; Methodology; Data curation; Formal analysis; Writing – Original Draft. Vu Manh Tan: Software; Validation; Visualization; Writing – Review & Editing. Nguyen Thi Dieu: Investigation; Data acquisition; Resources; Project administration. Pham Van Linh: Supervision; Clinical adjudication; Writing – Review & Editing. Nguyen Van Khai: Statistical analysis; Data interpretation; Writing – Review & Editing. Tran Thi Ngan: Funding acquisition; Resources; Writing – Review & Editing. Nguyen Thi Thu Phuong: Conceptualization; Supervision; Methodology; Writing – Review & Editing; Project administration; Corresponding author.

Funding

This research received no specific grant from any funding agency in the public, commercial, or not-for-profit sectors.

Data availability

De-identified datasets used for model training and validation are provided as supplementary files, along with a data dictionary. Further information is available upon reasonable request to the corresponding author.

Declarations

Ethical approval

The study protocol was reviewed and approved by the Institutional Ethics Committee of Hai Phong International Hospital (Approval No. 2024.014/IRB). The study complied with the principles outlined in the Declaration of Helsinki. All data used in this study were fully anonymized prior to access and analysis. Informed consent was waived by the Ethics Committee in accordance with Article 7, Clause 1b of Circular No. 43/2024/TT-BYT, issued by the Vietnamese Ministry of Health, which permits waiver of informed consent in retrospective studies where personal data are fully anonymized, and where obtaining such consent is not feasible, provided that the rights and safety of participants are protected.

Consent for publication

Not applicable.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Material 1: Supplementary Table 1. Training Dataset for Model Development

Supplementary Material 2: Supplementary Table 2. External Validation Dataset

Supplementary Material 3: Supplementary Table 3. List of DITP-associated drugs

Supplementary Material 4: Supplementary Table 4. Final included features, correlation analysis and rationale

Supplementary Material 5: Supplementary Fig. 1. SHAP summary plot showing the global feature importance for the LightGBM model in predicting drug-induced immune thrombocytopenia (DITP). Colors represent the magnitude and direction of feature values, with red indicating high values and blue indicating low values

Supplementary Material 6: Supplementary Fig. 2. SHAP waterfall plot for the highest-risk patient (predicted probability of DITP = 0.991) in the external validation cohort. The plot shows the cumulative contribution of top features toward the model’s output. Red bars indicate features that increase the predicted risk, while blue bars indicate features that decrease it

Data Availability Statement

De-identified datasets used for model training and validation are provided as supplementary files, along with a data dictionary. Further information is available upon reasonable request to the corresponding author.

Предметные рубрики MeSH

Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…

История · было → стало

Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.

Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.