ResearchClinical Gastroenterology and Hepatology · Mar 23, 2026
Natural Language Processing Algorithm Accurately Classifies Diverticulitis-Related Complications and Predicts Long-Term Outcomes
Ma W, Wu Y, Challa PK, Sikavi D, Downie JM, Nguyen LH, et al
Study type: Observational study: it can show a link, but not prove that one thing causes another.
Abstract
Background & aims
Diagnostic codes lack the precision to identify specific complications of diverticulitis, limiting their utility in large-scale, real-world data. We developed a natural language processing (NLP) algorithm to classify diverticulitis and associated features using computed tomography (CT) reports. Methods
Using data from Mass General Brigham Research Patient Data Registry (1979-2024), we identified patients with a diagnosis code for diverticular disease (International Classification of Diseases [ICD]-9: 562; ICD-10: K57) and a prior abdominopelvic CT report. We developed and validated our NLP algorithm to detect diverticulitis and associated features. We subsequently investigated the associations between NLP-defined severity at first diagnosis (ie, uncomplicated, mild, severe, or chronic complications) and risk of severe diverticulitis recurrence using a Cox proportional hazards regression model. We assessed the predictive value of NLP-detected features using random forest models. Results
The NLP algorithm achieved positive and negative predictive values of 82.8% to 99.9%, outperforming both ICD codes and a generalist large language model. Among 16,349 patients with NLP-detected diverticulitis, 3192 developed severe recurrence over 76,736 person-years. Compared with uncomplicated diverticulitis, the multivariable-adjusted hazard ratio (HR) for severe recurrence was 1.39 (95% confidence interval [CI], 1.14-1.69) for mild complications, 3.02 (95% CI, 2.80-3.27) for severe complications, and 5.41 (95% CI, 4.78-6.13) for chronic complications. NLP-detected features significantly improved the prediction of severe diverticulitis recurrence compared with codified variables. Conclusions
Our NLP algorithm accurately classifies diverticulitis features, facilitating the construction of large and high-quality electronic health record-based cohorts. Severity at initial diagnosis predicts risk of severe recurrence, supporting the use of artificial intelligence for risk stratification and long-term management.
Topics
Humans; Natural Language Processing; Diverticulitis; Male; Female; Algorithms; Tomography, X-Ray Computed; Aged; Middle Aged; Recurrence; Aged, 80 and over
DOI: 10.1016/j.cgh.2026.03.009 · PubMed: 41881290
Spotted a mistake? Suggest a correction
More in Gastroenterology & Hepatology
ResearchJHEP Rep · Nov 21, 2026 · Gastroenterology & Hepatology
Low public awareness of hepatocellular carcinoma risk factors
ResearchJHEP Rep · Nov 21, 2026 · Gastroenterology & Hepatology
Pre-emptive TIPS Reduces Further Decompensation Following Gastric Variceal Hemorrhage: A Real-World Multicenter Analysis
ResearchJHEP Rep · Nov 21, 2026 · Gastroenterology & Hepatology
Comparative risk of hepatocellular carcinoma among people with chronic hepatitis B treated with tenofovir or entecavir: A population-based linkage study
Alcohol abstinence and liver stiffness by vibration-controlled transient elastography: A systematic review and meta-analysis