Next Article in Journal
Hybrid Symmetrical Uncertainty and Reference Set Harmony Search Algorithm for Gene Selection Problem
Next Article in Special Issue
Nonlinear Regression-Based GNSS Multipath Modelling in Deep Urban Area
Previous Article in Journal
Beltrami Equations on Rossi Spheres
Previous Article in Special Issue
Estimation of the Instantaneous Reproduction Number and Its Confidence Interval for Modeling the COVID-19 Pandemic
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning Models to Predict Critical Episodes of Environmental Pollution for PM2.5 and PM10 in Talca, Chile

by
Gonzálo Carreño
1,
Xaviera A. López-Cortés
1,2,* and
Carolina Marchant
3,4,*
1
Faculty of Engineering Sciences, Universidad Católica del Maule, Talca 3480112, Chile
2
Department of Computer Science and Industries, Universidad Católica del Maule, Talca 3480112, Chile
3
Faculty of Basic Sciences, Universidad Católica del Maule, Talca 3480112, Chile
4
ANID-Millennium Science Initiative Program-Millennium Nucleus Center for the Discovery of Structures in Complex Data, Santiago 7820244, Chile
*
Authors to whom correspondence should be addressed.
Mathematics 2022, 10(3), 373; https://doi.org/10.3390/math10030373
Submission received: 9 December 2021 / Revised: 13 January 2022 / Accepted: 21 January 2022 / Published: 26 January 2022

Abstract

:
One of the main environmental problems that affects people’s health and quality of life is air pollution by particulate matter. Chile has nine of the ten most polluted cities in South America according to a report presented in 2019 by Greenpeace and AirVisual that measured the air quality index based on the levels of fine particles. Most Chilean cities are highly contaminated by particulate matter, especially during the months of April to August (the critical episode management period). The objective of this study is to predict particulate matter levels based on meteorological and climatic features, such as temperature, wind speed, wind direction, precipitation and relative air humidity in Talca, Chile, during the critical episode management periods between 2014 and 2018. Predictive models based on machine learning techniques were used, considering training datasets with meteorological and climatic data, and particulate matter levels from the three air quality monitoring stations in Talca, Chile. We carried out the training of 24 models to predict particulate matter levels considering the 24-h average and average between 05:00 to 11:00 p.m. For the model testing, data from the year 2018 during the critical episode management period were used. The obtained results indicate that our models are able to effectively predict levels of particulate matter, enabling correct management of critical episodes, especially for alert, pre-emergency and emergency conditions. We used the cross-platform and open-source programming language Python for the development and implementation of the proposed models and R-project for some visualizations.

1. Introduction

