Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2026 Mar 18;16:14084. doi: 10.1038/s41598-026-43916-8

Effects of climate and air pollution on rates of hospitalization for affective mood disorders in southern Brazil

Leonardo D Araújo 1,2, Vanessa A Azevedo 2,3, Jonathan V S Ferreira 2,5,6, Karina B Lima 2,4,8, Mellanie Fontes-Dutra 2,7,8, Juliana N Scherer 2,3,8,✉
PMCID: PMC13136333  PMID: 41851233

Abstract

Climate change and air pollution are two of the most pressing global challenges, increasingly recognized for their implications on health. Thus, we aimed to explore the associations between climate, air pollution and monthly hospitalization to Affective Mood Disorders (AMD). Clinical data were collected from the Hospital Morbidity System of the Unified Health System (SUS) for the city of Porto Alegre, Brazil, from 2013 to 2023. Climate and air pollution data were obtained from the ERA5 and the CAMS Global Reanalysis. We use machine learning algorithms, conduct Structural Equation Modeling (SEM), and use Generalized Additive Models to detect the most important variable and to test direct and indirect effects. Insolation (in hours), visibility, and temperature from 15Inline graphicC to 25Inline graphicC, proxies for good weather conditions, decrease the values in monthly hospitalization rates for AMD. Also, when the values of the total column of methane (above 0.00955), ozone (above 0.0008) and PMInline graphic increase (proxies for air pollution), the AMD rate also increases. Our findings highlight that climate, together with air pollution as a potential predictor of psychiatric admissions, particularly in populations exposed to reduced air quality or extreme weather conditions.

Subject terms: Psychology, Climate sciences

Introduction

Climate change and air pollution represent distinct yet interconnected global challenges, increasingly recognized for their profound implications on mental health1. Climate change alters environmental conditions, influencing factors such as temperature extremes, natural disasters, and seasonal variations, which can affect psychological well-being2. For instance, sunlight exposure is often associated with improved psychological well-being, whereas adverse weather conditions are linked to mood disturbances3. Separately, air pollution has been implicated in neuroinflammation and oxidative stress, mechanisms that may contribute to mood disorders and cognitive decline4. The burning of fossil fuels - emitting carbon dioxide, black carbon, and ozone precursors - and agricultural production - releasing methane - are key contributors to both global warming and the release of harmful air pollutants. Weather patterns play a crucial role in shaping the concentration, distribution, and transformation of these pollutants, determining whether they remain close to their sources, are dispersed, undergo chemical reactions, are transported over long distances, or are removed through dry or wet deposition5. In addition, natural pollutants such as pollen, windblown dust, and wildfire smoke are also climate-sensitive, further amplifying their potential impacts on human health6.

The adverse health effects of air pollution have been extensively studied since the mid-20th century7, yet many questions remain unanswered. According to the Organization for Economic Co-operation and Development (OECD) and the World Health Organization (WHO), air pollution is among the leading environmental causes of mortality, reducing its levels could alleviate the Global Burden of Disease, with an estimated net benefit of US$ 135,371 million, yielding significant economic and societal benefits8. Climate, in turn, affects exposure to air pollutants by shaping weather patterns, including temperature, precipitation, atmospheric water vapour, wind speed and direction, which influence atmospheric chemical reactions and thereby local and regional pollution concentrations9. These environmental conditions impact not only physical health but also mental health outcomes10. According to WHO data, mental health disorders affect approximately 450 million people worldwide, with expenditures related to mental health estimated at $2.5 trillion in 201011. Grouped data from 204 countries and territories for 12 mental disorders from 1990 to 2019 reveal that they are the top ten leading causes of burden on the population, with a growing presence and no sign of global reduction since the 1990s12.

Seasonal variations in mood are well-documented in the literature and provide valuable indicators of population mental health trends13. Previous research suggests that ambient temperature influences individuals’ stress levels, cooperation, aggressiveness, and energy levels14. Globally, studies have linked air pollution exposures and climate to individual mental health in two ways: directly, by damaging the nervous system and increasing anxiety and depression, and indirectly, by compromising overall physical well-being15, highlighting the complex interplay between environmental and psychological factors related to mood disorders16. These impacts are often exacerbated by socioeconomic factors like income inequality, poverty, and limited healthcare access, with significant additional economic and societal costs17. However, it is worth mentioning that contradictory findings have been obtained on how mood is affected by temperature and whether this would depend on the mental conditions of the individual, with some studies indicating that higher temperatures worsen mood18, while others report improvements or no discernible effect19.

Climatic adversities and extreme weather events are expected to increase in frequency and intensity due to climate change. From 1991 to 2022, Rio Grande do Sul recorded a high frequency of disaster events, ranking as the second-most affected state in Brazil. During this period, the state endured 3,913 hydro-geo-meteorological disasters, resulting in 100 fatalities, displacing over 700.000 individuals, and incurring economic losses exceeding 6 billion Brazilian reais20. According to Clayton21, climate change is as much a psychological problem as an environmental issue, once various stressors are associated, including hazardous and potentially traumatic events such as floods, wildfires (and their consequent air pollution), heatwaves, and hurricanes. These disasters are often sudden, recurrent, and can lead to significant losses, damaging property and belongings while posing direct threats to one’s life and loved ones. Beyond the immediate impact of these events, additional stressors arise, such as overcrowding in shelters, disruptions to work and education, difficulties in accessing medical care and increasing mental health problems21.

