ORIGINAL RESEARCH article

Front. Pharmacol., 20 May 2025

Sec. Drugs Outcomes Research and Policies

Volume 16 - 2025 | https://doi.org/10.3389/fphar.2025.1603089

Development of a warning model for drug-induced liver injury in the older patients

  • 1Department of Pharmacy, West China Hospital, Sichuan University, Chengdu, Sichuan, China
  • 2West China School of Medicine, Sichuan University, Chengdu, Sichuan, China
  • 3Key Laboratory of Drug-Targeting and Drug Delivery System of the Education Ministry, Sichuan Engineering Laboratory for Plant-Sourced Drug and Sichuan Research Center for Drug Precision Industrial Technology, West China School of Pharmacy, Sichuan University, Chengdu, Sichuan, China

Introduction: Drug-induced liver injury (DILI) is a significant adverse drug reaction, ranging from mild liver enzyme elevations to severe outcomes such as liver failure, transplantation, or death. This condition is especially concerning in older adults, who may exhibit increased susceptibility to adverse medication effects. This study aimed to develop and compare eight machine learning (ML) models using routine clinical, pharmacological, and laboratory data to predict DILI in older hospitalized patients.

Methods: We conducted a retrospective analysis of older patients hospitalized in 2022 who exhibited abnormal liver function tests. A total of 421 clinical, pharmacological, and laboratory variables were utilized for model development, with missing data addressed through multiple imputation techniques. The performance of 8 ML algorithms—XGBoost, LightGBM, Random Forest, AdaBoost, CatBoost, Gradient Boosting Decision Trees, Artificial Neural Network, and TabNet—was assessed. The dataset was randomly partitioned into a training set (80%, n = 2,880) and an independent testing set (20%, n = 720). Model performance was evaluated using the area under the receiver operating characteristic curve (AUC).

Results: Out of the 3,600 older patients with abnormal liver function, 654 patients experienced DILI. The best-performing model, LightGBM combined with Random Forest imputation, achieved an AUC of 0.9829. SHapley Additive exPlanations (SHAP) analysis identified critical predictors for DILI, including the timing of DILI relative to surgery, undergoing surgery, and maximum rate of change (slope) in liver enzymes, albumin, lipoprotein cholesterol, total bilirubin, proBNP, and total bile acids. Additional significant factors included administration of liver-protective medications upon admission; use of diuretics, antibiotics, and narcotic analgesics; and pre-existing liver or gallbladder diseases or malignancies.

Discussion: The predictive model developed demonstrated excellent performance in identifying DILI in older adults. Leveraging machine learning techniques, this model holds significant potential for clinical implementation to effectively warn clinicians of DILI risk among older hospitalized patients.

Introduction

Drug-induced liver injury (DILI) is a significant adverse event that can range from mild liver enzyme elevations to severe outcomes such as liver failure, the need for transplantation, or even death (Björnsson and Björnsson, 2022). DILI encompasses damage to the liver or biliary system resulting from exposure to hepatotoxic drugs (Björnsson and Björnsson, 2022). Most patients with DILI are asymptomatic, with jaundice being the most common clinical sign (Katarey and Verma, 2016). In cases of hepatocellular injury, laboratory tests reveal elevated levels of aminotransferases, such as alanine aminotransferase (ALT) and/or aspartate aminotransferase (AST), while cholestatic injury is characterized by elevations in gamma-glutamyl transferase (GGT), alkaline phosphatase (ALP), and/or bilirubin (Katarey and Verma, 2016; Kuna et al., 2018). The mechanisms of hepatotoxicity can be classified as either dose-dependent or idiosyncratic (Katarey and Verma, 2016). A substantial portion of the disease burden arises from dose-dependent toxicity, which correlates with the amount of drug exposure and is consistently reproducible, rendering liver injury in such instances predictable (Björnsson and Björnsson, 2022). Conversely, idiosyncratic liver injury is unpredictable, not directly dose-dependent, and not easily reproducible in animal models. DILI is a prevalent adverse event in clinical practice and has emerged as the leading cause of acute liver failure in the Western world (Reuben et al., 2010). Additionally, it is a primary reason for the withdrawal of medications from the market and for the issuance of safety warnings and modifications regarding drug usage (Katarey and Verma, 2016).

The aging population is characterized by the coexistence of multiple comorbid conditions, frequently leading to polypharmacy. Combined with age-related declines in physiological functions that influence drug pharmacokinetics—such as receptor sensitivity, cardiac reserve, renal function, immunological response, and homeostatic mechanisms—this significantly increases the risk of adverse drug reactions (ADRs) (Lucena et al., 2020). Consequently, older adults are considered a highly susceptible group in terms of medication safety. Prior research has identified older age as a notable risk factor for DILI (Aithal and Day, 1999; Andrade et al., 2006). For example, a Spanish study involving 882 DILI patients reported that 33% were aged 65 years or older (Weersink et al., 2021). Other contributing predictors included female sex, dyslipidemia, and diabetes (Aithal and Day, 1999; Andrade et al., 2006; Weersink et al., 2021).

As a significant ADR, DILI is actively monitored in clinical settings. Traditionally, voluntary reporting systems have been the primary means of tracking ADRs; however, they capture only 10%–20% of actual incidents, leaving the true incidence largely unknown (Griffin and Resar, 2009). Furthermore, the probability of adverse effects associated with specific drugs remains elusive, posing a significant challenge to patient safety. While active surveillance could address these limitations, it demands substantial manpower and resources, making broad implementation challenging (Hu et al., 2020). Therefore, there is an urgent need to develop innovative methods for the early detection and warning of ADRs to enhance patient safety and improve drug monitoring effectiveness.

