Loading

Commentary Open Access
Volume 7 | Issue 1

Potential of artificial intelligence in the diagnosis and prediction of pediatric pneumonia caused by Mycoplasma pneumoniae

  • 1Unit of Pediatric Pulmonology, Clínica MEDS, Santiago, Chile
+ Affiliations - Affiliations

*Corresponding Author

Alberto Vidal, aevgmd@yahoo.es

Received Date: March 04, 2026

Accepted Date: March 23, 2026

Abstract

Mycoplasma pneumoniae pneumonia (MPP) in children has experienced a global resurgence following the COVID-19 pandemic, which has been associated with more severe and/or refractory cases. Simultaneously, macrolide-resistant strains have emerged in recent decades. This new reality has increased the risk to pediatric patients and is testing the healthcare system's response. In this context, artificial intelligence (AI) is emerging as an aid or complement to the work of physicians treating children with MPP. Unfortunately, the scientific evidence regarding the contribution of AI to MPP is still limited. This manuscript compiles the most relevant studies that demonstrate that AI could be successfully applied to support diagnosis, predict severity, and assess the response to certain treatments.

Keywords

Artificial intelligence, Pneumonia, Mycoplasma pneumoniae, Children

Introduction

Mycoplasma pneumoniae (MP) is a slow-growing bacterium that has been found in 10 to 40% lower respiratory infections in children, and with outbreaks occurring every 3 to 7 years [1]. First-line treatment includes macrolides such as azithromycin; however, when severe Mycoplasma pneumoniae pneumonia (SMPP) is present, it is common to use tetracyclines or quinolones, corticosteroids, or anticoagulants [2]. Between 2023 and 2024, there was a global and simultaneous outbreak of respiratory infections caused by MP, which was more intense in children than those described before the COVID-19 pandemic [3]. In recent years, cases of refractory Mycoplasma pneumoniae pneumonia (RMPP) in children have become more frequent, characterized by prolonged fever and clinical-radiological deterioration despite well-managed macrolide therapy for at least 7 days [4]. In addition, since 2000, there has been an increase in cases of macrolide-resistant Mycoplasma pneumoniae pneumonia (MRMPP) in children, with prevalences of up to 70–90% in East Asia, which has further complicated the management of this disease [5]. This new reality presents a challenge for the future management of MPP. AI emerges as a tool that could accelerate and deepen knowledge in the diagnosis and treatment of MPP. Machine learning (ML) is the area of AI that has gained the most relevance in respiratory medicine, as it allows for the processing of data to detect patterns and make predictions. However, there are more complex subgroups of ML that have already begun to be used, such as Deep Learning (DL), which solves problems using artificial neurons; Reinforcement Learning (RL), which learns through trial and error with a system of rewards or penalties; and Natural Language Processing (NLP), which allows for the understanding and generation of human language [6]. In pediatric respiratory medicine, and especially in MPP, AI could facilitate the work of physicians by reducing the time spent searching for scientific information, lowering the administrative workload, improving the analysis of diagnostic images, promoting the development of algorithms for predicting severity or response to treatment, and developing new drugs for MRMPP [7,8].

Prediction in Diagnosis