Mental health consequences of such adversities are already evident in Brazil. According to the Unified Health System (SUS), mental health hospitalizations increased by 13% between 2008 and 2023 in the country22. By the study, the rise was particularly pronounced in the North (66%) and Central-West (48%) regions, while the Southeast experienced an 8% decline. The South and Northeast saw moderate increases of 29% and 14%, respectively. When looking locally, the capital of the South leads the diagnoses of depression and suicide cases among the capitals of Brazil, the Brazilian average is about 11.3% cases per 100,000 inhabitants, while the South has a rate of about 17.5%23. Although global evidence links mental health risks to environmental factors such as high temperatures24, poor air quality15, and limited urban greenery25, the interplay of these factors remains underexplored in Brazil, particularly in the southern regions.

The WHO has highlighted mental health, which involves the risk for Affective Mood Disorders (AMD), as a growing global concern, projected to become a leading contributor to disease burden by 203026. Understanding how climate and air pollution influence not only severe outcomes like psychiatric outcomes but also more subtle mood variations is essential for developing early intervention strategies. The insights can inform early intervention strategies, helping policymakers better prepare for the public health impacts of a changing climate. Given the lack of region-specific data, this study aims to investigate the relationships between climate, air pollution, and hospitalization rates for affective mood disorders in Porto Alegre – a predominantly low-to-middle-income city in southern Brazil. Our goals include identifying the most influential variables and examining their direct and indirect effects on hospitalization rates, providing a foundation for more informed and effective public health policies.

Results

During 2013 to 2023, a total of 16,584 (average of 125.63) hospitalizations for affective mood disorders were recorded in Porto Alegre, 2019 being the year with the highest number of hospitalizations, with 1,747 (average of 145.58 by month).

Mapping variables according to their relevance

Figure 1 presents the importance score (IS) of climate and air pollution variables in predicting AMD rates of hospitalization according to the best-fitted RF algorithm (Table 1). The total insolation by month (IS > 1.96 ± 0.37 sd), total column methane (IS >1.56 ± 0.63 sd), temperature at 2 meters (IS > 0.32 ± 0.21 sd) and total column ozone (IS > 0.32 ± 0.14 sd) are the most important predictors of AMD rates.

Fig. 1.

Fig. 1

Ranking of climate and atmospheric pollution variables according to their relative importance, as estimated by Random Forests, to predict the affective mood disorders rate of hospitalizations (AMD) in the city of Porto Alegre, South Brazil.

Table 1.

The result of each algorithm was based on the average of these samples and fitted with default parameters.

Algorithm MSE Inline graphic RMSE
Gradient Boosting 5.841 0.321 2.416
Random Forest 5.347 0.378 2.312
Support Vector Machine 7.436 0.135 2.726
Decision Tree 13.791 −0.602 3.713
XGBoost 6.862 0.202 2.619
LightGBM 5.765 0.330 2.401

Direct and indirect effects of air pollution on AMD rates

The multiple metrics of goodness-of-fit and regression parameters obtained from the best-fitting SEMs are summarized respectively, in the Supporting Information (Tables S1). The best-fitting SEM revealed both direct and indirect pathways linking climate and air pollution variables to AMD hospitalization rates, with path coefficients representing the relative strength and direction of associations, with positive values indicating increasing AMD rates and negative values indicating decreasing rates (Fig. 2). The SEM indicates that insolation, visibility, and temperature is positively correlated on AMD rates, as represented by solid arrows pointing toward the outcome. Among these, insolation showed the strongest direct association (standardized coefficient = 0.58), followed by temperature at 2 meters (0.46) and visibility (0.22), highlighting the role of meteorological conditions in shaping hospitalization. In contrast, air pollution and vegetation cover did not show direct effects on AMD, but instead influenced the outcome indirectly through their effects on meteorological mediators. For example, particulate matter and carbon monoxide were associated with insolation and visibility, while methane and ozone were associated with temperature. The vegetation cover was inversely related to visibility. These indirect pathways indicate that those characteristics may contribute to AMD hospitalization risk by altering weather-related conditions rather than acting independently.

Fig. 2.

Fig. 2

Best-fitting structural equation models (SEM) for predicting the affective mood disorders rate of hospitalizations (AMD). Continuous and dashed red lines indicate positive and negative significant effects respectively. Numbers adjacent to lines indicate standardized path coefficient estimates. The higher the coefficient, the greater the magnitude of the relationship between variables.

The Generalized Additive Models confirm the effects of the total insolation by month, total column methane, temperature at 2 meters, and total column ozone (Fig. 3, Table S2). There is a negative relationship between AMD rate and total insolation; as the total insolation increases, AMD rate tends to decrease. Also, there’s a slight negative relationship between visibility and the AMD rate; as visibility increases, hospitalization rates appear to decrease. Besides, our results highlight the positive association between total column methane and particulate matter (PMInline graphic) with the AMD rate. The temperature at 2 meters shows a negative relationship with the AMD rate, where higher temperatures are positively associated with a lower AMD rate, particularly beyond 20Inline graphicC. The plot for the total column ozone indicates a trend to increase above 0.0008 (kg mInline graphic), which seems to also increase the mood rate. Initially, the AMD rate decreases with increasing ozone levels, but after exceeding the threshold, an increase in this parameter is observed.