Machine learning (ML) broadly refers to fitting models to data or identifying informative patterns within datasets (Greener et al., 2022). Essentially, ML aims to approximate human pattern recognition capabilities through objective computational methods. ML is particularly valuable when dealing with datasets that are too large or complex for human analysis, containing numerous data points or features. Furthermore, it is indispensable in automating data analysis workflows, enabling reproducible and time-efficient processes (Deo, 2015; Greener et al., 2022). Medical data often exhibit these characteristics, making ML a potent tool for disease diagnosis, detection, and prediction. Numerous studies have explored the application of ML to predict ADRs, yielding promising outcomes (Hu et al., 2024). Detecting ADRs early is equally crucial, as timely identification enables interventions that bolster patient safety and mitigate potential harm. By combining effective detection methods with predictive modeling, healthcare providers can better manage the risks associated with pharmacotherapy.

However, current DILI surveillance systems primarily rely on crude categorization of suspected cases based on abnormal liver function tests, lacking the granularity needed for definitive DILI identification. To address this limitation, we propose enhancing current systems by integrating ML algorithms trained on a cohort of patients who developed in-hospital liver dysfunction. By leveraging multimodal clinical data, our model aims to achieve precise DILI differentiation, thereby improving diagnostic accuracy and clinical decision-making. Thus, this study aimed to develop an ML algorithm for the detection and early warning of DILI, providing technical support to reduce DILI incidence. The algorithm was designed to promptly identify DILI cases, facilitating swift clinical interventions to mitigate the impact on patient health.

Materials and methods

Research participants

This retrospective study analyzed demographic, pharmacological, and clinical laboratory data from older patients with liver function abnormalities who were admitted to West China Hospital of Sichuan University between January 1 and December 31, 2022. Ethics approval was obtained from the Ethics Committee of West China Hospital, Sichuan University, China (Approval Number: 2022-1124). Due to the retrospective nature of the study, the requirement for informed consent was waived, and all data were fully anonymized to ensure patient confidentiality. As this study did not involve a prospective clinical trial, a clinical trial registration number was not applicable.

Eligible patients were identified according to the official Chinese definition, which classifies older adults as individuals aged 60 years and above with a minimum hospital stay of 24 h (Hu et al., 2020). Considering that clinical interventions often precede the diagnosis of DILI (Chalasani et al., 2021), patients with liver function abnormalities were identified based on liver function tests showing ALT, AST, ALP, or TBil levels exceeding 1.5 times the upper limit of normal (ULN) (Alexandre et al., 2000). The hospital’s standard ULN values for these tests were: ALT, 40 IU/L for women and 50 IU/L for men; AST, 35 IU/L for women and 40 IU/L for men; ALP, 135 IU/L for women and 160 IU/L for men; and TBil, 20.5 μmol/L for both sexes.

Eligible older patients were extracted and sorted according to their admission dates. A stratified sampling method was applied, with 150 patients randomly selected from the eligible pool every 2 weeks, ultimately yielding a total of 3,600 cases for analysis.

Data collection and definitions

Based on previous research, the risk factors for DILI include drug exposure, individual characteristics, and genetic predispositions (Li et al., 2022). Considering these findings and the data available for collection, information was categorized into six distinct groups: demographic information, surgical data, diagnostic classification, admission status, drug details, and laboratory parameters. Demographic information, drug details, and laboratory parameters upon admission were extracted directly from the electronic medical record system.

Demographic data encompassed factors such as age, sex, marital status, allergy history, surgical history, ethnic background, smoking history, and alcohol consumption history. Given the extensive range of medications, drug information was categorized based on pharmacological effects (Wen et al., 2021). For patients without DILI, all medications administered during hospitalization were recorded. For patients with DILI, only medications administered prior to the onset of DILI were considered.

Laboratory parameters were classified into two types. The first type included stable indicators, such as viral hepatitis markers, which remain relatively constant during hospitalization and assist in identifying underlying causes of abnormal liver function. The second type comprised dynamic indicators, including liver enzymes, blood lipid levels, and cardiac function markers, which were measured multiple times during hospitalization. For these dynamic indicators, the maximum slope (i.e., the greatest rate of change) during the hospital stay was calculated and used as a feature for model development.

Surgical data, admission status, and diagnostic classification were obtained through manual review of the electronic medical records. Surgical data included whether surgery was performed, the number of surgeries, the organ(s) involved, the type of surgery, and the relationship between the timing of surgery and the onset of DILI. Admission status encompassed factors such as the method of admission, the admitting department, the nursing care level upon admission, and the number of hospitalizations in the previous year.

The diagnosis of DILI required careful manual adjudication. Hepatotoxicity was defined as elevations of ALT, AST, ALP, or TBil exceeding 1.5 times ULN, in conjunction with outcomes such as liver failure, fibrosis, cirrhosis, or death (Alexandre et al., 2000). Evaluation principles for identifying ADRs included: (1) consideration of the temporal relationship, (2) assessment of the dose-response relationship, (3) emphasis on reproducibility, (4) exclusion of alternative etiologies, and (5) recognition of known ADRs (Chapal et al., 2004; National Medical Products Administration, 2011). In this study, all principles except reproducibility were considered necessary criteria for determining the occurrence of DILI. The drug(s) most strongly implicated in causing DILI were documented.