The increase in air pollution rates, the product of suspended particulate matter (PM), is a constant concern throughout the world that, year after year, impacts human health and quality of life [1]. In Chile, improving air quality has been a government priority for years. Diagnosis of emissions of atmospheric pollutants has been carried out in the main cities of the country, stimulating efforts to reduce the pollution generated by the combustion of residential firewood and industrial activity [2]. However, these efforts have not been sufficient to avoid high levels of environmental pollution. Based on the world air quality report, prepared by AirVisual and Greenpeace (https://www.iqair.com/world-most-polluted-cities, accessed on 22 July 2020), Chile has nine of the ten most polluted cities in South America.
PM is a mixture of liquid, solid or liquid and solid particles suspended in air that differ in size, composition and origin source. According to its diameter, it can be classified as: (i) PM10, which comprises particles with an aerodynamic diameter less than 10 μm. These particles penetrate throughout the respiratory system to the lungs, producing irritation and affecting various diseases; (ii) fine PM (PM2.5), which corresponds to the fine fraction of PM10, with an aerodynamic diameter of less than 2.5 μm, allowing it to penetrate further through the respiratory system reaching the pulmonary alveoli [3]. According to its composition, the coarser particles, whose diameter is between 2.5 and 10 μm, contain mainly minerals in addition to carbon. They may also include biological material. The finer particles, with diameter less than 2.5 μm, come mainly from combustion processes, or secondary particles formed from sulfur and nitrogen oxides [4,5,6]. In Chile, in the cold months, PM2.5 emissions come mainly from combustion processes and residential wood burning [7].
The current Chilean primary quality guidelines for PM10 establishes that the maximum 24-h average value is 150 µg/m3N (normal cubic meter, at 25 °C and 1 atmosphere), while for PM2.5 the maximum 24-h average value is 50 µg/m3N. In 2010, Talca was declared a PM saturated area for exceeding these levels, and in 2013, according to resolution 509 of the Chilean Ministry of the Environment, the preparation of an Atmospheric Decontamination Plan for the city was started, for PM10 in terms of both its annual and 24-h levels [8].
Studies show that there is a direct connection between exposure to environmental pollutans and their impact on human health [5]. A determining factor in the variability of air pollution are climatic conditions; however, these are uncontrollable. In some cases, they can overcome some effects caused by human influence, such as those originating in episodes of high vehicle traffic [9]. In Santiago, the capital of Chile, the phenomenon of air pollution and the connection between meteorological and climatic variables in PM levels have been extensively studied. Several statistical techniques have been used for this, including univariate and multivariate regression models, generalized additive models (GAM), and neural networks, among others. However, in Talca, studies on this phenomenon are limited. In one of the few studies undertaken, a deep learning neural network was used to predict PM2.5 levels at three air quality monitoring stations in Talca. The performance measures of their models showed a determination coefficient between 0.65 and 0.74, and an accuracy in predicting critical pollution episodes of 83 to 91% [10]. Similar studies have been carried out in other parts of the world, such as Zeng et al. [11], where GAM models have been used, obtaining coefficients of determination around 0.73. To our knowledge, models based on the support vector machine (SVM) learning model have not been used to predict PM levels in Talca city.
The main objective of this study is to develop a predictive model that allows estimation of PM2.5 and PM10 levels for the next day during the critical episode management (CEM) period. The predictive model is based on SVM models, specifically support vector regression (SVR) models. This machine learning (ML) algorithm is a variant of the SVM model used for classification; however, with this variant the model is used as a regression scheme to predict values, PM levels in this case [12].
The rest of this paper is organized as follows. In Section 2, we present the methodology to be used in this study. In Section 3, we apply the methodology to real Chilean pollution data. In Section 4, we conduct a discussion on the results obtained, comparing them with similar studies. Finally, some conclusions and ideas about future research are provided in Section 5.

2. Methodology

In this section, the methodology used in this investigation is presented, containing a step-by-step description, data, data preprocessing, predictive models, and interpretation/evaluation.

2.1. Step-by-Step Description

The step-by-step description of the proposed methodology for the prediction of PM2.5 and PM10 levels is illustrated in Figure 1. The first step is to obtain data from three air quality monitoring stations (AQMS). The second step is the data preprocessing and construction of a full database containing all this data. The final step is to apply SVR models, optimize hyperparameters and obtain the best model that allows the correct prediction of PM2.5 and PM10 levels.

2.2. Data

Talca, the capital of the Maule region, is a city located 255 km south of Santiago, Chile, with an area of 232 km2 and a population of 236,724 inhabitants. Talca city has a dry season of five months [13]. The city has three AQMSs, each of them located at extreme points of the city, as shown in Figure 2. The Florida AQMS is located in the extreme southwest of Talca (256,889 E 6,075,395 N). The Universidad de Talca (UTAL in Spanish) AQMS is in the northeast sector of the city (260,878 E 6,078,683 N), and finally the Universidad Católica del Maule (UCM in Spanish) AQMS (262,216 E 6,075,477 N) is located in the southeast sector of the city. Each station monitors the atmospheric pollutants regulated in Chile; these are PM, ozone, sulfur dioxide, nitrogen dioxide and carbon monoxide. In addition, meteorological variables, such as atmospheric pressure, relative air humidity, temperature, and wind direction and speed are monitored [4].
The full database was constructed with data from the three AQMSs of Talca city. The collection period was 2014–2018, from January 1 to December 31. The databases downloaded contained data of meteorological, climatic and PM levels. These data were downloaded in CSV format from the National Air Quality Information System (SINCA in Spanish) website of the Chilean Ministry of Environment (https://sinca.mma.gob.cl/, accessed on 22 January 2020). The downloaded data contained 24 daily measurements corresponding to each hour of the day (daily/hour), for every day of the year. Further, to the full database was added the precipitation data from the Research and Transfer Center in Irrigation and Agroclimatology (CITRA in Spanish) of the Universidad de Talca (http://www.citrautalca.cl, accessed on 22 January 2020). For this study, the final database was limited to the CEM periods corresponding to April–August of each year from 2014 to 2018.

2.3. Data Preprocessing

Data preprocessing is a crucial step before the application of ML models. The following steps were considered in this process: variable selection, cleaning, imputation and transformation of the data.

2.3.1. Variable Selection

According to the literature, the most important variables used to predict PM levels have been identified. These variables are wind direction, relative humidity, atmospheric pressure, temperature, wind speed, precipitation, and PM10 and PM2.5 levels. All data were selected and filtered from the full database previously constructed for the CEM periods from 2014 to 2018. It is important to mention that all the data for the 2014–2018 periods were fully validated by SINCA. While data from more recent years, available on the website, are not necessarily validated.
For manipulation of the data, the cross-platform and open-source programming language Python, version 3.8, was used (https://www.python.org/, accessed on 16 October 2020); specifically, we used the libraries available for python, Pandas version 1.2.4 and Numpy version 1.19.2. For data filtering, the Datetime library was used in order to speed up the manipulation of large volumes of data, allowing us to filter data only in the ranges previously mentioned (CEM period).

2.3.2. Data Cleaning

Since the data came from different sources (SINCA and CITRA), an exploratory analysis was carried out to identify unusual values, possible outliers, and missing values, among others. This step helped us to determine whether the data analysis techniques considered were adequate. For this reason, we carried out a preliminary analysis of the available data before using the ML models.
Then, data cleaning was performed in order to remove those years with data not validated by SINCA, corresponding to the years 2019 and 2020. In addition, years prior to 2014 were discarded, specifically from 2004 to 2013, because Talca still did not have a decontamination plan and therefore the AQMS monitoring was not carried out properly.

2.3.3. Data Imputation

Data imputation is essential when we identify missing data, which are defined as unavailable values that are useful or meaningful for the analysis of the results. For data imputation, the K-nearest neighbors (KNN) method was applied. The KNN method stores all the available observations and classifies new cases based on a similarity measure [14]. Specifically, KNN is a classification algorithm that uses current data as input and classifies new data based on distances. These inputs correspond to k closest training instances in the space of the independent feature, while the output is an object assigned to the class most common among its k-nearest neighbors. Thus, suppose we have n pairs of data given by (z1, T1), …, (zn, Tn), where T is the class label of the feature Z, so that Z|T = a ~ Hc, for a = 1,2 classes, where Hc represent a probability model. Now, considering the ordered training instances of the form (z(1), T(1)), …, (z(n), T(n)) such that x ( 1 ) x x ( n ) x , where · corresponds to the Euclidean norm. Then, the k instances must be retained from the current data set closer to z and assume the values of T [15].
Prior to the imputation process, a percentage measurement of the missing data in the different datasets was carried out from 2014 to 2018. Table 1 presents the percentage of missing values for PM levels.

2.3.4. Data Transformation

Data transformation is necessary when there are different scales between the variables or there are too many or too few variables; then a normalization or standardization of the data is carried out using techniques of reduction or increase of the dimensions, as well as simple or multidimensional scaling. During the model evaluation process, a data transformation was carried out using sklearn’s StandardScaler library, to limit the range of values to a numerical scale close to 0, in order to homogenize the values achieved for each of the variables and observe if better results were obtained for the models.

2.4. Predictive Models for PM2.5 and PM10 Levels

From the final database, a total of six new datasets were created. Of which two correspond to each AQMS (La Florida, UCM and UTAL), for PM2.5 and PM10 levels, respectively. Each dataset consists of a matrix of 18,361 samples × 10 columns. The variables, also termed features, corresponded to date, time, wind direction, relative humidity, atmospheric pressure, temperature, wind speed, and precipitation, while the variables to be predicted corresponded to the PM2.5 and PM10 levels. The datasets were named as follows: LF_PM2.5 and LF_PM10 (La Florida AQMS), UCM_PM2.5 and UCM_PM10 (UCM AQMS), and UTAL_PM2.5 and UTAL_PM10 (UTAL AQMS). It is important to note that for each dataset a different set of features were considered. We call these the “baseline variables set” with 8 features and the “extended variables set” with 24 features, respectively. These features are specified in Table 2 and Table 3.
In this way, for each dataset, a predictive model was constructed for the baseline and extended variables set, implying a total of four datasets for each AQMS, which we denoted, LF_PM2.5_baseline, LF_PM2.5_extended, LF_PM10_baseline and LF_PM10_extended, for example, for La Florida AQMS.
The prediction of PM2.5 and PM10 levels was treated with SVR models due to the nature of PM values, where each AQMS correlates climatic and meteorological data with PM concentrations. Before the generation of the models, the dataset from 2014–2017 was divided into 80% for model training and another 20% for model testing using a script developed with Pandas v. Python 1.3.0 (https://pandas.pydata.org, accessed on 12 April 2021). Then, the external validation was made with year 2017 for the UCM and UTAL AQMSs, and with year 2018 for the La Florida AQMS. For the UCM and UTAL AQMSs, we used these years because in the data imputation process in the climatic and meteorological variables, we found several sectors with 5–6 consecutive days without records, equivalent to 125 missing data values per sector. Remember that in our data set we had 24 data values for each day. This amount of missing data is difficult to accurately predict and for this reason we did not use the year 2018 for external validation for these AQMSs.
For feature selection, the Spearman correlation coefficient was used. Table 4 and Figure 3 provide a correlation matrix and correlogram, respectively, with Spearman correlation coefficients for LF_PM10_extended. In Table 4, variables with medium and high correlation coefficients are highlighted in bold. Among the most correlated variables were PM10 with PM2.5 (0.92), minimum temperature with PM2.5 range (−0.96) and maximum PM2.5 (−0.96), minimum temperature with PM2.5 range (−0.95) and maximum PM10 (−0.95), among others. In the correlogram, the positive correlation is represented in red and the negative in blue. As the correlation increases the color is more intense. The correlation matrices and correlograms for UCM and UTAL AQMS are omitted here because similar behaviors were observed.
The dataset for validation tests was used as a complete dataset without any manipulation in order to eliminate any bias for the predictive model. These models were generated for each dataset, namely, LF_PM2.5_baseline and extended, LF_PM10_baseline and extended, UCM_PM2.5_baseline and extended, UCM_PM10_baseline and extended, UTAL_PM2.5_baseline and extended and UTAL_PM10_baseline and extended. Finally, the best model obtained for each dataset (12) was externally validated with the year 2017 or 2018 for PM2.5 and PM10 concentrations.

2.4.1. Support Vector Regression

As previously mentioned, the supervised ML algorithm applied in this study corresponds to SVR, an algorithm proposed by Vapnik [16]. SVR is based on the elements of the SVM algorithm, and allows prediction of linear and nonlinear regression. SVR finds a function f(x) that has the margin of tolerance (ε) most deviated from the actual target value y for all the training data. The regression model can be described as in Equation (1)
f ( x ) = ( w , x ) + b ,
where x is used to estimate the scaler vector of y by means of the n-dimensional weighting coefficient w, and the constant coefficient is b. The margin of tolerance can be minimized and calculated as in Equation (2)
m i n i m i z e   1 2   w 2 + C   i = 1 n ( ξ i + ξ ˆ i ) ,
where C is a factor of tradeoff between the overfitting and the underfitting, known as the penalty parameter, and ξ i   and   ξ ˆ i are the slack variables. If the data cannot be placed into the margin, the slack variables can be used to solve the problem by employing the following Equation (3)
| y i w i x i |     ε + | ξ i | ,
where ε is a tolerance margin close to the vector in order to minimize the error, taking into account that part of the error that is tolerated. SVR primarily achieves nonlinear function fitting by selecting different internal functions from the product core. The most common kernel functions are linear, polynomial, and radial-based (RBF). The main goal of SVR is to find an optimal value for C and γ (kernel parameter). The SVR implemented in this study used the RBF kernel, as it is one of the most widely used kernels due to its similarity to the Gaussian distribution. The RBF kernel function for two points x1 and x2 calculates the similarity or how close they are to each other. The SVR is available in the Scikit-Learn Library (https://scikitlearn.org/stable/, accessed on 12 April 2021).

2.4.2. Model Calibration and Performance Evaluation

Cross-validation of time-series was implemented using Sklearn’s TimeSeriesSplit library and GridSearchCV was used to identify optimal parameters during the model development. Specifically, for the SVR hyperparameter optimization (C, ε and γ) a grid search with a five-fold cross-validation was used in order to fit the model on the training set. In this way, using GridSearchCV, the best parameters were obtained for each model. Data was divided as follows: (i) For UCM and UTAL AQMS, data from 2014 to 2016 was used for training and test, and data from 2017 was used for the external validation in order to evaluate the model forecast; (ii) For LF AQMS, data from 2014 to 2017 was used for training and test, and data from 2018 was used for the external validation.
The performance of the models implemented was evaluated by the determination coefficient (R2) and root mean square error (RMSE). The closer R2 is to 1, the higher the model fit and stability. The RMSE refers to the expected value of the square root of the difference between the estimated and that observed. For forecast accuracy evaluation, we use the mean absolute scaled error (MASE).

3. Application and Results

In this section, the methodology proposed in the previous section is applied to the Chilean real pollution data of Talca city.

3.1. Data and Preprocessing

As mentioned in previous sections, a total of 12 data sets were constructed based on the variables described in Table 2 and Table 3. According to the preprocessing, different graphs of the data ordered by year and type of PM for the different AQMS were obtained. Figure 4 shows the average PM2.5 levels for the months of the CEM period, for the years 2014 to 2017. Considering the Chilean regulations that allow a maximum value 24-h average of 50 µg/m3N, we can observe in Figure 4a–d that, in the La Florida AQMS, this threshold was exceeded in most of the years analyzed, especially in the months of May to August. In addition, in this Figure, we note that, in 2017, the average PM2.5 concentrations in La Florida AQMS were lower than in previous years. These levels of PM2.5 constitute a problem for the human health of the population close to this AQMS. For the generation of these graphics, R-project [17] version 4.0.2 was used (https://www.r-project.org/, accessed on 9 December 2021).
Figure 5 shows the average PM10 concentrations for the months of the CEM period, for the years 2014 to 2017. We can observe similar behavior to Figure 4, La Florida AQMS being again the station with the highest levels of PM10. Figure 6 and Figure 7 show plots of average PM2.5 and PM10 levels per month and hour during the CEM period for La Florida AQMS during the years 2014 to 2017, respectively. All these plots show an increase in PM levels from 05:00 p.m., reaching a peak around 10:00 p.m. Note that the same behavior was observed for the UCM and UTAL AQMS, but these plots are omitted here. Regarding this situation, the hours in which the PM increases coincided with the peak hours of traffic in all the cities of Chile. According to Yáñez et al. [7], this result suggests that this peak corresponds mainly to primary sources, such as vehicular traffic. However, the highest PM emissions, between 8:00 p.m. and 11:00 p.m., may be due to residential firewood burning because temperatures dropped during this period, causing an increase in residential heating [7].

3.2. Predictive Models for PM2.5 and PM10

As mentioned in previous sections, a total of 12 datasets were constructed based on the variables described in Table 2 and Table 3. For each dataset a predictive model was constructed. Data from 2014 to 2017 was divided into 80% of training data and 20% of testing sets (used for the evaluation of the models) and the external validation was made with the 2018 year. In the case of the UCM and UTAL monitoring stations only, data from 2017 was used for external validation of the models.
Hyperparameter optimization is to find, among all the models, those hyperparameters that return the best performance measure with the validation dataset. In this study, simple grid optimization was applied for hyperparameter optimization. The optimization parameters used were: C = 50, ε = 0.0075 and γ = 1 × 10−5. These parameters were used for all models. The ML supervised classification algorithm SVR was used to predict PM levels. In detail, to evaluate the performance of the models used and establish improvements in their predictions, two new datasets were derived from the baseline and extended datasets with the same characteristics as the original datasets, but for the hourly range between 05:00 to 11:00 p.m. These new datasets were created due to the trends observed in Figure 6 and Figure 7, where an increase in PM concentrations was observed within this interval in the three AQMSs. Therefore, we carried out the training of 24 models to predict PM2.5 and PM10 levels in the three AQMSs of Talca city, considering the 24-h average and the average between 05:00 to 11:00 p.m. In this way, for each AQMS (UCM, UTAL and La Florida), eight models were implemented, for example, for UCM AQMS we have: UCM_baseline_PM2.5, UCM_baseline_PM10, UCM_extended_PM2.5, UCM_extended_PM10, UCM_baseline_PM2.5_5-11pm, UCM_baseline_PM10_5-11pm, UCM_extended_PM2.5_5-11pm and UCM_ extended _PM10_5-11pm.

Model Performance and Evaluation

The following tables show the results obtained during the training phase with data from 2014 to 2017 for La Florida AQMS, and from 2014 to 2016 for the UCM and UTAL AQMSs. For the evaluation of model performance, we use the determination coefficient R2 and RMSE. For forecast accuracy evaluation, we use the MASE [18].
We separated the results for the training predictive models where the 24-h averages and the averages between 05:00 to 11:00 p.m. were used. Table 5 and Table 6 show the model performance results for the 24-h average and average between 05:00 to 11:00 p.m., respectively.
According to the results of Table 5, it is possible to note that, for each AQMS, the model performance, for the prediction of PM2.5 and PM10 concentrations, was improved for the extended datasets. In general, the determination coefficients obtained by the adjusted SVR models indicate a good fit in the 12 scenarios shown in Table 5. The R2 were between 0.66 and 0.88, evidencing a good performance, especially in the adjusted models for the UTAL and La Florida AQMSs. Moreover, the RMSE values were smaller in models for the UCM and UTAL AQMS. In addition, the MASE values indicate that the forecast level of the models is good (MASE < 1), especially in the UTAL AQMS.
The training results shown in Table 6 indicate that for all AQMSs the performance of the model based on R2 was between 0.67 and 0.88, which implies a good fit of the SVR model. Furthermore, as in the previous case, the RMSE values were smaller in models for the UCM and UTAL AQMS and better performance was observed for the extended database. When comparing the results of Table 5 and Table 6, we can observe that the R2 were higher in the adjusted models for averages between 05:00 to 11:00 p.m. While the MASE values indicate a higher forecast level for the models for averages between 05:00 to 11:00 p.m. Subsequently, an external validation of the best models obtained in the training phase was made with year 2017 for the UCM and UTAL AQMS, and with year 2018 for the La Florida AQMS.
Table 7 and Table 8 show the model´s performance for predicted PM10 and PM2.5 levels, based on statistics R2, RMSE and MASE, for 24-h average data and average between 05:00 to 11:00 p.m., respectively.
According to the results of Table 7, the R2 of the adjusted model for prediction of PM10 levels varied from 0.80 to 0.91 and from 0.81 to 0.92 for PM2.5 prediction. In Table 8, the R2 of the adjusted model for PM10 prediction varied from 0.85 to 0.93 and from 0.86 to 0.94 for PM2.5 prediction. The RMSE values were smaller in models for the UCM and UTAL AQMS than in the training stage. In addition, according to Table 8, the MASE values indicates a higher forecast level in the models for averages between 05:00 to 11:00 p.m.
In general, the determination coefficients obtained by the adjusted SVR models indicate a good fit in the 24 scenarios shown in Table 7 and Table 8. However, the results obtained to predict PM10 and PM2.5 were better with the model for the extended dataset and averages between 05:00 to 11:00 p.m.
Finally, plots of the predicted versus observed PM10 and PM2.5 levels are shown in Figure 8 and Figure 9 for La Florida AQMS, respectively. Plots for the other AQMSs show similar behavior and are omitted here. In Figure 8 and Figure 9, predictively, the SVR model followed the trend of the observed data. However, a better level of prediction was observed in the plots for the extended dataset using the averages between 05:00 to 11:00 p.m. These predictions are shown in Figure 8 and Figure 9c,d.
Table 9 shows the Chilean primary quality guidelines for PM2.5 and PM10 levels in 24-h. Next, the prediction capacity of the proposed models with respect to the primary quality guidelines for PM2.5 and PM10 were analyzed, based on which the degree of precision to detect critical episodes was determined. Table 10 and Table 11 contain the categorization of the observed and predicted concentrations according to the primary air quality regulations for each category (i.e., good, regular, alert, pre-emergency and emergency) for averages between 05:00 to 11:00 p.m. and PM2.5 and PM10 levels. Note that, in Table 10 and Table 11, we categorize the observed and predicted levels according to the categories indicated in Table 9; for example, in the La Florida AQMS there were 64 concentrations of PM2.5 in good condition, of which 61 were correctly predicted. The objective of these tables is to evaluate the predictive capacity of the proposed models.
As can be seen, in Table 10 and Table 11, the predicted values have a high accuracy; if we observe the alert, pre-emergency and emergency conditions, the model developed achieved a high prediction accuracy for these classes, which represented a minority in the CEM period. This is of great relevance, since, for the lifting of citizen restrictions in a timely manner, it is crucial to efficiently predict these minority classes due to their relevance to alert and manage critical episodes during the months of April to August.
Table 12, Table 13, Table 14, Table 15, Table 16 and Table 17 show the data correctly classified for each of the air quality categories (Table 9) and those that were misclassified in other categories. For each table, we also provide the respective percentages of correct classification. In detail, the contingency Table 12, Table 13 and Table 14 show the predicted air quality categories for PM2.5 levels in the case of La Florida, UCM and UTAL AQMSs. Meanwhile contingency Table 15, Table 16 and Table 17 show the predicted categories for PM10 levels for each AQMS.
In Table 12, Table 13 and Table 14, it is possible to observe that our models are capable of predicting PM2.5 levels for each category with high precision. In the case of La Florida AQMS, the prediction of each category was: good equals to 91.9%, regular equals to 50.9%, alert equals to 34.9%, pre-emergency equals to 58.4% and emergency equals to 69.9%. For UCM AQMS, prediction values were as follow: good equals to 96.0%, regular equals to 61.2%, alert equals to 64.8%, pre-emergency equals to 80.5% and emergency equals to 91.4%. Finally, in the case of UTAL AQMS, our model gave prediction values for each category as follows: good equals to 89.4%, regular equals to 68.9%, alert equals to 55.4%, pre-emergency equals to 81.3% and emergency equals to 100%. Specifically, we note that the prediction is good in the minority categories (i.e., alert, pre-emergency and emergency). These categories are very important due their relevance in the monitoring of critical episodes.
For PM10 prediction, Table 15, Table 16 and Table 17 show the values and percentage of successes for each category. In the case of La Florida AQMS, the prediction of each category was: good equals to 94.7%, regular equals to 48.9%, alert equals to 37.9%, pre-emergency equals to 52.3% and emergency equals to 75%. For UCM AQMS, prediction values were as follows: good equals to 99.4%, regular equals to 51.6%, alert equals to 73.7%, pre-emergency equals to 70% and emergency equals to 100%. Finally, in the case of UTAL AQMS, our model gave prediction values for each category as follows: good equals to 99.7%, regular equals to 56.4%, alert equals to 44.4%, pre-emergency equals to 60% and emergency equals to 57.1%.

4. Discussion

Based on the results obtained with the training dataset for all stations, it was observed that the best performance was obtained with the models that used the extended datasets, but limited to the hourly range from 05:00 to 11:00 p.m., both for PM10 and PM2.5 levels, as can be seen in Table 5 and Table 6. In the validation stage, it can be observed that the behavior of the models showed a similar trend, obtaining better results with the extended datasets within the limited hourly range for the PM10 and PM2.5 levels; see Table 7 and Table 8.
Regarding related studies in Talca city, only one was found in our literature search; this study was carried out in 2019 with the objective of predicting PM2.5 concentrations using deep neural networks [10]. In this study, the determination coefficients obtained were 0.65, 0.74 and 0.74 for La Florida, UCM and UTAL AQMS, respectively. Comparatively, the determination coefficients obtained in this study using the SVR model were 0.87, 0.94 and 0.91 for La Florida, UCM and UTAL AQMS, demonstrating better performance with respect to models based on neural networks. In addition, in our study, we implemented models to predict PM10 levels in order to provide a robust tool for decision-making since the primary Chilean air quality regulations require monitoring of PM2.5 and PM10 to inform decisions about critical air pollution episodes.
The main advantage of this research is the low computational consumption in the generation of predictive models based on SVR, once the hyperparameters have been optimized. With these models it was possible to obtain predictions with high accuracy, as observed in Table 7 and Table 8, better than the results obtained in similar investigations, for example those that have used multilayer neural networks for prediction.
Furthermore, Zeng et al. [11] used GAM to predict PM2.5 concentrations, based on multiple meteorological variables, in Chengdu, China. One of the GAMs developed in this study exhibited an adjusted coefficient of determination of 0.73, which is comparatively lower than the behavior shown with the models proposed by us.
Finally, the SVR-based model presented in this paper obtained comparatively superior results to the models described in the literature, highlighting the great potential of this tool for the classification of minority conditions, such as alert, pre-emergency and emergency. Moreover, it exceeded the estimates obtained by models based on neural networks, such as long short-term memory (LSTM) and statistical models, such as GAM (see [10,11]). The excellent performance of SVR makes it a viable and efficient alternative for the development of predictive models that help manage episodes of environmental emergency.

5. Conclusions and Future Investigation

In this study, predictive models based on machine learning techniques were implemented considering climatic and meteorological data, together with particulate matter levels to predict PM2.5 and PM10 in the three air quality monitoring stations in Talca, Chile. A total of 24 scenarios were considered in which the datasets were composed of baseline dataset, extended dataset, 24-h average data, and average between 05:00 to 11:00 p.m. Of these scenarios, 12 were used to predict PM10 and the others to predict PM2.5 levels.
Our models implemented with support vector regression indicate the capability to predict, with a high percentage of successes, not only the majority category (good and regular), but also the minority categories presented in the datasets, which corresponded to alert, pre-emergency and emergency. In this way, our methodology allows prediction, with high effectiveness, of critical episodes of air quality, for specific PM2.5 and PM10 levels.
Note that the proposed models are based on the real state of the environment of Talca city, such as the number and distribution of monitoring stations in time and space, real concentrations of particulate matter, and meteorological variables. If any of these conditions change, the proposed models must be adapted according to these changes.
Future research, arising from the present applied investigation, is proposed as follows: (1) development of an interface based on Python, where the proposed machine learning models are implemented with automatic daily data extraction from the National Air Quality Information System website, allowing the prediction of critical pollution episodes in real time for Talca city and for other cities in the country that have updated air quality monitoring data, (2) application of other machine learning techniques, such as long short-term memory neural networks for the prediction of PM concentrations in Talca city.

Author Contributions

Data curation, G.C.; formal analysis, G.C., C.M. and X.A.L.-C.; investigation, G.C., C.M. and X.A.L.-C.; methodology, C.M. and X.A.L.-C.; writing—original draft, C.M. and X.A.L.-C.; writing—review and editing, G.C., C.M. and X.A.L.-C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported partially by project grants “Fondecyt 11190636” (C. Marchant) from the National Agency for Research and Development (ANID) of the Chilean government and by ANID-Millennium Science Initiative Program—NCN17_059 (C. Marchant).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data and computational codes are available upon request from the authors.

Acknowledgments

The authors acknowledge to CITRA at the Universidad de Talca for providing us the precipitation records of Talca city used in this research.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Scapini, V.; Carrasco, C.; Vergara Silva, C. Efectos de la contaminación del aire en atenciones de urgencia de la Región Metropolitana. Rev. Ing. Sist. 2018, 32, 55–73. [Google Scholar]
  2. Ou, C.; Hedley, A.; Chung, R.; Thach, T.; Chau, Y.; Chan, K.; Yang, L.; Ho, S.; Wong, C.-M.; Lam, T. Socioeconomic disparities in air pollution-associated mortality. Environ. Res. 2008, 107, 237–244. [Google Scholar] [CrossRef] [PubMed]
  3. Marchant, C.; Leiva, V.; Christakos, G.; Cavieres, M.F. Monitoring urban environmental pollution by bivariate control charts: New methodology and case study in Santiago, Chile. Environmetrics 2019, 30, e2551. [Google Scholar] [CrossRef]
  4. MMA. Air Quality. Chapter 14 State of the Environment Report; National Environmental Information System, Ministry of the Environment of the Chilean Government: Santiago, Chile, 2021.
  5. Cavieres, M.F.; Leiva, V.; Marchant, C.; Rojas, F. A methodology for data-driven decision making in the monitoring of particulate matter environmental contamination in Santiago of Chile. Rev. Environ. Contam. Toxicol. 2020, 250, 45–67. [Google Scholar] [CrossRef] [PubMed]
  6. WHO. Particulate Matter. In Air Quality Guidelines for Europe; World Health Organization, Regional Office for Europe: Copenhagen, Denmark, 2000; Chapter 7.3. [Google Scholar]
  7. Yáñez, M.; Baettig, R.; Cornejo, J.; Zamudio, F.; Guajardo, J.; Fica, R. Urban airborne matter in central and southern Chile: Effects of meteorological conditions on fine and coarse particulate matter. Atmos. Environ. 2017, 161, 221–234. [Google Scholar] [CrossRef]
  8. MMA. Establishes Atmospheric Decontamination Plan for the Communes of Talca and Maule; Technical Report Decree 509; Ministry of Environment of the Chilean Government: Santiago, Chile, 2013.
  9. Puentes, R.; Marchant, C.; Leiva, V.; Figueroa-Zúñiga, J.I.; Ruggeri, F. Predicting PM2.5 and PM10 Levels during Critical Episodes Management in Santiago, Chile, with a Bivariate Birnbaum-Saunders Log-Linear Model. Mathematics 2021, 9, 645. [Google Scholar] [CrossRef]
  10. Astudillo, C.A.; González-Martínez, L.; Zapata-González, E. Predicting air quality using deep learning in Talca City, Chile. In Proceedings of the 10th International Conference on Pattern Recognition Systems, Tours, France, 8–10 July 2019. [Google Scholar]
  11. Zeng, Y.; Jaffe, D.A.; Qiao, X.; Miao, Y.; Tang, Y. Prediction of potentially high PM2.5 concentrations in Chengdu, China. Aerosol Air Qual. Res. 2020, 20, 956–965. [Google Scholar] [CrossRef] [Green Version]
  12. Awad, M.; Khanna, R. Support vector regression. In Efficient Learning Machines; Apress: Berkeley, CA, USA, 2015; pp. 67–80. Available online: https://link.springer.com/chapter/10.1007/978-1-4302-5990-9_4 (accessed on 23 April 2021).
  13. Salini Calderon, G.A. Particulate Matter Analysis from Mid-sized Cities in the South of Chile. INGE CUC 2014, 10, 97–108. Available online: http://hdl.handle.net/11323/2610 (accessed on 14 March 2021).
  14. Altman, N.S. An introduction to kernel and nearest-neighbor nonparametric regression. Am. Stat. 1992, 46, 175–185. [Google Scholar]
  15. Palacios, C.A.; Reyes-Suarez, J.A.; Bearzotti, L.A.; Leiva, V.; Marchant, C. Knowledge Discovery for Higher Education Student Retention Based on Data Mining: Machine Learning Algorithms and Case Study in Chile. Entropy 2021, 23, 485. [Google Scholar] [CrossRef]
  16. Vapnik, V. The Nature of Statistical Learning Theory; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
  17. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2021. [Google Scholar]
  18. Hyndman, R.; Koehler, A. Another look at measures of forecast accuracy. Int. J. Forecast. 2006, 22, 679–688. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Step-by-step description of the proposed methodology for the prediction of PM2.5 and PM10 levels.
Figure 1. Step-by-step description of the proposed methodology for the prediction of PM2.5 and PM10 levels.
Mathematics 10 00373 g001
Figure 2. Map of Talca city with its respective AQMSs, source Google Maps (https://www.google.cl/maps, accessed on 25 April 2021).
Figure 2. Map of Talca city with its respective AQMSs, source Google Maps (https://www.google.cl/maps, accessed on 25 April 2021).
Mathematics 10 00373 g002
Figure 3. Correlogram for LF_PM10_extended where F1 to F24 are defined in Table 2 and Table 3.
Figure 3. Correlogram for LF_PM10_extended where F1 to F24 are defined in Table 2 and Table 3.
Mathematics 10 00373 g003
Figure 4. Average PM2.5 levels by AQMS and month, during the CEM period in Talca, Chile for the years 2014 (a), 2015 (b), 2016 (c) and 2017 (d).
Figure 4. Average PM2.5 levels by AQMS and month, during the CEM period in Talca, Chile for the years 2014 (a), 2015 (b), 2016 (c) and 2017 (d).
Mathematics 10 00373 g004
Figure 5. Average PM10 levels by AQMS and month, during the CEM period in Talca, Chile for the years 2014 (a), 2015 (b), 2016 (c) and 2017 (d).
Figure 5. Average PM10 levels by AQMS and month, during the CEM period in Talca, Chile for the years 2014 (a), 2015 (b), 2016 (c) and 2017 (d).
Mathematics 10 00373 g005
Figure 6. Average PM2.5 levels per month and hour during the CEM period in AQMS La Florida for the years 2014 (a), 2015 (b), 2016 (c) and 2017 (d).
Figure 6. Average PM2.5 levels per month and hour during the CEM period in AQMS La Florida for the years 2014 (a), 2015 (b), 2016 (c) and 2017 (d).
Mathematics 10 00373 g006
Figure 7. Average PM10 levels per month and hour during the CEM period in AQMS La Florida for the years 2014 (a), 2015 (b), 2016 (c) and 2017 (d).
Figure 7. Average PM10 levels per month and hour during the CEM period in AQMS La Florida for the years 2014 (a), 2015 (b), 2016 (c) and 2017 (d).
Mathematics 10 00373 g007
Figure 8. Predicted versus observed PM2.5 levels for La Florida AQMS with (a) baseline data set for 24-h average, (b) extended dataset for 24-h average, (c) baseline dataset for averages between 05:00 to 11:00 p.m. and (d) extended dataset for averages between 05:00 to 11:00 p.m.
Figure 8. Predicted versus observed PM2.5 levels for La Florida AQMS with (a) baseline data set for 24-h average, (b) extended dataset for 24-h average, (c) baseline dataset for averages between 05:00 to 11:00 p.m. and (d) extended dataset for averages between 05:00 to 11:00 p.m.
Mathematics 10 00373 g008
Figure 9. Predicted versus observed PM10 levels for La Florida AQMS with (a) baseline data set for 24-h average, (b) extended dataset for 24-h average, (c) baseline dataset for averages between 05:00 to 11:00 p.m. and (d) extended dataset for averages between 05:00 to 11:00 p.m.
Figure 9. Predicted versus observed PM10 levels for La Florida AQMS with (a) baseline data set for 24-h average, (b) extended dataset for 24-h average, (c) baseline dataset for averages between 05:00 to 11:00 p.m. and (d) extended dataset for averages between 05:00 to 11:00 p.m.
Mathematics 10 00373 g009
Table 1. Percentage of missing values by Talca AQMS in the period 2014–2018.
Table 1. Percentage of missing values by Talca AQMS in the period 2014–2018.
PM2.5 Missing Values (in %)PM10 Missing Values (in %)
La Florida2.0861.612
UCM1.6341.895
UTAL4.9241.133
Table 2. Baseline variables set.
Table 2. Baseline variables set.
Air Pollution VariablesMeteorological and Climatic Variables
F3: wind direction
F1: MP10 concentrationF4: relative humidity
F2: MP2.5 concentrationF5: atmospheric pressure
F6: temperature
F7: wind speed
F8: precipitation
Table 3. Extended variables set.
Table 3. Extended variables set.
Air Pollution VariablesMeteorological and Climatic VariablesDaily AveragesDaily Minimum and Maximum Daily Range
F1: MP10 concentrationF3: wind directionF9: average wind directionF16: minimum temperatureF22: temperature range
F2: MP2.5 concentrationF4: relative humidityF10: average relative humidityF17: maximum temperatureF23: PM10 range
F5: atmospheric pressureF11: average temperatureF18: minimum PM10 F24: PM2.5 range
F6: temperatureF12: average atmospheric pressureF19: maximum PM10
F7: wind speedF13: average wind speed F20: minimum PM2.5
F8: precipitationF14: average PM10F21: maximum PM2.5
F15: average PM2.5
Table 4. Correlation matrix for LF_PM10_ extended where F1 to F24 are defined in Table 2 and Table 3.
Table 4. Correlation matrix for LF_PM10_ extended where F1 to F24 are defined in Table 2 and Table 3.
F1F2F3F4F5F6F7F8F9F10F11F12F13F14F15F16F17F18F19F20F21F22F23F24
F110.92−0.020.190.04−0.20−0.36−0.12−0.060.15−0.210.07−0.240.490.450.01−0.020.120.020.13−0.01−0.010.02−0.02
F20.9210.000.260.07−0.28−0.37−0.11−0.030.21−0.270.11−0.250.450.49−0.02−0.020.040.020.060.020.000.020.02
F3−0.020.001−0.080.040.040.00−0.050.37−0.060.010.05−0.01−0.05−0.03−0.060.08−0.140.03−0.130.070.080.030.07
F40.190.26−0.0810.06−0.74−0.420.11−0.100.57−0.310.06−0.110.180.24−0.110.03−0.010.12−0.020.130.080.120.13
F50.040.070.040.061−0.20−0.08−0.180.080.06−0.240.55−0.080.070.12−0.050.01−0.090.03−0.080.060.030.030.06
F6−0.20−0.280.04−0.74−0.2010.350.040.02−0.390.72−0.290.11−0.30−0.390.13−0.020.07−0.110.04−0.14−0.09−0.11−0.14
F7−0.36−0.370.00−0.42−0.080.3510.28−0.02−0.130.10−0.090.64−0.31−0.310.05−0.080.08−0.040.06−0.05−0.07−0.04−0.05
F8−0.12−0.11−0.050.11−0.180.040.281−0.120.180.05−0.290.42−0.21−0.19−0.02−0.040.030.020.030.02−0.010.020.02
F9−0.06−0.030.37−0.100.080.02−0.02−0.121−0.170.030.14−0.03−0.13−0.06−0.170.22−0.360.09−0.360.180.200.090.18
F100.150.21−0.060.570.06−0.39−0.130.18−0.171−0.540.11−0.200.310.43−0.190.06−0.020.21−0.030.230.140.210.23
F11−0.21−0.270.01−0.31−0.240.720.100.050.03−0.541−0.400.15−0.42−0.550.18−0.030.10−0.150.06−0.20−0.12−0.15−0.20
F120.070.110.050.060.55−0.29−0.09−0.290.140.11−0.401−0.140.130.21−0.150.05−0.160.12−0.160.160.110.120.16
F13−0.24−0.25−0.01−0.11−0.080.110.640.42−0.03−0.200.15−0.141−0.49−0.500.07−0.130.13−0.060.09−0.07−0.10−0.06−0.07
F140.490.45−0.050.180.07−0.30−0.31−0.21−0.130.31−0.420.13−0.4910.920.02−0.040.240.040.26−0.03−0.030.04−0.03
F150.450.49−0.030.240.12−0.39−0.31−0.19−0.060.43−0.550.21−0.500.921−0.04−0.030.080.050.130.050.010.050.05
F160.01−0.02−0.06−0.11−0.050.130.05−0.02−0.17−0.190.18−0.150.070.02−0.041−0.770.63−0.950.62−0.96−0.95−0.95−0.96
F17−0.02−0.020.080.030.01−0.02−0.08−0.040.220.06−0.030.05−0.13−0.04−0.03−0.771−0.640.69−0.660.820.930.690.82
F180.120.04−0.14−0.01−0.090.070.080.03−0.36−0.020.10−0.160.130.240.080.63−0.641−0.440.94−0.66−0.68−0.45−0.67
F190.020.020.030.120.03−0.11−0.040.020.090.21−0.150.12−0.060.040.05−0.950.69−0.441−0.430.900.890.990.90
F200.130.06−0.13−0.02−0.080.040.060.03−0.36−0.030.06−0.160.090.260.130.62−0.660.94−0.431−0.68−0.68−0.43−0.68
F21−0.010.020.070.130.06−0.14−0.050.020.180.23−0.200.16−0.07−0.030.05−0.960.82−0.660.90−0.6810.950.900.99
F22−0.010.000.080.080.03−0.09−0.07−0.010.200.14−0.120.11−0.10−0.030.01−0.950.93−0.680.89−0.680.9510.890.95
F230.020.020.030.120.03−0.11−0.040.020.090.21−0.150.12−0.060.040.05−0.950.69−0.450.99−0.430.900.8910.90
F24−0.020.020.070.130.06−0.14−0.050.020.180.23−0.200.16−0.07−0.030.05−0.960.82−0.670.90−0.680.990.950.901
Table 5. R2, RMSE and MASE for training models using 24-h average.
Table 5. R2, RMSE and MASE for training models using 24-h average.
PM10 LevelsPM2.5 Levels
AQMSBaseline DatasetExtended DatasetBaseline DatasetExtended Dataset
R2RMSEMASER2RMSEMASER2RMSEMASER2RMSEMASE
La Florida0.8534.660.750.8732.410.710.8626.570.720.8725.540.67
UCM0.6628.370.900.7425.010.760.6919.960.930.7916.450.75
UTAL0.8122.330.650.8520.400.590.8415.820.650.8813.590.56
Table 6. R2, RMSE and MASE for training models using averages between 05:00 to 11:00 p.m.
Table 6. R2, RMSE and MASE for training models using averages between 05:00 to 11:00 p.m.
PM10 LevelsPM2.5 Levels
AQMSBaseline DatasetExtended DatasetBaseline DatasetExtended Dataset
R2RMSEMASER2RMSEMASER2RMSEMASER2RMSEMASE
La Florida0.8745.950.520.8842.760.480.8736.700.500.8735.760.47
UCM0.6737.870.630.7533.410.550.7127.300.610.8121.760.52
UTAL0.8031.300.480.8428.170.430.8421.940.450.8918.330.38
Table 7. R2, RMSE and MASE for predictive models for 24-h average.
Table 7. R2, RMSE and MASE for predictive models for 24-h average.
PM10 LevelsPM2.5 Levels
AQMSBaseline DatasetExtended DatasetBaseline DatasetExtended Dataset
R2RMSEMASER2RMSEMASER2RMSEMASER2RMSEMASE
La Florida0.8033.680.990.8232.220.940.8129.781.050.8328.050.99
UCM0.8814.140.820.912.470.600.8911.430.790.919.820.66
UTAL0.9111.800.910.912.480.670.929.750.610.9011.370.75
Table 8. R2, RMSE and MASE for predictive models for averages between 05:00 to 11:00 p.m.
Table 8. R2, RMSE and MASE for predictive models for averages between 05:00 to 11:00 p.m.
PM10 LevelsPM2.5 Levels
AQMSBaseline DatasetExtended DatasetBaseline DatasetExtended Dataset
R2RMSEMASER2RMSEMASER2RMSEMASER2RMSEMASE
La Florida0.8541.020.570.8540.370.560.8633.690.560.8732.180.55
UCM0.9315.430.520.9314.440.440.9411.860.420.9412.040.44
UTAL0.9314.620.370.9215.670.410.9312.700.350.9115.060.48
Table 9. Chilean primary quality guidelines for PM concentrations in 24-h [4].
Table 9. Chilean primary quality guidelines for PM concentrations in 24-h [4].
ConditionPM2.5 ConcentrationPM10 Concentration
good[0,49][0,149]
regular[50,79][150,194]
alert[80,109][195,239]
pre-emergency[110,169][240,329]
emergency≥170≥330
Table 10. Categorization of observed and predicted PM2.5 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m.
Table 10. Categorization of observed and predicted PM2.5 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m.
Condition
AQMSGoodRegularAlertPre-EmergencyEmergency
ObservedPredictedObservedPredictedObservedPredictedObservedPredictedObservedPredicted
La Florida6461261921925201711
UCM1151091913868833
UTAL96863022151011911
Table 11. Categorization of observed and predicted PM10 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m.
Table 11. Categorization of observed and predicted PM10 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m.
Condition
AQMSGoodRegularAlertPre-EmergencyEmergency
ObservedPredictedObservedPredictedObservedPredictedObservedPredictedObservedPredicted
La Florida50402317231528232925
UCM8177392515712765
UTAL616141212613191266
Table 12. Correctly classified PM2.5 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for La Florida AQMS.
Table 12. Correctly classified PM2.5 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for La Florida AQMS.
GoodRegularAlertPre-EmergencyEmergencyTotal
Good48891.9%305.6%61.1%61.1%10.2%531
Regular6137.9%8250.9%1710.6%10.6%00.0%161
Alert32.8%4845.3%3734.9%1716.0%10.9%106
Pre-emergency10.7%85.8%3626.3%8058.4%128.8%137
Emergency10.7%32.2%53.7%3223.5%9569.9%136
Total55451.7%17116.0%1019.4%13699.7%10910.2%1071
Table 13. Correctly classified PM2.5 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for UCM AQMS.
Table 13. Correctly classified PM2.5 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for UCM AQMS.
GoodRegularAlertPre-EmergencyEmergencyTotal
Good79296.0%334.0%00.0%00.0%00.0%825
Regular2118.1%7161.2%2219.0%21.7%00.0%116
Alert00.0%1527.8%3564.8%47.4%00.0%54
Pre-emergency00.0%12.4%512.2%3380.5%24.9%41
Emergency00.0%00.0%00.0%38.6%3291.4%35
Total81375.9%12011.2%625.8%423.9%343.2%1071
Table 14. Correctly classified PM2.5 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for UTAL AQMS.
Table 14. Correctly classified PM2.5 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for UTAL AQMS.
GoodRegularAlertPre-EmergencyEmergencyTotal
Good64989.4%7310.1%30.4%10.1%00.0%726
Regular21.2%11168.9%4427.3%42.5%00.0%161
Alert00.0%79.5%4155.4%2432.4%22.7%74
Pre-emergency00.0%00.0%34.0%6181.3%1114.7%75
Emergency00.0%00.0%00.0%00.0%35100.0%35
Total65160.8%19117.8%918.5%908.4%484.5%1071
Table 15. Correctly classified PM10concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for La Florida AQMS.
Table 15. Correctly classified PM10concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for La Florida AQMS.
GoodRegularAlertPre-EmergencyEmergencyTotal
Good78994.7%253.0%151.8%40.5%00.0%833
Regular2730.7%4348.9%1213.6%55.7%11.1%88
Alert46.9%2237.9%2237.9%915.5%11.7%58
Pre-emergency12.3%24.5%1022.7%2352.3%818.2%44
Emergency00.0%00.0%12.1%1122.9%3675.0%48
Total82176.7%928.6%605.6%524.9%464.3%1071
Table 16. Correctly classified PM10 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for UCM AQMS.
Table 16. Correctly classified PM10 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for UCM AQMS.
GoodRegularAlertPre-EmergencyEmergencyTotal
Good99799.4%60.6%00.0%00.0%00.0%1003
Regular825.8%1651.6%722.6%00.0%00.0%31
Alert15.3%15.3%1473.7%315.8%00.0%19
Pre-emergency00.0%00.0%220.0%770.0%110.0%10
Emergency00.0%00.0%00.0%00.0%8100.0%8
Total100693.9%232.1%232.1%100.9%90.8%1071
Table 17. Correctly classified PM10 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for UTAL AQMS.
Table 17. Correctly classified PM10 concentrations based on Chilean primary quality guidelines in CEM period for extended dataset and averages between 05:00 to 11:00 p.m. for UTAL AQMS.
GoodRegularAlertPre-EmergencyEmergencyTotal
Good96499.7%30.3%00.0%00.0%00.0%967
Regular2240.0%3156.4%23.6%00.0%00.0%55
Alert13.7%1140.7%1244.4%311.1%00.0%27
Pre-emergency00.0%00.0%640.0%960.0%00.0%15
Emergency00.0%00.0%00.0%342.9%457.1%7
Total98792.2%454.2%201.9%15114.0%40.4%1071
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Carreño, G.; López-Cortés, X.A.; Marchant, C. Machine Learning Models to Predict Critical Episodes of Environmental Pollution for PM2.5 and PM10 in Talca, Chile. Mathematics 2022, 10, 373. https://doi.org/10.3390/math10030373

AMA Style

Carreño G, López-Cortés XA, Marchant C. Machine Learning Models to Predict Critical Episodes of Environmental Pollution for PM2.5 and PM10 in Talca, Chile. Mathematics. 2022; 10(3):373. https://doi.org/10.3390/math10030373

Chicago/Turabian Style

Carreño, Gonzálo, Xaviera A. López-Cortés, and Carolina Marchant. 2022. "Machine Learning Models to Predict Critical Episodes of Environmental Pollution for PM2.5 and PM10 in Talca, Chile" Mathematics 10, no. 3: 373. https://doi.org/10.3390/math10030373

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop