Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Artif. Intell., 11 December 2025

Sec. Medicine and Public Health

Volume 8 - 2025 | https://doi.org/10.3389/frai.2025.1692207

This article is part of the Research TopicArtificial Intelligence and Machine Learning in PediatricsView all 12 articles

Association of Shanghai air pollution with postoperative infection in adolescent orthopedic patients: a study using a deep learning-based evolutionary model

Yufeng Wang&#x;Yufeng WangYang Yuan&#x;Yang YuanYang LiuYang LiuHaoqi Cai
Haoqi Cai*
  • Shanghai Children's Medical Center, Shanghai Jiao Tong University School of Medicine, Shanghai, China

Background: Surgical site infections (SSI) represent severe complications in adolescent orthopedic surgery. Shanghai’s complex air pollution profile creates a critical context to investigate multi-pollutant impacts on SSI risk in this vulnerable population.

Methods: We analyzed 32,261 adolescent SSI cases from Shanghai (2019–2024) alongside high-resolution pollution/meteorological data. An evolutionary deep learning model (CNN-BiGRU-Attention optimized by Improved StarFish Algorithm) and generalized additive models (GAMs) assessed lagged effects, age/gender stratification, and concentration-response relationships.

Results: NO2 and SO2 showed significantly positive associations with SSI risk at lag0 (concurrent day); O3 exhibited protective effects (strongest at lag05: −2.396% [95% CI: −3.349% to −1.443%] per 10 μg/m3 increase); Age stratification: 7–14 ages groups demonstrated heightened sensitivity to NO2/SO2. O3 effects varied across age groups; Gender differences: O3’s negative association was stronger in males; Dose–response: NO2/SO2 showed monotonic increases with no safety thresholds; O3 displayed a straight line curve.

Conclusion: Multi-pollutant exposure modulates SSI risk in adolescents, with NO2/SO2 as risk factors and O3 showing context-dependent protection. Deep learning identified SO2/NO2/O3 as dominant predictors, supporting perioperative air-quality interventions.

1 Introduction

Surgical site infections (SSI) are catastrophic complications following orthopedic procedures such as joint replacements and fracture fixation (Kolasiński, 2018; Tan et al., 2020; Tang et al., 2024). They prolong hospitalization, increase healthcare burdens, and may cause permanent dysfunction via deep infections like osteomyelitis (Tucci et al., 2019; Bath et al., 2022; Hammoor et al., 2021; Salášek et al., 2023). Despite advances in aseptic techniques, global SSI rates remain high, particularly among adolescents—a group with open growth plates, rich vascularity, and distinct immune responses that may heighten vulnerability to exogenous pathogens (Rudic et al., 2023; Mallet et al., 2022).

Recent environmental epidemiology reveals that air pollutants can breach traditional infection control barriers: PM2.5 transports endotoxins across alveolar barriers, activating systemic inflammation via Toll-like receptor 4 (TLR4) and impairing fibroblast migration/angiogenesis; NO2 triggers excessive neutrophil extracellular trap (NET) release, creating DNA scaffolds for bacterial biofilm formation; and while ozone (O3) has broad-spectrum antimicrobial properties, chronic exposure depletes surfactant protein A (SP-A), compromising macrophage clearance of Staphylococcus aureus. These findings collectively suggest a causal chain linking environmental exposure to SSI pathogenesis (Chehrassan et al., 2024; Liu et al., 2025).

As the core megalopolis of China’s Yangtze River Delta, Shanghai exhibits a complex air pollution profile ideal for such investigations (Liu et al., 2024). Monitoring data reveal a seasonal PM2.5-O3 antagonism: coal-driven emissions elevate PM2.5/SO2 in winter, whereas intense photochemistry increases O3 in summer (Wang et al., 2025). This “multi-pollutant alternation” dynamically influences surgical wound microenvironments—animal studies confirm PM2.5 suppresses TGF-β1 (a key healing factor) by >50%, while clinical cohorts report 12.7% increased deep infection risk per 10 μg/m3 SO2 rise (Chehrassan et al., 2024; Li et al., 2025). Adolescents face amplified risks due to pollutant bioaccumulation in metabolically active growth plates and Th1/Th2 immune imbalance during puberty (Chen et al., 2019; Matia-Garcia et al., 2021). However, existing studies focus on adults or single pollutants, neglecting multi-pollutant synergies and adolescent susceptibility.

This study leverages Shanghai’s 2019–2024 SSI data to address three questions: (1) Do PM2.5, NO2, SO2, and O3 exhibit pollutant-specific exposure windows? (2) Are adolescents hypersensitive to certain pollutants? (3) Do concentration-response curves show safety thresholds? By integrating environmental monitoring, deep learning, and epidemiological frameworks, we aim to build a “pollutant exposure–immune dysregulation–infection risk” cascade model to inform pediatric orthopedic center siting and perioperative air-quality management. We focused exclusively on Shanghai for several reasons: First, as a coastal megacity with a stable, large population and a well-defined urban core, it provides a contained environment to study urban pollution effects with minimized population mobility confounding factors. Second, its distinct seasonal pollution pattern (PM2.5/SO2-dominated in winter vs. O3-dominated in summer) offers a natural experiment to investigate multi-pollutant impacts. While this design limits immediate generalizability to rural or industrially distinct regions, it allows for a rigorous, high-resolution analysis within a critical and representative urban context.

2 Methods

2.1 Data collection