Data preprocessing

For demographic information, surgical data, diagnostic classification, admission status, and drug details, missing values were handled using mean imputation and random forest (RF) imputation for variables with less than 15% missingness. For the first category of laboratory parameters—those typically assessed in patients suspected of specific conditions—it was assumed that patients without corresponding test results had values within the normal range.

In contrast, for the second category of laboratory parameters, involving dynamic measures such as liver enzymes and cardiac markers, any variable with more than 30% missing data was excluded from the analysis. After preprocessing, patients were randomly stratified into a training set (80%) for model development and a testing set (20%) for model evaluation.

To further optimize model performance and address class imbalance, resampling techniques such as Random Oversampling (ROS) and the Synthetic Minority Over-sampling Technique (SMOTE) were applied.

Construction and evaluation of multiple models

Following data preprocessing and variable selection, we developed seven machine learning models and one deep learning model: XGBoost, LightGBM, Random Forest (RF), AdaBoost, CatBoost, Gradient Boosting Decision Trees (GBDT), Artificial Neural Network (ANN), and TabNet. Hyperparameter tuning was performed using grid search, and each model was trained with 5-fold cross-validation, utilizing 20% of the training set as an internal validation set. The primary metric for evaluating and comparing model performance was the area under the receiver operating characteristic curve (AUC), which served as the principal indicator of the models’ classification capabilities.

In addition to AUC, several supplementary metrics were computed to provide a comprehensive evaluation of model performance, including accuracy, precision, sensitivity, specificity, recall, Brier score, F1 score, and average precision derived from the precision-recall curve (PRC). Calibration curves and clinical decision curve analysis (DCA) were also employed to further assess the clinical utility and calibration of the models.

To interpret the outputs of the best-performing model, SHapley Additive exPlanations (SHAP) analysis was conducted, identifying the top 50 contributing variables. In the SHAP beeswarm plot, blue points represent negative impacts (lower feature values), whereas red points represent positive impacts (higher feature values), illustrating how each feature influences the model’s predictions. SHAP waterfall plots were also used to visualize the individual contributions of variables to model outputs. Additionally, feature importance scores were calculated and presented in a dedicated figure ranking the most influential risk factors.

Statistical analysis

Categorical variables are summarized using frequency counts and percentages, while continuous variables are presented as medians with interquartile ranges (IQRs). Comparisons between the no-DILI and DILI groups, as well as between the training and testing sets, were conducted using the nonparametric Mann-Whitney U test for continuous variables and the chi-squared (χ2) test for categorical variables. Statistical significance was defined as a p-value of less than 0.05. All statistical analyses were performed using SPSS version 27.0 software (IBM Corporation, Armonk, NY, United States).

Results

Study population

A total of 11,156 older patients met the inclusion criteria, and 3,600 patients were selected for analysis following a stratified sampling method (Figure 1). Within this cohort of patients with liver function impairment, the median age was 69.00 years (IQR: 65.00–75.00), with 2,105 (58.47%) being male. Overall, 654 patients (18.17%) were diagnosed with DILI. The majority of patients were of Han nationality; 937 (26.03%) had a history of smoking, and 765 (21.25%) had a history of alcohol consumption.

Figure 1
www.frontiersin.org

Figure 1. Overall flowchart of the participant selection and model development process ALT, Alanine aminotransferase; AST, Aspartate aminotransferase; ALP, Alkaline phosphatase; TBil, Total bilirubin.

Some patients were admitted primarily for liver, biliary, or pancreatic diseases, and their liver function impairment was not drug related. Consequently, there were notable differences in admission diagnoses between the DILI and non-DILI groups. Additionally, several laboratory test results were analyzed, revealing no statistically significant differences between the groups for myoglobin (Mb), creatine kinase-MB (CK-MB), albumin (ALB), high-density lipoprotein cholesterol (HDL-C), low-density lipoprotein cholesterol (LDL-C), triglycerides (TG), and cholesterol (CHO) (all P > 0.05). Detailed demographic and clinical characteristics of the two groups are presented in Table 1.

Table 1
www.frontiersin.org

Table 1. Characteristics of included patients.

The patients were randomly stratified into a training set (80%) and a testing set (20%). A comprehensive comparison of demographic and clinical laboratory characteristics between the training and testing sets is provided in Supplementary Table S1. No statistically significant differences were observed in most demographic and clinical characteristics between the two groups (all P > 0.05), indicating that the random stratification achieved a well-balanced distribution. Minor observed differences were considered within an acceptable tolerance threshold.

DILI-related drugs

Among the 654 patients who developed DILI, a total of 1,036 drugs from 38 different classes were identified as potential causative agents. Notably, some cases of DILI involved multiple drugs, complicating the attribution to a single causative agent. Antibiotics were the most frequently implicated class, associated with DILI in 380 patients. Following antibiotics, anticoagulants (136 patients), antineoplastic agents (39 patients), and antipyretic, analgesic, and anti-inflammatory drugs (65 patients) were also commonly involved.