Fig. 3.

Fig. 3

Smoothing splines for predicting the affective mood disorders rate of hospitalizations (AMD) in response to climate and atmospheric pollution variables. The smoothing spline (continuous black line) and the 95% confidence bands (shaded areas) were obtained by fitting the mood rates as a function of climate and atmospheric pollution variables using Generalized Additive Models.

Discussion

Our study employed machine learning and structural modelling approaches to investigate the associations between climate and air pollution variables with affective mood-related hospitalization (AMD) rate in Porto Alegre. The machine learning analysis identified significant influences of total insolation by month, total column methane, temperature, and total column ozone as the primary predictors of AMD rate. These variables have significant associations, with evident linear and non-linear trends on the predicted variable. Specifically, an increase in the total insolation by a month above 100 hours was associated with a decrease in AMD rates. A similar trend was observed for the total visibility, where higher visibility values (from 45xInline graphic upward) corresponded to lower values of the mood rates and to the temperature, where values from 15Inline graphicC to 25Inline graphicC were linked to a decline in AMD rates, suggesting that favourable climate variables indicating less extreme conditions may contribute to better mental health outcomes. Our results go straight ahead with data from 40 countries located at different latitudes showing that broad changes in the variation of insolation, especially considering the variations observed between winter and summer and between the minimum and maximum monthly values of these locations, were associated with an increase in the risk of suicide attempts in bipolar I disorder27. Also, recent studies, including participants in the Gulf Long-Term Follow-up Study who completed validated screening questionnaires for depression, suggest a possible association between high levels of solar radiation and fewer symptoms related to mood disorder28.

The results from our models also identify positive relations between methane and particulate matter with the predicted variable, and a slight increasing trend relation with ozone. Those proxies stand out as key pollutants in atmospheric pollution investigations. At present, both CO and particulate matter are the most harmful to human health in urban areas29, with methane responsible for around 30% of the rise in global temperatures since the Industrial Revolution30, and CO beign a common contaminant of indoor and outdoor environments, it can induce neurotoxicity and disrupt critical processes within the brain31. For instance, data from 75 cities in China indicate significant positive associations between higher concentrations of particulate matter (PMInline graphic and PMInline graphic) and nitrogen dioxide (NOInline graphic) and increased daily hospital admission rates for depression32. Their results suggest that even short-term exposure to air pollutants exacerbates psychiatric conditions, increasing healthcare burdens. Similarly33, found that a one-standard-deviation increase in PMInline graphic concentration over the past month was associated with a 6.67% point rise in the probability of experiencing severe mental illness. These findings highlight air pollution as a potential predictor of psychiatric admissions, particularly in populations exposed to reduced air quality or extreme weather conditions.

Studies in the literature show that meteorological factors can influence everything from hospital admissions for mania to triggers for symptoms related to mood disorders. One of these factors may be the variation in levels of natural light, global radiation and sunshine duration, which may be associated with symptoms of Seasonal Affective Disorder (SAD)34. A possible sunlight effect on mood-modulating is through the vitamin D pathway, which occurs when the human skin is exposed to sunlight, specifically ultraviolet B radiation (280–315 nm), which facilitates the transformation of 7-dehydrocholesterol into previtamin D335, insufficient levels of this vitamin could directly impact brain cell function and contribute to mood and depressive disorders. Besides vitamin D synthesis, sunlight exposure may also activate additional localized systems that are thought to play a role in mood regulation, including a cutaneous counterpart to the hypothalamic-pituitary-adrenal (HPA) axis36, the serotonin/melatonin system37, and the immune system38. Nevertheless, due to climate change, thermal comfort in urban areas has been increasingly compromised39, increasing temperatures, intensified by the phenomenon of urban heat islands, characterized by higher temperatures in large cities and metropolitan areas due to solar radiation absorption during the day and slow release at night, directly affecting the well-being of the population40, also contributing significantly the influences on air pollution levels and air quality.

Nearly the entire global population, particularly in low- and middle-income countries, is exposed to air quality exceeding the WHO guidelines41, potentially leading to severe health consequences. In Brazil, most studies on air pollution and health impacts are concentrated in southeastern cities. For instance, a study conducted in São Paulo, the largest city in Latin America, assessed the health impact of PMInline graphic exposure, revealing an association between PMInline graphic and cardiovascular and respiratory mortality, with a total of 231,691.8 years of life lost, meaning an overall economic loss of more than US$14.1 billion42. In another study43, reported that between 2,378 and 6,282 deaths could have been avoided in 2017 across 15 southeastern cities if PMInline graphic levels had met WHO guidelines. In Rio Grande do Sul, atmospheric pollution is a major risk factor for non-communicable diseases. The atmospheric polycyclic aromatic hydrocarbons (a group of persistent organic pollutants (POPs)), in the Metropolitan Area of Porto Alegre were associated with respiratory and cardiovascular diseases44, and at the moment, no studies have reported the impacts on mental health. Here, our results bring these associations as a major concern also for mood disorders. Despite air quality in Porto Alegre having improved concerning particulate matter, a recent study showed that air pollution levels (PMInline graphic and PMInline graphic) decreased by more than 45% between 2002 and 202145. On the other hand, ozone (OInline graphic) levels increased significantly in the same period45. Besides some positive results concerning particulate matter levels, efforts are still needed to ensure that the air quality related to other pollutants in Porto Alegre is suitable for human health.

