S1620 Reducing Diagnostic Delays in Inflammatory Bowel Disease Using Electronic Health Records and Longitudinal Deep Learning

Introduction: Diagnostic delays in inflammatory bowel disease (IBD) are common and associated with worse outcomes and increased healthcare costs. We evaluated whether machine learning models using EHR data could identify undiagnosed IBD patients earlier than standard care. Methods: We conducted a single-center retrospective study from 2012 to 2024. Using the GPT-4o model for data extraction and manual chart reviews, we identified 324 patients. These patients had IBD-related symptoms and were later diagnosed with IBD at our center. We sampled 4,000 controls who also had a documentation of IBD-related symptoms without a subsequent IBD diagnosis. Patients entered the risk cohort after their first encounter for an IBD symptom. Cases exited the cohort after the earliest occurrence of one of 4 events: a fecal calprotectin order, a colonoscopy procedure, a GI referral order, or an IBD diagnosis code. Data collected after the cohort exit date were excluded. This ensured that models would learn to make timely and clinically useful predictions of undiagnosed IBD. Structured EHR inputs were collected for each patient visit and transformed into 7,700 time-resolved variables representing clinical activity before the index date. LASSO regression was used to select 230 predictors for the models. Four models—logistic regression, CatBoost, Transformer, and Mamba—were trained using an 80:10:10 train/test/validation split. Each model generated a risk score at every visit. Patients were predicted as positive if their conditional probability of IBD exceeded 90%. Results: The Mamba model had the highest performance: Accuracy 95%, PPV 75%, False Positive Rate 0.5%, specificity 99%, and sensitivity 28%. Alerts preceded chart diagnosis by a median of 37 days (IQR 15–191). The most predictive features were age and patterns of accumulating diagnoses over time. Manual review of the model predictions identified one patient who was identified 3.8 years before her diagnosis date. She was referred to GI for hematochezia but was lost to follow-up for several years. Conclusion: A deep-learning model using EHR data identifies a clinically meaningful subset of yet-undiagnosed IBD patients months to years earlier than standard care. While sensitivity was modest, the model identified patients with a low false-positive rate. This supports its use as an early triage tool, particularly in high-volume settings where earlier GI evaluation may improve outcomes.

Publication Details

Journal
The American Journal of Gastroenterology
Published
2025-10-01
DOI
https://doi.org/10.14309/01.ajg.0001133940.58169.90
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

S1620 Reducing Diagnostic Delays in Inflammatory Bowel Disease Using Electronic Health Records and Longitudinal Deep Learning

The American Journal of Gastroenterology
Machine Learning in Healthcare
article

S1620 Reducing Diagnostic Delays in Inflammatory Bowel Disease Using Electronic Health Records and Longitudinal Deep Learning

article en

Abstract

Introduction: Diagnostic delays in inflammatory bowel disease (IBD) are common and associated with worse outcomes and increased healthcare costs. We evaluated whether machine learning models using EHR data could identify undiagnosed IBD patients earlier than standard care. Methods: We conducted a single-center retrospective study from 2012 to 2024. Using the GPT-4o model for data extraction and manual chart reviews, we identified 324 patients. These patients had IBD-related symptoms and were later diagnosed with IBD at our center. We sampled 4,000 controls who also had a documentation of IBD-related symptoms without a subsequent IBD diagnosis. Patients entered the risk cohort after their first encounter for an IBD symptom. Cases exited the cohort after the earliest occurrence of one of 4 events: a fecal calprotectin order, a colonoscopy procedure, a GI referral order, or an IBD diagnosis code. Data collected after the cohort exit date were excluded. This ensured that models would learn to make timely and clinically useful predictions of undiagnosed IBD. Structured EHR inputs were collected for each patient visit and transformed into 7,700 time-resolved variables representing clinical activity before the index date. LASSO regression was used to select 230 predictors for the models. Four models—logistic regression, CatBoost, Transformer, and Mamba—were trained using an 80:10:10 train/test/validation split. Each model generated a risk score at every visit. Patients were predicted as positive if their conditional probability of IBD exceeded 90%. Results: The Mamba model had the highest performance: Accuracy 95%, PPV 75%, False Positive Rate 0.5%, specificity 99%, and sensitivity 28%. Alerts preceded chart diagnosis by a median of 37 days (IQR 15–191). The most predictive features were age and patterns of accumulating diagnoses over time. Manual review of the model predictions identified one patient who was identified 3.8 years before her diagnosis date. She was referred to GI for hematochezia but was lost to follow-up for several years. Conclusion: A deep-learning model using EHR data identifies a clinically meaningful subset of yet-undiagnosed IBD patients months to years earlier than standard care. While sensitivity was modest, the model identified patients with a low false-positive rate. This supports its use as an early triage tool, particularly in high-volume settings where earlier GI evaluation may improve outcomes.

The American Journal of GastroenterologyVol. 120(10S2)
Openalex Percentile: Top 21%
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.