Other frequently implicated drug classes included medications for peptic ulcers and gastroesophageal reflux disease, antifungal agents, lipid-regulating and anti-atherosclerotic agents, gastrointestinal motility drugs, antiemetics, and antiepileptic agents. Among hospitalized patients with liver function impairment, the highest DILI incidence rates were observed for antidepressants (15.38%), antituberculosis drugs (14.63%), antimicrobial agents (14.55%), antifungal agents (12.33%), and antiepileptic agents (10.04%). Detailed information on DILI-related drugs is presented in Supplementary Table S2.

Construction and comparison of multiple ML models

A total of 421 variables were utilized for model development (Supplementary Table S3). Several variables required imputation for missing values, including height, weight, the number of cigarettes smoked by patients who smoke, the duration of smoking among smokers, average alcohol consumption among drinkers, the duration of drinking among drinkers, and glycated hemoglobin (HbA1c) levels. Supplementary Table S4 provides a comparison of data before and after imputation.

Seven machine learning (ML) models and one deep learning model were employed: XGBoost, LightGBM, RF, AdaBoost, CatBoost, GBDT, ANN, and TabNet. To ensure accuracy and model stability, 5-fold cross-validation (CV) and grid search were used for hyperparameter tuning. The optimal hyperparameters for each model are detailed in Supplementary Table S5.

The AUC was the primary metric used to evaluate model performance. After imputing missing values using the RF method, the LightGBM model demonstrated the best performance, achieving an AUC of 0.9829 in the testing set. Attempts to further improve model performance through resampling techniques were unsuccessful, with resampling yielding suboptimal results. Additional evaluation metrics, including accuracy, sensitivity, specificity, precision, Brier score, and F1 score for the testing set, are summarized in Table 2. The detailed performance results of the ML models are presented in Supplementary Figures S1–S6.

Table 2
www.frontiersin.org

Table 2. Training and testing set results of the machine-learning models.

Development and assessment of the best-performing model

The LightGBM model utilizing RF imputation emerged as the best-performing model for early warning of DILI in older patients. The model underwent 5-fold CV on the training set using the same hyperparameters and input variables and was subsequently evaluated on an independent testing set. Receiver operating characteristic (ROC) curve analysis demonstrated outstanding performance, with a mean AUC of 1.0000 (1.0000, 1.0000) for the training set and 0.9829 (0.9737, 0.9904) for the testing set. The results of the 5-fold CV further validated the robustness of the model.

The LightGBM model achieved a mean accuracy of 0.9451 ± 0.0037, indicating a high degree of consistency across the cross-validation folds. Detailed cross-validation accuracy metrics are provided in Supplementary Table S6. The AUC values and mean accuracy were notably consistent between the training and testing sets, demonstrating the model’s robustness and generalizability.

DCA showed that the LightGBM model provided a superior mean net benefit across most threshold probability ranges (Supplementary Figure S2D). With a Brier score of 0.0381 and calibration plots closely aligning with the observed outcomes, the model’s reliability and calibration were further affirmed.

SHAP and importance score of variables

To provide an intuitive interpretation of the LightGBM model, we leveraged the SHAP algorithm and variable importance scores to gain insights into the contributions of different variables toward DILI warning. The results of the SHAP value analysis and the importance score ranking were consistent, identifying 200 variables as significant contributors to DILI warning (Supplementary Table S7).

To visualize these findings, a SHAP beeswarm plot (Figure 2) was generated, illustrating the directional impacts of the top 50 most influential variables in the testing set. Additionally, a SHAP bar plot (Figure 3A) ranked these top 50 variables based on their importance. Key contributing factors included the timing of DILI relative to surgery, whether surgery was performed, and the maximum slopes of ALT, AST, ALP, GGT, ALB, LDL-C, HDL-C, TBil, pro-brain natriuretic peptide (Pro-BNP), total bile acids (TBA), and CHO. Additional significant variables included HBeAg semi-quantitative levels, the administration of liver-protecting medications upon admission, use of diuretics, antibiotics, narcotic analgesics, and the presence of liver or gallbladder diseases or cancers.

Figure 2
www.frontiersin.org

Figure 2. The SHAP beeswarm plot of the top 50 most important variables in the LightGBM model with RF imputation.

Figure 3
www.frontiersin.org

Figure 3. The mean SHAP values (A) and variable importance ranking (B) in the LightGBM model using RF imputation.

The variable importance scores, presented in Figure 3B, corroborated the rankings observed in the SHAP bar plot, further validating the robustness of these key predictors.

To explore feature contributions at the individual patient level, we analyzed two randomly selected cases from the testing set using SHAP waterfall plots (Figure 4). Both scenarios—with and without resampling—were considered. In the case predicting a negative outcome, the primary influencing factors included surgery (−2.9%), the timing of DILI relative to surgery (−2.12%), and liver cancer or metastatic liver cancer (2%), resulting in a forecast value (f(x)) of −14.982 (< E [f(x)]). Conversely, for a case predicting a positive outcome, the major contributors were the timing of DILI relative to surgery (19.11%), the maximum slope of ALT (1.11%), and surgery (−1.04%), yielding a forecast value (f(x)) of 10.239 (> E [f(x)]). As variable names could not be annotated directly in Figures 24, the specific names of the variables should be referenced in Supplementary Table S3.

Figure 4
www.frontiersin.org

Figure 4. The SHAP waterfall plots for 2 patients: (A) Without DILI and (B) With DILI Using the LightGBM Model with RF Imputation. The E [f(x)] represents the average warning value of the model without any feature input. The arrows indicate the contributions of each feature, pointing towards the direction of the warning result, with their length representing its importance. The f(x) denotes the actual forecast value of the model for specific individuals.

