Abstract:Objective To investigate the efficacy differences of azithromycin monotherapy and its combination/switching with doxycycline in the treatment of mycoplasma pneumoniae pneumonia (MPP) in children, analyze the dynamic changes of serum inflammatory markers, and construct a clinical prediction model for the risk of failure of macrolide monotherapy. Methods A retrospective analysis was conducted on the data of 103 children with MPP admitted to Nanhua Hospital Affiliated to University of South China from January 2023 to December 2025. They were divided into the azithromycin group (n=42), the combined group (n=41), and the doxycycline group (n=20) based on the treatment plans. The levels of interleukin (IL)-6, IL?10, tumor necrosis factor?α (TNF?α), C?reactive protein (CRP), D?dimer (D?D), and lactate dehydrogenase (LDH) were measured before treatment, on the 3rd day after treatment, and on the 7th day after treatment. The key predictive variables were selected using the random forest algorithm, and a nomogram model was constructed through multivariate Logistic regression. The model efficacy was evaluated using the receiver operator characteristic (ROC) curve, calibration curve, and decision curve analysis (DCA). Results The time for fever reduction, the time for cough disappearance, and the length of hospital stay in the combined group and the doxycycline group were all significantly shorter than those in the azithromycin group (all P<0.05), and the decline of each serum inflammatory marker was more significant (all P<0.05). The results of random forest showed that IL?6 (0.218), D?D (0.195) and LDH (0.172) were the top three predictors. The AUC of the model training set was 0.927 (95% CI: 0.872?0.965) and the AUC of the validation set was 0.891 (95% CI: 0.823?0.940), and the calibration curve suggested good fitting (training set χ2=6.32, P=0.611; validation set χ2=8.15, P=0.417). The DCA showed that the model had a positive net benefit within the probability range of 6% to 80%. Conclusion The combination or switching of azithromycin with doxycycline for the treatment of MPP in children can more quickly control the inflammatory response and shorten the course of the disease. The nomogram model based on dynamic markers such as IL?6, D?D, LDH, and IL?10 can early identify high?risk children who do not respond to monotherapy with macrolides, providing quantitative decision support for the timely initiation of second?line treatment with doxycycline.