A recent line of research has focused on using AI to differentiate between MPP and pediatric pneumonias from other causes, including other viral or bacterial pathogens, as well as MPP with or without respiratory coinfection. A retrospective study compiled medical record data from over 7.000 patients diagnosed with childhood pneumonia to design a hybrid automated model capable of transforming, merging, and integrating free-text data with structured numerical records from the medical chart [9]. The model obtained in this study demonstrated good levels of accuracy (Acc), precision (P), recall (R), and F1 score (F1) for differentiating between MPP and pneumonia from other causes [9]. Another retrospective study developed a machine-learning-based model using routinely available laboratory parameters (complete blood count and C-reactive protein) to diagnose pediatric pneumonia. In this study, the Gradient Boosting Decision Tree (GBDT) model performed best, demonstrating high levels of area under the curve (AUC), Acc, specificity (E), sensitivity (S), positive predictive value (PPV), negative predictive value (NPV), and F1 score for differentiating MPP from other causes of pneumonia. C-reactive protein (CRP) and absolute Eosinophils (Eos#) were the blood parameters that contributed the most in the algorithm designed by the GBDT model [10]. A study measured serum cytokine levels in 336 hospitalized children with pneumonia caused exclusively by viruses or by MPP to develop a predictive model that would differentiate between the two groups [11]. The predictive nomogram from this study demonstrated that four factors can achieve high accuracy in predicting MPP: an elevated TNF-α/IL-10 ratio, older age, and lower levels of IL-8 and procalcitonin (PCT). Of these four parameters, the elevated TNF-α/IL-10 ratio was the variable with the greatest predictive impact [11]. ML has also been used to create predictive models for MP in patients with segmental or lobar pneumonia. One retrospective study analyzed clinical data from 630 children with segmental or lobar pneumonia to create a predictive model that could distinguish between MPP and pneumonia caused by other pathogens (non-MPP) [12]. In this study, the Random Forest predictive model performed best in predicting MPP, and the variables that contributed most to this model were: older age, increased platelet count, and increased serum lactic dehydrogenase LDH [12]. A study used data from 769 chest radiographs of children with pneumonia from two hospitals, which were analyzed using deep learning with three neural network models (ResNet50, DenseNet121, and EfficientNetv2-S) to measure their ability to discriminate between MPP and viral pneumonia. All three models achieved good accuracy in diagnosing MPP in the validation tests (Acc over 0.8), but the ResNet50 model had a more stable Acc than the other two models in the training tests [13]. One novel application of ML is radiomics, which involves analyzing large volumes of quantitative radiological data to help make clinical decisions with patients. A retrospective study analyzed high-resolution computed tomography (HRCT) images of 124 pediatric pneumonias with the aim of discriminating between MPP with or without bacterial/viral coinfection (Co-MPP) [14]. In this study, a predictive nomogram model was constructed by integrating clinical-demographic data with HRCT radiomic features (geometric, intensity, and texture features). The integrated nomogram model performed better (p = 0.004) in predicting Co-MPP than the model using only clinical data [14].

Prediction of Severe or Refractory Pneumonia

SMPP and RMPP have been the subject of study in recent years. In a single-center retrospective study, the records of 443 children hospitalized for MPP were analyzed to construct different models for predicting SMPP. The best model obtained satisfactory prediction levels (Acc = 0.91, AUC = 0.93). The main variables of the model that predicted SMPP were the number of days of fever and the levels of platelet count, lymphocyte/neutrophil ratio (INL), CRP, LDH, and D-dimer [15]. Another investigation with retrospective data of children hospitalized for MPP designed a model that had a good ability to predict SMPP (AUC = 0.96), and the variables with the best performance were pulmonary auscultation, erythrocyte sedimentation rate (ESR), PCT level, and IL-6 [16]. In a prospective cohort of 597 patients hospitalized for MPP from 1 month to 18 years of age, clinical-demographic and laboratory data were analyzed to build a predictive model of SMPP. The model that best identified SMPP had an AUC= 0.8 and had five variables, such as: the inflammatory protein S100 A8/A9, computed tomography (CT), retinol-binding protein (RBP), platelet large cell ratio (PLCR), and CD4+CD25+T Treg cells [17]. A study in children hospitalized for MPP created a predictive model with three urinary metabolites, such as 3-Hydroxyanthranilic acid (3-HAA), L-Kynurenine, and 16(R)-HETE, with good performance (AUC= 0.91) to predict SMPP [18]. Under some conditions, SMPP can cause damage to other parenchyma, such as the myocardium and liver. A model designed with clinical and laboratory data in children with SMPP showed that alanine aminotransferase (ALT) and MB isoenzyme (CK-MB) were the clinical variables that contributed most to predicting liver and myocardial damage, respectively [19].

A study performed a retrospective collection of clinical-demographic and laboratory data from 219 children to design a model that would allow discrimination between MPP and RMPP. The model achieved a good capacity to predict RMPP (AUC= 0.88), and the clinical variables that best contributed to the model were high fever, increased percentage of neutrophils (N%) in blood count, high LDH, and low albumin [20]. Another retrospective study identified five clinical variables that differentiated between MPP and RMPP in children under 14 years of age: older age, longer duration of fever, lower absolute lymphocyte count (L#), increased serum D-dimer level, and higher scores on pulmonary function imaging, depending on the presence or absence of consolidation and the amount of pleural effusion. This model achieved outstanding discriminatory capacity with an AUC of 0.907 for the development model and 0.96 for the validation model [21]. Another single-center retrospective study analyzed the records of 1332 patients hospitalized for MPP, of whom 9.2% presented with RMPP. The model that performed best in predicting RMPP (Acc = 0.8, AUC = 0.93) incorporated eight variables: longer duration of fever, higher peak fever, macrolide use, increased levels of blood parameters (LDH, N%, and ALT), SMPP, and extensive pulmonary consolidation [22]. In a study of patients under 18 years of age hospitalized for MPP, a deep learning model was used with HRCT images that included identification, segmentation, and volumetric calculation of the pneumonia area. This data was combined with variables that best predicted RMPP, such as longer duration of fever before hospitalization or macrolide therapy before hospitalization, and higher aspartate aminotransferase (AST) levels, to create a predictive clinical-imaging model of RMPP, which demonstrated better performance than the clinical or imaging models used separately [23].

Plastic bronchitis (PB) is one of the complications of MPP. A multicenter study collected clinical and radiological data from HRCT of 777 children with MPP and pulmonary consolidation. Using this data, a multifactorial mixed model was constructed that accurately predicted which children were at higher risk of developing PB as a complication of MPP [24]. The multifactorial model that achieved the best predictive performance incorporated three variables: pleural effusion, radiomic area of pneumonia, and radiomic area of total lung [24]. A study retrospectively analyzed clinical and laboratory data from 547 children with RMPP who underwent fiberoptic bronchoscopy (FOB). In such a study, a model was built that displayed adequate performance (AUC = 0.81) when predicting BP that included six variables: peak higher body temperature, higher N%, increased absolute platelet count (PLT#), increased IL-6, increased LDH, and pulmonary atelectasis on HRCT [25].

Prediction of Treatment Response

Currently, macrolides are the first choice in the treatment of MPP. Conditions such as poor gastric tolerance or absorption, hypoxia, or severe respiratory failure preclude the use of oral macrolides. In these scenarios, intravenous azithromycin administration becomes a viable option; however, its efficacy and safety have not been fully studied. A recent study used ML to create a pharmacokinetic model to measure the effectiveness of azithromycin in children with bacterial pneumonia. In this study, the area under the plasma concentration-time curve over 24 h (AUC0-24) of intravenous azithromycin was measured, considering the most relevant clinical variables such as age in years, weight in kilograms, dosage in milligrams, and blood ALT level, achieving an accuracy of 90.4%, specificity of 80.4% [26]. The increasingly frequent and uncontrolled use of macrolides in respiratory infections has led to the emergence of MRMPP. A study retrospectively analyzed clinical data from 968 hospitalized children with MPP to design models that would allow discrimination between MRMPP and macrolide-sensitive MPP (MSMPP). The designed model achieved good indicators to predict MRMPP (AUC = 0.8, S = 0.76, E = 0.984), and the clinical variables that contributed the most were the evolution and prehospital use of macrolides and the levels of CRP, albumin/globulin ratio (A/G), interleukin-17 A (IL-17 A), and interferon gamma (IFN-γ) [27]. In children with MPP, related genetic mutations have been identified that could be responsible for the clinical worsening. A single-center study was conducted in children hospitalized for MRMPP to define a predictive model for multilobar consolidating pneumonia with the 23S rRNA A2063G mutation [28]. The model that performed best in predicting MMRPP with the genetic mutation and multilobar consolidation achieved an AUC above 0.9 (training and validation group). The model biomarkers that contributed most to clinical decision-making were, in descending order, CRP, LDH, fibrinogen, PLT, and albumin [28]. With the emergence of MRMPP, the study of molecules capable of inhibiting some immunological pathways activated in MP infection has gained greater interest. Toll-like receptors (TLRs) are part of innate immunity and play a role in recognizing MP infection, but also in amplifying the immune response by stimulating the production of inflammatory molecules. Emerging studies that use ML to collect and analyze data on substances with potential inhibitory biological activity on TLR2 and TLR4 by means of Quantitative Structure-Activity Relationship (QSAR) achieve fine levels of precision, which pave the way for the future search for antimycoplasmal drugs in MRMPP [29,30]. Flexible bronchoscopy (FB) is a procedure that can be used to treat children with MPP who progress with atelectasis or persistent consolidation despite treatment. A retrospective two-center study analyzed and integrated clinical and radiological data in children hospitalized for MPP in whom at least one CT scan was performed during hospitalization [31]. In this study, AI was used to quantitatively analyze CT to integrate it with clinical and laboratory characteristics. With this data, a model was designed that compared patients who required or did not require FB during hospitalization, using the duration of fever in days as the main outcome. Patients who received FB had shorter durations of fever during hospitalization and had a higher proportion of consolidation/atelectasis volume (CAV), pneumonia attenuation (PA), and consolidation-to pneumonia ratio compared to non-beneficiary groups. The model also demonstrated that patients who benefited most from FB were those with CAV combined with elevated PA or lymphocyte counts [31].

Conclusion

AI allows the use of clinical data and laboratory tests to differentiate MPP from infections caused by other factors, such as viruses or coinfections. It also allows differentiation between MPP, SMPP, or RMPP, complications such as PB or extrapulmonary systemic damage. It is even being used in the pharmacokinetics of macrolide treatment, the prediction of MRMPP, new antimycoplasmal molecules, and the selection of patients with a better response to more invasive procedures such as FB. However, most studies are retrospective, which introduces a selection bias that could influence the results. Furthermore, many studies using AI models have been conducted in hospital settings or at a single institution, making it impossible to generalize the findings to the full spectrum of children with MPP. Future research in this field should incorporate more studies in the prehospital setting, limiting models to a few readily accessible and low-cost clinical variables. Furthermore, predictive models for MPP with viral or bacterial coinfection or extrapulmonary manifestations should be expanded.

Conflict of Interest

There is no conflict of interest in this study.

Funding Sources

This research was not funded by any funding sources.

Acknowledgements

I would like to thank Maribel Garrido and Rocío Ballesteros, both assistants at the SAVAL Center, for their collaboration in the search for scientific information for the preparation of this manuscript.

References

1. Sharplin L, Goyal V. Mycoplasma pneumoniae respiratory tract infections in children: when and how to diagnose and treat. Breathe (Sheff). 2025 Oct 14;21(4):250046.

2. Subspecialty Group of Respiratory, the Society of Pediatrics, Chinese Medical Association; China National Clinical Research Center of Respiratory Diseases; Editorial Board, Chinese Journal of Pediatrics. Evidence-based guideline for the diagnosis and treatment of Mycoplasma pneumoniae pneumonia in children (2023). Pediatr Investig. 2025 Mar 11;9(1):1–11.

3. de Groot RCA, Streng BMM, Bont LJ, Meyer Sauteur PM, van Rossum AMC. Resurgence of Mycoplasma pneumoniae infections in children: emerging challenges and opportunities. Curr Opin Infect Dis. 2025 Oct 1;38(5):468–76.

4. Tong L, Huang S, Zheng C, Zhang Y, Chen Z. Refractory Mycoplasma pneumoniae Pneumonia in Children: Early Recognition and Management. J Clin Med. 2022 May 17;11(10):2824.

5. Wang YS, Zhou YL, Bai GN, Li SX, Xu D, Chen LN, et al. Expert consensus on the diagnosis and treatment of macrolide-resistant Mycoplasma pneumoniae pneumonia in children. World J Pediatr. 2024 Sep;20(9):901–14.

6. Karthika M, Sreedharan JK, Shevade M, Mathew CS, Ray S. Artificial intelligence in respiratory care. Front Digit Health. 2024 Dec 23;6:1502434.

7. Lawton A, Hughes D. Artificial intelligence in paediatric respiratory medicine. Paediatr Respir Rev. 2025 Oct 4:S1526-0542(25)00081–8.

8. Kant R, Kumar N, Malik YS, Everett D, Saluja D, Launey T, et al. Critical insights from recent outbreaks of Mycoplasma pneumoniae: decoding the challenges and effective interventions strategies. Int J Infect Dis. 2024 Oct;147:107200.

9. Xie J, Wang Y, Sheng Q, Liu X, Li J, Sun F, et al. Identification of mycoplasma pneumonia in children based on fusion of multi-modal clinical free-text description and structured test data. Health Informatics J. 2024 Apr-Jun;30(2):14604582241255818.

10. Peng X, Liu Y, Zhang B, Yang C, Dong J, Yong C, et al. A preliminary prediction model of pediatric Mycoplasma pneumoniae pneumonia based on routine blood parameters by using machine learning method. BMC Infect Dis. 2024 Jul 18;24(1):707.

11. Lin X, Xu E, Zhang T, Zhu Q, Liu Y, Tian Q. Cytokine-based nomogram for discriminating viral pneumonia from Mycoplasma pneumoniae pneumonia in children. Diagn Microbiol Infect Dis. 2025 Feb;111(2):116611.

12. Ling Y, Sun B, Yin G, Ma L, Li Y, Meng F, et al. A comprehensive study based on machine learning models for early identification Mycoplasma pneumoniae infection in segmental/lobar pneumonia. Sci Rep. 2025 Jul 1;15(1):21044.

13. Lan XH, Zhang YX, Yuan WH, Shi F, Guo WL. Image-based deep learning in diagnosing mycoplasma pneumonia on pediatric chest X-rays. BMC Pediatr. 2024 Nov 11;24(1):720.

14. Liu X, Xu W, Meng L, Long J, Sun X, Li Q, et al. Development and validation of a machine learning model for predicting co-infection of Mycoplasma pneumonia in pediatric patients. Transl Pediatr. 2025 Jun 27;14(6):1201–12.

15. Ye Y, Gao Z, Zhang Z, Chen J, Chu C, Zhou W. A machine learning model for predicting severe mycoplasma pneumoniae pneumonia in school-aged children. BMC Infect Dis. 2025 Apr 21;25(1):570.

16. Gong C, Yue H, Li Q, Yang Y, Li H, Hao T, et al. Building a diagnostic prediction model for severe Mycoplasma pneumoniae pneumonia in children using machine learning. Front Public Health. 2025 Sep 18;13:1585042.

17. Xie S, Wu M, Shang Y, Tuo W, Wang J, Cai Q, et al. Development and validation of an early diagnosis model for severe mycoplasma pneumonia in children based on interpretable machine learning. Respir Res. 2025 May 13;26(1):182.

18. Li L, Haijun W, Tianyu C, Wenjing W, Zi W, Yibing C. Metabolomics and machine learning identify urine metabolic characteristics and potential biomarkers for severe Mycoplasma pneumoniae pneumonia. Sci Rep. 2025 May 16;15(1):17090.

19. He B, Li X, Dong R, Yao H, Zhou Q, Xu C, et al. Development of machine learning-based differential diagnosis model and risk prediction model of organ damage for severe Mycoplasma pneumoniae pneumonia in children. Sci Rep. 2025 Mar 19;15(1):9431.

20. Cheng S, Lin J, Zheng X, Yan L, Zhang Y, Zeng Q, et al. Development and validation of a simple-to-use nomogram for predicting refractory Mycoplasma pneumoniae pneumonia in children. Pediatr Pulmonol. 2020 Apr;55(4):968–74.

21. Li M, Wei X, Zhang SS, Li S, Chen SH, Shi SJ, et al. Recognition of refractory Mycoplasma pneumoniae pneumonia among Myocoplasma pneumoniae pneumonia in hospitalized children: development and validation of a predictive nomogram model. BMC Pulm Med. 2023 Oct 10;23(1):383.

22. Jiang Y, Wang X, Li L, Wang Y, Wang X, Zou Y. Predicting and interpreting key features of refractory Mycoplasma pneumoniae pneumonia using multiple machine learning methods. Sci Rep. 2025 May 23;15(1):18029.

23. Qian Y, Tao Y, Wu L, Zhou C, Liu F, Xu S, et al. Model based on the automated AI-driven CT quantification is effective for the diagnosis of refractory Mycoplasma pneumoniae pneumonia. Sci Rep. 2024 Jul 13;14(1):16172.

24. Xu Y, Liu Z, Li J, Wang S, Zhang K, Li H, et al. Machine learning models based on chest computed tomography for identifying plastic bronchitis in children with Mycoplasma pneumoniae pneumonia. Transl Pediatr. 2025 Oct 31;14(10):2727–39.

25. Zhao L, Zhang T, Cui X, Zhao L, Zheng J, Ning J, et al. Development and validation of a nomogram to predict plastic bronchitis in children with refractory Mycoplasma pneumoniae pneumonia. BMC Pulm Med. 2022 Jun 27;22(1):253.

26. Tang BH, Fu SM, Tian LY, Zhang XF, Yao BF, Zhang W, et al. Machine learning approach for dosage individualization of azithromycin in children with community-acquired pneumonia. Br J Clin Pharmacol. 2025 Aug;91(8):2409–19.

27. Yang S, Liu X, Wang H, Han Y, Sun D, Li H, et al. Predicting macrolide resistance in pediatric Mycoplasma pneumoniae pneumonia: A machine learning modeling study. Eur J Clin Microbiol Infect Dis. 2026 Mar;45(3):723–37.

28. Guo Y, Luo Y. A machine learning-based predictive model for multilobar pulmonary consolidation induced by macrolide-resistant Mycoplasma pneumoniae pneumonia caused by the 23S rRNA A2063G mutation. Microbiol Spectr. 2025 Nov 4;13(11):e0245825.

29. Zhu Z, Rahman Z, Aamir M, Shah SZA, Hamid S, Bilawal A, et al. Insight into TLR4 receptor inhibitory activity via QSAR for the treatment of Mycoplasma pneumonia disease. RSC Adv. 2023 Jan 11;13(3):2057–69.

30. Ishfaq M, Rahman Z, Aamir M, Ali I, Guan Y, Hu Z. Insight into potent TLR2 inhibitors for the treatment of disease caused by Mycoplasma pneumoniae based on machine learning approaches. Mol Divers. 2023 Feb;27(1):371–87.

31. Ying Z, Li J, Li Z, Hu G, Yang F, Zhu Z, et al. A causal forest model integrating quantitative CT scores to predict benefit from flexible bronchoscopy in pediatric Mycoplasma pneumoniae pneumonia: a two-center retrospective study. Respir Res. 2025 Dec 16;27(1):18.

Author Information X