Discussion

DILI represents a significant ADR among older patients, where delayed detection and inadequate management can markedly increase the risk of acute liver failure and fatal complications (Reuben et al., 2010). Initial manifestations of DILI often involve abnormal elevations in liver enzymes or bile acids. Early identification of risk factors in this vulnerable population is crucial for enabling timely interventions, thereby improving patient outcomes and quality of life.

Traditionally, scholars have relied primarily on monitoring abnormalities in liver enzyme or bilirubin levels to detect DILI (Kong et al., 2021). However, such biomarkers can also be influenced by other diseases or surgical procedures, reducing the specificity and efficiency of detection systems based solely on these indicators (Kong et al., 2021). Although prior studies have applied ML techniques to detect ADRs, including cardiovascular events caused by analgesics or concurrent adverse reactions (Liu et al., 2018; Bagattini et al., 2019), there remains a notable gap in literature regarding the development of early warning models specifically for DILI.

In the present study, we successfully developed and validated multiple ML models to warn of DILI using routine clinical, pharmacological, and laboratory data. Among the models, LightGBM demonstrated exceptional performance, achieving an AUC of 0.9829 in the testing set. The minimal difference between training and testing AUCs indicated the model’s strong stability and generalizability. Although resampling techniques such as ROS and SMOTE were applied to address class imbalance, they did not yield significant performance improvements. These findings provide compelling evidence for the further development of tailored DILI warning systems, which could be expanded to ADR warnings more broadly in older populations. An early warning system based on our findings has the potential to enhance physician decision-making, improve ADR detection and intervention rates, and substantially strengthen medication safety, particularly in both tertiary and community healthcare settings.

Using SHAP values and importance score analyses, we further identified key factors contributing to DILI warning. Surgery emerged as a critical risk factor. Surgical-related features—including the surgical procedure itself, the timing of DILI onset relative to surgery, and the type of surgery—were highlighted by negative mean SHAP values, suggesting that postoperative liver enzyme or bilirubin abnormalities should not immediately be attributed to DILI without considering surgical impacts. This was particularly evident following surgeries involving the liver, gallbladder, pancreas, or other digestive organs. Previous studies have demonstrated that surgeries involving these systems can lead to elevated liver enzymes and bilirubin levels due to trauma, hemolysis, or impaired gastrointestinal function (Guo et al., 2016; Sano et al., 2021; He et al., 2023; Soneda et al., 2024). Similarly, brain surgeries, cardiac surgeries, and musculoskeletal surgeries have been associated with postoperative enzyme elevations, while surgeries involving the urinary system or peripheral vasculature appeared less impactful (Kim et al., 2019; Oh et al., 2020; Lott and Landesman, 1984).

Peak slopes of laboratory indicators, particularly ALT, AST, ALP, GGT, ALB, LDL-C, HDL-C, TBil, Pro-BNP, TBA, and CHO, were identified as strong warning factors for DILI. Since all patients exhibited abnormal liver function during hospitalization, neither peak values nor average levels alone were sufficient predictors. Instead, patients who developed sudden dynamic changes in these indicators during hospitalization, particularly those without pre-existing hepatobiliary disease—were more likely to experience DILI.

Interestingly, myocardial markers such as Pro-BNP, Mb, and troponin T were associated with negative mean SHAP values, indicating a potential protective effect against DILI warnings. This finding may reflect the contribution of cardiac injury to elevated AST levels, a marker shared between cardiac muscle, skeletal muscle, and the liver (Panteghini, 1990). Given that a substantial proportion of the cohort had cardiovascular or renal diseases and underwent related surgeries, elevated myocardial enzymes may confound liver enzyme interpretation, necessitating cautious evaluation of AST elevations in the clinical context.

Drug exposures played a major role in the warning model, with 18 out of the top 50 factors being drug related. Notably, hepatoprotective drugs appeared as protective factors, characterized by negative SHAP values. This contrasts with prior predictive models that did not emphasize hepatoprotective therapies (Hu et al., 2020; Hu et al., 2023; Sano et al., 2021; Han et al., 2022; Asai et al., 2023). In our study, hepatoprotective agents were typically administered prophylactically upon admission for patients with pre-existing liver abnormalities, but not immediately for DILI patients until after injury onset. Therefore, the use of hepatoprotective medications before the occurrence of DILI was considered a protective factor in our model.

Other perioperative drugs, such as opioid analgesics and electrolyte modulators, were also classified as risk indicators, likely reflecting surgery complexity and perioperative management rather than direct hepatotoxicity (Xia et al., 2024).

Antibiotics emerged prominently among the DILI-associated drugs. Given their frequent use among older adults for treating infections and preventing postoperative complications (Millett et al., 2013; Hayward et al., 2019; Tuddenham et al., 2022), antibiotic exposure was a substantial contributor to DILI risk. Our findings are consistent with prior reports indicating that up to 64% of DILI cases are attributable to antibiotics (Park et al., 2021). In our study, 72.5% of patients received antibiotics, with a DILI incidence of 14.55%. β-Lactamase inhibitors, carbapenems, and cephalosporins were among the most frequently implicated agents, highlighting the need for judicious antibiotic use in this vulnerable population.