In Fig. 3, we demonstrated the direct and indirect effects of air pollution on AMD. The city of Porto Alegre, besides having heavy vehicular traffic, receives pollutants from petroleum refineries, metallurgical industries, chemical industries, petrochemicals, and coal-fired thermoelectric power plants46. The most recent Greenhouse Gas Emission Inventory for Porto Alegre47 shows that 67.7% of emissions originated from the transportation sector, 23.0% from stationary energy sources, 8.8% from the waste sector, and 0.5% from agriculture, forestry, and other land uses. Humans, when exposed to this kind of pollution, may experience a range of neurobiological effects. Evidence suggests that air pollution can trigger inflammatory and oxidative stress responses in the central nervous system, largely driven by elevated levels of pro-inflammatory cytokines, factors that have been implicated as contributors to the onset of various psychiatric disorders48. In parallel, disruptions in the hypothalamic-pituitary-adrenal (HPA) axis and elevated cortisol levels, commonly associated with stress, have also been linked to the development of mental health conditions49. Furthermore, pollutants such as particulate matter are believed to contribute to damage in brain structures, including the white matter, cortical gray matter, and basal ganglia, with potential consequences for both cognitive function and emotional regulation50. Studies suggest that long-term exposure, rather than short-term pollution spikes, may be more closely associated with these changes51. Other possible mechanisms for this decompensation of psychotic and mood disorders may lie in the neuroinflammation induced by continuous exposure to particulate matter. A study with mice exposed to PMInline graphic for 4, 6, and 8 weeks led to behavioral changes related to Depression-like behavior52. A systematic review pointed out that biological pathways other than inflammation, such as changes in gene expression, oxidative stress and anatomical changes in nervous tissue, may also be implicated53. Despite growing evidence, further research is needed to clarify the mechanisms by which both acute and chronic exposure to air pollutants influence the risk and progression of specific psychiatric disorders, particularly mood and psychotic conditions.

A few limitations to our study should be acknowledged. First, individual factors related to mood or psychotic exacerbation, such as stressful life events, socioeconomic status, drug consumption, or inflammatory events and physical comorbidities, could not be analyzed within the scope of our study. The availability of such data is often limited, particularly in low-income communities. In Brazil, the Unified Health System (SUS) operates through its Department of Information Technology (DATASUS), which is responsible for the development, research, and integration of information technologies to support healthcare systems. DATASUS manages the systems and applications used to collect, process, and disseminate health data; nevertheless, despite broad national recognition of its role in health surveillance, approximately 17.7% of the information remains unreported54, posing a challenge for studies such as ours. Environmental factors such as noise levels or access to and use of green space were also not within the scope of our study52,55. Moreover, indoor pollution, daily exposure to other air pollutants (such as automobile traffic, and/or tobacco use), which may have a large impact on the level of exposure, could also not be analyzed. It is important to emphasize that these types of studies, including the present study, are not able to establish causal relationships between the variables observed, but they do offer biological plausibility for more robust future studies to analyze whether acute and prolonged exposure to particulate matter from the environment, which is related to worsening air quality, can be a causal element in decompensation or increased incidence of mood disorders.

In addition, the use of monthly aggregated data for both exposures and outcomes limited our ability to capture short-term associations and extreme temperature events, such as heatwaves. While this temporal resolution is appropriate for assessing medium-term seasonal patterns and broader associations between climate variables, air pollution, and hospitalization rates, it does not allow for the evaluation of acute effects related to short-duration climatic extremes. Future studies using daily or sub-daily exposure data and event-based definitions of extreme temperature events are warranted to better characterize their short-term impacts on mental health outcomes.

To the best of our knowledge, for the first time in Brazil, we analyzed for a low- to middle-income city the relationships between recent exposure to climate and air pollution and hospitalization rates for affective mood disorders. Our multiple analyses, using machine learning and structural modeling techniques, show a significant association between total insolation, column methane, temperature, column ozone and PMInline graphic.The major strengths of this study are the ten-year period of data collection, the adjustment for climate and air pollution variables, and the use of innovative methods for data analysis. The ecological time-series design also represents a strength of this study, as it enables the assessment of large-scale and cost-effective population-level associations between environmental exposures and psychiatric hospitalizations, capturing temporal patterns relevant to public health monitoring and policy-making. These results move us toward a better understanding of the pathophysiology of psychotic disorders and reinforce arguments for striking climate change and reducing pollutant emissions, especially in metropolitan areas.

Methods

The city of Porto Alegre

Porto Alegre is the capital of the state of Rio Grande do Sul in southern Brazil, as shown in Fig. 4. The city covers an area of approximately 495.4 km², encompassing 94 neighborhoods, and has a population of about 1,332,570, according to the 2023 demographic census56. According to the climatological normal of 1991-2020, the average annual temperature is 19.9Inline graphicC, with monthly maximums exceeding 30Inline graphicC in summer, while the wet-bulb temperature averages 18Inline graphicC annually and rises to around 22Inline graphicC in the summer months, having a humid subtropical climate with a wide temperature range throughout the year and four distinct seasons56. Rainfall is well distributed throughout the year, with an annual average of 1,494.5 mm of precipitation and 76.8% relative humidity. Due to its geographical position, winters have around 40% fewer hours of sunshine than summers, with an average annual insolation of 2,153 hours. As reported by the Brazilian Institute of Geography and Statistics, Porto Alegre’s Human Development Index (HDI) stands at approximately 0.80556, classified as very high by the United Nations Development Program and is a low- to middle-income city.