Shanghai, situated on the estuary of the Yangtze River along China’s east coast, is a major port city with a predominantly flat topography. Administratively, it is divided into 16 municipal districts, including the bustling central districts like Huangpu, Xuhui, and Jing’an, the expansive Pudong New Area (east of the Huangpu River, home to the financial hub Lujiazui), and outer districts such as Minhang, Baoshan, Jiading, and Songjiang. Shanghai experiences a humid subtropical monsoon climate, with a permanent resident population exceeding 24 million people, Shanghai stands as one of the most populous cities in the world and is a global center for finance, trade, and transportation. Information regarding daily outpatient visits for SSI between January 1, 2019, and December 31, 2024, was obtained from Zhongshan Hospital and Ruijin Hospital. Clinicians in the outpatient departments entered medical details into the hospital’s computerized information system. Diagnoses of SSI were verified using the International Classification of Diseases, Tenth Revision (ICD-10) (Yanosky et al., 2024), along with clinical diagnostic criteria. The data were organized by diagnosis and personal attributes, including gender, age, and place of residence. To more precisely assess the influence of air pollution exposure in Shanghai’s primary urban zone on SSI outpatient numbers, the data were refined to exclude patients whose permanent residences were outside the city’s main urban area. The records were maintained daily, with no dates missing from the dataset. The study also incorporated environmental factors by leveraging information from the ShangHai Environmental Monitoring Center. This information included the mean daily levels of multiple pollutants from 2019 to 2024, such as particulate matter (PM10 and PM2.5), ozone (O3), carbon monoxide (CO), nitrogen dioxide (NO2), and sulfur dioxide (SO2), Data was collected from 31 monitoring stations distributed across ShangHai’s urban areas. Based on the statistical analysis of outpatient data, we excluded individuals who permanently resided in four areas of Shanghai known for higher pollution levels: Kangqiao Industrial Park in Pudong New Area, the Nanda Area in Baoshan District, the Taopu Intelligence & Innovation Community in Putuo District, and the Wujing Area in Minhang District. The pollution levels in these four areas are comparatively severe, and their inclusion in the study could have introduced significant bias into the results. Consequently, patients from these areas were excluded from our study population, accounting for 2.64, 1.98, 0.73, and 0.56% of the total outpatient visits, respectively. Additionally, the research integrated meteorological variables, like mean daily relative humidity and temperature, sourced from the ShangHai Meteorological Bureau. Data quality control was rigorously performed. For clinical SSI data, cases with missing critical fields (e.g., diagnosis date, age) were excluded (<0.5% of total records). For air pollution and meteorological data, any station reporting consecutive missing values for over 24 h was flagged. Isolated missing values (constituting <3% of the total dataset) were imputed using a linear interpolation method. Pollutant concentrations falling outside physiologically plausible ranges were treated as erroneous and removed prior to analysis. The final dataset was complete for all analysis variables.

To address potential confounding from surgical volume variations, we obtained annual orthopedic surgery records from participating hospitals (Zhongshan/Ruijin, 2019–2024). Total adolescent orthopedic procedures remained stable across seasons (Cool season: 12,384 ± 1,203; Warm: 13,097 ± 1,415; p = 0.22, t-test), with no significant temporal trend (ß = −0.17%, p = 0.55, linear regression). Additionally, surgical case-mix was homogeneous: >92% were fracture repairs (ORIF/external fixation), and geographic distributions showed >85% patients resided within 5 km of their operating hospital (Supplementary Table S1). This consistency mitigates concerns that SSI outpatient fluctuations stem from procedural variability.

2.2 Evolutionary deep learning model

The proposed evolutionary deep learning model integrates a CNN-BiGRU-Attention architecture with swarm intelligence algorithms to optimize time-series data analysis. The CNN component extracts local spatiotemporal features, the BiGRU module captures long-short term dependencies, and the attention mechanism dynamically weights critical temporal segments. Through swarm intelligence-based hyperparameter optimization, key parameters including learning rate and convolutional kernel size are automatically tuned, thereby enhancing model generalizability and predictive performance. Figure 1 illustrates the architectural schematic.

Figure 1
Flowchart illustrating a predictive model for number of visits. Air pollution and meteorological data are fed into a CNN with layers for convolution, batch normalization, ReLU, and pooling. It connects to BiGRU layers and an attention layer, outputting visit numbers. The process includes hyperparameter optimization using a swarm intelligence algorithm, visualized in a parameter space graph.

Figure 1. Schematic diagram of the deep learning evolutionary model structure.

2.2.1 CNN-BiGRU-attention architecture

This hybrid architecture combines convolutional neural networks (CNN), bidirectional gated recurrent units (BiGRU), and attention mechanisms through four operational phases: ① Feature extraction: The CNN layer employs 1D convolutions with multiple filter banks to capture localized patterns in meteorological and pollution time-series data; ② Sequence modeling: Bidirectional GRU layers process the extracted features in forward and reverse temporal directions, learning hierarchical representations of long-range dependencies; ③ Attention weighting: A self-attention layer computes normalized importance scores (0–1 range) for each time step through scaled dot-product operations, focusing on diagnostically relevant exposure windows; ④Predictive output: Weighted features are concatenated and processed through fully connected layers with sigmoid activation to generate final predictions.

2.2.2 Swarm intelligence optimization

While the CNN-BiGRU-Attention architecture effectively extracts deep temporal features from meteorological and environmental pollution data, the predictive accuracy of the model remains critically dependent on hyperparameter configuration. Conventional hyperparameter optimization methods, such as grid search, often exhibit suboptimal precision and computational inefficiency. To address these limitations, this study leverages the global optimization capabilities of swarm intelligence algorithms, integrating them with deep learning to optimize three pivotal hyperparameters: learning rate, BiGRU convolutional kernel size, and neuron count.

Building upon these foundations, we propose an enhanced swarm intelligence algorithm - the Improved StarFish Optimization Algorithm (ISFOA) - through strategic modifications to the baseline StarFish Optimization Algorithm (SFOA) (Zhong et al., 2025). Two key algorithmic advancements are implemented:

Chaotic population initialization

The Tent mapping equation governs initial population distribution to ensure uniform coverage of the hyperparameter search space:

Z t + 1 = { Z t α , 0 Z t α 1 Z t 1 α , α < Z t < 1

The chaotic sequence is subsequently mapped to the solution space through linear transformation:

x id = x L + ( x U x L ) z id
where xid denotes the position of the ith starfish individual in the dth dimension, xUxL represent the upper/lower bounds of the search space, and zid corresponds to the chaotic sequence value.

Adaptive lens imaging opposition learning

To counteract population diversity loss during later iterations, a dynamic opposition strategy is implemented:

x j = a j + b j 2 + a j + b j 2 k x j k
where k, the regulating factor, adaptively evolves as:
k = ( 1 + ( t T ) 1 2 ) 10

2.2.3 Model validation

To ensure model robustness and prevent overfitting, we employed a 5-fold time-series cross-validation strategy. The model’s performance was monitored using the loss on a held-out validation set (20% of training data), and early stopping was implemented with a patience of 10 epochs. We compared our proposed evolutionary deep learning model against several benchmarks, including Generalized Additive Models (GAM), Random Forest, and standalone CNN and GRU models. Performance was evaluated using Mean Absolute Error (MAE) and Root Mean Square Error (RMSE). The superior performance of our model is detailed in Supplementary Table S2.

2.3 Deep learning interpretability analysis

The interpretability of the constructed machine learning model was rigorously investigated through deep learning feature layer visualization and Shapley value analysis. Rooted in cooperative game theory, the Shapley value method offers a theoretically equitable mechanism to quantify individual feature contributions to model predictions by calculating their marginal explanatory impacts. Two specialized visualization tools were employed to decode the model’s decision logic: ① Shapley summary plot: Visualizes the distributional characteristics of feature contributions through scatter point density, where horizontal axis positioning reflects effect direction (positive/negative) and color intensity indicates covariate value magnitudes; ② Shapley feature importance plot: Ranks all input variables by their mean absolute Shapley values, with bar lengths proportional to their overall influence weights. This hierarchy explicitly reveals dominant environmental determinants (e.g., PM2.5 lag effects) and secondary meteorological factors in SSI risk prediction.

The synergistic application of these techniques enabled comprehensive interrogation of the model’s spatiotemporal reasoning patterns, particularly in identifying critical pollution exposure windows preceding SSI onset.

2.4 Traditional time-series analysis

The examination of SSI outpatient visit trends generally adheres to a Poisson distribution, often exhibiting a non-linear association with explanatory factors. Consequently, our study employed a generalized additive model (GAM) (Islam et al., 2024), supplemented by time-series analysis, to establish relationships between SSI outpatient visits, air pollution concentrations, and meteorological data organized chronologically.

During the construction of the Generalized Additive Model (GAM), various variables were integrated based on insights from prior research. The natural spline (ns) function was applied to calendar time, and the model’s performance was evaluated using the Akaike Information Criterion (AIC), where smaller AIC values indicated a more optimal fit. Furthermore, we assessed residual autocorrelations through partial autocorrelation functions (PACF) (Chen et al., 2025). Considering the AIC and PACF results alongside existing studies, our model allocated three degrees of freedom (df) per year to account for long-term trends and seasonal variations in SSI outpatient visits (Meng et al., 2023).

Additionally, to account for potential non-linear influences from weather conditions, we assigned four degrees of freedom (df) to relative humidity and eight degrees of freedom to average temperature. Finally, the variable ‘day of the week’ was incorporated as an additional categorical factor in the model (Tsai and Yang, 2024). The structure of the independent model is outlined as follows:

logE ( ) = βZt + DOW + ns ( time , df ) + ns ( temperature , 6 ) + ns ( humidity , 3 ) + Holiday + α

In our framework, E(Yt​) signifies the anticipated count of outpatient visits on day t, where β represents the logarithmic relative rate of visits associated with each unit rise in pollutant concentration. Zt denotes the pollutant levels on day tt, while DOW accounts for variations due to weekdays. The term ns(time, df) refers to the natural spline function applied to calendar time. Likewise, ns(temperature, df) and ns(humidity, df) are natural spline functions used to model temperature and humidity, with degrees of freedom set to 9 and 3, respectively. The ‘Holiday’ variable is included to account for fluctuations during holidays. The model’s intercept is represented by αα. For the two-pollutant model, a second pollutant is introduced into Zt to assess the combined impact of multiple pollutants.

To ensure the robustness of our findings, an extensive series of sensitivity analyses was performed. Initially, a single-pollutant model was employed to assess the relationship between air pollutants and SSI cases. Subsequently, we investigated various lag intervals, including individual day lags (1 to 5 days) and cumulative lag periods (lag 01, 03, 05), to analyze both short-term and extended effects of pollutant exposure. Additionally, dual-pollutant models were introduced to account for interactions between multiple pollutants. Age-specific and gender-specific analyses were also conducted to evaluate how pollution impacts vary across different age groups. Using the GAM approach, we plotted dose–response curves to illustrate the association between SSI outpatient visits and pollutant concentrations.

All analyses were conducted using R software (version 2.15.1) with the ‘mgcv’ package, and statistical significance was defined as a p-value below 0.05. The study evaluated variations in SSI outpatient visits corresponding to every 10 μg/m3 rise in daily air pollutant levels.

3 Results

3.1 Basic descriptive statistics

Table 1 provides an overview of the descriptive statistics. Between January 1, 2019, and December 31, 2024 (a total of 1,095 days), 32,261 SSI cases were recorded. The mean daily outpatient admissions amounted to 12.66. When categorized by age, the distribution was 10,46 (32.41%) for individuals under 6, 16,24 (50.35%) for those aged 7–14, and 5,56 (17.24%) for those 15–18. The average daily concentrations of air pollutants were 52.97 μg/m3 for SO2, 46.18 μg/m3 for PM2.5, 63.28 μg/m3 for NO2, 95.64 μg/m3 for PM₁₀, 1.38 mg/m3 for CO, and 67.76 μg/m3 for O3 (8-h maximum). The PM2.5/PM₁₀ ratio averaged 0.48, highlighting the prevalence of PM2.5. The mean daily relative humidity was 75.40%, while the average temperature was 18.21 °C. Annual orthopedic surgery volume exhibited no significant correlation with pollutant levels (r = −0.21 to 0.18, p > 0.05) and stable seasonal distribution (Figure 2). Case-mix consistency was confirmed: fracture repairs accounted for 92.8 ± 1.6% of all procedures across hospitals.

Table 1
www.frontiersin.org

Table 1. Summary statistics for daily outpatient visits, air pollutant levels, and meteorological data.

Figure 2
Bar and line chart showing the average daily surgeries and surgical site infection (SSI) cases from 2019 to 2024. Blue bars represent surgical volume, and red lines with circles show SSI fluctuations. Surgeries average around 20 to 25 per day, while SSI cases vary between approximately 12.4 to 13.8. The chart illustrates trends over time.

Figure 2. Temporal trends in surgical volume vs. SSI cases.

3.2 Construction of evolutionary deep learning model

The ISFOA demonstrated superior optimization performance (Supplementary Figures S1, S2), and its application to train the CNN-BiGRU-Attention model yielded the training dynamics shown in Supplementary Figure S3, feature visualization of the flatten layer output (Figure 3) revealed that SO2, NO2, and O3 concentrations exhibited the highest variation rates and magnitude in feature activation maps, indicating their dominant informational contribution to prediction outputs. Interpretability analysis further corroborated these findings, with SHAP value rankings identifying SO2, NO2, and O3 as the top three predictive determinants (Figure 4).

Figure 3
Four heatmaps labeled as Feature plots 1 to 4, showing various environmental features over time, including CO, SO₂, PM2.5, NO₂, PM10, Temperature, Relative Humidity, and O₃. Color gradients represent different values, with a scale included beside each plot.

Figure 3. Deep learning feature visualization.

Figure 4
Shapley Summary Plot on the left shows the impact of different predictors, like SO2 and NO2, on predictions with dot colors indicating predictor values. The Shapley Importance Plot on the right shows SO2 as the most influential predictor, followed by NO2 and O3, with horizontal bars representing mean absolute Shapley values.

Figure 4. SHAP analytical results. Left panel displays Shapley summary plot illustrating feature effect directions; Right panel shows Shapley importance ranking by absolute contribution values.

3.3 Spearman correlation analysis

Table 2 displays the Spearman correlation coefficients between meteorological factors and air pollutants. PM2.5, PM10, NO2, SO2, and CO generally demonstrated moderate to strong correlations with one another. With the exception of PM2.5, most pollutants exhibited negative associations with humidity or temperature. O3 displayed inverse correlations with PM2.5, PM10, NO2, SO2 and NO.

Table 2
www.frontiersin.org

Table 2. Spearman correlation coefficients between daily air pollutant concentrations and weather conditions.

3.4 Single pollutants models

Table 3 outlines the relationships between air pollutants and daily SSI outpatient visits across single-lag days (lag0–lag5) and cumulative exposure periods (lag 01, 03, 05). The effects are expressed as percentage changes (mean and 95% confidence intervals) in daily visits per 10 μg/m3 increase in PM2.5, PM10, NO2, SO2, and O3, or per 0.1 mg/m3 increase in CO. With the exception of O3, the most pronounced and statistically significant associations between air pollutants and SSI were observed at lag01. For NO2 and SO2, positive and statistically significant correlations were identified in both moving average exposure periods (lag01, lag03, and lag05) and single-lag days (lag0, lag1). O3 exhibited a negative association with SSI in cumulative exposure periods (lag 01, 03, 05) and single-lag days (lag1–lag5), with the most notable effect at lag05: a 10 μg/m3 rise in O3 was linked to a 2.396% (95% CI: 3.349, 1.443%) reduction in outpatient visits. Notably, PM2.5 and CO, despite showing significant Spearman correlations with other pollutants (Table 2), did not demonstrate statistically significant independent associations with SSI risk in the single-pollutant lag models, and thus were not the primary focus of subsequent stratified and interpretability analyses.

Table 3
www.frontiersin.org

Table 3. The lag effects for single pollutants.

3.5 Age models

Figure 5 illustrates the outcomes of age-specific analyses across various lag models. Three pollutants (NO2, SO2, and O3) exhibited distinct relationships with SSI outpatient visits depending on the lag model. Notably, the positive association of SO2 was only significant for the 7–14 age group at lag0-4 and lag01-03, while the positive association of NO2 was significant at lag 0, lag1, and lag 01 for both the <6 and 7–14 age groups. Neither SO2 nor NO2 demonstrated a significant relationship in the 15–18 age group at lag 01 to lag 05. In contrast, the most pronounced negative association of O3 was particularly significant for the 7–14 age group in the age-specific analysis, with stronger effects observed in this group compared to the overall population. Overall, more significant positive associations of SO2 and NO2 were identified for adults aged 7–14, whereas O3 showed a negative association with SSI in the 7–14 age group.

Figure 5
Forest plot showing percentage change in response to SO₂, NO₂, and O₃ for lags 0 to 5 across time periods: All, 1-6, 7-14, and 15-18 days. Horizontal lines indicate confidence intervals.

Figure 5. Percentage increase in daily SSI outpatient visits linked to a 10 μg/m3 rise in pollutant concentrations (NO2, SO2, and O3) across various lag days in age-specific analysis models. Results are presented as means with 95% confidence intervals.

3.6 Gender models

Figure 6 displays the gender-specific model, revealing that SO2 and NO2 exhibit positive correlations with SSI outpatient visits in both male and female groups, with no notable differences between the two. In contrast, the negative correlation effect of O3 is more pronounced in the male group than in the female group.

Figure 6
Nine scatter plots showing the percent increase of SSI number due to SO₂, NO₂, and O₃ pollutants. The data is divided into three columns for

Figure 6. Percentage increase in daily SSI outpatient visits associated with a 10 μg/m3 increase in pollutant concentrations (NO2, SO2, and O3) at different lag days in sex-specific analysis models. Values are shown as means and 95% confidence intervals.

3.7 Two-pollutant models

Table 4 presents the outcomes of two-pollutant models at lag 0 (with O3 at lag 4). We noted that the effects of NO2 and SO2 became stronger statistically significant when adjusted for other pollutants. However, the associations of SO2 and NO2 lost statistical significance after controlling for NO2 and SO2, respectively. Regarding O3, the relationship showed no significant change after adjusting for other pollutants.

Table 4
www.frontiersin.org

Table 4. Percentage increase in daily SSI outpatient visits linked to a 10 μg/m3 rise (NO2, SO2, O3) in pollutant concentrations in two-pollutant models.

3.8 Exposure-response curves

Figure 7 depicts the exposure-response curves for SO2 and NO2 (lag 0) and O3 (lag 4) in relation to SSI outpatient visits. The curves indicate that the associations of NO2 and SO2 were positive and exhibited no apparent thresholds. Conversely, O3 showed a negative association with SSI outpatient visits. The slope remained relatively flat as concentrations rose from 0 μg/m3 to 150 μg/m3 but became steeper at concentrations exceeding 150 μg/m3.

Figure 7
Three line graphs show the relationship between LogRR and the concentration of air pollutants: sulfur dioxide (SO2), nitrogen dioxide (NO2), and ozone (O3). Each graph displays a line with confidence intervals. For SO2 and NO2, LogRR increases with concentration, while for O3, LogRR decreases as concentration rises.

Figure 7. Smoothing curves illustrating air pollution effects. The x-axis represents pollutant concentrations (μg/m3 for NO2, SO2, and O3) in different models (lag 0 for NO2 and SO2, lag 4 for O3). The solid line indicates the estimated mean percentage change in daily SSI outpatient visits, while the dotted lines denote twice the point-wise standard error.

4 Discussion

Our hybrid methodological framework reveals complex links between multi-pollutant exposure and SSI risk in the Yangtze River Delta. Both SHAP interpretability and GAM analyses confirm the risk-enhancing effects of NO2/SO2. Pathologically, these gases may: (1) induce systemic inflammation that impairs macrophage phagocytosis and epithelial integrity; and (2) form NO2/SO2-bound complexes that deliver endotoxins to surgical sites, disrupting collagen remodeling. Paradoxically, O3 showed protective associations—a phenomenon contextualized by Shanghai’s photochemical pollution (Liu et al., 2025; Supphapipat et al., 2024; Montagna et al., 2019; He et al., 2023). Summer-derived O3 exerts antimicrobial effects but concurrently damages pulmonary surfactants, inducing compensatory immunosuppression (Agostini et al., 2021). Two-pollutant models further revealed effect modification between NO2 and SO2, suggesting synergistic exposure from traffic/industrial sources. Our deep learning interpretability and GAM analyses consistently identified SO2, NO2, and O3 as the dominant predictors, while PM2.5 and CO, though correlated, showed weaker direct associations. This suggests that the effects of PM2.5 and CO on SSI risk in this cohort may be largely mediated or confounded by their strong co-linearity with the gaseous pollutants (SO2 and NO2), or that their biological pathways to impacting surgical site immunity are less direct in the context of adolescent orthopedic surgery. Despite lacking granular surgical metadata, three evidence lines confirm pollution-SSI associations are not confounded by procedural factors: (1) Surgical volume showed minimal seasonal/correlative fluctuation with pollutants; (2) Case-mix homogeneity (>92% fracture repairs) reduces bias from infection-prone procedures; (3) Pollutant effects peaked at lag0/lag1 – biologically implausible if driven by delayed surgical volume changes.

Age stratification highlighted adolescents’ unique vulnerability. The heightened vulnerability in 7–14-year-olds likely stems from accelerated bone remodeling and immature immunity during active growth phases. SO2/NO2 exposure may disrupt osteoblast–osteoclast balance, impairing surgical repair, while younger children’s developing immune systems amplify inflammatory responses. By ages 15–18, skeletal maturation and stabilized immunity confer resilience against pollution-driven SSI risk. Notably, O3’s protective effect was more pronounced in males, aligning with their larger lung surface area and higher O3 uptake (Liu et al., 2025; Supphapipat et al., 2024). Exposure-response curves confirmed no safe thresholds for NO2/SO2, while O3 displayed a plateau effect at low concentrations and a steep slope >150 μg/m3—indicating a potential “harvest effect” where short-term disinfection masks long-term immune damage. In adolescents, whose immune systems are in a state of dynamic development and whose bones undergo active remodeling, the pro-inflammatory and tissue-disruptive effects of NO2 and SO2 may be particularly detrimental. The heightened inflammatory response could dysregulate the delicate balance of osteoblast and osteoclast activity at the surgical site, impairing early bone healing and creating a niche more susceptible to colonization by pathogens. The observed protective association of O3 presents a fascinating paradox. Its well-documented antimicrobial properties in the gaseous phase may theoretically reduce bacterial load in the ambient air and on superficial wounds, potentially lowering the initial inoculum for infection. This acute, disinfectant effect might dominate in the short-term perioperative period we analyzed. However, this must be contextualized against extensive literature on O3’s toxicity. Chronic or high-dose exposure damages respiratory epithelium, depletes protective surfactant proteins, and can induce a state of compensatory immunosuppression. We hypothesize that our study captured the net short-term effect, where the antimicrobial action outweighed the sub-acute immunosuppressive effects in this specific post-surgical context. The straight-line dose–response curve at higher concentrations, however, hints at a potential threshold beyond which its harmful effects might prevail, a critical area for future investigation.

The ISFOA-optimized hybrid model uncovered spatiotemporal exposure patterns overlooked by conventional approaches, particularly gaseous pollutants’ critical lag0 windows. SHAP interpretability transcended statistical associations by hierarchically ranking SO2/NO2/O3 as dominant features. This synergy informs actionable strategies: (1) deploy real-time pollution monitors in orthopedic wards, activating air purification during industrial/traffic peaks; (2) schedule elective pediatric surgeries in high-O3 seasons while avoiding high-NO2/SO2 periods. Future studies should dissect pollutant-bone immunology interactions to enable precision environmental interventions.

Our findings have tangible implications for clinical practice and health policy. Firstly, hospitals, particularly those specializing in pediatric orthopedics, could invest in real-time indoor air quality monitoring and high-efficiency particulate air (HEPA) filtration systems with activated carbon filters to mitigate NO2 and SO2 ingress. Secondly, for elective surgeries, our data suggest a potential benefit in scheduling procedures during seasons or days with lower ambient NO2/SO2 and moderate O3 levels, as forecasted by local environmental agencies. While implementing such a ‘pollution-aware’ surgical schedule requires logistical planning and validation in prospective studies, it represents a low-cost, high-potential intervention. Finally, these results strengthen the case for urban public health policies aimed at reducing traffic and industrial emissions, framing them not just as environmental issues but as direct contributors to surgical patient safety and healthcare costs. In addition, The observed statistical association is unlikely to represent direct causation from a single day’s exposure. A more plausible explanation is that the pollution level on the visit day acts as a proxy for recent cumulative exposure, which may have pre-conditioned the patient’s immune system. The surgery then served as a “second hit,” leading to a dysregulated inflammatory response that increased infection susceptibility.

This study has several limitations. First, while we employed spatial optimization, exposure misclassification remains possible due to the use of ambient monitoring data rather than personal measurements. Second, despite adjusting for major confounders, residual confounding from unmeasured factors (e.g., environmental tobacco smoke, occupational dust exposure, or detailed individual socioeconomic status) cannot be fully ruled out. Third, the observational design precludes definitive causal inferences, which is particularly relevant for the intriguing protective association of O3; this finding may reflect unmeasured confounding or complex effect modification rather than a direct biological effect; Fourth, the ecological study design, while useful for generating hypotheses, had limited capacity for causal inference. By analyzing associations at the group level, it could suggest but not establish causality, as controlling for confounders is difficult. A further limitation of our outpatient dataset was the absence of individual-level details on medications, infection sites, and antibiotic use, a challenge common to ecological studies. Finally, the generalizability of our findings may be constrained as they are derived from a single megacity with a unique pollution profile and demographic context. Future research should integrate personal monitoring, incorporate more granular clinical and social covariates, and employ multi-center designs across diverse geographic settings to validate our results and explore the underlying mechanisms, such as through the analysis of wound microbiome virulence factors or host immune epigenetic modifications.

5 Conclusion

This study establishes significant associations between multi-pollutant exposure and SSI risk in Shanghai’s adolescent orthopedic patients. NO2 and SO2 emerged as consistent risk factors, with peak effects at lag01 and heightened susceptibility among older adolescents (15–18 years). Conversely, O3 demonstrated protective effects, potentially attributable to its antimicrobial properties, though its straight line dose–response curve warrants caution at high concentrations. The evolutionary deep learning model (optimized via ISFOA) outperformed traditional analyses in identifying critical exposure windows and pollutant hierarchies, with SHAP interpretability confirming SO2, NO2, and O3 as dominant predictors. These findings advocate for real-time air-quality monitoring in orthopedic wards, strategic scheduling of elective surgeries during high-O3/low-NO2-SO2 periods, and integrated environmental health policies in surgical practice. Future research should address individual-level exposure misclassification and elucidate O3’s immunomodulatory mechanisms via epigenetic approaches.

Data availability statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Ethics statement

The studies involving humans were approved by Ethics Committee of Shanghai Jiao Tong University School of Medicine. The studies were conducted in accordance with the local legislation and institutional requirements. Written informed consent for participation in this study was provided by the participants’ legal guardians/next of kin.

Author contributions

YW: Software, Investigation, Writing – original draft, Data curation, Funding acquisition. YY: Resources, Supervision, Validation, Writing – review & editing. YL: Methodology, Writing – original draft, Supervision, Resources, Data curation, Project administration. HC: Conceptualization, Writing – review & editing, Methodology, Formal Analysis.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. This work was supported by National Natural Science Foundation of China (No. 81802186).

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The authors declare that no Gen AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/frai.2025.1692207/full#supplementary-material

References

Agostini, F., Faccini, M., Fitarelli, F., Ortiz, M. A. L., Salmeron, S., Oliveira, R. C. G., et al. (2021). In vitro comparison of antibacterial effect of ozonated water and ozonated gas. Ozone Sci. Eng. 43, 394–400. doi: 10.1080/01919512.2020.1811636

Crossref Full Text | Google Scholar

Bath, M. F., Davies, J., Suresh, R., and Machesney, M. R. (2022). Surgical site infections: a scoping review on current intraoperative prevention measures. Ann. R. Coll. Surg. Engl. 104, 571–576. doi: 10.1308/rcsann.2022.0075,

PubMed Abstract | Crossref Full Text | Google Scholar

Chehrassan, M., Nikouei, F., Shakeri, M., Behnamnia, A., Mahabadi, E. A., and Ghandhari, H. (2024). The role of environmental and seasonal factors in spine deep surgical site infection: the air pollution, a factor that may be underestimated. Eur. Spine J. 33, 3148–3153. doi: 10.1007/s00586-024-08183-z,

PubMed Abstract | Crossref Full Text | Google Scholar

Chen, C. S., Kuo, T., Kuo, H., Kuo, T. C., Kuo, H. C., Tseng, Y. J., et al. (2019). Metabolomics of children and adolescents exposed to industrial carcinogenic pollutants. Environ. Sci. Technol. 53, 5454–5465. doi: 10.1021/acs.est.9b00392,

PubMed Abstract | Crossref Full Text | Google Scholar

Chen, C. C., Tsai, S. S., Yeh, C. N., and Yang, C. Y. (2025). Health benefits of a reduction in ambient fine particulate matter levels for post-neonatal infant survival in Taiwan. J. Toxicol. Environ. Health A 88, 536–545. doi: 10.1080/15287394.2025.2469079,

PubMed Abstract | Crossref Full Text | Google Scholar

Hammoor, B., Matsumoto, H., Marciano, G., Dziesinski, L., Wang, K., Roye, B. D., et al. (2021). Surgical site infections in pediatric spinal surgery after implementation of a quality assurance program. Spine Deform 9, 125–133. doi: 10.1007/s43390-020-00192-4,

PubMed Abstract | Crossref Full Text | Google Scholar

He, T., Jin, L., and Li, X. (2023). On the triad of air PM pollution, pathogenic bioaerosols, and lower respiratory infection. Environ. Geochem. Health 45, 1067–1077. doi: 10.1007/s10653-021-01025-7,

PubMed Abstract | Crossref Full Text | Google Scholar

Islam, M. T., Kamal, A. S. M. M., Islam, M. M., and Hossain, S. (2024). Impact of climate change on dengue incidence in Singapore: time-series seasonal analysis. Int. J. Environ. Health Res. 34, 3988–3998. doi: 10.1080/09603123.2024.2337827,

PubMed Abstract | Crossref Full Text | Google Scholar

Kolasiński, W. (2018). Surgical site infections - review of current knowledge, methods of prevention. Pol. Przegl. Chir. 91, 41–47. doi: 10.5604/01.3001.0012.7253,

PubMed Abstract | Crossref Full Text | Google Scholar

Li, S., Zhou, R., Wu, W., Luan, M., Li, X., Liu, C., et al. (2025). Fine particulate matter induces cardiac fibrosis via the CHOP/TXNIP/NLRP3 pathway in C57 BL/6 mice. Int. Immunopharmacol. 161:115073. doi: 10.1016/j.intimp.2025.115073,

PubMed Abstract | Crossref Full Text | Google Scholar

Liu, L., Liu, C., Chen, R., Feng, R., Zhou, Y., Wang, L., et al. (2024). Associations of ambient air pollution and daily outpatient visits for pediatric atopic dermatitis in Shanghai, China. Ecotoxicol. Environ. Saf. 286:117231. doi: 10.1016/j.ecoenv.2024.117231,

PubMed Abstract | Crossref Full Text | Google Scholar

Liu, S., Zhou, S., Li, Y., Cao, L., Lv, G., Peng, L., et al. (2025). Lag analysis of the effect of air pollution on orthopedic postoperative infection in Hebei Province and Xinjiang Uygur autonomous region. Sci. Rep. 15:12919. doi: 10.1038/s41598-025-95550-5,

PubMed Abstract | Crossref Full Text | Google Scholar

Mallet, C., Meissburger, V., Caseris, M., Happiette, A., Chinnappa, J., Bonacorsi, S., et al. (2022). Does the use of intrawound povidone-iodine irrigation and local vancomycin powder impact surgical site infection rate in adolescent idiopathic scoliosis surgery? Eur. Spine J. 31, 3020–3028. doi: 10.1007/s00586-022-07340-6,

PubMed Abstract | Crossref Full Text | Google Scholar

Matia-Garcia, I., Vadillo, E., Pelayo, R., Muñoz-Valle, J. F., García-Chagollán, M., Loaeza-Loaeza, J., et al. (2021). Th1/Th2 balance in young subjects: relationship with cytokine levels and metabolic profile. J. Inflamm. Res. 14, 6587–6600. doi: 10.2147/JIR.S342545,

PubMed Abstract | Crossref Full Text | Google Scholar

Meng, Y., Liu, Z., Hao, J., Tao, F., Zhang, H., Liu, Y., et al. (2023). Association between ambient air pollution and daily hospital visits for cardiovascular diseases in Wuhan, China: a time-series analysis based on medical insurance data. Int. J. Environ. Health Res. 33, 452–463. doi: 10.1080/09603123.2022.2035323,

PubMed Abstract | Crossref Full Text | Google Scholar

Montagna, M. T., Rutigliano, S., Trerotoli, P., Napoli, C., Apollonio, F., D’Amico, A., et al. (2019). Evaluation of air contamination in Orthopaedic operating theatres in hospitals in southern Italy: the IMPACT project. Int. J. Environ. Res. Public Health 16:581. doi: 10.3390/ijerph16193581,

PubMed Abstract | Crossref Full Text | Google Scholar

Rudic, T. N., Althoff, A. D., Kamalapathy, P., and Bachmann, K. R. (2023). Surgical site infection after primary spinal fusion surgery for adolescent idiopathic scoliosis: an analysis of risk factors from a Nationwide insurance database. Spine (Phila Pa 1976) 48, E101–E106. doi: 10.1097/BRS.0000000000004591,

PubMed Abstract | Crossref Full Text | Google Scholar

Salášek, M., český, R., Whitley, A., Šídlo, K., Klézl, P., and Džupa, V. (2023). Surgical site infections after stabilization of pelvic ring injuries: a retrospective analysis of risk factors and a meta-analysis of similar studies. Int. Orthop. 47, 1331–1344. doi: 10.1007/s00264-023-05719-8,

PubMed Abstract | Crossref Full Text | Google Scholar

Supphapipat, K., Leurcharusmee, P., Chattipakorn, N., and Chattipakorn, S. C. (2024). Impact of air pollution on postoperative outcomes following organ transplantation: evidence from clinical investigations. Clin. Transpl. 38:e15180. doi: 10.1111/ctr.15180,

PubMed Abstract | Crossref Full Text | Google Scholar

Tan, T., Lee, H., Huang, M. S., Rutges, J., Marion, T. E., Mathew, J., et al. (2020). Prophylactic postoperative measures to minimize surgical site infections in spine surgery: systematic review and evidence summary. Spine J. 20, 435–447. doi: 10.1016/j.spinee.2019.09.013,

PubMed Abstract | Crossref Full Text | Google Scholar

Tang, X. F., Bin, X., Qu, K. Y., Liu, H. J., Lei, H., Li, W. F., et al. (2024). Antibiotic prophylaxis for surgical wound infections in clean and clean-contaminated surgery: an updated systematic review and meta-analysis. Int. J. Surg. 110, 5818–5832. doi: 10.1097/JS9.0000000000001882,

PubMed Abstract | Crossref Full Text | Google Scholar

Tsai, S. S., and Yang, C. Y. (2024). The impacts of reduction in ambient fine particulate air pollution on natural-cause mortality in Taiwan. J. Toxicol. Environ. Health A 87, 855–862. doi: 10.1080/15287394.2024.2384396,

PubMed Abstract | Crossref Full Text | Google Scholar

Tucci, G., Romanini, E., Zanoli, G., Pavan, L., Fantoni, M., and Venditti, M. (2019). Prevention of surgical site infections in orthopaedic surgery: a synthesis of current recommendations. Eur. Rev. Med. Pharmacol. Sci. 23, 224–239. doi: 10.26355/eurrev_201904_17497,

PubMed Abstract | Crossref Full Text | Google Scholar

Wang, Y., Li, Z., Qian, F., Huang, C., and Hu, J. (2025). Characterization of multi-pollutant air quality in China using health-centric air pollution indices. Environ. Pollut. 381:126565. doi: 10.1016/j.envpol.2025.126565,

PubMed Abstract | Crossref Full Text | Google Scholar

Yanosky, J. D., Washington, A., Foulke, G. T., Guck, D., Butt, M., and Helm, M. F. (2024). Air pollution and incident sarcoidosis in Central Pennsylvania. J. Toxicol. Environ. Health A 87, 763–772. doi: 10.1080/15287394.2024.2369255,

PubMed Abstract | Crossref Full Text | Google Scholar

Zhong, C., Li, G., Meng, Z., Li, H., Yildiz, A. R., and Mirjalili, S. (2025). Starfish optimization algorithm (SFOA): a bio-inspired metaheuristic algorithm for global optimization compared with 100 optimizers. Neural Comput. & Applic. 37, 3641–3683. doi: 10.1007/s00521-024-10694-1

Crossref Full Text | Google Scholar

Keywords: surgical site infection, air pollution, adolescent orthopedics, deep learning, time-series analysis

Citation: Wang Y, Yuan Y, Liu Y and Cai H (2025) Association of Shanghai air pollution with postoperative infection in adolescent orthopedic patients: a study using a deep learning-based evolutionary model. Front. Artif. Intell. 8:1692207. doi: 10.3389/frai.2025.1692207

Received: 25 August 2025; Revised: 23 November 2025; Accepted: 24 November 2025;
Published: 11 December 2025.

Edited by:

Kaya Kuru, University of Central Lancashire, United Kingdom

Reviewed by:

John Pearson, University of Utah Hospital, United States
Elham Albaroudi, University of Salford, United Kingdom

Copyright © 2025 Wang, Yuan, Liu and Cai. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Haoqi Cai, Y2hxX2p0dW1AMTYzLmNvbQ==

These authors have contributed equally to this work and share first authorship

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.