Despite its strengths, this study has several limitations. First, the model was developed using retrospective data and lacked external validation; future prospective cohort studies are warranted to confirm its predictive accuracy and stability. Second, reliance on routine clinical data may limit model robustness. Third, the perfect AUC (1.000) observed in the training set raises concerns about potential overfitting, possibly due to the retrospective design or suboptimal feature selection. Fourth, missing data on hepatitis markers—important for early DILI detection—necessitated imputation strategies, which may have introduced bias. Finally, while the model incorporated dynamic laboratory indicators, it did not account for temporal associations between laboratory changes and drug administration patterns.

Future research should focus on prioritizing clinically relevant features, conducting external validation using independent datasets, and refining the model to better identify high-risk drugs contributing to liver injury. Addressing these gaps will be critical to ensuring the broader applicability and clinical utility of early warning systems for DILI.

Conclusion

This study successfully developed and validated ML models using routine clinical data to provide early warnings for DILI in older patients. Among the models, the LightGBM model demonstrated superior performance, and its interpretability was enhanced through SHAP analysis. This model can be integrated into hospital information systems to enable automated alerts and tracking of DILI cases, supporting earlier clinical interventions. Our methodological framework not only addresses DILI but also offers a foundation adaptable to detecting other ADRs, such as renal and hematological toxicities, by rapidly identifying drug-related safety issues and aiding clinical decision-making. The proposed ADR early warning system, based on this approach, holds promise for improving ADR detection and intervention rates, thereby enhancing medication safety for older patients across various healthcare settings. Future research should focus on validating these models in larger, multicenter cohorts and incorporating additional data sources, including temporal relationships between drug administration and laboratory results, imaging findings, and detailed clinicopathological information, to further enhance predictive accuracy. Ultimately, integrating such warning models into routine clinical practice could enable real-time decision-making, support personalized patient management, and contribute to improved patient outcomes.

Data availability statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Ethics statement

The studies involving humans were approved by West China Hospital of Sichuan University. The studies were conducted in accordance with the local legislation and institutional requirements. The ethics committee/institutional review board waived the requirement of written informed consent for participation from the participants or the participants’ legal guardians/next of kin because as this was a retrospective study that did not involve any intervention in patient care, informed consent was waived.

Author contributions

QH: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review and editing. XL: Writing – original draft. DZ: Writing – original draft. ZH: Methodology, Writing – original draft. TX: Conceptualization, Writing – review and editing.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. This study was supported by the Sichuan Science and Technology Support Program (Grant Number: 2023NSFSC1696) and the Science and Technology Project of the Chengdu Health Commission (Grant Number: 2022020). Additional support was provided by the National Key Clinical Specialties Construction Program.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The authors declare that no Generative AI was used in the creation of this manuscript.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fphar.2025.1603089/full#supplementary-material

References

Aithal, P. G., and Day, C. P. (1999). The natural history of histologically proved drug induced liver disease. Gut 44, 731–735. doi:10.1136/gut.44.5.731

PubMed Abstract | CrossRef Full Text | Google Scholar

Alexandre, J., Bleuzen, P., Bonneterre, J., Sutherland, W., Misset, J. L., Guastalla, J., et al. (2000). Factors predicting for efficacy and safety of docetaxel in a compassionate-use cohort of 825 heavily pretreated advanced breast cancer patients. J. Clin. Oncol. 18, 562–573. doi:10.1200/JCO.2000.18.3.562

PubMed Abstract | CrossRef Full Text | Google Scholar

Andrade, R. J., Lucena, M. I., Kaplowitz, N., García-Muņoz, B., Borraz, Y., Pachkoria, K., et al. (2006). Outcome of acute idiosyncratic drug-induced liver injury: Long-term follow-up in a hepatotoxicity registry. Hepatology 44, 1581–1588. doi:10.1002/hep.21424

PubMed Abstract | CrossRef Full Text | Google Scholar

Asai, Y., Ooi, H., and Sato, Y. (2023). Risk evaluation of carbapenem-induced liver injury based on machine learning analysis. J. Infect. Chemother. 29, 660–666. doi:10.1016/j.jiac.2023.03.007

PubMed Abstract | CrossRef Full Text | Google Scholar

Bagattini, F., Karlsson, I., Rebane, J., and Papapetrou, P. (2019). A classification framework for exploiting sparse multi-variate temporal features with application to adverse drug event detection in medical records. BMC Med. Inf. Decis. Mak. 19, 7. doi:10.1186/s12911-018-0717-4

PubMed Abstract | CrossRef Full Text | Google Scholar

Björnsson, H. K., and Björnsson, E. S. (2022). Drug-induced liver injury: pathogenesis, epidemiology, clinical features, and practical management. Eur. J. Intern Med. 97, 26–31. doi:10.1016/j.ejim.2021.10.035

PubMed Abstract | CrossRef Full Text | Google Scholar

Chalasani, N. P., Maddur, H., Russo, M. W., Wong, R. J., and Reddy, K. R.Practice Parameters Committee of the American College of Gastroenterology (2021). ACG clinical guideline: diagnosis and management of idiosyncratic drug-induced liver injury. Am. J. Gastroenterol. 116, 878–898. doi:10.14309/ajg.0000000000001259

PubMed Abstract | CrossRef Full Text | Google Scholar

Chapal, N., Molina, L., Molina, F., Laplanche, M., Pau, B., and Petit, P. (2004). Pharmacoproteomic approach to the study of drug mode of action, toxicity, and resistance: applications in diabetes and cancer. Fundam. Clin. Pharmacol. 18, 413–422. doi:10.1111/j.1472-8206.2004.00258.x