Fig. 4.

Fig. 4

Map of the study area. Upper left, location of Brazil within South America. Lower left, location of the state of Rio Grande do Sul within Brazil. Right, satellite image of the city of Porto Alegre, with municipal boundaries delineated in red. The map was generated in ArcMap® version 10.6.160.

Climate and air pollution

To investigate the influence of climate and air pollution on mood disorder hospitalization rates, a Geographical Information System (GIS) was employed to analyze spatial associations between the mood rate and a suite of variables. This study utilized remotely sensed data from multiple sources. Climate variables were obtained from the ERA5 Global Reanalysis, provided by the European Centre for Medium-Range Weather Forecasts (ECMWF) through the Copernicus Climate Change Service (C3S). These included the leaf area index of high vegetation (mInline graphic mInline graphic), Leaf area index of low vegetation (mInline graphic mInline graphic), 2 meters dew point temperature (ºC), Temperature at 2 meters (ºC), Surface pressure (Pa), Total precipitation (m), High vegetation cover (0–1), Low vegetation cover (0–1) and Total cloud cover (0–1). Air pollution variables were sourced from ECMWF Atmospheric Composition Reanalysis 4 (EAC4) also maintained by C3S through the CAMS Global Reanalysis, and included particulate matter < 2.5 Inline graphicm (PMInline graphic, kg mInline graphic), particulate matter < 10 Inline graphicm (PMInline graphic, kg mInline graphic), as well as total column concentration of carbon monoxide (kg mInline graphic), methane (kg mInline graphic), ozone (kg mInline graphic) and nitrogen monoxide (kg mInline graphic). Additionally, total insolation (in hours) and the total mean visibility (xInline graphic) were obtained from the Brazilian National Institute of Meteorology (INMET). All variables were retrieved monthly, spanning from January 2013 to December 2023.

Rates of hospitalizations of Affective Mood Disorders

The absolute number of monthly hospitalizations for affective mood disorders in Porto Alegre from 2013 to 2023 was extracted from the Hospital Morbidity System of the Unified Health System (SIH/SUS)57. All hospitalizations within the broad category of affective mood disorders were considered, including maniac episodes, bipolar affective disorders, and depressive episodes, according to the International Statistical Classification of Diseases and Related Health Problems, 10th Revision (ICD-10 codes F30-F39)58. Data on the resident population of Porto Alegre for the reference years were obtained from the epidemiological information system of the Unified Health System. The rates of hospitalizations of Affective Mood Disorders was calculated as follows:

graphic file with name d33e859.gif 1

where HR is the hospitalizations rate due to schizophrenia (per 100,000 inhabitants), Th umber of hospitalizations due to schizophrenia in Porto Alegre in the month/year of reference and Tp is Population residing in Porto Alegre in the year of reference.

Data analysis

The core statistical analyses were preceded by a data exploration phase aiming at detecting outliers and zero inflation. Collinearity was assessed using the Variance Inflation Factor among predictor variables (see Supporting Information Table S3).

Initially, we tested six different algorithms to detect the most important variable in predicting mood rate hospitalization concerning climate and atmospheric pollution variables, using four machine-learning techniques: Random Forest (RF), Gradient Boosting Machine (GBM), Support Vector Machine (SVM), and Decision Trees (DT). We also used two deep learning methods: a Light Gradient-Boosting Machine (LightGBM) and Extreme Gradient Boosting (XGBoost). In each model, 10-fold cross-validation was set, and data were split into 70% portions for calibration (training) and 30% for the testing, fitted with default parameters, then evaluated using the Mean Squared Error (MSE), the Coefficient of Determination (R²) and the Root Mean Squared Error (RMSE). The result of each algorithm was based on the average of these samples (Table 1), and from the best-performed algorithm, we identified the most important variables related to the mood rate. After the initial analysis and the identification of the most robust algorithm, we fine-tuned the Random Forest (RF) to improve its performance to find combinations of hyperparameters that yielded the best fit. The optimal combination of parameters included five splits a node, ensuring that each leaf node contains enough observations to prevent overfitting and improve generalization, the maximum depth of each tree was set to 10, to balance model complexity and prevent overfitting, bootstrap sampling was enabled, helping to build diverse trees and enhances the generalization capabilities of the model, while the total number of trees was set to 500. The variable importance scores (IS) were evaluated based on permutations of the area under the curve, which is a robust method to analyze unbalanced response variables. The variables are considered significant if their values are greater than the absolute value of the variable with the lowest negative value4.

