A machine learning-based predictive model for multilobar pulmonary consolidation induced by macrolide-resistant

Yan Guo1,2,3, Yonghan Luo3,4

  • 1Department of Reproductive Gynecology, NHC Key Laboratory of Healthy Birth and Birth Defect Prevention in Western China First People's Hospital of Yunnan Province, Kunming, Yunnan, China.

Microbiology Spectrum
|October 8, 2025
PubMed

Insights

This study developed an XG-Boost machine learning model to predict multilobar pulmonary consolidation in children with macrolide-resistant Mycoplasma pneumoniae pneumonia (MRMP). The model accurately identifies high-risk children, improving early risk stratification and treatment decisions.

Area of Science:

  • Pediatric Pulmonology
  • Infectious Diseases
  • Medical Informatics

Background:

  • Macrolide-resistant Mycoplasma pneumoniae pneumonia (MRMP), particularly due to the 23S rRNA A2063G mutation, is a growing concern in pediatric health.
  • Multilobar pulmonary consolidation is a severe complication of MRMP, necessitating accurate risk prediction for timely intervention.

Purpose of the Study:

  • To develop and validate a machine learning (ML)-based predictive model for assessing the risk of multilobar pulmonary consolidation in children with MRMP caused by the 23S rRNA A2063G mutation.
  • To identify key clinical predictors associated with multilobar pulmonary consolidation in this specific pediatric subgroup.
  • To enhance early risk stratification and support clinical decision-making for improved treatment outcomes.

Main Methods:

  • Utilized a dataset of 404 pediatric MRMP cases diagnosed between October 2024 and February 2025.
  • Developed and compared six ML models (Logistic Regression, Naive Bayes, K-NN, MLP, Random Forest, XG-Boost) for predicting multilobar pulmonary consolidation.
  • Employed LASSO regression for variable selection, ROC curves and DCA for performance evaluation, and SHAP for model interpretability.

Main Results:

  • The XG-Boost model achieved the highest predictive performance, with an AUC of 0.976 (training) and 0.904 (validation).
  • The model demonstrated high sensitivity (0.97), specificity (0.81), accuracy (0.94), and F1 score (0.95).
  • Key predictors identified included C-reactive protein, lactate dehydrogenase, fibrinogen, platelet count, albumin, hemoglobin, creatinine, AST, IL-6, and oxygen therapy.

Conclusions:

  • The XG-Boost predictive model provides a robust and interpretable tool for identifying children at high risk of multilobar pulmonary consolidation due to MRMP (23S rRNA A2063G mutation).
  • Integrating clinical features into this ML model enhances early risk stratification, aiding clinicians in optimizing treatment plans and improving patient outcomes.
  • This model represents a valuable advancement in managing antibiotic-resistant pediatric pneumonia, potentially reducing disease severity and hospital stays.