PubMed Abstract | CrossRef Full Text | Google Scholar

Deo, R. C. (2015). Machine learning in medicine. Circulation 132, 1920–1930. doi:10.1161/CIRCULATIONAHA.115.001593

PubMed Abstract | CrossRef Full Text | Google Scholar

Greener, J. G., Kandathil, S. M., Moffat, L., and Jones, D. T. (2022). A guide to machine learning for biologists. Nat. Rev. Mol. Cell Biol. 23, 40–55. doi:10.1038/s41580-021-00407-0

PubMed Abstract | CrossRef Full Text | Google Scholar

Griffin, F., and Resar, R. (2009). “IHI global trigger tool for measuring adverse events,” in IHI innovation series white paper. 2nd edn. (Cambridge, MA: Institute for Healthcare Improvement).

Google Scholar

Guo, T., Xiao, Y., Liu, Z., and Liu, Q. (2016). The impact of intraoperative vascular occlusion during liver surgery on postoperative peak ALT levels: a systematic review and meta-analysis. Int. J. Surg. 27, 99–104. doi:10.1016/j.ijsu.2016.01.088

PubMed Abstract | CrossRef Full Text | Google Scholar

Han, J. M., Yee, J., Cho, S., Kim, M. K., Moon, J. Y., Jung, D., et al. (2022). A risk scoring system utilizing machine learning methods for hepatotoxicity prediction one year after the initiation of tyrosine kinase inhibitors. Front. Oncol. 12, 790343. doi:10.3389/fonc.2022.790343

PubMed Abstract | CrossRef Full Text | Google Scholar

Hayward, G. N., Moore, A., Mckelvie, S., Lasserson, D. S., and Croxson, C. (2019). Antibiotic prescribing for the older adult: beliefs and practices in primary care. J. Antimicrob. Chemother. 74, 791–797. doi:10.1093/jac/dky504

PubMed Abstract | CrossRef Full Text | Google Scholar

He, L., Hu, J., Han, Y., and Xiong, W. (2023). Predictive modeling of postoperative gastrointestinal dysfunction: the role of serum bilirubin, sodium levels, and surgical duration in gynecological cancer care. BMC Womens Health 23, 598. doi:10.1186/s12905-023-02779-1

PubMed Abstract | CrossRef Full Text | Google Scholar

Hu, Q., Li, J., Li, X., Zou, D., Xu, T., and He, Z. (2024). Machine learning to predict adverse drug events based on electronic health records: a systematic review and meta-analysis. J. Int. Med. Res. 52, 3000605241302304. doi:10.1177/03000605241302304

PubMed Abstract | CrossRef Full Text | Google Scholar

Hu, Q., Qin, Z., Zhan, M., Chen, Z., Wu, B., and Xu, T. (2020). Validating the Chinese geriatric trigger tool and analyzing adverse drug event associated risk factors in elderly Chinese patients: a retrospective review. PLoS One 15, e0232095. doi:10.1371/journal.pone.0232095

PubMed Abstract | CrossRef Full Text | Google Scholar

Hu, Q., Wang, H., and Xu, T. (2023). Predicting hepatotoxicity associated with low-dose methotrexate using machine learning. J. Clin. Med. 12, 1599. doi:10.3390/jcm12041599

PubMed Abstract | CrossRef Full Text | Google Scholar

Katarey, D., and Verma, S. (2016). Drug-induced liver injury. Clin. Med. (Lond) 16, s104–s109. doi:10.7861/clinmedicine.16-6-s104

PubMed Abstract | CrossRef Full Text | Google Scholar

Kim, J.-H., Yoon, H.-K., Lee, H.-C., Park, H.-P., Park, C.-K., Dho, Y.-S., et al. (2019). Preoperative 5-aminolevulinic acid administration for brain tumor surgery is associated with an increase in postoperative liver enzymes: a retrospective cohort study. Acta Neurochir. (Wien) 161, 2289–2298. doi:10.1007/s00701-019-04053-6

PubMed Abstract | CrossRef Full Text | Google Scholar

Kong, X., Guo, D., Liu, S., Zhu, Y., and Yu, C. (2021). Incidence, characteristics and risk factors for drug-induced liver injury in hospitalized patients: a matched case-control study. Br. J. Clin. Pharmacol. 87, 4304–4312. doi:10.1111/bcp.14847

PubMed Abstract | CrossRef Full Text | Google Scholar

Kuna, L., Bozic, I., Kizivat, T., Bojanic, K., Mrso, M., Kralj, E., et al. (2018). Models of drug induced liver injury (DILI) - current issues and future perspectives. Curr. Drug Metab. 19, 830–838. doi:10.2174/1389200219666180523095355

PubMed Abstract | CrossRef Full Text | Google Scholar

Li, X., Tang, J., and Mao, Y. (2022). Incidence and risk factors of drug-induced liver injury. Liver Int. 42, 1999–2014. doi:10.1111/liv.15262

PubMed Abstract | CrossRef Full Text | Google Scholar

Liu, L., Yu, Y., Fei, Z., Li, M., Wu, F.-X., Li, H.-D., et al. (2018). An interpretable boosting model to predict side effects of analgesics for osteoarthritis. BMC Syst. Biol. 12, 105. doi:10.1186/s12918-018-0624-4

PubMed Abstract | CrossRef Full Text | Google Scholar