To evaluate the direct and indirect effects of variables on hospitalizations through mood changes, inferred via mood rates, we conducted Structural Equation Modeling (SEM). This approach is particularly suitable for examining chain processes within systems, as it enables the definition and exploration of relationships or pathways between predictors59. Initially, SEMs were fitted with mood rates as the response variable, based on climate and air pollution variables that showed significant importance scores in the Random Forest analysis (described above). To further explore the indirect effects of variables on mood rates and enhance model performance, the complexity of the SEM was increased by including predictors with non-negative Random Forest importance scores. The quality of model fit was assessed using chi-square tests along with other relevant metrics59. The models were fitted using the diagonally weighted least squares method.

To account for spatial correlations and capture potential nonlinear relationships between mood patterns and predictor variables, we used Generalized Additive Models (GAMs) to analyze mood rates. GAMs extend linear models by incorporating smoothing functions linked to predictor variables, allowing for both linear and nonlinear associations to be effectively modelled. Unlike traditional linear models, GAMs provide multiple slopes rather than a single fixed slope, which facilitates the identification of varying responses of mood rates to different predictors. We fitted a GAM that included significant predictors with direct effects on mood rate, as determined through the SEM analysis. Model parameters were estimated using restricted maximum likelihood. Smooth splines were plotted to illustrate the relationship between mood rate and each predictor variable. Average slope values for the models were derived by calculating the mean of the slopes estimated by the GAM.

Supplementary Information

Author contributions

L.D.A. and J.N.S. conceived and designed the study. L.D.A. and V.A.A collected and preprocessed the data. L.D.A. performed the statistical analyses and machine learning modeling. J.V.S.F., K.B.L., M.F.D., and J.N.S. contributed to the interpretation of results and contextualization in the mental health literature. V.A.A., L.D.A., and J.N.S drafted the manuscript. All authors reviewed and approved the final version of the manuscript.

Data availability

The clinical and environmental datasets used in this study were obtained from publicly available sources. Mental health data related to the Affective Mood Disorders rate of hospitalizations (AMD) are available from the Hospital Morbidity System of the Unified Health System (SIH/SUS) at https://datasus.saude.gov.br/acesso-a-informacao/morbidade-hospitalar-do-sus-sih-sus/. The climate and air pollution data supporting this research is available via the European Centre for Medium-Range Weather Forecasts (ECMWF) through the Copernicus Climate Change Service (C3S) at https://www.ecmwf.int/. While these data are publicly accessible, the processed and merged dataset generated for the current analyses is available from the corresponding author upon reasonable request.

Declarations

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.

Supplementary Information

The online version contains supplementary material available at 10.1038/s41598-026-43916-8.

