Early Prediction of Surgical Intervention in Neonates with Necrotizing Enterocolitis Using Machine Learning: A Retrospective Cohort Study
Keywords:
Necrotizing Enterocolitis (NEC), Neonatal Surgery, Machine Learning, Early Intervention, Predictive Modeling, Clinical Decision Support, SHAP and LIME Interpretation, XGBoostAbstract
Background: Necrotizing enterocolitis (NEC) is a devastating gastrointestinal emergency in neonates, frequently requiring surgical intervention. Early prediction of surgical necessity remains a major clinical challenge due to the rapid progression and heterogeneity of NEC presentations.
Methods: This study aims to develop and validate a machine learning (ML) model to predict the need for surgical intervention in neonates diagnosed with NEC using routine clinical and laboratory data available within the first 48 hours of diagnosis.
Results: A retrospective cohort of 298 neonates diagnosed with NEC (Bell Stage II or higher) between 2015 and 2024 was analyzed. Thirty-two clinical and biochemical parameters were extracted. Four ML algorithms—Logistic Regression (LR), Random Forest (RF), XGBoost, and Support Vector Machine (SVM)—were trained and evaluated. Model performance was assessed using area under the ROC curve (AUC), sensitivity, specificity, and F1-score. SHAP (SHapley Additive exPlanations) was used to enhance interpretability.
Conclusion: Of 298 neonates, 102 (34.2%) required surgery. XGBoost achieved the best performance (AUC=0.91, sensitivity=87%, specificity=84%, F1-score=0.86). Key predictors included serum lactate, CRP, platelet count, abdominal distension, and oxygen requirement.
The proposed ML-based framework demonstrates high predictive accuracy for early surgical intervention in NEC. Its integration into clinical workflows could support timely decision-making and improve neonatal outcomes
Downloads
Metrics
References
Neu J, Walker WA. "Necrotizing enterocolitis." N Engl J Med, 2011.
Fitzgibbons SC, et al. "Mortality of NEC continues to decrease." Pediatrics, 2009.
Sharma R, Hudak ML. "Clinical perspective of NEC." Clin Perinatol, 2013.
Jancelewicz T, et al. "Predictive biomarkers for NEC." J Pediatr Surg, 2016.
Kamaleswaran R, et al. "ML for neonatal sepsis." PLoS ONE, 2018.
Lee HC, et al. "Prediction of IVH using AI." JAMA Netw Open, 2020.
Ramesh A, et al. "Mortality risk prediction in VLBW infants." J Perinatol, 2019.
DeMeo SD, et al. "Deep learning for NEC risk." Pediatr Res, 2021.
Moss RL, et al. "Risk factors for surgical NEC." J Pediatr Surg, 2015.
Battersby C, et al. "UK study on NEC outcomes." Arch Dis Child Fetal, 2018.
Rees CM, et al. "Outcomes following surgery for NEC." Neonatology, 2010.
Khashu M, et al. "Feeding intolerance and NEC." J Matern Fetal Neonatal Med, 2009.
Howlett JA, et al. "Machine learning in pediatric ICU." Crit Care, 2020.
Lundberg SM, Lee S-I. "A unified approach to interpret model predictions." NeurIPS, 2017.
Ribeiro MT, et al. "Why should I trust you?" KDD, 2016.
Parikh RB, et al. "ML in healthcare: review." JAMA, 2019.
Ghosh R, et al. "ML in neonatal outcomes." Front Pediatr, 2020.
Agrawal R, et al. "AI in perinatal care." Semin Fetal Neonatal Med, 2021.
Saria S. "Learning individual patient trajectories." PLoS ONE, 2014.
Chen T, Guestrin C. "XGBoost: Scalable tree boosting." KDD, 2016.
Breiman L. "Random Forests." Machine Learning, 2001.
Cortes C, Vapnik V. "Support-vector networks." Machine Learning, 1995.
Kohavi R. "A study of cross-validation." IJCAI, 1995.
Wilkinson MD, et al. "FAIR data principles." Sci Data, 2016.
McKinney W. "Data structures for statistical computing in Python." Proc SciPy, 2010. [26] Pedregosa F, et al. "Scikit-learn: Machine learning in Python." JMLR, 2011.
Van Rossum G, et al. "Python Reference Manual." 1995.
Hunter JD. "Matplotlib: A 2D graphics environment." Comput Sci Eng, 2007.
Waskom M. "Seaborn: Statistical data visualization." J Open Source Softw, 2021.
Lundberg SM. "SHAP documentation." https://shap.readthedocs.io/
Downloads
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution 4.0 International License.
You are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, even commercially.
Terms:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.