Lott, J. A., and Landesman, P. W. (1984). The enzymology of skeletal muscle disorders. Crit. Rev. Clin. Lab. Sci. 20, 153–190. doi:10.3109/10408368409165773

PubMed Abstract | CrossRef Full Text | Google Scholar

Lucena, M. I., Sanabria, J., García-Cortes, M., Stephens, C., and Andrade, R. J. (2020). Drug-induced liver injury in older people. Lancet Gastroenterol. Hepatol. 5, 862–874. doi:10.1016/S2468-1253(20)30006-6

PubMed Abstract | CrossRef Full Text | Google Scholar

Millett, E. R. C., Quint, J. K., Smeeth, L., Daniel, R. M., and Thomas, S. L. (2013). Incidence of community-acquired lower respiratory tract infections and pneumonia among older adults in the United Kingdom: a population-based study. PLoS One 8, e75131. doi:10.1371/journal.pone.0075131

PubMed Abstract | CrossRef Full Text | Google Scholar

National Medical Products Administration (2011). Measures for the reporting and monitoring of adverse drug reactions. National Medical Products Administration Available online at: https://www.gov.cn/zhengce/2021-06/29/content_5723552.htm.

Google Scholar

Oh, H., Park, J.-B., Yoon, H.-K., Lee, H.-C., Park, C.-K., and Park, H.-P. (2020). Effects of preoperative 5-aminolevulinic acid administration on postoperative liver enzymes after brain tumor surgery in patients with elevated preoperative liver enzymes. J. Clin. Neurosci. 72, 304–309. doi:10.1016/j.jocn.2019.08.118

PubMed Abstract | CrossRef Full Text | Google Scholar

Panteghini, M. (1990). Aspartate aminotransferase isoenzymes. Clin. Biochem. 23, 311–319. doi:10.1016/0009-9120(90)80062-n

PubMed Abstract | CrossRef Full Text | Google Scholar

Park, J. H., Hong, S., Jun, D. W., Yoon, J. H., Lee, K. N., Lee, H. L., et al. (2021). Prevalence and clinical characteristics of antibiotics associated drug induced liver injury. Ann. Transl. Med. 9, 642. doi:10.21037/atm-20-5144

PubMed Abstract | CrossRef Full Text | Google Scholar

Reuben, A., Koch, D. G., and Lee, W. M.Acute Liver Failure Study Group (2010). Drug-induced acute liver failure: results of a U.S. multicenter, prospective study. Hepatology 52, 2065–2076. doi:10.1002/hep.23937

PubMed Abstract | CrossRef Full Text | Google Scholar

Sano, A., Saito, K., Kuriyama, K., Nakazawa, N., Ubukata, Y., Hara, K., et al. (2021). Risk factors for postoperative liver enzyme elevation after laparoscopic gastrectomy for gastric cancer. Vivo 35, 1227–1234. doi:10.21873/invivo.12373

PubMed Abstract | CrossRef Full Text | Google Scholar

Soneda, W., Booka, E., Haneda, R., Kawata, S., Murakami, T., Matsumoto, T., et al. (2024). A silicone disc for liver retraction in laparoscopic gastrectomy reduces the postoperative increase in the liver enzyme level. Surg. Today 54, 1227–1237. doi:10.1007/s00595-024-02834-w

PubMed Abstract | CrossRef Full Text | Google Scholar

Tuddenham, S. A., Gearhart, S. L., Wright, E. J., and Handa, V. L. (2022). Frailty and postoperative urinary tract infection. BMC Geriatr. 22, 828. doi:10.1186/s12877-022-03461-1

PubMed Abstract | CrossRef Full Text | Google Scholar

Weersink, R. A., Alvarez-Alvarez, I., Medina-Cáliz, I., Sanabria-Cabrera, J., Robles-Díaz, M., Ortega-Alonso, A., et al. (2021). “Clinical characteristics and outcome of drug-induced liver injury in the older patients: from the young-old to the oldest-old,” in Latest practical pharmacology handbook. Beijing: China Medical Science and Technology Press, 1147–1158. doi:10.1002/cpt.2108

CrossRef Full Text | Google Scholar

Wen, A. D., Wang, J. D., and Lu, J. (2021). Latest Practical Pharmacology Handbook. Beijing: China Medical Science and Technology Press.

Google Scholar

Xia, L.-C., Zhang, K., and Wang, C.-W. (2024). Effects of fluid therapy combined with a preoperative glucose load regimen on postoperative recovery in patients with rectal cancer. World J. Gastrointest. Surg. 16, 2662–2670. doi:10.4240/wjgs.v16.i8.2662

PubMed Abstract | CrossRef Full Text | Google Scholar

Keywords: drug-induced liver injury, older patients, warning model, machine learning, drug safety

Citation: Hu Q, Li X, Zou D, He Z and Xu T (2025) Development of a warning model for drug-induced liver injury in the older patients. Front. Pharmacol. 16:1603089. doi: 10.3389/fphar.2025.1603089

Received: 31 March 2025; Accepted: 09 May 2025;
Published: 20 May 2025.

Edited by:

Shusen Sun, Western New England University, United States

Reviewed by:

Karel Allegaert, KU Leuven, Belgium
Rong Zhang, Third Military Medical University, China

Copyright © 2025 Hu, Li, Zou, He and Xu. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Ting Xu, dGluZ3gyMDA5QDE2My5jb20=

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.