Next Article in Journal / Special Issue
AI Advancements: Comparison of Innovative Techniques
Previous Article in Journal
A Time Window Analysis for Time-Critical Decision Systems with Applications on Sports Climbing
Previous Article in Special Issue
Can Artificial Intelligence Aid Diagnosis by Teleguided Point-of-Care Ultrasound? A Pilot Study for Evaluating a Novel Computer Algorithm for COVID-19 Diagnosis Using Lung Ultrasound
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Time Series Approach to Smart City Transformation: The Problem of Air Pollution in Brescia

Department of Mathematics and Physics, Catholic University of the Sacred Heart, Via Della Garzetta 48, 25133 Brescia, Italy
*
Author to whom correspondence should be addressed.
AI 2024, 5(1), 17-37; https://doi.org/10.3390/ai5010002
Submission received: 5 November 2023 / Revised: 1 December 2023 / Accepted: 18 December 2023 / Published: 20 December 2023
(This article belongs to the Special Issue Feature Papers for AI)

Abstract

:
Air pollution is a paramount issue, influenced by a combination of natural and anthropogenic sources, various diffusion modes, and profound repercussions for the environment and human health. Herein, the power of time series data becomes evident, as it proves indispensable for capturing pollutant concentrations over time. These data unveil critical insights, including trends, seasonal and cyclical patterns, and the crucial property of stationarity. Brescia, a town located in Northern Italy, faces the pressing challenge of air pollution. To enhance its status as a smart city and address this concern effectively, statistical methods employed in time series analysis play a pivotal role. This article is dedicated to examining how ARIMA and LSTM models can empower Brescia as a smart city by fitting and forecasting specific pollution forms. These models have established themselves as effective tools for predicting future pollution levels. Notably, the intricate nature of the phenomena becomes apparent through the high variability of particulate matter. Even during extraordinary events like the COVID-19 lockdown, where substantial reductions in emissions were observed, the analysis revealed that this reduction did not proportionally decrease PM 2.5 and PM 10 concentrations. This underscores the complex nature of the issue and the need for advanced data-driven solutions to make Brescia a truly smart city.

1. Introduction

