MedElevator Войти в исследования
← Поиск публикаций

DOI 10.1186/s12879-026-13345-z

Медицинская библиотека · BMC infectious diseases · 2026

Machine learning and meningitis prediction in pediatric invasive pneumococcal disease: a retrospective single-center study.

Luo Yonghan, Ma Mingbiao, Tong Mengyue, Ma Xin, Jiang Deyuan, Wu Hao, Yuan Lijiao, Guo Yan, Zhu Ying, Jin Haifeng, Cui Penghao, Li Ruonan, Tang Qingping, Wang Yanchun

СтатьяПеревод в очереди

Аннотация

OBJECTIVE

To analyze the clinical characteristics of children with invasive pneumococcal disease (IPD) admitted to Kunming Children’s Hospital from 2020 to 2024, and to develop a risk stratification model for pneumococcal meningitis among children with confirmed or highly suspected IPD using multiple machine learning algorithms.

METHODS

A retrospective analysis was conducted on 65 pediatric patients with confirmed IPD, divided into a meningitis group (n = 37) and a non-meningitis group (n = 28). Clinical characteristics between the two groups were compared. Variable selection was performed using LASSO regression, and six machine learning models—Logistic Regression (LR), K-Nearest Neighbor (KNN), Naive Bayes (NB), Multilayer Perceptron (MLP), Random Forest (RF), and XGBoost—were constructed based on the selected features. Model performance was evaluated using AUC, F1 score, accuracy, sensitivity, and specificity, while Decision Curve Analysis (DCA) was employed to assess clinical utility.

RESULTS

The meningitis group exhibited stronger inflammatory responses and poorer outcomes (in-hospital death and treatment abandonment). The predominant serotypes were 19 F (25.8%), 19 A (20.9%), and 14 (17.7%). LASSO regression identified six key predictive variables: headache, vomiting, nuchal rigidity, disease course, C-reactive protein (CRP), and blood urea nitrogen (BUN). Among the machine learning models, Logistic Regression and MLP performed best, with AUC values of 0.942 and 0.947, respectively. DCA indicated the highest net clinical benefit for these two models. A nomogram based on the Logistic Regression model enabled individualized risk estimation within the IPD population.

CONCLUSION

Pediatric pneumococcal meningitis remains associated with high disability rates and poor prognosis. The machine learning-based predictive model integrating clinical symptoms and laboratory indicators demonstrated a discriminative ability and may hold the potential to serve as a supportive tool for risk stratification among children with invasive pneumococcal disease. CLINICAL TRIAL NUMBER: Not applicable.

Другие публикации по теме

Retrospective StudiesMeningitis, PneumococcalMachine LearningPredictive Learning Models
Для цитирования: Luo Yonghan, Ma Mingbiao, Tong Mengyue, Ma Xin, Jiang Deyuan, Wu Hao, Yuan Lijiao, Guo Yan, Zhu Ying, Jin Haifeng, Cui Penghao, Li Ruonan, Tang Qingping, Wang Yanchun. Machine learning and meningitis prediction in pediatric invasive pneumococcal disease: a retrospective single-center study.. BMC infectious diseases. 2026. DOI: 10.1186/s12879-026-13345-z.

Перевод полного текста: Перевод в очереди

Полный текст источника

https://creativecommons.org/licenses/by-nc-nd/4.0/

Yonghan Luo

Mingbiao Ma

Mengyue Tong

Xin Ma

Deyuan Jiang

Hao Wu

Lijiao Yuan

Yan Guo

Ying Zhu

Haifeng Jin

Penghao Cui

Ruonan Li

Qingping Tang

Yanchun Wang

Corresponding author.

Contributed equally.

Received 2025 Nov 2; Accepted 2026 Apr 13; Collection date 2026.

Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ .

Abstract

Objective

To analyze the clinical characteristics of children with invasive pneumococcal disease (IPD) admitted to Kunming Children’s Hospital from 2020 to 2024, and to develop a risk stratification model for pneumococcal meningitis among children with confirmed or highly suspected IPD using multiple machine learning algorithms.

Methods

A retrospective analysis was conducted on 65 pediatric patients with confirmed IPD, divided into a meningitis group ( n = 37) and a non-meningitis group ( n = 28). Clinical characteristics between the two groups were compared. Variable selection was performed using LASSO regression, and six machine learning models—Logistic Regression (LR), K-Nearest Neighbor (KNN), Naive Bayes (NB), Multilayer Perceptron (MLP), Random Forest (RF), and XGBoost—were constructed based on the selected features. Model performance was evaluated using AUC, F1 score, accuracy, sensitivity, and specificity, while Decision Curve Analysis (DCA) was employed to assess clinical utility.

Results

The meningitis group exhibited stronger inflammatory responses and poorer outcomes (in-hospital death and treatment abandonment). The predominant serotypes were 19 F (25.8%), 19 A (20.9%), and 14 (17.7%). LASSO regression identified six key predictive variables: headache, vomiting, nuchal rigidity, disease course, C-reactive protein (CRP), and blood urea nitrogen (BUN). Among the machine learning models, Logistic Regression and MLP performed best, with AUC values of 0.942 and 0.947, respectively. DCA indicated the highest net clinical benefit for these two models. A nomogram based on the Logistic Regression model enabled individualized risk estimation within the IPD population.

Conclusion

