Endoscopy 2025; 57(S 02): S340
DOI: 10.1055/s-0045-1805842
Abstracts | ESGE Days 2025
ePosters

Deep Learning-based Prediction of Peptic Ulcer Diseases Caused by NSAIDs Using Longitudinal Electronic Health Records

J K Lee
1   Dongguk University Ilsan Hospital, Goyang-si, Republic of Korea
› Author Affiliations
 

Aims Nonsteroidal anti-inflammatory drugs (NSAIDs) are widely used for treating musculoskeletal disorders but are associated with peptic ulcers (PUs). Predicting PU risk in NSAID users is vital to minimize adverse effects. This study aims to develop and validate predictive models for NSAID-induced PUs using longitudinal electronic health record (EHR) data.

Methods We utilized EHR data of 737,826 patients who were prescribed NSAIDs for at least seven days to create a cohort. Laboratory tests, medication history, and demographic information were used to train various machine learning (ML) and deep learning (DL) models, including random forest, gradient boosting machine (GBM), recurrent neural network (RNN), long short-term memory (LSTM), gated recurrent unit (GRU), and Transformer. Endoscopy reports were employed to more accurately determine PU incidence. Model performance was evaluated using the area under the receiver operating characteristic curve (AUROC) and the area under the precision-recall curve (AUPRC).

Results The GRU model achieved the highest performance with an AUROC of 0.941 for internal validation and 0.964 for external validation. Significant predictors included hemoglobin levels, duration of medication, and the use of aspirin. Risk score analysis showed a sharp increase in risk two months before PU occurrence.

Conclusions We developed and validated robust predictive models for NSAID-induced PUs using longitudinal EHR data. These models can aid in clinical decision-making for NSAID management and PU prevention. Further studies are necessary to refine these models and extend their application to diverse datasets.



Publication History

Article published online:
27 March 2025

© 2025. European Society of Gastrointestinal Endoscopy. All rights reserved.

Georg Thieme Verlag KG
Oswald-Hesse-Straße 50, 70469 Stuttgart, Germany