Air pollution is defined as the state of air quality resulting from the emission of substances of any nature into the atmosphere in quantities and under conditions that alter its healthiness and constitute a direct or indirect harm to the health of citizens or damage to public or private property. These substances are usually not present in the normal composition of the air or they are present at a lower concentration level.
Table 1 shows the main air pollutants, which are often divided into two main groups: anthropogenic pollutants, which are produced by humans, and natural pollutants. They can also be classified as primary and secondary; the former are released into the environment directly from the source (for example, sulfur dioxide and nitric oxide), while the latter are formed later in the atmosphere through chemical–physical reactions (such as ozone). Pollution caused by these substances in open environments is defined as outdoor pollution, while pollution in confined spaces, such as buildings, is called indoor pollution. To date, about 3000 air contaminants have been cataloged, produced mainly by human activities through industrial processes, through the use of vehicles, or in other circumstances. The methods of the production and release of the different pollutants are extremely varied, and there are many variables that can influence their dispersion in the atmosphere.
According to the European Environment Agency (EEA) (https://www.eea.europa.eu/themes/air/health-impacts-of-air-pollution accessed on 17 December 2023), air pollution affects people in different ways. The elderly, children, and people with pre-existing health conditions are more susceptible to the impacts of air pollution. Additionally, people from lower socioeconomic backgrounds often have poorer health and less access to high-quality healthcare, which increases their vulnerability. There is clear evidence linking lower socioeconomic status to increased exposure to air pollution. One reason is that, in much of Europe, the poorer parts of the population are more likely to live near busy roads or industrial areas.
The World Health Organization (WHO) provides evidence of links between air pollution exposure and type 2 diabetes, obesity, systemic inflammation, Alzheimer’s disease, and dementia. The International Agency for Research on Cancer has classified air pollution, in particular PM2.5, as one of the leading causes of cancer.
Air pollution is not only affecting human health, but also the environment [2]. The most-important environmental consequences are the following. Acid rain is wet (rain, fog, snow) or dry (particulate matter and gas) precipitation containing toxic amounts of nitric and sulfuric acid. They are able to acidify water and soil, damage trees and plantations, and even ruin buildings, sculptures, constructions, and statues outdoors. Haze forms when fine particles are dispersed in the air and reduce the transparency of the atmosphere. It is caused by emissions of gases into the air from industrial plants, power plants, cars, and trucks. The sky of large urban areas is also darkened by smog, which forms in particular meteorological conditions from the fusion of fog and polluting gases [3].
As stated by the EEA [4,5], EU air quality directives (Directive 2008/50/EC on ambient air quality and cleaner air for Europe and Directive 2004/107/EC on heavy metals and polycyclic aromatic hydrocarbons in ambient air) set thresholds for the concentrations of pollutants that must not be exceeded in a given period of time. In case of exceedance, the authorities must develop and implement air quality management plans that should aim to bring the concentrations of atmospheric pollutants to levels below the target limit values. These are based on the WHO air quality guidelines of 2005, but also reflect the technical and economic feasibility of their achievement in all EU Member States. Therefore, the EU air quality standards are less stringent than the WHO air quality guidelines.
Table 2 shows the limits of the air concentrations of some pollutants established by the EU directives and WHO.
The results of the 2022 European Air Quality Report by the European Environment Agency (EEA) [6] show that Italy, with the Po Valley, is still one of the areas in Europe where air pollution due to ozone and particulate matter (PM10 and PM2.5) is most significant. In 2020, the European limit values for these pollutants were exceeded, especially in Northern Italy. This is due to the fact that the Po Valley is a densely populated and industrialized area with particular meteorological and geographical conditions that favor the accumulation of pollutants in the atmosphere.
Brescia is one of the most-polluted cities in Europe, along with other cities in the Po Valley. This was revealed in the latest report by the European Environment Agency (EEA) [7], where cities were ranked from cleanest to most-polluted based on the average levels of PM2.5 in the last two solar years (2021 and 2022). The capital of the province is among the worst urban areas in Italy and the entire continent, ranking 358th out of 375 cities examined, and 6th-last among Italian cities. Brescia records an average of 20.6 μ g/m 3 of PM2.5. Worse results in Italy are recorded in Cremona (in 372nd place out of 375 with 25.1 μ g/m 3 of PM2.5), Padua (367 with 21.5 μ g/m 3 ), Vicenza (362 with 21 μ g/m 3 ), and Venice (359 with 20.7 μ g/m 3 ).
One of the key requirements of a smart city (see Gracias et al. [8] for a review of the definition and the scope of a smart city) is to control and reduce pollution. Meeting this objective provides in return a wide range of benefits (see Table 3). As per Table 4, data about pollution can be modeled as a (uni- or multi-variate) time series, allowing researchers to apply classic approaches (such as ARIMA), state-of-the-art formalisms derived from Machine Learning (such as Long Short-Term Memory neural networks), or even hybrid models.
The contribution of this article consists of enhancing the understanding of air pollution and its complexities in the town of Brescia, offering new perspectives on its management through time series analysis and the application of predictive models.
The work is organized as follows. Section 2 reviews the related work; Section 3 discusses the data pre-processing and the employed time series models; Section 4 presents the considered experiments. Finally, Section 5 concludes this work.

2. Related Work

The bond between Machine Learning and the issues related to smart cities’ development is rather solid and on-going, as the most-recent scientific literature denotes [9,10,11,12].
Classic time series forecast models cited in Table 5 present weaknesses and advantages. ARIMA and ETS can be characterized by simplicity, interpretability, and effectiveness in capturing linear dependencies, although they have a limited ability to capture complex non-linear patterns and may not handle abrupt changes well. STL denotes an effective decomposition of time series into trend, seasonal, and remainder components, and they may struggle with irregularly spaced or missing data. While LSTM and GRU are known for their ability to capture long-term dependencies and non-linear patterns in sequential data, they can be computationally expensive and are prone to overfitting. On the other hand, Transformers benefit from parallelization, scalability, and effectiveness in capturing global dependencies, but they require substantial data and computational resources. It has to be noted that overfitting on small datasets, being less effective with irregularly spaced data and high predictive accuracy, and their non-linearity capability are the essence of XGBoost and LightGBM. Finally, ARIMAX and SARIMA are considered effective for time series with clear seasonality and trends, although they are sensitive to parameter selection and may require extensive tuning.
iTransformers inherit the Transformer’s ability to capture global dependencies within sequential data. The “i” in iTransformer denotes the incorporation of information self-screening, introducing a mechanism for the model to autonomously select relevant input variables. This self-screening layer optimizes the choice of variables, enhancing the model’s efficiency and mitigating the risk of overfitting associated with an excessive number of variables. One notable strength of iTransformer is its incorporation of an information self-screening layer for adaptive variable selection. This feature allows the model to autonomously choose relevant input variables, optimizing its performance by focusing on the most informative features. A potential weakness of iTransformer, like other Transformer-based models, could be its computational burden.
Kumar et al. [13] conducted an inquiry spanning six years, analyzing air pollution data from 23 cities in India for the purposes of air quality examination and prediction. The dataset was pre-processed, involving the selection of pertinent features through correlation analysis. Subsequently, exploratory data analysis was undertaken to discern latent patterns within the dataset, with a specific focus on identifying pollutants that directly impact the air quality index. Notably, a pronounced reduction in the concentration of nearly all pollutants was discerned during the pandemic year, 2020. The mitigation of the data imbalance predicament was addressed through the application of resampling techniques, and the predictive modeling of air quality was executed utilizing five distinct Machine Learning models (KNN, Gaussian Naive Bayes (GNB), SVM, RF, and XGBoost). The outcomes of these models were juxtaposed against established metrics for comparative evaluation. It is noteworthy that the Gaussian Naive Bayes model attained the highest accuracy, whereas the Support Vector Machine model recorded the least accuracy. The efficacy of these models was systematically scrutinized and compared through well-established performance parameters. The XGBoost model emerged as the most-proficient among the considered models, demonstrating the highest degree of linearity between the predicted and actual data.
Wu et al. [14] introduced an adversarial meta-learning framework designed for probabilistic and adaptive air-pollution-prediction tasks. In the context of a given backbone predictor, our proposed model engages in an adversarial three-player game to acquire proficiency in learning an implicit conditional generator. This generator is capable of supplying informative task-specific predictive distributions. Furthermore, the article provides a theoretical framework interpreting the proposed model as an approximate minimizer for the Wasserstein distance between a latent generative model and the true data distribution. Empirical evaluations conducted on both synthetic and real-world datasets demonstrated a noteworthy enhancement in the provision of more-informative probabilistic and adaptive predictions, while concurrently maintaining satisfactory point prediction error metrics. This suggests that the model exhibits an improved capability to address the intricate demands of uncertainty estimation and adaptation in real-world air pollution prediction scenarios.
In [15], the authors claimed that the lack of mechanism-based analysis rendered their forecasting outcomes less interpretable, thereby introducing a degree of risk, particularly in contexts where governmental decisions are informed by such forecasts. The study introduced an interpretable variational Bayesian deep learning model with a self-screening mechanism designed for PM 2.5 forecasting. Initially, a multivariate-data-screening structure, centered on factors influencing PM 2.5 concentrations (e.g., temperature, humidity, wind speed, spatial distribution), was established to comprehensively capture pertinent information. Subsequently, a self-screening layer was incorporated into the deep learning network to optimize the selection of the input variables. Following the integration of the screening layer, a variational Bayesian Gated Recurrent Unit (GRU) network was devised to address the intricate distribution patterns of PM 2.5 , thereby facilitating accurate multi-step forecasting. The efficacy of the proposed method was empirically substantiated using PM 2.5 data from Beijing, China, showcasing the utility of deep learning technology in determining multiple factors for PM 2.5 forecasting while ensuring high forecasting accuracy.
Zhao et al. [16] extended the analysis beyond pollutants and meteorological factors to encompass social factors, such as the implementation of lockdown policies during the COVID-19 pandemic, as dependent variables in predicting the Air Quality Index (AQI). Multiple linear regression was employed to mitigate the influence of seasonal and epidemic factors on the original series, thereby facilitating the extraction of potential information from the dataset. To streamline the model and mitigate the overfitting risks associated with an abundance of variables, a hybrid metaheuristic feature-selection method was applied to eliminate low-correlation variables, thereby reducing the computational complexity. The utilization of a time series regression model facilitated the derivation of a residual series. Incorporating the spatial dependence structure, the authors constructed a spatial autocorrelation variable. Subsequently, employing the K-nearest neighbor mutual information, the authors selected the spatial autocorrelation variable demonstrating the strongest dependence, thus capturing the spatiotemporal characteristics of the AQI. The Long Short-Term Memory (LSTM) and Bidirectional LSTM (Bi-LSTM) models were employed to realize multi-step predictions of the AQI. Comparative evaluations with several benchmarks, including feedforward neural networks and recurrent neural networks, were conducted. Through multiple sets of experiments, this work substantiated that the proposed framework adeptly and accurately monitors changes in air quality.
In the study conducted by Marinov et al. [17], the temporal trends of air pollution were investigated at five air-quality monitoring stations in Sofia, Bulgaria. Data collected between 2015 and 2019 were examined. Given the requirement for complete data in time series analysis, imputation techniques were employed to address missing pollutant values. The data were aggregated into periods of 3 , 6 , 12 , and 24 h. The ARIMA model was utilized for forecasting levels of carbon monoxide (CO), nitrogen dioxide (NO2), ozone (O 3 ), and fine particulate matter (PM2.5) at each station and for each time granularity. From an initial analysis, a seasonal component was observed in the data for pollutants aggregated at 1, 3, and 12 h intervals, which was expected due to the repeated daily activities within the city.
The authors employed two statistical tests (ADF and KPSS) to assess the stationarity of the time series and differentiated the non-stationary series. They selected the parameters p, d, and q of the ARIMA models through a grid search approach, utilizing the AIC and BIC in conjunction with the ADF. Mean Absolute Error (MAE) was considered as the final evaluation metric. The concentration forecasts obtained through the ARIMA models closely approximated the actual values, especially for the one-hour granularity. This research was confined to using past pollutant values and the implementation of only one type of model; additional meteorological data could be included in the analysis to obtain more comprehensive insights into the causes and trends of air pollution, along with employing further models for a constructive comparison.
Lei et al. in their study [18] employed multiple linear regression (MLR) and other Machine Learning models (random forest (RF), gradient boosting (GB), and support vector regression (SVR)) to forecast the concentrations of particulate matter (PM10 and PM2.5) in Macao, China, for the following day. MLR is a statistical model commonly utilized to predict the value of a variable based on two or more variables. One of its advantages lies in its capacity to consider all potential factors related to the target variable.
Feature selection was applied to reduce the dimensionality, and the predictive model performances with reduced features were compared with their complete feature counterparts. The models were constructed and trained using meteorological and air quality data from 2013 to 2018, with data from 2019 to 2021 employed for validation.
The results revealed that there was no significant difference in the performance of the four methods in predicting air quality data for 2019 (pre-COVID-19 pandemic) and 2021 (the new normal period). However, RF yielded significantly better results than the other methods for 2020 (during the pandemic). The reduced performance of statistical MLR and other Machine Learning models is presumably attributed to the unprecedented low levels of PM10 and PM2.5 concentrations in 2020. Therefore, this study suggested that RF is the most reliable among the considered prediction methods, especially in cases of drastic air quality changes due to unforeseen circumstances.
Machine Learning is well suited for regression and classification problems and is widely recognized as one of the most effective approaches for predicting pollution levels due to the robustness and accuracy often exhibited by its methods. An artificial neural network is a frequently employed predictor capable of modeling non-linear time series by simulating the behavior of neurons in the human nervous system. Common Machine Learning models used for air pollution prediction include the backpropagation neural network (BPNN), Long Short-Term Memory (LSTM), and the wavelet neural network (WNN). Other models include the support vector machine (SVM) and fuzzy-logic-based approaches. These techniques require a substantial amount of historical pollutant data.
In the work of Spyrou et al. [19], a univariate LSTM model was utilized to forecast CO values obtained from environmental sensors installed in the Igoumenitsa port area in Greece. This model was compared with the ARIMA model. Initially, from a preliminary analysis of data spanning an entire day, extreme spikes were identified, which the authors attributed to sudden events. The reasons for the increased CO values were not identified, and further investigations should be conducted to obtain a comprehensive understanding of the concentration trends. Subsequently, Spyrou et al. removed the negative values found in the dataset and transformed the data (10-value moving average) to smooth out spikes. The Dickey–Fuller test was performed to check the stationarity of the time series. Additionally, tests were conducted considering data batches of sizes of 100, 1000, and 7000. Eighty percent of the observations were used for training, and the remaining portion was used for testing. The case where the number of batches was 7000 showed the lowest values of the root-mean-squared error (RMSE) and mean absolute error (MAE) for both training and testing losses, leading to improved predictions. Finally, an ARIMA(1,1,0) model was fit to the training data, which provided predictions for the testing phase that closely approximated the actual values of the series compared to those obtained through the LSTM neural network. For future research, a multivariate approach could be considered, incorporating other environmental parameters as predictive variables.
Wang et al. [20] introduced an innovative attentive graph neural network (AGNN) designed for the task of zero-shot video object segmentation (ZVOS). The proposed AGNN reformulates ZVOS as an iterative information fusion process operating on video graphs. Specifically, the AGNN constructs a fully connected graph to effectively represent frames as nodes and the relationships between arbitrary pairs of frames as edges. The inherent pairwise relationships are delineated by a differentiable attention mechanism. Leveraging parametric message passing, the AGNN adeptly captures and explores more intricate and higher-order relations between video frames, facilitating a comprehensive comprehension of video content and enhanced accuracy in foreground estimation. Experimental evaluations conducted on three distinct video segmentation datasets substantiated that the AGNN established a new state-of-the-art performance in each instance. To underscore the generalizability of the framework, the authors extended the AGNN to an additional task: image object co-segmentation (IOCS). Subsequent experiments conducted on two prominent IOCS datasets consistently revealed the superior performance of the AGNN model. The extensive experimentation corroborated the AGNN’s capacity to discern the underlying semantic and appearance relationships among video frames or related images, thereby uncovering common objects.
Lu et al. [21] presented a comprehensive modeling approach for a set of pixelwise-object-segmentation tasks encompassing automatic video segmentation (AVS), image co-segmentation (ICS), and few-shot semantic segmentation (FSS). The method adopts a unified perspective on the segmentation of objects within relational visual data. To achieve this, the authors presented an AGNN designed to address these tasks holistically, conceptualizing them as iterative processes of information fusion over data graphs. The AGNN constructs a fully connected graph, effectively representing visual data as nodes and relationships between data instances as edges. The underlying relations were elucidated through a differentiable attention mechanism, meticulously evaluating fine-grained semantic similarities between all possible location pairs in two data instances. Leveraging parametric message passing, the AGNN acquires knowledge from relational visual data, thereby enhancing the precision of object discovery and segmentation. Empirical investigations demonstrated the AGNN’s proficiency in automatically identifying primary foreground objects in video sequences (i.e., automatic video segmentation), extracting common objects from noisy assortments of semantically related images (i.e., image co-segmentation) and even generalizing to segment new categories with limited annotated data (i.e., few-shot semantic segmentation). Collectively, the findings attested to the AGNN’s potency as a versatile tool applicable to a diverse array of pixelwise object-pattern-understanding tasks involving relational visual data.
In [22], the authors compared the SARIMA, SVM, and LSTM models for predicting the Air Quality Index (AQI) of Ahmedabad city in Gujarat, India. The data were collected from January 2015 to January 2021. The AQI was calculated based on the updated criteria from the Central Pollution Control Board in India, considering indices of 12 pollutants. A higher AQI value indicates a higher level of air pollution. In this research, various data pre-processing methods were employed to select the features, remove the outliers, normalize the data, and handle missing values in the city of Ahmedabad. The Seasonal ARIMA (SARIMA) is obtained from ARIMA by incorporating seasonal terms and is particularly useful when a time series exhibits seasonal variation. Different parameter values of SARIMA were examined, and the model with the lowest AIC was selected. Regression algorithms using support vector machines (SVMs) are commonly referred to as support vector regression (SVR) and often operate with the assistance of kernel functions. The authors compared the performance of SVR with linear, radial basis (RBF), and polynomial kernel functions. Subsequently, a two-layer Long Short-Term Memory (LSTM) network was designed, consisting of one LSTM layer with 256 cells and a ReLU activation function and one fully connected layer with a linear activation function. Regarding the prediction of AQI data for the city of Ahmedabad, the SVM with the RBF outperformed the other models, yielding superior results in terms of the R2 and RMSE evaluation metrics.
In general, hybrid models refer to the combination not only of different algorithms or techniques, but also the advantages of each component, resulting in enhanced performance [23]. T. Li, M. Hua, and X. Wu in [24] developed a hybrid CNN-LSTM model by integrating a Convolutional Neural Network (CNN) and LSTM to predict the PM2.5 concentration in the next 24 h in Beijing, China. The model effectively leverages the strengths of its components: the CNN efficiently extracts the air quality features, and the LSTM captures long-term historical time series data patterns. Due to data periodicity, air quality values for the past 7 days and the concentration of PM2.5 for the next day were chosen as the input and output, respectively. Initially, the data were normalized, with the first 80% allocated for training and the remaining portion for testing. As a result, four models were created for PM2.5 concentration prediction: univariate LSTM, multivariate LSTM, univariate CNN-LSTM, and multivariate CNN-LSTM. The architecture of the latter model comprises two one-dimensional convolutional layers, one MaxPooling layer, one Flatten layer to prepare the data for the LSTM, one Dropout layer to prevent overfitting, one LSTM layer for prediction, and one fully connected layer. The univariate models considered only PM2.5 concentration as a feature, while the multivariate models included other relevant features such as the weather conditions, wind speed and direction, atmospheric pressure, etc. The MAE and RMSE were employed to assess the model’s performance.
The multivariate models outperformed univariate ones as they consider multiple aspects related to air quality. Evaluation metrics for the hybrid models were inferior compared to the LSTM models. Moreover, the multivariate CNN-LSTM model required less training time. Additional analyses conducted in this research indicated that the results deteriorated when the training data periods were reduced (e.g., only 1 day) or extended (e.g., 14 days). In future research, the inclusion of more relevant features may enhance PM2.5 concentration prediction. Table 6 provides additional examples of hybrid models employed in pollutant forecasting.
It is interesting to separate feature-based predictions from hybrid models. The former relies on carefully selected input features to make predictions, while the latter combines the predictions from multiple models to achieve an enhanced overall forecast. Feature-based predictions are typically associated with simpler models that focus on specific features, while hybrid models can be more complex, involving the integration of diverse forecasting approaches. An important factor to consider is interpretability, as feature-based predictions often result in more-interpretable models, as the focus is on understanding the influence of individual features. On the other hand, hybrid models may be less interpretable, especially when combining models with different internal workings. Finally, feature-based predictions may be susceptible to overfitting if the number of features is high relative to the dataset size, while hybrid models can help mitigate overfitting by leveraging the strengths of different models.
Physical models do not require a large amount of historical data, but necessitate sufficient knowledge of pollutant sources, real-time emissions, and an explicit description of the major chemical reactions between exhaust gases and temporal physical processes within the Planetary Boundary Layer (PBL). Predictions from these deterministic methods are often generated using 3D chemical transport models (CTMs), which facilitate an understanding of the complex interplay between meteorology, chemistry, and emissions. However, the key knowledge is frequently insufficient, and in some instances, it is computationally expensive. Therefore, approximations and simplifications are often employed in transport models. Limited knowledge of pollutant sources and imperfect representation of physico-chemical processes can introduce significant distortions into predicted concentrations [29].
In the study by Carnevale et al. [30], the implementation and testing of an Integrated Assessment Model (IAM) were presented to assist governments in formulating their short-term plans (STPs). The objective of these plans is to reduce peak particulate concentration levels and the number of days when air quality threshold values defined by legislation are exceeded. The methodology employed is based on a forecasting model that provides information on a selected air quality index up to 3 days in advance when pollutant emissions (a control variable) are known. It is entirely general with respect to the specific forecasting model and air quality index used; however, the choice of models should consider the characteristics of the pollutants being controlled.
The choice of the CAMx deterministic chemical transport model was influenced by the fact that short-term forecasting relies on the dynamics of the involved phenomena and is usually strongly influenced by uncontrollable variables such as the wind speed and precipitation rate. These factors make the use of surrogate models less appealing due to their capability to effectively represent only the steady-state conditions of atmospheric pollutants [31].
Furthermore, to enhance performance, a reanalysis technique based on an optimal interpolation (OI) algorithm was implemented. This technique helps address input uncertainties and approximations in modeling various phenomena included in the model. In practice, OI calculates a correction factor (CF) by processing the latest available measurements and the model output to improve the forecast. Since, in the considered case, the latest available measurements typically date back to the day before the CTM forecast execution, the only option was to maintain the correction factor over the forecast horizon.
The controller aims to find an optimal set of emission-reduction measures to apply, simultaneously minimizing the number of days when pollutant concentrations exceed the threshold and the monetary and social costs of implementing these measures.
The designed system was tested in a Northern Italian area that includes the city of Brescia, an area often affected by high concentrations of PM10 (and other pollutants). The goal was to identify an optimal set of actions to meet daily PM10 concentration limits while minimizing the cost of implementation. The IAM for January 2011 successfully obtained cost-efficient strategies with a reduction of 2 and 3 days exceeding the limits, respectively, when implemented daily and every three days. The results demonstrated that the control system can be a valuable resource to assist local authorities in establishing appropriate air quality plans.
Table 7 summarises the articles cited in this section.

3. The Air-Pollution-Prediction Framework

Statistical models are employed in air quality forecasting due to their simplicity; they can predict future concentrations of air pollutants by assessing the relationship between these pollutants and past climatic parameters, without the knowledge of the pollution sources and underlying physical or chemical processes. Examples of classical statistical models for air pollution prediction include the Autoregressive Integrated Moving Average (ARIMA) model, multiple linear regression (MLR) model, and the Grey Model (GM).
This study rests on the air-pollution-prediction framework depicted in Figure 1. The details are introduced in the remaining part of this section.
In detail, daily measurements of PM10 ( μ g/m 3 ) were utilized (https://www.dati.lombardia.it accessed on 17 December 2023), originating from the monitoring station at via Broletto in Brescia. This station is situated in a location predominantly influenced by traffic emissions. Daily concentrations of PM2.5 ( μ g/m 3 ), as well as those of NO 2 , O 3 , PM10, and SO 2 , from the Villaggio Sereno station, were also employed for a preliminary analysis of the major pollutants. The latter station is located in an area where pollution levels are not primarily determined by specific sources but by the integrated contribution of all sources upwind of the station concerning the prevailing wind directions at the site.
Meteorological data, including daily temperature (Celsius degrees), relative humidity (%), and rainfall (mm), were recorded at the Brescia Itas Pastori and via Ziziola weather stations. All time series cover the years from 2006 to 2022, except for PM2.5, which begins in 2007.
The locations of each station are indicated in Figure 2.

3.1. Pre-Processing of Data

Data pre-processing is essential to prepare the data in a suitable input format for predictive models. The transformations applied are described below.
Firstly, some dates within the original time series were missing within the considered time frame. These missing dates were added, and no values were assigned to them. Subsequently, the presence of anomalous values was checked, and when found, these anomalies were removed. Anomalies refer to data points falling outside the acceptable value range for the variable under consideration, such as negative PM2.5 concentrations.
In the raw datasets, missing values were identified and had to be replaced, as the methods to be used require complete data. Additionally, there are consecutive observations without values that make the use of linear interpolation unrealistic for handling gaps in the time series. Regarding pollutant concentrations, replacements were made using the first available value from previous years on the same day and month as the missing measurement. In cases where there was no such value, subsequent years were examined.
For meteorological data, the station with the fewest missing values, namely Itas Pastori, was considered. These missing values were replaced by data obtained on the same date from the Via Ziziola station. The same technique used for pollutant concentrations was applied to the remaining missing values.
Finally, the data input for the neural-network-based models was normalized to improve predictions. The min–max normalization was used and is described by the following equation:
x = x x m i n x m a x x m i n .

3.2. Predictive Models

While simple polynomial fitting may seem like an intuitive approach, it is often not feasible for several reasons. Air pollution is influenced by a multitude of factors, and their relationships are often non-linear. Simple polynomial fitting assumes a linear relationship between the input features and the output, which may not accurately capture the complex and non-linear nature of air pollution dynamics. Another aspect to be taken into account is that air quality datasets typically involve a high number of variables, such as meteorological conditions, traffic patterns, industrial activities, and more. Simple polynomial fitting might struggle to model the interactions among these variables effectively, especially when they exhibit non-linear dependencies.
It has to be noticed that simple polynomial models are prone to overfitting, especially when dealing with high-dimensional data. Overfitting occurs when a model fits the training data too closely, capturing noise rather than the underlying patterns. This can lead to poor generalization performance on new, unseen data. Furthermore, simple polynomials have limited expressiveness compared to more-advanced Machine Learning models. They may not be able to capture complex patterns, interactions, and dependencies present in the data, limiting their ability to make accurate predictions. Another problem with polynomial fitting assumes homoscedasticity, meaning that the variance of the errors is constant across all levels of the independent variable. In air pollution prediction, the variance of pollutants may not be constant, leading to violations of this assumption.
Finally, polynomial models can be sensitive to outliers, and air quality datasets may contain anomalous data points due to sensor errors, extreme weather events, or other factors. Simple polynomial fitting might be heavily influenced by these outliers, leading to biased predictions. Table 8 summarises the cited models.
In this work, several models were implemented and compared for predicting concentrations of PM2.5 and PM10 for the next day. Three different methods were selected, belonging to different categories: ARIMA (statistical), LSTM network (Machine Learning), and CNN-LSTM (hybrid). For the neural networks, a multivariate variant was designed that included both meteorological and air quality data. The parameters for each model are specified below to achieve the best predictions.
The datasets were split into a training set (approximately 80% from 2006/2007 to 2019) and a testing set (approximately 20% from 2020 to 2022).
The ARIMA (4,1,2) and ARIMA (5,1,1) models were fit to the training data for the PM10 and PM2.5 concentrations, respectively. The parameters p, d, and q were determined using the ‘auto.arima’ function from the R ‘forecast’ library, which searches for the best ARIMA model within specified order constraints based on the AICc value.
With regard to the LSTM model, input data were created, consisting of sequences of seven consecutive days containing the pollutant concentration data to be predicted. In the multivariate model, meteorological data were added as additional features. The neural network structure included an LSTM layer with ReLU activation, composed of 16 neurons in the univariate model and 64 in the multivariate model. It was followed by a final dense layer with a single unit that holds the predicted value for the next day. The training of the network used the ‘adam’ optimizer, the mean-squared error as the loss function, a batch size of 128, and 50 epochs in the univariate case and 100 in the multivariate case.
In the hybrid CNN-LSTM model, all parameters were the same as in the LSTM, with the only difference being in the network architecture. The LSTM layer was preceded by a one-dimensional convolutional layer with 8 filters in the univariate case and 32 in the multivariate case, a kernel size of two, and ReLU activation. CNNs were initially developed for image processing, but have also been adapted for time series analysis. They can extract patterns and relevant features from time series data, including trends, cycles, peaks, and other significant information.
To evaluate the performance of predictive models, two indicators were used: mean absolute error (MAE) and root-mean-squared error (RMSE). These metrics are defined by the following equations:
MAE = 1 n i = 1 n | x ^ i x i | ,
RMSE = 1 n i = 1 n ( x ^ i x i ) 2 ,
where x ^ i is the predicted value, x i is the actual value, and n is the total number of observations.
The Pearson correlation coefficient was used to measure the linear relationship between two variables. It is defined as:
r = i = 1 n ( x i x ¯ ) ( y i y ¯ ) i = 1 n ( x i x ¯ ) 2 i = 1 n ( y i y ¯ ) 2 ,
where x and y represent two variables, x ¯ and y ¯ are their means, and n is the total number of observations. This coefficient was used to investigate the correlations between PM2.5 and PM10 concentrations and meteorological variables.

4. Experiments and Discussion

Initially, the trends in the major atmospheric pollutants in the city of Brescia from 2014 to 2022 were analyzed. A graph showing the trend is presented in Figure 3, with a 30-day moving average applied to the data for visualization. The PM2.5, PM10, and NO2 concentrations exhibited similar seasonal patterns, with peaks in colder months and moderate levels in summer. This is due to increased heating source usage in winter and the occurrence of temperature inversions, inhibiting vertical air mixing and favoring the accumulation of ground-level pollutants. Conversely, ozone showed an opposite seasonal pattern, forming due to chemical reactions between nitrogen oxides and volatile organic compounds, favored by high temperatures and intense sunlight. Sulfur dioxide appeared to lack a clear seasonal pattern.
Pollutant concentrations from 2014 to 2022 were compared to the limits set by the EU directives. In Table 3, the annual average concentrations of PM2.5, PM10, and NO2 are shown, with limit values of 25 μ g/m 3 and 40 μ g/m 3 .
The only pollutant that did not meet the threshold was PM2.5 in the years from 2014 to 2018; however, it showed a decrease over time, as did NO2. The last three columns of the table report the total number of days on which the limit values for PM10 (50 μ g/m 3 , daily average), SO2 (125 μ g/m 3 , daily average), and ozone (120 μ g/m 3 , maximum 8 h daily average) were exceeded. These values should not be exceeded for more than 35, 3, and 25 (averaged over 3 years) days per year, respectively. The SO2 threshold has never been exceeded; on the other hand, PM10 and ozone have not met the limits and did not show significant improvements over the entire period considered (see Table 9).
The health emergency caused by COVID-19 in Italy imposed a series of restrictions that affected both economic activities and the freedom of movement of citizens, with uneven effects on air quality in Brescia. In Figure 4, boxplot graphs illustrate the concentrations of each pollutant in the months of March and April in 2020 (the lockdown period) and 2019.
Despite significant reductions in emissions, especially related to the transportation sector and, to a lesser extent, energy production, industrial activities, and livestock, the decreases in pollutant concentrations varied depending on the pollutant considered: much more pronounced for NO 2 , less noticeable for PM10, PM2.5, and SO 2 , and absent for O 3 . The effects on nitrogen dioxide were more pronounced because it is directly linked to traffic emissions. In contrast, the lesser impact on ozone and sulfur dioxide levels was due to the fact that the former is a secondary pollutant without significant direct emission sources and the latter typically has very low concentrations. The case of atmospheric particulate matter demonstrated the complexity of the phenomena involved, related to formation, transportation, and accumulation.
Focusing solely on PM2.5 and PM10, an additive decomposition was applied to their respective time series. In Figure 5, the graph shows the concentration of PM10 and its corresponding trend, seasonal, and residual components, which were very similar to those obtained for fine particulate matter. Both pollutants exhibited clear seasonality, as deduced previously, and a decreasing trend. Therefore, the time series were not stationary. In particular, the PM10 trend was less regular and showed a slight increase in the recent period compared to that of PM2.5. The residual part was significant in both cases.
We then proceeded to analyze the linear correlation between the two pollutants and meteorological variables, reporting the measurements in Table 10. Temperature showed the strongest correlation, followed by relative humidity and rainfall. The seasonality of relative humidity was the same as that of atmospheric particulate matter, explaining the positive correlation. The opposite was true for temperature. Temporal weather data from 2006 to 2022 are illustrated in Figure 6.
In the final step of this study, the concentration of the next day’s atmospheric particulate matter was predicted using the aforementioned models adapted to the training data. Their performance was measured using the evaluation metrics RMSE and MAE, where the former will assume a higher value compared to the latter as it assigns more weight to large errors.
From Table 11, it can be observed that all models achieved reasonable results; the multivariate CNN-LSTM network performed the best. In Figure 7, the predictions of PM10 made by the neural network for the 2022 testing data and the actual daily concentration values are represented.
The absolute error of each prediction is shown in Figure 8 and reached its highest values in the months when the concentration of PM10 showed significant peaks.
For further comparison among the various methods, the execution times required for the training phase related to the PM10 data are reported in Table 12.
In general, the multivariate models outperformed the univariate models: considering additional relevant features, such as weather data, helped provide more-accurate predictions.
The CNN-LSTM model, compared to the LSTM network, did not lead to significant improvements in either the training or testing data: the convolutional layer was unable to extract additional useful information for prediction, a task made challenging by the high variability of the data and the low number of observations available.
Furthermore, it can be observed that the scores related to PM2.5 were lower compared to those of PM10 because the data for the latter had a higher standard deviation (25.06 μ g/m 3 for PM10 and 20.18 μ g/m 3 for PM2.5), making the prediction more challenging. A difference was also observed between the training and testing data as they referred to time intervals of different lengths.
Additional tests were conducted by extending the input data window of the neural networks to 14 and 30 days. The results showed that the prediction error remained almost unchanged, and the training time increased compared to the original case of 7 days. The same outcome was obtained when exploring the addition of two more features in the multivariate models: the month and day of pollutant concentration measurement. The inclusion of this temporal information did not improve the accuracy of trend prediction, proving to be irrelevant features.

5. Conclusions

In this article, the problem of modeling and forecasting the amount of air pollution in the smart city of Brescia was presented, highlighting several important aspects related to it, such as natural and anthropogenic sources, the dispersion mechanisms, and the environmental and human health implications. Time series data have proven to be a fundamental tool for describing pollutant concentrations over time. They can reveal trends, seasonal and cyclic behaviors, and the crucial property of stationarity. Subsequently, ARIMA and LSTM models suitable for forecasting future values of a time series were introduced. Both models attempt to represent autocorrelation in the data, the former through linear relationships with past values of the series and white noise, including the differencing operation, and the latter through hidden states and recurrent connections. Part of the work was dedicated to the state-of-the-art to provide an overview of current studies related to air pollution forecasting, which were categorized based on the type of model implemented (statistical, Machine Learning, physical, and hybrid).
Finally, pollutant concentrations in Brescia were analyzed using the aforementioned tools. Thanks to the results obtained, it is now possible to answer the question posed in the Introduction of this work.
Regarding the current state of air quality, in 2022, the pollutants with the most-critical levels recorded at the Villaggio Sereno (BS) station were PM10 and ozone, with 60 and 92 days of exceeding the EU limits, well above the maximum allowable 35 and 25 days of excess. Although PM2.5 complied with the EU thresholds, it reached levels in 2021 and 2022 that ranked among the worst in all of Europe, as stated in the latest report from the EEA [7]. The data related to NO 2 and SO 2 were not concerning.
The decreasing trend of particulate matter from 2006 to 2022, as well as the decrease in the average annual concentration of nitrogen dioxide between 2014 and 2022 indicated that there has been an improvement compared to previous years. However, the same cannot be said when considering the total days of exceeding ozone and PM10 in a year.
As for predicting concentrations, this is a task that can be far from simple if accurate results are desired. The predictions of PM2.5 and PM10 for the next day, calculated using the ARIMA, LSTM, and CNN-LSTM models on the testing data, were not perfect. However, they were considered reasonable since the concentration values can vary significantly from one day to the next, making the situation considerably more complex. PM2.5 had lower RMSE and MAE scores compared to PM10, precisely because it had a smaller standard deviation.
The high variability of particulate matter demonstrated how intricate the phenomena involved are. Further evidence of this complexity was provided by the analysis of the lockdown period due to COVID-19, where, despite significant reductions in emissions, equivalent decreases in the PM2.5 and PM10 concentrations were not observed. It is worth mentioning a study conducted by Shi et al. [32]: alterations in emissions correlated with the initial 2020 COVID-19 lockdown restrictions resulted in intricate and substantial shifts in air pollutant levels; however, these changes proved to be less extensive than anticipated. The reduction in nitrogen dioxide (NO 2 ) is anticipated to yield positive effects on public health, yet the concurrent elevation in ozone (O 3 ) levels is expected to counteract, at least partially, this favorable outcome. Notably, the scale and even the direction of variations in particulate matter with a diameter of 2.5 μ m or less (PM 2.5 ) during the lockdowns exhibited marked disparities across the scrutinized urban locales. The involvement of chemical processes within the mixed atmospheric system introduces complexity to endeavors aimed at mitigating secondary pollution, such as O 3 and PM 2.5 , through the curtailment of precursor emissions, including nitrogen oxides and volatile organic compounds (VOCs). Prospective regulatory measures necessitate a systematic approach tailored for specific cities concerning NO 2 , O 3 , and PM 2.5 , accounting for both primary emissions and secondary processes. This approach aims to optimize overall benefits to air quality and human health.
One solution for achieving better predictions may be the inclusion of additional variables that help explain the pollutant’s behavior further, as was the case in the implemented multivariate models.
In the future, aspects that were not addressed in this research could be further explored. Firstly, to improve the results, additional variables related to weather, traffic, and other pollutants could be considered or different models could be used. New methods for providing long-term forecasts, limited here to the following day, could be investigated, and data with a different granularity than daily could be employed.
Secondly, factors such as natural and anthropogenic sources, dispersion mechanisms, and environmental and human health implications will be addressed in the light of the performed experiments.

Author Contributions

Conceptualization, E.B. and E.P.; methodology, E.B.; software, E.P.; validation, E.P. and E.B.; formal analysis, E.P.; investigation, E.P.; resources, E.P.; writing—original draft preparation, E.P.; writing—review and editing, E.B.; visualization, E.P.; supervision, E.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data used in this article can be freely downloaded from Open Data Lombardia at https://www.dati.lombardia.it accessed on 17 December 2023.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. United States Environmental Protection Agency. Particulate Matter (PM) Basics. 2022. Available online: https://www.epa.gov/pm-pollution/particulate-matter-pm-basics (accessed on 16 December 2022).
  2. Manisalidis, I.; Stavropoulou, E.; Stavropoulos, A.; Bezirtzoglou, E. Environmental and Health Impacts of Air Pollution: A Review. Front. Public Health 2020, 8, 14. [Google Scholar] [CrossRef] [PubMed]
  3. Polidori, P. I Quaderni della Formazione Ambientale-Aria; APAT: Roma, Italy, 2006. [Google Scholar]
  4. Agency, E.E. Air Pollution: How It Affects Our Health. 2022. Available online: https://www.eea.europa.eu/themes/air/health-impacts-of-air-pollution (accessed on 16 December 2022).
  5. European Environment Agency 2021. Available online: https://www.eea.europa.eu/themes/air/air-quality-concentrations/air-quality-standards (accessed on 20 December 2022).
  6. Agency, E.E. Air Quality in Europe 2022. 2022. Available online: https://www.eea.europa.eu/publications/air-quality-in-europe-2022/ (accessed on 22 December 2022).
  7. Agency, E.E. European City Air Quality Viewer. 2023. Available online: https://www.eea.europa.eu/themes/air/urban-air-quality/european-city-air-quality-viewer (accessed on 8 October 2023).
  8. Gracias, J.S.; Parnell, G.S.; Specking, E.; Pohl, E.A.; Buchanan, R. Smart Cities—A Structured Literature Review. Smart Cities 2023, 6, 1719–1743. [Google Scholar] [CrossRef]
  9. Javed, A.R.; Ahmed, W.; Pandya, S.; Maddikunta, P.K.R.; Alazab, M.; Gadekallu, T.R. A survey of explainable artificial intelligence for smart cities. Electronics 2023, 12, 1020. [Google Scholar] [CrossRef]
  10. Fang, B.; Yu, J.; Chen, Z.; Osman, A.I.; Farghali, M.; Ihara, I.; Hamza, E.H.; Rooney, D.W.; Yap, P.S. Artificial intelligence for waste management in smart cities: A review. Environ. Chem. Lett. 2023, 21, 1–31. [Google Scholar] [CrossRef] [PubMed]
  11. Zamponi, M.E.; Barbierato, E. The Dual Role of Artificial Intelligence in Developing Smart Cities. Smart Cities 2022, 5, 728–755. [Google Scholar] [CrossRef]
  12. Padmanaban, S.; Samavat, T.; Nasab, M.A.; Nasab, M.A.; Zand, M.; Nikokar, F. Electric vehicles and IoT in smart cities. Artif. Intell.-Based Smart Power Syst. 2023, 14, 273–290. [Google Scholar]
  13. Kumar, K.; Pande, B. Air pollution prediction with Machine Learning: A case study of Indian cities. Int. J. Environ. Sci. Technol. 2023, 20, 5333–5348. [Google Scholar] [CrossRef]
  14. Wu, Z.; Liu, N.; Li, G.; Liu, X.; Wang, Y.; Zhang, L. Learning Adaptive Probabilistic Models for Uncertainty-Aware Air Pollution Prediction. IEEE Access 2023, 11, 24971–24985. [Google Scholar] [CrossRef]
  15. Jin, X.B.; Wang, Z.Y.; Gong, W.T.; Kong, J.L.; Bai, Y.T.; Su, T.L.; Ma, H.J.; Chakrabarti, P. Variational bayesian network with information interpretability filtering for air quality forecasting. Mathematics 2023, 11, 837. [Google Scholar] [CrossRef]
  16. Zhao, Z.; Wu, J.; Cai, F.; Zhang, S.; Wang, Y.G. A hybrid deep learning framework for air quality prediction with spatial autocorrelation during the COVID-19 pandemic. Sci. Rep. 2023, 13, 1015. [Google Scholar] [CrossRef]
  17. Marinov, E.; Petrova-Antonova, D.; Malinov, S. Time Series Forecasting of Air Quality: A Case Study of Sofia City. Atmosphere 2022, 13, 788. [Google Scholar] [CrossRef]
  18. Lei, T.M.T.; Siu, S.W.I.; Monjardino, J.; Mendes, L.; Ferreira, F. Using Machine Learning Methods to Forecast Air Quality: A Case Study in Macao. Atmosphere 2022, 13, 1412. [Google Scholar] [CrossRef]
  19. Spyrou, E.D.; Tsoulos, I.; Stylios, C. Applying and Comparing LSTM and ARIMA to Predict CO Levels for a Time-Series Measurements in a Port Area. Signals 2022, 3, 235–248. [Google Scholar] [CrossRef]
  20. Wang, W.; Lu, X.; Shen, J.; Crandall, D.J.; Shao, L. Zero-shot video object segmentation via attentive graph neural networks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 9236–9245. [Google Scholar]
  21. Lu, X.; Wang, W.; Shen, J.; Crandall, D.J.; Van Gool, L. Segmenting objects from relational visual data. IEEE Trans. Pattern Anal. Mach. Intell. 2021, 44, 7885–7897. [Google Scholar] [CrossRef] [PubMed]
  22. Maltare, N.N.; Vahora, S. Air Quality Index prediction using Machine Learning for Ahmedabad city. Digit. Chem. Eng. 2023, 7, 100093. [Google Scholar] [CrossRef]
  23. Gu, Y.; Li, B.; Meng, Q. Hybrid interpretable predictive Machine Learning model for air pollution prediction. Neurocomputing 2022, 468, 123–136. [Google Scholar] [CrossRef]
  24. Li, T.; Hua, M.; Wu, X. A Hybrid CNN-LSTM Model for Forecasting Particulate Matter (PM2.5). IEEE Access 2020, 8, 26933–26940. [Google Scholar] [CrossRef]
  25. Bai, Y.; Zeng, B.; Li, C.; Zhang, J. An ensemble long short-term memory neural network for hourly PM2.5 concentration forecasting. Chemosphere 2019, 222, 286–294. [Google Scholar] [CrossRef]
  26. Dotse, S.Q.; Petra, M.I.; Dagar, L.; De Silva, L.C. Application of computational intelligence techniques to forecast daily PM10 exceedances in Brunei Darussalam. Atmos. Pollut. Res. 2018, 9, 358–368. [Google Scholar] [CrossRef]
  27. Wu, Q.; Lin, H. Daily urban air quality index forecasting based on variational mode decomposition, sample entropy and LSTM neural network. Sustain. Cities Soc. 2019, 50, 101657. [Google Scholar] [CrossRef]
  28. Zhu, S.; Qiu, X.; Yin, Y.; Fang, M.; Liu, X.; Zhao, X.; Shi, Y. Two-step-hybrid model based on data pre-processing and intelligent optimization algorithms (CS and GWO) for NO2 and SO2 forecasting. Atmos. Pollut. Res. 2019, 10, 1326–1335. [Google Scholar] [CrossRef]
  29. Feng, X.; Li, Q.; Zhu, Y.; Hou, J.; Jin, L.; Wang, J. Artificial neural networks forecasting of PM2.5 pollution using air mass trajectory based geographic model and wavelet transformation. Atmos. Environ. 2015, 107, 118–128. [Google Scholar] [CrossRef]
  30. Carnevale, C.; De Angelis, E.; Tagliani, F.L.; Turrini, E.; Volta, M. A Short-Term Air Quality Control for PM10 Levels. Electronics 2020, 9, 1409. [Google Scholar] [CrossRef]
  31. Carnevale, C.; Finzi, G.; Guariso, G.; Pisoni, E.; Volta, M. Surrogate models to compute optimal air quality planning policies at a regional scale. Environ. Model. Softw. 2012, 34, 44–50. [Google Scholar] [CrossRef]
  32. Shi, Z.; Song, C.; Liu, B.; Lu, G.; Xu, J.; Vu, T.V.; Elliott, R.J.R.; Li, W.; Bloss, W.J.; Harrison, R.M. Abrupt but smaller than expected changes in surface air quality attributable to COVID-19 lockdowns. Sci. Adv. 2021, 7, eabd6696. [Google Scholar] [CrossRef]
Figure 1. Air pollution prediction framework.
Figure 1. Air pollution prediction framework.
Ai 05 00002 g001
Figure 2. Location of the air-quality-monitoring stations (in blue) and weather stations (in red). Source: Google Earth.
Figure 2. Location of the air-quality-monitoring stations (in blue) and weather stations (in red). Source: Google Earth.
Ai 05 00002 g002
Figure 3. Trend of concentrations of the main air pollutants from 2014 to 2022. A 30-day moving average was applied to the data.
Figure 3. Trend of concentrations of the main air pollutants from 2014 to 2022. A 30-day moving average was applied to the data.
Ai 05 00002 g003
Figure 4. Comparison of pollutant concentrations in the months of March and April in 2019 and 2020 (lockdown period) using boxplot graphs.
Figure 4. Comparison of pollutant concentrations in the months of March and April in 2019 and 2020 (lockdown period) using boxplot graphs.
Ai 05 00002 g004
Figure 5. Decomposition of the time series of PM10: additive decomposition of the time series representing the concentration of PM10 ( μ g/m 3 ) for the years from 2006 to 2022 into the trend, seasonal, and residual components.
Figure 5. Decomposition of the time series of PM10: additive decomposition of the time series representing the concentration of PM10 ( μ g/m 3 ) for the years from 2006 to 2022 into the trend, seasonal, and residual components.
Ai 05 00002 g005
Figure 6. Time series of weather data: temperature, relative humidity, and rainfall from 2006 to 2022.
Figure 6. Time series of weather data: temperature, relative humidity, and rainfall from 2006 to 2022.
Ai 05 00002 g006
Figure 7. Forecasts of the multivariate CNN-LSTM model for the year 2022 of the daily concentration of PM10.
Figure 7. Forecasts of the multivariate CNN-LSTM model for the year 2022 of the daily concentration of PM10.
Ai 05 00002 g007
Figure 8. Absolute error of predictions obtained from the multivariate CNN-LSTM model for the year 2022 of the daily concentration of PM10.
Figure 8. Absolute error of predictions obtained from the multivariate CNN-LSTM model for the year 2022 of the daily concentration of PM10.
Ai 05 00002 g008
Table 1. Main pollutants.
Table 1. Main pollutants.
PollutantDescription
Carbon monoxideA colorless, odorless, flammable, and highly toxic gas. It is formed during the combustion of organic substances in the absence of oxygen (i.e., when the oxygen present in the air is not sufficient to convert all the carbon to carbon dioxide).
Sulfur oxides(SO 2 ) A colorless, irritant, non-flammable gas that is highly soluble in water and has a pungent odor. Being heavier than air, it tends to stratify in the lower layers.
Nitrogen oxideA colorless, tasteless, and odorless gas; it is also called nitric oxide. It is produced mainly during high-temperature combustion processes along with nitrogen dioxide, which constitutes less than 5% of the total NO emissions.
OzoneOzone is a toxic gas with a bluish color, composed of unstable molecules formed by three atoms of oxygen (O 3 ); it accounts for more than 90% in the stratosphere, where it is produced by molecular oxygen by the action of the Sun’s ultraviolet rays. In the stratosphere, it constitutes a protective screen against UV radiation generated by the Sun.
Particulate matterThis is the set of solid and liquid atmospheric particles with an aerodynamic diameter between 0.1 and 100 μ m. Within this range, the following are distinguished [1]: PM10, consisting of inhalable particles with a diameter of less than 10 μ m; PM2.5 formed by fine inhalable particles, with a diameter of less than 2.5.
BenzeneBenzene is an aromatic hydrocarbon with a hexagonal ring structure, consisting of six carbon atoms and six hydrogen atoms (C 6 H 6 ); it is the simplest compound in the class of aromatic hydrocarbons. At room temperature, benzene is a colorless liquid that evaporates very quickly. It is a highly flammable substance, but its danger is mainly due to the fact that it is a recognized human carcinogen.
Table 2. Maximum concentration values for some pollutants in the air established by the EU and the WHO.
Table 2. Maximum concentration values for some pollutants in the air established by the EU and the WHO.
PollutantAverage PeriodConcentration ( μ g/m 3 )
EUWHO
PM2.5Annual255
PM1024 h5045
O 3 Max, daily 8 h mean120/
O 3 8 h/100
NO 2 Annual4010
SO 2 24 h12540
C 6 H 6 Annual51.7
COMax, daily 8 h mean10,00010,000
Table 3. Compelling reasons for pollution control in smart cities.
Table 3. Compelling reasons for pollution control in smart cities.
ReasonExplanation
Improved Quality of LifePollution, especially air pollution, have a detrimental impact on the health and well-being of residents. Smart cities aim to provide a high quality of life for their citizens, and controlling pollution is a fundamental aspect of achieving this goal.
Environmental SustainabilityReducing pollution contributes to environmental sustainability. Smart cities recognize the importance of protecting the environment and conserving natural resources to ensure a better future for current and future generations.
Economic BenefitsPollution control can lead to cost savings in healthcare, reduced infrastructure damage, and increased productivity. By addressing pollution, smart cities can support economic growth and long-term prosperity.
Attracting Investment and TalentClean and sustainable cities are more attractive to investors and skilled workers. By controlling pollution, smart cities can draw in businesses, talent, and funding, boosting their growth and competitiveness.
Climate Change MitigationReducing pollution are critical for addressing climate change. Smart cities often set ambitious sustainability goals to combat climate change by minimizing greenhouse gas emissions and adopting renewable energy sources.
Table 4. Time series analysis and forecast techniques for pollution control in smart cities.
Table 4. Time series analysis and forecast techniques for pollution control in smart cities.
Time Series Analysis and Forecast TechniquesExplanation
Time Series ModelingTime series models, such as ARIMA and LSTM, can analyze historical pollution data to identify trends, seasonal patterns, and stationary properties, providing a foundation for forecasting future pollution levels.
Predictive ModelingPredictive models use historical time series data to forecast pollution concentrations, enabling smart cities to take timely actions in response to changing pollution levels and events.
Real-Time MonitoringTime series analysis allows for real-time monitoring of pollution levels, enabling immediate responses to unexpected spikes in pollution, helping to protect public health.
Event-Based ForecastingTime series techniques can incorporate events such as industrial operations, festivals, or weather patterns to make event-based pollution forecasts, allowing cities to prepare for specific pollution challenges.
Data-Driven PolicyTime series analysis provides data-driven insights for policy development and adjustments, supporting targeted pollution control measures and regulatory decisions.
Table 5. Forecast models.
Table 5. Forecast models.
Time Series ModelDescription
ARIMAAutoregressive Integrated Moving Average
ETSExponential Smoothing State Space Models
STLSeasonal Trend Decomposition Using LOESS
LSTMLong Short-Term Memory Networks
GRUGated Recurrent Unit Networks
TransformerTransformer Models
XGBOOSTGradient-Boosted Trees
ARIMAXARIMA with Exogenous Variables
iTransformerAn Integration of Transformer Architecture with
Additional Enhancements
Table 6. Pollution hybrid forecasting models.
Table 6. Pollution hybrid forecasting models.
Hybrid ModelForecasted
Pollutant
Reference
Ensemble empirical mode decomposition-
least-squares support vector machine
(EEMD-LSSVM)
PM2.5 [25]
Genetic algorithm-random forest-
backpropagation neural network
(GA-RF-BPNN)
PM10 [26]
Variational mode decomposition-
sample entropy-
least-squares support vector machine
(VMD-SE-LSSVM)
AQI [27]
Complementary empirical ensemble
mode decomposition-
cuckoo search-grey wolf
optimizer-support vector machine
(CEEMD-CS-GWO-SVM)
NO2, SO2 [28]
Table 7. A summary of the presented articles.
Table 7. A summary of the presented articles.
Ref.ModelCategoryPollutant
Forecasted
Area
[17]ARIMAStatisticalCO, NO2,
O3, PM2.5
Sofia,
Bulgaria
[18]MLR,
(RF, GB, SVR)
StatisticalPM2.5, PM10Macao,
China
[19]LSTM,
(ARIMA)
Machine
learning
COPort of
Igoumenitsa,
Greece
[22]SVM,
(SARIMA, LSTM)
Machine
learning
AQIAhmedabad,
India
[24]CNN-LSTM,
(LSTM)
HybridPM2.5Beijing,
China
[30]CAMxPhysicalPM10Brescia,
Italy
Table 8. Methods for time series prediction.
Table 8. Methods for time series prediction.
MethodDescription
ARIMAAutoregressive Integrated Moving Average
ETSExponential Smoothing State Space Models
STLSeasonal-Trend Decomposition Using LOESS
LSTMLong Short-Term Memory Networks
GRUGated Recurrent Unit Networks
TransformerTransformer Models
Facebook ProphetForecasting Tool for Data with Strong Seasonality
XGBoostGradient-Boosted Trees
ARIMAXARIMA with Exogenous Variables
SARIMASeasonal ARIMA
Hybrid ModelsCombination of Multiple Forecasting Methods
KNNK-Nearest Neighbors
Table 9. Annual averages of PM2.5, PM10, and NO 2 concentrations and the total number of days exceeding the limits for PM10, SO 2 , and O 3 from 2014 to 2022. Green represents values that complied with the EU directives, and red represents values that violated them.
Table 9. Annual averages of PM2.5, PM10, and NO 2 concentrations and the total number of days exceeding the limits for PM10, SO 2 , and O 3 from 2014 to 2022. Green represents values that complied with the EU directives, and red represents values that violated them.
Annual Average (μg/m3)Exceedance Days
Year PM2.5 PM10 NO 2 PM10 SO 2 O 3
201425.1532.7135.4250046
201528.9837.3237.6383097
201628.3035.2233.9066061
201729.6339.3334.1586077
201825.0732.8028.68480107
201924.9033.4529.4753044
202024.1032.3925.3262067
202122.0930.9426.4159077
202222.6933.1625.6860092
Table 10. The Pearson correlation coefficient between the weather variables and atmospheric particulate matter.
Table 10. The Pearson correlation coefficient between the weather variables and atmospheric particulate matter.
TemperatureRelative HumidityRainfall
PM10−0.440.35−0.18
PM2.5−0.620.48−0.13
Table 11. Evaluation of predictive models using RMSE and MAE metrics on PM10 and PM2.5 training and testing data. The best results are highlighted in bold.
Table 11. Evaluation of predictive models using RMSE and MAE metrics on PM10 and PM2.5 training and testing data. The best results are highlighted in bold.
ARIMALSTMCNN-
LSTM
LSTM
(M)
CNN-LSTM
(M)
RMSEPM10train16.3716.3616.4115.1614.70
test11.5611.6011.4711.1411.02
PM2.5train12.4512.4612.3711.5411.37
test9.359.399.368.958.69
MAEPM10train10.7910.8210.8010.069.83
test8.188.178.047.897.78
PM2.5train8.858.918.848.268.12
test6.796.826.826.566.43
Table 12. Execution times (in seconds) required for the training phase related to PM10 for different models.
Table 12. Execution times (in seconds) required for the training phase related to PM10 for different models.
ARIMALSTMCNN-LSTMLSTM (M)CNN-LSTM (M)
4913143941
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Pagano, E.; Barbierato, E. A Time Series Approach to Smart City Transformation: The Problem of Air Pollution in Brescia. AI 2024, 5, 17-37. https://doi.org/10.3390/ai5010002

AMA Style

Pagano E, Barbierato E. A Time Series Approach to Smart City Transformation: The Problem of Air Pollution in Brescia. AI. 2024; 5(1):17-37. https://doi.org/10.3390/ai5010002

Chicago/Turabian Style

Pagano, Elena, and Enrico Barbierato. 2024. "A Time Series Approach to Smart City Transformation: The Problem of Air Pollution in Brescia" AI 5, no. 1: 17-37. https://doi.org/10.3390/ai5010002

Article Metrics

Back to TopTop