Pediatric pneumococcal meningitis remains associated with high disability rates and poor prognosis. The machine learning-based predictive model integrating clinical symptoms and laboratory indicators demonstrated a discriminative ability and may hold the potential to serve as a supportive tool for risk stratification among children with invasive pneumococcal disease.

Clinical trial number

Not applicable.

Keywords: Invasive pneumococcal disease, Meningitis, Pediatrics, Machine learning, Nomogram

Importance

Invasive pneumococcal disease (IPD) remains a major threat to children’s health worldwide, with meningitis being its most severe and life-threatening form. Early recognition of pneumococcal meningitis is essential but often difficult because its symptoms overlap with less severe infections. This study developed a practical, data-driven prediction model using common clinical features and laboratory results to help clinicians identify high-risk children more accurately and earlier. By applying modern machine learning techniques, our model demonstrated excellent predictive performance and clinical usefulness. The resulting nomogram provides an easy-to-use tool for individualized risk assessment in hospital settings.

Introduction

Streptococcus pneumoniae ( S. pneumoniae ) is one of the leading pathogens responsible for infection and mortality among children worldwide. It can cause a wide spectrum of diseases, ranging from mild upper respiratory tract infections to severe invasive pneumococcal diseases (IPD), including bacteremia, pneumonia, and meningitis [ 1 – 3 ]. According to the Global Burden of Disease (GBD) study, in 2021, S. pneumoniae accounted for the largest proportion of lower respiratory infection episodes and deaths, with an estimated 97.9 million (92.1–104.0 million) episodes and 505,000 deaths (454,000–555,000) globally, primarily affecting children [ 4 ].

The introduction of pneumococcal conjugate vaccine (PCV) has markedly decreased the incidence of vaccine type (VT) pneumococcal infections [ 5 ]. However, molecular epidemiological studies across multiple countries have revealed a substantial rise in non-vaccine type (NVT) strains, accompanied by increasing antimicrobial resistance and evident serotype replacement [ 6 – 8 ]. For instance, a recent multicenter study [ 6 ] conducted in Spain reported that S. pneumoniae remained the leading cause of bacteremia in previously healthy children aged 3–59 months despite the implementation of the publicly funded PCV13, with predominant circulation of non-vaccine serotypes such as 10 A, 24, and 8. Additionally, a 2023 nationwide study [ 7 ] in Japan demonstrated that thirteen years after the introduction of pneumococcal conjugate vaccines, non-vaccine serotypes such as 23 A, 35B, and 15 A had become predominant—accounting for over 60% of all isolates—and exhibited high rates of penicillin non-susceptibility and multidrug resistance. Moreover, the COVID-19 pandemic has altered the epidemiological landscape of pneumococcal infections—while certain regions reported a decline in infection rates, the case fatality rates among severe patients have not significantly improved [ 9 ].

Among all invasive pneumococcal infections, pneumococcal meningitis represents one of the most devastating forms, characterized by rapid progression and a high risk of permanent neurological sequelae or death [ 10 , 11 ]. Studies have shown that children with pneumococcal meningitis experience significantly higher mortality and complication rates than those with non-meningitis IPD, with approximately 30%–50% developing long-term neurological sequelae [ 10 ]. Although vaccination can partially prevent meningitis, some cases still arise from non-vaccine or resistant strains [ 12 , 13 ]. Therefore, traditional epidemiological surveillance primarily reflects population-level trends and may not adequately support early individual-level risk assessment for pneumococcal meningitis, particularly in the clinical setting.

Previous studies [ 14 , 15 ] have primarily focused on the epidemiological or molecular characteristics of S. pneumoniae , with a lack of systematic clinical predictive research. Although a few studies [ 10 , 16 ] have analyzed risk factors for pediatric pneumococcal meningitis, they often relied on univariate analyses or traditional regression models with limited predictive accuracy and poor clinical applicability. In recent years, machine learning (ML) techniques have been increasingly applied in medical research, integrating multidimensional clinical, laboratory, and epidemiological data to enable early disease detection and outcome prediction [ 17 , 18 ], and may assist clinicians in early risk stratification and timely identification of complicated or severe cases. To date, however, no studies have applied ML models in the context of pediatric invasive pneumococcal meningitis.

Based on this, the present study retrospectively analyzed pediatric IPD cases diagnosed at Kunming Children’s Hospital between 2020 and 2024. By integrating clinical features, laboratory findings, we constructed predictive models using multiple ML algorithms and developed a nomogram based on the optimal model to facilitate early risk assessment. This study aims to provide pediatric clinicians with a practical tool for risk stratification with invasive pneumococcal disease.

Materials and methods

Study population

A total of 65 pediatric patients diagnosed with IPD and admitted to Kunming Children`s Hospital between January 2020 and December 2024 were included in this study. Ethical approval was obtained from the Ethics Committee of Kunming Children`s Hospital, and the study was conducted in accordance with the principles of the Declaration of Helsinki.

Inclusion and exclusion criteria

Inclusion criteria :

Identification of S. pneumoniae from a sterile site (e.g., cerebrospinal fluid, peripheral blood, or bone marrow).

Determination of the S. pneumoniae serotype.

Exclusion criteria :

Patients with incomplete or missing clinical data preventing accurate analysis.

Patients with co-infections or mixed bacterial growth in sterile site cultures.

Determination of streptococcus pneumoniae serotypes

All strains were identified as S. pneumoniae by colony morphology observation, Gram staining, Optochin sensitivity test, and VITEK-2 Compact instrument (bioMérieux, Marcy-l’ Étoile, French). The strains were stored at − 80℃ in the refrigerator until testing. Initial identification of strain serotypes/groups was performed using the S. pneumoniae Latex Agglutination Kit (Statens Serum Institute, Copenhagen, Denmark), which contains 14 latex reagent pools (A to I and P to T) and identifies the serotypes/groups covered by PPV23 using the “checkerboard” method. Strains requiring further serotyping were analyzed using the Quellung reaction. Strains that could not be serotyped using conventional serological methods were further analyzed by multiplex polymerase chain reaction (PCR), following the primer sequences and reaction conditions described by the Rekha group. Isolates that remained untypeable after PCR analysis were classified as non-typeable (NT).

Study variables and data extraction

Clinical data were extracted from the electronic medical record system of Kunming Children`s Hospital. Variables included baseline demographic characteristics, presenting symptoms, laboratory test results, and clinical outcomes. Missing data were handled using multiple imputation, assuming data were missing at random. All variables used for model development were available at initial presentation and did not rely on specialized tests or longitudinal follow-up data, ensuring their feasibility in routine clinical practice.

Definition

Sequelae were defined as persistent neurological or functional impairments present at hospital discharge or during follow-up, including motor deficits, seizures, hearing impairment, cognitive impairment, and hydrocephalus requiring ongoing management. Disease course was defined as the time interval (in days) from the onset of clinical symptoms to hospital admission. IPD was diagnosed when S. pneumoniae was isolated from normally sterile sites, including cerebrospinal fluid, peripheral blood, or bone marrow, using culture-based microbiological methods. Pneumococcal meningitis was diagnosed based on compatible clinical manifestations (such as fever, headache, vomiting, altered consciousness, or meningeal signs) together with cerebrospinal fluid abnormalities and/or isolation of S. pneumoniae from cerebrospinal fluid. Poor outcome was defined as in-hospital death or treatment abandonment (discharge against medical advice).

Model development

A heatmap was first used to visualize the correlations among variables to assess potential multicollinearity. Least absolute shrinkage and selection operator (LASSO) regression was then employed to select key variables. Six machine learning models were constructed and evaluated using the area under the receiver operating characteristic curve (AUC), F1 score, accuracy, sensitivity, and specificity. Decision curve analysis (DCA) was used to evaluate the clinical applicability of each model. A nomogram was developed to predict the individual risk of S. pneumoniae meningitis.

Statistical analysis

All statistical analyses were performed using R software (version 4.4.1). Continuous variables with a normal distribution were expressed as mean ± standard deviation (x̄ ± s) and compared between groups using the independent-sample t-test. Non-normally distributed continuous variables were presented as median and interquartile range [M (IQR)] and compared using the Mann–Whitney U test. Categorical variables were expressed as counts and percentages [n (%)] and compared using the χ² test or Fisher’s exact test, as appropriate. A two-sided p-value < 0.05 was considered statistically significant.

Results

Basic information

This study included 65 pediatric cases of IPD identified between 2020 and 2024 ( Fig. 1 ). The annual number of cases fluctuated over the study period and appeared to increase overall. In 2020, 7 cases (10.8%) were reported, while the number rose to 18 cases (27.7%) in 2024 ( Fig. 2 a ).

Flow chart of this study
Flow chart of this study
Annual, seasonal, and serotype distributions of invasive pneumococcal disease in children.( a ) Annual changes in the incidence of pediatric invasive pneumococcal disease from 202…
Annual, seasonal, and serotype distributions of invasive pneumococcal disease in children.( a ) Annual changes in the incidence of pediatric invasive pneumococcal disease from 2020 to 2024. ( b ) Seasonal variation in pediatric invasive pneumococcal disease incidence. ( c ) Serotype distribution of invasive pneumococcal disease among children, presented as a percentage of total isolates

Regarding seasonal distribution ( Fig. 2 b ) , autumn was the predominant season for IPD onset, accounting for 21 cases (32.3%), followed by spring with 17 cases (26.2%) and summer with 16 cases (24.6%).

A total of 65 Streptococcus pneumoniae isolates were included in the serotype analysis. Serotype distribution was analyzed solely for descriptive and epidemiological characterization of the study population and was not incorporated into machine-learning model development or feature selection. Serotypes were successfully identified in 63 isolates (96.9%), with predominant serotypes including 19 F (16 cases, 25.8%), 19 A (13 cases, 20.9%), and 14 (11 cases, 17.7%) ( Fig. 2 c ). Two isolates (3.1%) were classified as non-typeable (NT). Less frequent types included 6B (6 cases, 9.7%), 15 A and 16 F (3 cases, each 4.8%), while other serotypes such as 11 A, 6 A, 23 F, 20, 6 C, 15B, and 18 C collectively accounted for less than 15% of total cases.

Comparison of clinical characteristics between the meningitis and non-meningitis groups

A total of 65 pediatric patients with IPD were included, comprising 39 males (60%) and 26 females (40%), with no statistically significant difference in sex distribution between the two groups ( p = 0.51). The overall median age was 3.4 years. The median age in the meningitis group was 4.4 years, while that in the non-meningitis group was 2.5years, with no statistically significant difference ( p = 0.08). Weight also showed no significant difference between the two groups ( p = 0.27). After adjustment for age, weight-for-age z-scores showed no significant difference between the two groups ( p = 0.19).

Notably, the disease duration in the meningitis group was significantly shorter than that in the non-meningitis group (median 4 days vs. 11.5 days, p < 0.001). The distribution of underlying disease did not differ significantly between the groups ( p = 0.453).

In terms of serotype distribution, 19 F (16 cases, 25.8%), 19 A (13 cases, 20.9%), and 14 (11 cases, 17.7%) were the predominant serotypes, with no significant difference between the groups ( p = 0.410). (see Table 1 ).

Table 1.

Comparison of clinical characteristics, laboratory findings, and outcomes between pediatric patients with and without meningitis in invasive pneumococcal disease

VariablesTotal ( n = 65)Non-Meningitis ( n = 28)Meningitis ( n = 37)p
Basic Information
Gender, n (%)0.506
Male39 (60)15 (54)24 (65)
Female26 (40)13 (46)13 (35)
Age (years), Median (Q1, Q3)3.42 (1, 5.92)2.46 (1, 3.92)4.42 (1, 6.33)0.078
Weight (kg), Median (Q1, Q3)12.5 (9, 18.7)11.5 (9.3, 16)15 (8.5, 19.5)0.274
Disease duration (days), Median (Q1, Q3)6 (2, 14)11.5 (7, 16.25)4 (2, 6)< 0.001
Underlying Disease, n (%)0.453
NO58 (89)24 (86)34 (92)
YES7 (11)4 (14)3 (8)
Source of Sample
Cerebrospinal Fluid, n (%)< 0.001
NO29 (45)27 (96)2 (5)
YES36 (55)1 (4)35 (95)
Blood, n (%)< 0.001
NO38 (58)8 (29)30 (81)
YES27 (42)20 (71)7 (19)
Pleural Fluid, n (%)0.005
NO59 (91)22 (79)37 (100)
YES6 (9)6 (21)0 (0)
Pus, n (%)0.431
NO64 (98)27 (96)37 (100)
YES1 (2)1 (4)0 (0)
Bronchoalveolar Lavage Fluid, n (%)0.182
NO63 (97)26 (93)37 (100)
YES2 (3)2 (7)0 (0)
Symptoms and Signs
Duration of fever, Median (Q1,Q3), days4 (2, 8)6.5 (1.75, 11.75)3 (2, 6)0.074
Fever, n (%)0.573
No3 (5)2 (7)1 (3)
Yes62 (95)26 (93)36 (97)
Cough, n (%)0.132
No53 (82)20 (71)33 (89)
Yes12 (18)8 (29)4 (11)
Headache, n (%)0.033
No59 (91)28 (100)31 (84)
Yes6 (9)0 (0)6 (16)
Vomiting, n (%)0.006
No48 (74)26 (93)22 (59)
Yes17 (26)2 (7)15 (41)
Lethargy, n (%)0.573
No62 (95)26 (93)36 (97)
Yes3 (5)2 (7)1 (3)
Altered consciousness, n (%)1
No61 (94)26 (93)35 (95)
Yes4 (6)2 (7)2 (5)
Seizure, n (%)0.502
No63 (97)28 (100)35 (95)
Yes2 (3)0 (0)2 (5)
Nuchal rigidity, n (%)0.001
No52 (80)28 (100)24 (65)
Yes13 (20)0 (0)13 (35)
Bulging fontanelle, n (%)0.128
No61 (94)28 (100)33 (89)
Yes4 (6)0 (0)4 (11)
Laboratory Tests
White cell count (WBC,10⁹/L), Median (Q1, Q3)14.58 (8.94, 20.36)12.66 (6.49, 19.71)17.42 (10.25, 21.72)0.12
Neutrophil ratio (N, %), Median (Q1, Q3)76 (58.4, 87.8)64.67 (45.1, 78.67)82.4 (71.4, 91.2)< 0.001
Lymphocyte ratio (L, %), Median (Q1, Q3)15.2 (8.1, 28.6)23.85 (11.88, 40.1)11.9 (6.3, 20.2)0.003
Absolute neutrophil count (ANC, 10⁹/L), Median (Q1, Q3)10.34 (5.74, 17.42)8.49 (2.73, 13.74)11.63 (8.1, 18.97)0.023
Absolute lymphocyte count (ALC, 10⁹/L), Median (Q1, Q3)2.12 (1.07, 3.67)2.54 (1.89, 4.41)1.64 (0.76, 2.79)0.032
Hemoglobin (HGB, g/L), Median (Q1, Q3)110 (98, 123)109 (97.75, 123)112 (99, 124)0.667
C-reactive protein (CRP, mg/L), Median (Q1, Q3)127.63 (37.33, 200)42.83 (9.77, 137.3)177.9 (105.94, 200)< 0.001
Platelet count (PLT, 10⁹/L), Median (Q1, Q3)272 (211, 416)323.5 (223.25, 583.25)254 (211, 354)0.12
Alanine aminotransferase (ALT, U/L), Median (Q1, Q3)21 (10, 42)15 (9, 29)23 (13, 55)0.134
Aspartate aminotransferase (AST, U/L), Median (Q1, Q3)39 (26, 75)37 (27, 80.75)39.7 (23, 74)0.995
Albumin (ALB, g/L), Mean ± SD32.28 ± 6.1933.02 ± 7.0431.72 ± 5.510.422
Lactate dehydrogenase (LDH, U/L), Median (Q1, Q3)346 (271, 529)369 (282.25, 585)344 (255, 401)0.238
Creatine kinase (CK, U/L), Median (Q1, Q3)55 (26, 129)36.5 (24.5, 68)57.6 (27, 221)0.185
Creatine kinase-MB (CK-MB, U/L), Median (Q1, Q3)18 (12, 26)18.5 (12.75, 25.25)18 (12, 27)0.806
Urea nitrogen (BUN, mmol/L), Median (Q1, Q3)3.58 (2.7, 4.38)4.02 (2.95, 5.1)3.29 (2.55, 3.92)0.055
Creatinine (Cr, µmol/L), Median (Q1, Q3)23 (16.99, 31)22 (16.69, 29.55)23.17 (16.99, 31)0.542
Uric acid (UA, µmol/L), Median (Q1, Q3)193.9 (159, 300)221.5 (155.52, 310.6)188 (159.3, 286)0.386
Activated partial thromboplastin time (APTT, s), Median (Q1, Q3)37.3 (33.75, 43.5)37.6 (35.62, 43.1)37.2 (32.2, 43.5)0.346
Prothrombin time (PT, s), Median (Q1, Q3)14.4 (13.15, 15.8)13.65 (12.62, 14.83)14.7 (13.7, 16)0.043
Fibrinogen (Fbg, g/L), Mean ± SD5.95 ± 1.955.29 ± 26.41 ± 1.810.028
Procalcitonin (PCT, ng/mL), Median (Q1, Q3)7.07 (1.2, 30.91)1.33 (0.25, 7.54)10.24 (4.9, 46.07)0.001
Ferritin (µg/L), Median (Q1, Q3)252.2 (197.05, 522.7)222.2 (113.95, 291.5)318.2 (204.35, 1711.5)0.04
Intracranial Complications
Subdural empyema/effusion, n (%)0.253
No62 (95)28 (100)34 (92)
Yes3 (5)0 (0)3 (8)
Hydrocephalus, n (%)0.124
No57 (88)27 (96)30 (81)
Yes8 (12)1 (4)7 (19)
Intracranial hemorrhage, n (%)0.502
No63 (97)28 (100)35 (95)
Yes2 (3)0 (0)2 (5)
Brain abscess, n (%)0.253
No62 (95)28 (100)34 (92)
Yes3 (5)0 (0)3 (8)
Critical Manifestations on Admission
Mechanical ventilation, n (%)0.775
No51 (78)21 (75)30 (81)
Yes14 (22)7 (25)7 (19)
Septic shock, n (%)1
No60 (92)26 (93)34 (92)
Yes5 (8)2 (7)3 (8)
Coma, n (%)1
No59 (91)25 (89)34 (92)
Yes6 (9)3 (11)3 (8)
Outcomes
Length of hospital stay (days), Median (Q1, Q3)17 (10, 31)12.5 (7.75, 26)22 (14, 32)0.091
Total hospitalization cost (CNY), Median (Q1, Q3)16242.96 (7140.17, 25831.55)11930.83 (4270.23, 21008.86)17075.95 (9383.3, 26441.28)0.155
ICU admission, n (%)0.115
No31 (48)17 (61)14 (38)
Yes34 (52)11 (39)23 (62)
Recovered, n (%)0.234
No52 (80)20 (71)32 (86)
Yes13 (20)8 (29)5 (14)
Improved, n (%)0.95
No20 (31)8 (29)12 (32)
Yes45 (69)20 (71)25 (68)
Sequelae, n (%)0.003
No55 (85)28 (100)27 (73)
Yes10 (15)0 (0)10 (27)
Poor outcome, n (%)0.167
No55 (85)26 (93)29 (78)
Yes10 (15)2 (7)8 (22)

Symptoms and signs

Regarding clinical manifestations, fever was observed in 62 cases (96%) of cases, while cough occurred in 12 cases (18%). Neurological symptoms were significantly more frequent in the meningitis group, with statistically significant differences in the occurrence of headache 〔6 cases(16%), p = 0.033〕, vomiting 〔15 cases (41%), p = 0.006〕, and nuchal rigidity 〔13 cases(35%), p = 0.001 〕.

In contrast, symptoms such as lethargy, altered consciousness, seizure, and bulging fontanelle showed no statistically significant differences between the two groups.

Laboratory findings

Laboratory results revealed a significantly elevated neutrophil ratio in the meningitis group compared with the non-meningitis group (82.4% vs. 64.7%, p < 0.001), whereas both the lymphocyte ratio ( p = 0.003) and absolute lymphocyte count (ALC) ( p = 0.032) were markedly decreased.

The absolute neutrophil count (ANC) was higher in the meningitis group ( p = 0.023), accompanied by a significantly elevated C-reactive protein (CRP) level (median 177.9 mg/L vs. 42.8 mg/L, p < 0.001).

In addition, coagulation and inflammation-related parameters, including fibrinogen (Fbg) ( p = 0.028), prothrombin time (PT) ( p = 0.043), ferritin ( p = 0.040)and procalcitonin (PCT) ( p = 0.001), were significantly increased in the meningitis group.

Other hematologic and biochemical indices, such as WBC, ALT, AST, LDH, and renal function parameters, showed no statistically significant differences between the two groups.

Lumbar puncture was performed in all meningitis cases (37/37) and in selected non-meningitis cases (5/28) when CNS infection was clinically suspected. Cerebrospinal fluid analysis revealed marked inflammatory changes, with a median CSF white blood cell count of 1856/µL (Q1–Q3: 708–6556) and neutrophil predominance 0.78 (0.689–0.861). CSF glucose levels were decreased [0.20 mmol/L (0.07–1.02)], CSF protein levels were elevated [1.52 g/L (1.12–2.30)], and CSF chloride levels were relatively reduced [116.3 mmol/L (109.1–122.0)].

Intracranial complications and critical manifestations

Intracranial complications such as subdural empyema/effusion (3 cases, 8%), hydrocephalus (7 cases, 19%), and brain abscess (3 cases, 8%) were observed exclusively in the meningitis group; because no such events occurred in the non-meningitis group, statistical comparisons between groups were not applicable.

Similarly, there were no significant differences between the meningitis and non-meningitis groups in the incidence of mechanical ventilation, septic shock, or coma (all p > 0.05).

Outcomes

The meningitis group exhibited a longer median length of hospital stay (22 days vs. 12.5 days), though the difference was not statistically significant ( p = 0.091). ICU admission was more frequent in the meningitis group 〔23 cases (62%) vs. 11 cases (39%), p = 0.115〕.

Notably, the incidence of sequelae was significantly higher in the meningitis group 〔10 cases (27%) vs. 0 cases (0%), p = 0.003〕.

Although poor outcomes and mortality were higher in the meningitis group than in the non-meningitis group 〔8 cases (22%) vs. 2 cases (7%)〕, the differences did not reach statistical significance ( p = 0.167).

Variable selection

To construct a predictive model and identify key variables associated with the occurrence of meningitis, Pearson’s correlation coefficient matrix was first computed among all variables ( Fig. 3 c ) to assess and eliminate multicollinearity. The results indicated moderate positive correlations among certain inflammatory and coagulation parameters (e.g., LDH, AST/ALT), suggesting the potential presence of multicollinearity among candidate variables. To mitigate the impact of multicollinearity on model stability, the LASSO regression method was subsequently employed for feature selection.

Feature selection and correlation analysis for meningitis prediction in pediatric invasive pneumococcal disease. (a) LASSO regression coefficient profiles for all variables as a f…
Feature selection and correlation analysis for meningitis prediction in pediatric invasive pneumococcal disease. (a) LASSO regression coefficient profiles for all variables as a function of the regularization parameter (log λ). (b) The Binomial Deviance Curve Plotted Against Log(λ), with Vertical Dotted Lines Indicating the Optimal Parameter (λ) for the LASSO Model. 17 Variables with Non-zero Coefficients were Selected Using the Lambda. min Criterion. (c) Correlation heatmap of clinical and laboratory variables. The size and color of circles indicate the strength and direction of correlations. (d) Coefficients of selected variables from the LASSO model. Positive values indicate variables positively associated with meningitis, while negative values indicate inverse associations

All clinical characteristics, laboratory indicators, and demographic variables were included in the LASSO regression analysis. Figure 3 a illustrated the progressive shrinkage of regression coefficients as the penalty parameter λ (Lambda) increased. With increasing λ, most variable coefficients gradually approached zero, retaining only those significantly associated with meningitis. The optimal penalty parameter was determined through tenfold cross-validation ( Fig. 3 b ) , and variables with non-zero coefficients were selected based on the λ.min criterion. Ultimately, 17 variables with non-zero coefficients were selected under the λ.min condition.

As shown in Fig. 3 d, among these 17 variables, CRP, age, ALT, nuchal rigidity, vomiting, and headache were positively correlated with meningitis, whereas disease course, underlying disease, and BUN were negatively correlated. CRP exhibited the highest coefficient (3.186), representing the strongest positive predictor, while disease course (–3.024) and BUN (–3.396) were the principal negative predictors.

However, from a clinical perspective, a model incorporating 17 variables would be excessively complex and impractical for routine application. To enhance model simplicity and usability, variable selection was further refined using the λ.1se criterion (λ within one standard error of the minimum). Ultimately, six variables with non-zero coefficients (headache, vomiting, nuchal rigidity, disease course, CRP, and BUN) were retained. These variables were considered the most clinically representative predictors and were subsequently used for model construction and validation.

Model evaluation

Based on the dataset, six machine learning models were developed to predict the risk of meningitis, namely Logistic Regression, K-Nearest Neighbor (KNN), Naive Bayes (NB), Multilayer Perceptron (MLP), Random Forest (RF), and XGBoost. The receiver operating characteristic (ROC) curves of each model are presented in Figs. 4 a–f, and the performance metrics are summarized in Table 2 .

Performance evaluation of different machine learning models for predicting pediatric invasive pneumococcal disease The ROC curves for Logistic Regression ( a ), KNN ( b ), Naive B…
Performance evaluation of different machine learning models for predicting pediatric invasive pneumococcal disease The ROC curves for Logistic Regression ( a ), KNN ( b ), Naive Bayes ( c ), MLP ( d ), Random Forest ( e ), and XGBoost ( f ), with AUC values indicated in each subplot. The decision curve analysis (DCA) in the lower panel shows the net benefit of each model across varying threshold probabilities

Table 2.

Performance metrics of six machine learning models for predicting pneumococcal meningitis

ModelAUC (95%CI)F1AccuracySensitivitySpecificity
Logistic Regression0.942(0.89–0.994)0.8420.8620.8570.865
KNN0.718(0.609–0.827)0.6530.7380.5710.865
Naive Bayes0.936(0.88–0.991)0.7370.69210.459
MLP0.947(0.899–0.995)0.8520.8770.8210.919
Random Forest0.928(0.869–0.987)0.820.8310.8930.784
XGBoost0.918(0.851–0.986)0.8420.8620.8570.865

Among the models, the Logistic Regression model demonstrated excellent performance, with an AUC of 0.942 (95% CI: 0.89–0.994), accuracy of 0.862, sensitivity of 0.857, and specificity of 0.865. The MLP model achieved the highest AUC (0.947, 95% CI: 0.899–0.995), an F1 score of 0.852, accuracy of 0.877, and the highest specificity of 0.919, indicating strong discriminative ability.

Considering the overall performance indicators (AUC, F1 score, accuracy, sensitivity, and specificity), both the Logistic Regression and MLP models exhibited superior predictive accuracy and stability, representing the two best-performing algorithms in this study. To further assess their potential clinical utility, decision DCA was performed ( Fig. 4 g ) . The results demonstrated that across most threshold probability ranges, the Logistic Regression and MLP models provided greater net benefit than the “treat all” or “treat none” strategies, indicating optimal performance in predicting clinically meaningful outcomes.

Model visualization

Based on the regression coefficients of the Logistic Regression model, a nomogram was constructed to predict the risk of pneumococcal meningitis in children ( Fig. 5 ) . The model incorporated six predictive variables: BUN, CRP, disease course, nuchal rigidity, vomiting, and headache. Each variable corresponds to a scoring axis (Points), and the sum of all variable scores yields the “Total Points.” By locating the total score on the probability scale at the bottom of the nomogram, the predicted probability of meningitis for an individual patient can be determined.

Predictive nomogram for Streptococcus pneumoniae meningitis in children. The model was developed based on six variables: blood urea nitrogen (BUN, mmol/L), C-reactive protein (CRP…
Predictive nomogram for Streptococcus pneumoniae meningitis in children. The model was developed based on six variables: blood urea nitrogen (BUN, mmol/L), C-reactive protein (CRP, mg/L), disease course (days), nuchal rigidity, vomiting, and headache. Each predictor is assigned a score on the “Points” scale; the sum of all points corresponds to the “Total points,” which maps to the predicted probability of meningitis shown at the bottom of the figure. For instance, if a child presents with the following clinical characteristics: BUN = 7 mmol/L (37 points), CRP = 40 mg/L (38 points), disease course = 1 day (50 points), and absence of nuchal rigidity, Vomiting, and Headache (3 × 43 = 126 points), the total score would be approximately 251 points. According to the probability scale at the bottom of the nomogram (as indicated by the red arrow in the figure), this corresponds to a predicted probability of 0.237, suggesting an estimated 23.7% risk of developing pneumococcal meningitis

Discussion

This study retrospectively analyzed 65 pediatric cases of IPD diagnosed at Kunming Children’s Hospital between 2020 and 2024. It systematically examined the clinical characteristics, laboratory indicators, and outcome features of the patients, and utilized six machine learning algorithms to construct a meningitis risk prediction model. Through LASSO regression, six variables (BUN, CRP, disease course, nuchal rigidity, vomiting, and headache) were selected and a clinically practical nomogram was established. The model demonstrated strong performance in terms of accuracy, sensitivity, and clinical applicability, providing a new tool for early identification of pneumococcal meningitis in children, with significant potential clinical value.

The study results indicated that the detection of invasive pneumococcal infection in this cohort was primarily derived from cerebrospinal fluid and blood, which differs from findings in other related studies. A retrospective study from Canada analyzed 888 cases over a 20-year period and reported that, among patients with infection site data, bacteremia was the most common infection type (59.2%), followed by bacteremic pneumonia (25.9%), with meningitis accounting for only 8.8% [ 19 ]. However, a separate study [ 20 ] from England reviewed a decade of invasive streptococcal data, found that meningitis accounted for 32.8% of invasive streptococcal infections, nearly the same as pneumonia at 36.3%, which is similar to the proportion observed in this study. This result suggested that, despite the widespread use of pneumococcal vaccines leading to a decrease in overall incidence, meningitis still represent a substantial proportion of IPD. Given its exceptionally high mortality rate and severe long-term sequelae, clinicians should maintain a high level of vigilance for children with IPD who present with neurological symptoms, as early identification and intervention are crucial.

The predominant serotypes detected in this study were 19 F, 19 A, and 14, which together accounted for more than 60% of all isolated strains. These serotypes are included in the coverage of the currently used 13-valent pneumococcal conjugate vaccine (PCV13) in China, yet they remain the primary causative serotypes of pediatric IPD, suggesting that vaccine coverage in this region may be insufficient.

Similar findings [ 21 , 22 ] have been reported in other regions of China, such as pediatric studies in Suzhou and Shenzhen, where 19 F and 19 A were still common invasive strains. In contrast, in Western countries with higher PCV13 vaccination coverage, there has been a significant reduction in 19 F and 19 A, with an increase in non-vaccine serotypes [ 23 , 24 ]. This indicated that while some regions in China are still in the vaccine-serotype-dominant phase, there is a need for enhanced vaccination efforts and monitoring of non-vaccine serotypes.

In the outcome analysis, this study found that children in the meningitis group had longer hospital stays, higher ICU admission rates, and a significantly higher incidence of sequelae compared to the non-meningitis group (27% vs. 0%, p = 0.003). Some children in the meningitis group developed neurological complications, such as hydrocephalus and subdural effusion. Although the difference in mortality between the two groups did not reach statistical significance, a clear trend toward poorer outcomes was observed in the meningitis group. These findings are consistent with previous studies [ 16 , 25 ] and highlight that meningitis-associated IPD still carries a high risk of disability. While the etiology in these cases is well-defined, the rapid progression of poor outcomes suggests that reliance on microbiological diagnosis alone may lead to delays. Early risk prediction, therefore, plays a crucial role in improving clinical outcomes.

This study identified six key predictive factors associated with the occurrence of meningitis: headache, vomiting, nuchal rigidity, disease course, CRP, and BUN. Among these, headache and vomiting represent typical manifestations of central nervous system involvement, while nuchal rigidity is a sign of meningeal irritation, all of which are classic clinical symptoms of meningitis [ 26 ]. Elevated CRP reflects a strong systemic inflammatory response, and higher levels in cases with central nervous system involvement may indicate a highly invasive pathogen and an intense immune response [ 27 ]. A shorter disease course may suggest rapid disease progression and a shorter window for pathogen entry into the central nervous system. Reduced BUN levels may be associated with a high metabolic state linked to systemic inflammation and altered renal perfusion. These indicators provide insights into the pathophysiological processes underlying the dissemination of IPD from the bloodstream to the central nervous system, although the specific mechanisms require further investigation.

This study has several limitations. First, it is a single-center, retrospective study, which introduces potential selection bias. Second, the sample size is relatively small, limiting the representativeness of the findings. Given the limited number of meningitis events and the inclusion of multiple predictive variables, there is a potential risk of model overfitting, which may result in an overestimation of predictive performance. Although multiple imputation was applied to address missing data, residual bias related to incomplete or unevenly recorded variables cannot be fully excluded. The availability of certain clinical features (such as neurological signs) was unbalanced across cases, which may have influenced feature selection and model performance. In addition, the model was developed and evaluated using internal data only, without external or temporal validation, and calibration performance was not assessed. These factors substantially limit the generalizability and clinical applicability of the model. Therefore, the proposed score should be regarded as a preliminary, exploratory tool rather than one intended for direct clinical decision-making. Furthermore, as all cases were derived from the Yunnan region, the results may be influenced by regional variations in circulating strains and vaccination coverage. Further validation in multi-center, large-scale cohorts is required to confirm the robustness and accuracy of these findings.

Conclusion

Pediatric pneumococcal meningitis remains associated with high disability rates and poor prognosis. The machine learning-based predictive model integrating clinical symptoms and laboratory indicators demonstrated a discriminative ability and may may hold the potential to be further developed into a valuable tool for early identification of high-risk children and optimizing clinical decision-making.

Acknowledgements

The authors report no conflicts of interest in this work.

Author contributions

YL and YW conducted data screening and quality evaluation. YL, MM, and YW helped design study. YL and MM wrote the main manuscript text. YL and YW made contributions to the revision of the paper. MT, XM, DJ, HW, LY, YG, YZ, HJ, PC, RL, and QT did a lot of data collection work. All authors revised, read and approved the final manuscript.

Funding

This work was supported by the Joint project of Yunnan Science and Technology Department Kunming Medical University (202101AY070001—217); Kunming Health Science and technology personnel training project (2020 (Province)-21); Yunnan key specialty of pediatric infection (Training and education program/Kunming key specialty of pediatric infection; Key Science and Technology Program of Yunnan Province (No.202102AA100019); Medical Science and Technology Leading Talent (Top-ten Program)(2025-SW (Leading) − 03); Yunnan Provincial Special Fund for Cultivating High-Level Healthcare Technology Professionals (H-2024061), Health Science and Technology Personnel Training Foundation of Kunming (2024-SW (academic leader)-16).

Data availability

The datasets generated and/or analyzed during the current study are not publicly available due to our research center policy, but are available from the corresponding author on reason-able request.

Declarations

Ethics approval and consent to participate

This study was approved by the ethics committee of Ethics Review Committee of the Children’s Hospital of Kunming Medical University. Due to the retrospective design of the study, the requirement for informed consent was waived by the ethics committee of Ethics Review Committee of the Children’s Hospital of Kunming Medical University. In addition, all methods were carried out in accordance with relevant guidelines and regulations or Declaration of Helsinki.

Consent for publication

Not applicable.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Yonghan Luo and Mingbiao Ma contributed equally to this work.

References

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The datasets generated and/or analyzed during the current study are not publicly available due to our research center policy, but are available from the corresponding author on reason-able request.

Предметные рубрики MeSH

Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…

История · было → стало

Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.

Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.