References

  • 1.Radua, J. et al. Impact of air pollution and climate change on mental health outcomes: An umbrella review of global evidence. World Psychiatry23, 244–256 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Pecl, G. T. et al. Biodiversity redistribution under climate change: Impacts on ecosystems and human well-being. Science355, eaai9214 (2017). [DOI] [PubMed] [Google Scholar]
  • 3.Holick, M. F. A perspective on the beneficial effects of moderate exposure to sunlight: bone health, cancer prevention, mental health and well being. In Comprehensive series in photosciences, vol. 3, 11–37 (Elsevier, 2001).
  • 4.Mingardi, J. et al. Ghrelin, neuroinflammation, oxidative stress, and mood disorders: What are the connections?. Curr. Neuropharmacol.23, 172–186 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Brunekreef, B. & Holgate, S. T. Air pollution and health. The lancet360, 1233–1242 (2002). [DOI] [PubMed] [Google Scholar]
  • 6.Kinney, P. L. Climate change, air quality, and human health. Am. J. Prev. Med.35, 459–467 (2008). [DOI] [PubMed] [Google Scholar]
  • 7.Seaton, A., Godden, D., MacNee, W. & Donaldson, K. Particulate air pollution and acute health effects. Lancet345, 176–178 (1995). [DOI] [PubMed] [Google Scholar]
  • 8.Roy, R. & Braathen, N. A. The rising cost of ambient air pollution thus far in the 21st century: Results from the briics and the oecd countries. OECD Environment working papers (2017).
  • 9.Kinney, P. L. Interactions of climate change, air pollution, and human health. Curr. Environ. Health Rep.5, 179–186 (2018). [DOI] [PubMed] [Google Scholar]
  • 10.Srinivasan, S., O’fallon, L. R. & Dearry, A. Creating healthy communities, healthy homes, healthy people: Initiating a research agenda on the built environment and public health. Am. J. Public. Health.93, 1446–1450 (2003). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Organization, W. H. World health statistics 2024: monitoring health for the SDGs, sustainable development goals (World Health Organization, 2024).
  • 12.Patel, V. et al. The lancet commission on global mental health and sustainable development. The lancet392, 1553–1598 (2018). [DOI] [PubMed] [Google Scholar]
  • 13.Rosenthal, N. E. & Wehr, T. A. Seasonal affective disorders (1987).
  • 14.Baron, R. A. & Bell, P. A. Aggression and heat: The influence of ambient temperature, negative affect, and a cooling drink on physical aggression. J. Pers. Soc. Psychol.33, 245 (1976). [DOI] [PubMed] [Google Scholar]
  • 15.Chen, C. et al. Ambient air pollution and daily hospital admissions for mental disorders in Shanghai, China. Sci. Total Environ.613, 324–330 (2018). [DOI] [PubMed] [Google Scholar]
  • 16.Bundo, M. et al. How ambient temperature affects mood: An ecological momentary assessment study in Switzerland. Environ. Health.22, 52 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Rafaloski, A. R., Zeferino, M. T., Forguearini, B. A. O., Fernandes, G. C. M. & Menegon, F. A. Saúde mental das pessoas em situação de desastre natural sob a ótica dos trabalhadores envolvidos. Saude Debate.44, 230–241 (2021). [Google Scholar]
  • 18.Noelke, C. et al. Increasing ambient temperature reduces emotional well-being. Environ. Res.151, 124–129 (2016). [DOI] [PubMed] [Google Scholar]
  • 19.Thompson, R., Hornigold, R., Page, L. & Waite, T. Associations between high ambient temperatures and heat waves with mental health outcomes: A systematic review. Public Health.161, 171–191 (2018). [DOI] [PubMed] [Google Scholar]
  • 20.BRASIL. Atlas digital de desastres no brasil (2022). Acesso em: 30 mar. 2025.
  • 21.Clayton, S. Climate anxiety: Psychological responses to climate change. J. Anxiety Disord.74, 102263 (2020). [DOI] [PubMed] [Google Scholar]
  • 22.Brito, V. C. d. A. et al. Prevalência de depressão autorreferida no brasil: Pesquisa nacional de saúde 2019 e 2013. Epidemiologia e Serviços de Saúde31, e2021384 (2022). [DOI] [PMC free article] [PubMed]
  • 23.Caldeira, T. C. M., Soares, M. M., Silva, L. E. S. d., Veiga, I. P. A. & Claro, R. M. Comportamentos de risco e proteção para doenças crônicas nas capitais brasileiras e no distrito federal, segundo a pesquisa nacional de saúde e o sistema de vigilância de fatores de risco e proteção para doenças crônicas por inquérito telefônico, 2019. Epidemiologia e Serviços de Saúde31 (2022). [DOI] [PMC free article] [PubMed]
  • 24.Hansen, A. et al. The effect of heatwaves on mental health in a temperate australian city. Epidemiology19, S85 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Araújo, L. D., Zanotta, D. C., Ray, N. & Veronez, M. R. Earth observation data uncover green spaces’ role in mental health. Sci. Rep.14, 20933 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Becker, D. et al. How to predict mood? delving into features of smartphone-based data. In Proceedings of the Twenty-second Americas Conference on Information Systems (AMCIS) (Association for Information Systems, San Diego, CA, USA, 2016).
  • 27.Bauer, M. et al. Variations in seasonal solar insolation are associated with a history of suicide attempts in bipolar i disorder. International journal of bipolar disorders9, 1–14 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Deng, X. et al. Association between solar radiation and mood disorders among Gulf Coast residents. J. Expo. Sci. Environ. Epidemiol.10.1038/s41370-024-00691-w (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.De Marco, A., Amoatey, P., Khaniabadi, Y. O., Sicard, P. & Hopke, P. K. Mortality and morbidity for cardiopulmonary diseases attributed to PM2.5 exposure in the metropolis of Rome, Italy. Eur. J. Intern. Med.57, 49–57 (2018). [DOI] [PubMed] [Google Scholar]
  • 30.Saunois, M. et al. Global methane budget 2000–2020. Earth System Science Data Discussions2024, 1–147 (2024). [Google Scholar]
  • 31.Levy, R. J. Carbon monoxide pollution and neurodevelopment: A public health concern. Neurotoxicol. Teratol.49, 31–40 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Gu, X. et al. Association between ambient air pollution and daily hospital admissions for depression in 75 Chinese cities. Am. J. Psychiatry177, 735–743 (2020). [DOI] [PubMed] [Google Scholar]
  • 33.Ebenstein, A., Fan, M., Greenstone, M., He, G. & Zhou, M. New evidence on the impact of sustained exposure to air pollution on life expectancy from China’s Huai River policy. Proc. Natl. Acad. Sci. U. S. A.114, 10384–10389 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Sarran, C., Albers, C., Sachon, P. & Meesters, Y. Meteorological analysis of symptom data for people with seasonal affective disorder. Psychiatry Res.257, 501–505 (2017). [DOI] [PubMed] [Google Scholar]
  • 35.Cui, X., Gooch, H., Petty, A., McGrath, J. J. & Eyles, D. Vitamin D and the brain: Genomic and non-genomic actions. Mol. Cell. Endocrinol.453, 131–143 (2017). [DOI] [PubMed] [Google Scholar]
  • 36.Slominski, A. & Wortsman, J. Neuroendocrinology of the skin. Endocr. Rev.21, 457–487 (2000). [DOI] [PubMed] [Google Scholar]
  • 37.Slominski, A., Wortsman, J. & Tobin, D. J. The cutaneous serotoninergic/melatoninergic system: Securing a place under the sun. FASEB J.19, 176–194 (2005). [DOI] [PubMed] [Google Scholar]
  • 38.Skobowiat, C., Postlethwaite, A. E. & Slominski, A. T. Skin exposure to ultraviolet b rapidly activates systemic neuroendocrine and immunosuppressive responses. Photochem. Photobiol.93, 1008–1015 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Müller, N., Kuttler, W. & Barlag, A.-B. Counteracting urban climate change: Adaptation measures and their effect on thermal comfort. Theor. Appl. Climatol.115, 243–257 (2014). [Google Scholar]
  • 40.Zhang, Y. et al. A dual strategy for controlling energy consumption and air pollution in China’s metropolis of Beijing. Energy81, 294–303 (2015). [Google Scholar]
  • 41.Organization, W. H. et al. WHO global air quality guidelines: particulate matter (PM2. 5 and PM10), ozone, nitrogen dioxide, sulfur dioxide and carbon monoxide World Health Organization, (2021). [PubMed]
  • 42.Abe, K. C., dos Santos, G. M. S., de Sousa Zanotti Stagliorio Coêlho, M. & Miraglia, S. G. E. K. PM10 exposure and cardiorespiratory mortality–estimating the effects and economic losses in São Paulo, Brazil. Aerosol Air Qual. Res.18, 3127–3133 (2018). [Google Scholar]
  • 43.Andreão, W. L., Albuquerque, T. T. & Kumar, P. Excess deaths associated with fine particulate matter in Brazilian cities. Atmos. Environ.194, 71–81 (2018). [Google Scholar]
  • 44.Agudelo-Castañeda, D. M., Teixeira, E. C., Schneider, I. L., Lara, S. R. & Silva, L. F. Exposure to polycyclic aromatic hydrocarbons in atmospheric PM1.0 of urban environments: Carcinogenic and mutagenic respiratory health risk by age groups. Environmental Pollution224, 158–170 (2017). [DOI] [PubMed] [Google Scholar]
  • 45.Brum, A. et al. Two decades of air pollution: Health impacts in the metropolitan area of Porto Alegre, Brazil. Int. J. Environ. Sci. Technol.10.1007/s13762-024-06300-5 (2025). [Google Scholar]
  • 46.de Miranda, R. M. et al. Urban air pollution: A representative survey of PM2.5 mass concentrations in six Brazilian cities. Air Qual. Atmos. Health.5, 63–77 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Porto Alegre. Inventário de emissões de gases de efeito estufa. https://prefeitura.poa.br/smamus/inventario-gee (2021). Secretaria Municipal do Meio Ambiente, Urbanismo e Sustentabilidade. Accessed 5 April 2025.
  • 48.Block, M. L. & Calderón-Garcidueñas, L. Air pollution: Mechanisms of neuroinflammation and cns disease. Trends Neurosci.32, 506–516 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Cherian, K., Schatzberg, A. F. & Keller, J. Hpa axis in psychotic major depression and schizophrenia spectrum disorders: Cortisol, clinical symptomatology, and cognition. Schizophr. Res.213, 72–79 (2019). [DOI] [PubMed] [Google Scholar]
  • 50.de Prado Bert, P., Mercader, E. M. H., Pujol, J., Sunyer, J. & Mortamais, M. The effects of air pollution on the brain: A review of studies interfacing environmental epidemiology and neuroimaging. Curr. Environ. Health Rep.5, 351–364 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Zhang, X., Chen, X. & Zhang, X. The impact of exposure to air pollution on cognitive performance. Proc. Natl. Acad. Sci. U. S. A.115, 9193–9197 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52.Pignon, B. et al. Pm2. 5 and pm10 air pollution peaks are associated with emergency department visits for psychotic and mood disorders. Environ. Sci. Pollut. Res.29, 88577–88586 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Lyons, S., Nolan, A., Carthy, P., Griffin, M. & O’Connell, B. Long-term exposure to pm2. 5 air pollution and mental health: A retrospective cohort study in Ireland. Environ. Health23, 54 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.de Araujo Lima, C. R. et al. Departamento de informática do sus–datasus a experiência de disseminação de informações em saúde. A experiência brasileira em sistemas de informação em saúde109 (2009).
  • 55.Engemann, K. et al. Association between childhood green space, genetic liability, and the incidence of schizophrenia. Schizophr. Bull.46, 1629–1637 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.IBGE. Censo demográfico 2022. http://biblioteca.ibge.gov.br (2023).
  • 57.da Saúde, M. Sistema de morbidade hospitalar do sus. Sistema de Morbidade Hospitalar do SUS - TABNET (2024). [citado 30 de setembro de 2024].
  • 58.World Health Organization. ICD-10: International Statistical Classification of Diseases and Related Health Problems, Tenth Revision 2nd edn. (World Health Organization, 2004). [Google Scholar]
  • 59.Grace, J. B., Anderson, T. M., Olff, H. & Scheiner, S. M. On the specification of structural equation models for ecological systems. Ecol. Monogr.80, 67–87 (2010). [Google Scholar]
  • 60.ESRI, R. Arcgis desktop: release 10. Environmental Systems Research Institute, CA634, 315–325 (2011).

Associated Data

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

Supplementary Materials

Data Availability Statement

The clinical and environmental datasets used in this study were obtained from publicly available sources. Mental health data related to the Affective Mood Disorders rate of hospitalizations (AMD) are available from the Hospital Morbidity System of the Unified Health System (SIH/SUS) at https://datasus.saude.gov.br/acesso-a-informacao/morbidade-hospitalar-do-sus-sih-sus/. The climate and air pollution data supporting this research is available via the European Centre for Medium-Range Weather Forecasts (ECMWF) through the Copernicus Climate Change Service (C3S) at https://www.ecmwf.int/. While these data are publicly accessible, the processed and merged dataset generated for the current analyses is available from the corresponding author upon reasonable request.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES