Next Article in Journal
Consideration for Affects of an XOR in a Random Number Generator Using Ring Oscillators
Next Article in Special Issue
Minimum Message Length Inference of the Exponential Distribution with Type I Censoring
Previous Article in Journal
Entropy and Entropic Forces to Model Biological Fluids
Previous Article in Special Issue
Influences of Different Architectures on the Thermodynamic Performance and Network Structure of Aircraft Environmental Control System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Ordinal Time Series Forecasting of the Air Quality Index

Department of Statistics, Feng Chia University, Taichung 407, Taiwan
*
Author to whom correspondence should be addressed.
Entropy 2021, 23(9), 1167; https://doi.org/10.3390/e23091167
Submission received: 29 June 2021 / Revised: 31 August 2021 / Accepted: 1 September 2021 / Published: 4 September 2021
(This article belongs to the Collection Feature Papers in Information Theory)

Abstract

:
This research models and forecasts daily AQI (air quality index) levels in 16 cities/counties of Taiwan, examines their AQI level forecast performance via a rolling window approach over a one-year validation period, including multi-level forecast classification, and measures the forecast accuracy rates. We employ statistical modeling and machine learning with three weather covariates of daily accumulated precipitation, temperature, and wind direction and also include seasonal dummy variables. The study utilizes four models to forecast air quality levels: (1) an autoregressive model with exogenous variables and GARCH (generalized autoregressive conditional heteroskedasticity) errors; (2) an autoregressive multinomial logistic regression; (3) multi-class classification by support vector machine (SVM); (4) neural network autoregression with exogenous variable (NNARX). These models relate to lag-1 AQI values and the previous day’s weather covariates (precipitation and temperature), while wind direction serves as an hour-lag effect based on the idea of nowcasting. The results demonstrate that autoregressive multinomial logistic regression and the SVM method are the best choices for AQI-level predictions regarding the high average and low variation accuracy rates.

1. Introduction

Monitoring air quality is important for human health and the environment. The well-known air quality index (AQI) presents the status of daily air quality and shows the degree of air pollution and how certain factors affect people’s health. This index covers five major air pollutants: (1) ground-level ozone; (2) particle pollution (known as particulate matter, including P M 2.5 and P M 10 ); (3) carbon monoxide; (4) sulfur dioxide; (5) nitrogen dioxide. The higher the AQI level is, the greater is the degree of air pollution, and the more serious its impact is on the health of human beings. The U.S. Environmental Protection Agency (EPA) typically employs an AQI value of 100 as the benchmark for air quality to help protect people’s health. With reference to U.S. standards, Taiwan’s AQI includes an 8-h moving average of ozone, an hourly average of ozone, a 12-h weighted average of P M 2.5 , a 12-h weighted average of P M 10 , an 8-h average of carbon monoxide, hourly average of sulfur dioxide, and hourly average of nitrogen dioxide. With a total of seven indicators, the most serious index value then denotes the value of AQI. The U.S. EPA classifies AQI values into six levels, and each level corresponds to different health problems; see Table 1.
Predicting AQI classes plays an important role in issuing health alerts when AQI levels exceed the specified levels. This study thus aims to build a forecasting system based on the level of AQI rather than AQI values. Categorical time series can be either nominal or ordinal. The time series of AQI levels is ordinal in the sense that the class increases as the AQI interval value increases. Some studies in the literature focus on forecasting AQI values or individual pollutant concentrations based on neural network, mode decomposition, and ARIMA (autoregressive integrated moving average) models; e.g., [1,2,3,4,5]. Alternatively, Liu et al. [6] propose a zero-one-inflated bounded Poisson model for air quality level data, while Kim [7] employs a generalized linear model for the ozone level. Our study mainly predicts multi-level AQI classifications, which help forecast qualitative AQI at time t based on information up to t 1 . With respect to the prediction, we should not utilize current information, especially as AQI includes the pollutants S O 2 , N O 2 , O 3 , CO, P M 10 , and P M 2.5 . We instead consider three weather covariates and seasonal variables that could influence the change in AQI, including daily accumulated precipitation (PRE), daily average temperature (TEM), and daily wind direction (WD). Henry et al. [8] use nonparametric regression to determine the relationship between the concentrations of air pollutants and WD. We utilize an hour-lag effect of WD, which is widely used by meteorologists for nowcasting—that is, information of the covariate WD is available up to time ( t + m 1 ) , where m is the hour difference between AQI and WD.
As AQI relates to its own historical information [9], we utilize the following statistical modeling and machine learning approaches with the three weather covariates and seasonal dummy variables for the predictions. First, we employ an autoregressive model with the above-mentioned weather covariates (commonly called exogenous variables) and GARCH (generalized autoregressive conditional heteroskedasticity) errors if heteroscedasticity exists in the time-series data; see So et al. [10] and Chen et al. [11]. The ARCH and GARCH models originally appear in Engle [12] and Bollerslev [13] and have been widely used in modeling the conditional second-moment properties of time-series data. We observe that the time series of AQI values exhibit conditional heteroskedasticity and autocorrelation in the squared series, which are said to have ARCH effects. We then predict one-step-ahead AQI values and convert them into the AQI level based on this proposed model, which we name the ARX-GARCH model. Here, “X” stands for those covariates and seasonal variables.
Second, we employ an autoregressive multinomial logistic regression for the AQI ordinal response variable, for which this model includes the lag-1 AQI value, the weather covariables, and seasonal variables. This model is an excellent tool for analyzing binary and ordinal data, allowing us to estimate effects and to make predictions [14]. We call this model the AR logistic regression for short hereafter. Some popular classifiers to forecast pollution are neural networks [15] and support vector machines (SVM) [16,17]. SVM, a type of machine learning technique, is a supervised learning model with related learning algorithms that analyze data used for binary and multi-level classifications.
Third, we use the SVM method with the same covariates as in the AR logistic regression for classification and prediction. Liu et al. [17] utilize the current effects of P M 2.5 , P M 10 , S O 2 , CO, N O 2 , and O 3 as input variables. On the contrary, our study excludes these current effects for the forecast purpose. We instead incorporate the lag-1 AQI value in the forecasting models since AQI covers the five major air pollutants, which simultaneously include many lags of the major pollution concentrations.
Fourth, we employ the neural network autoregression with exogenous variable (NNARX) model, which is capable of recognizing, classifying, or predicting datasets. Applications of autoregressive neural network modeling have been successfully predicting time-series datasets; e.g., Hertz et al. [18] and Hyndman and Athanasopoulos [19].
This study encounters several missing values in AQI, such as accumulated precipitation, daily average temperature, and wind direction. In order to preserve the characteristics of the time series, we do not remove any missing values directly for information loss and instead adopt k-nearest neighbors as proposed by Cover and Hart [20] to fill in the missing values; see Torgo [21] for the k-Nearest Neighbors (knn) algorithm. Hence, we implement the knn imputation to fill in the missing value under different k values with different variables to make the mean absolute error (MAE) and root mean squared error (RMSE) as small as possible.
The rest of this study runs as follows. Section 2 introduces the models for forecasting ordinal time series—the AQI levels. Section 3 shows the data description and provides information about training/validation of the methodology in order to assess the forecast performance. Section 4 provides the AQI level forecasts and evaluates forecast accuracy. Finally, Section 5 offers concluding remarks.

2. Models and Methods

To predict the one-step-ahead AQI level, we describe the four proposed models for the daily prediction as follows. Let Y t be the daily AQI value, Y t 1 is the previous day’s AQI value, and ( X 1 , t , X 2 , t , X 3 , t ) are respectively PRE, TEM, and WD. Let Y t * , t = 1 , , n be the observed AQI level at time t, with the following r possible outcomes:
Y t * = { j if the j th level is observed at time t , 0 otherwise ,
for j = 1 , , r . The proposed methods consider a seasonal or periodic pattern to improve the prediction via seasonal dummy variables or a monthly indicator.
Model 1: The ARX model with GARCH errors
Y t = ϕ 0 + ϕ 1 Y t 1 + f ( X 1 , t 1 , X 2 , t 1 , X 3 , t + m 1 ) + S N t + a t ,
a t = σ t ε t , ε t i i d S t ( ν , r )
σ t 2 = α 0 + α 1 a t 1 2 + β 1 σ t 1 2 ,
f ( . ) = γ 1 X 1 , t 1 + γ 2 X 2 , t 1 + γ 3 X 3 , t + m 1 ,
S N t = β s 1 D s 1 , t + β s 2 D s 2 , t + + β s 11 D s 11 , t ,
D s i , t = { 1 if t is in month i 0 otherwise ,
where a t is the error term; ε t follows the skewed Student-t distribution by Hansen [22] since the data are non-normal; and St( ν , r) is a skewed Student-t distribution with shape parameter ν and skewness parameter r. Here, (1) and (2) are respectively the mean equation and the volatility equation. The lag m of X 3 , t + m 1 denotes the time difference in hours between AQI and WD. It is based on the idea of nowcasting. In order to guarantee stationarity and positiveness in volatility, we restrict the parameters as:
S 1 : | ϕ 1 | < 1 S 2 : α 0 > 0 , α 1 , β 1 0 , α 1 + β 1 < 1 .
As the ARX-GARCH models in (1) are designed for continuous dependent variables, we obtain the one-day-ahead forecast based on the ARX-GARCH model and then convert the forecasts into the AQI level as in Table 1.
Latent variable models with observed ordinal variables are particularly useful for analyzing the AQI levels. Next, we consider an AR logistic regression for Y t * .
Model 2: The AR logistic regression
The conditional probability for the AQI level at day t is:
Pr ( Y t * = i | Y t 1 , X 1 , t 1 , X 2 , t 1 , X 3 , t + m 1 ) = exp ( g i ( Y t 1 , X 1 , t 1 , X 2 , t 1 , X 3 , t + m 1 , S N t ) ) 1 + j = 1 r 1 exp ( g j ( Y t 1 , X 1 , t 1 , X 2 , t 1 , X 3 , t + m 1 , S N t ) ) ,
where g i ( . ) is a linear function with i = 1 , , r 1 . Apart from this model, Weiß [23] and subsequently Liu et al. [6] propose two new methods for dealing with ordinal time series; e.g., the rank-count approach for time series modeling.
Model 3: The SVM classification method
SVM classification is an optimization problem, which is a machine learning algorithm for the dependent variable, isolating the group to which it should belong. If the subset trained in two dimensions is a linearly separable set, then it means that the whole set itself is linearly separable. We also can use SVM for classifying a non-linear dataset and conduct the classification by projecting the dataset into a higher dimension in which it is linearly separable. We consider multi-dimensions, where the dividing line becomes a separating hyperplane and separates into more than two different levels. The hard-margin must be met so that the distance between the separating hyperplane and each group is equal; in other words, the margins are maximized. We use the SVM method, and the hyperplane h ( X ) is:
h ( X ) = α + ϕ 1 Y t 1 + f ( X 1 , t 1 , X 2 , t 1 , X 3 , t + m 1 ) + β 4 M t ,
M t = { i if t is in month i 0 otherwise ,
where f ( . ) is the same as in Equation (3). The algorithm creates a line or a hyperplane that separates the data in the training (or learning) period into classes. Each hyperplane h ( X ) that is trained by the learning period divides the validation period into specific levels and gives a score based on their proximity to the hyperplane. We execute the final step of classifications by assigning the validation period to the level from which they obtain the highest score.
Model 4: We consider the NNARX model, feed-forward networks, and two hidden layers and use the notation NNARX(1,2). This model includes the lag-1 AQI value and { X 1 , t 1 , X 2 , t 1 , X 3 , t + m 1 } as exogenous variables. The NNARX model with hidden layers achieves greater forecasting accuracy, but the cost is a large computation time as the number of hidden layers increases.

3. Data Collection

Particulate pollutants originating from the Asian continent, in particular eastern China, are often carried to Taiwan along with the monsoons; see Hsu et al. [24]. This means the WD covariate plays a significant role in the prediction of the AQI level. The other pollutants in Taiwan mainly come from domestic combustion such as the burning of fossil fuels (industrial emissions). The remainder comes from traffic emissions and other air pollution sources. The industrial centers and business parks along the northern and western coasts of Taiwan are surrounded by high mountains, which lead to poor avenues of dispersement and can trap pollutants [24].
Chen et al. [25] support the causal relationship between weekly influenza cases and weekly adjusted accumulative P M 2.5 in the central and southern regions of Taiwan for various age groups. Traffic-related emissions and coal combustion are the sources of toxic metals in P M 10 and P M 2.5 , respectively, leading to high risks of cancer [24]. Tseng et al. [26] provide epidemiological evidence that more than 50% of all patients with lung cancer had never smoked and present a positive association between lung cancer and P M 2.5 exposure in Taiwan, while Tang et al. [27] demonstrate that air pollution in Taiwan, represented by P M 2.5 or PSI (Pollutant Standards Index), moderately correlates with the development of atopic dermatitis in adults.
Wide differences in air pollution trends have existed between northern and southern Taiwan for decades [26]. We thus investigate daily AQI from the monitoring stations of 16 cities/counties in Taiwan from north to south on the country’s west coast, whose names are listed in Table 2 and their geographical locations appear in Figure 1. Our dataset covers a total of 1227 observations from 30 November 2016 to 9 April 2020 at each monitoring station and includes daily data for AQI, P M 2.5 , PRE, TEM, and WD for the 16 cities/counties from EPA, Executive Yuan, Taiwan. The training period includes 852 observations (from 30 November 2016 to 31 March 2019), and we use the last 375 days (from 1 April 2019 to 9 April 2020) as the validation period via a rolling window approach. In order words, we choose a rolling sample size of 852 for parameter estimation (or classification) in the training period and forecast the one-day-ahead AQI level for the validation period. The mechanism of the rolling window approach appears in Figure 2. We measure WD in units from 0 to 360 . When the wind speed is ≤ 0.2 m/s, we record WD as 0 and the north wind as 360 . As the variable WD (in degrees) itself does not have any physical meaning, we classify wind directions in sixteen sectors in Table 3, making it a quantitative variable.
Some missing values are present in the dataset that are often encountered in practice. The percentages of missing values for AQI are between 0.97% and 2.09%. A small portion of missing values also occurs in the weather covariates. When we deal with a tiny proportion of missing values, we still need to tackle this problem in time series data. We employ the book-associated R package called “DMwR” in Torgo [21] to impute the missing values. Due to limited space, we summarize how we handle missing value imputation below.
(1)
PRE or TEM with missing values: If PRE (TEM) is missing at day t, then we select the valid data of the nearest station to impute the missing value.
(2)
AQI with missing values: We use k = 4 in the knn algorithm in terms of the smallest MAE and RMSE to impute the missing AQI value. We first identify the four days with PRE, TEM, WD, P M 2.5 , and seasonal dummy values closest to the day with missing AQI, and the missing AQI is then substituted by the weighted average of the AQI values of these four days. The weights decrease as the distance of the case to its neighbor lengthens. We use a Gaussian kernel function to obtain the weights from the distances and refer for a detailed description of the distance to Torgo [21] on pages 61–62.
(3)
WD with missing values: We again use k = 4 in the knn algorithm to impute the missing WD value. We first identify the four days with PRE, TEM, AQI, P M 2.5 , and seasonal dummy values closest to the day with missing WD, and the missing WD is then substituted by the weighted average of the WD values of these four days.
In order to better understand the characteristics of our datasets, Table 2 displays descriptive statistics of AQI values for each site, which include mean, standard deviation (std), minimum, maximum, and p-values of the ARCH test. All averages of AQI values are above 50 except for Hengchun (44.8 at site 16), as Hengchun Peninsula in Pingtung County is considered to have clean air. Kaohsiung and Pingtung (sites 13, 14, and 15) have the three worst AQI values among the observed sites in this study. The p-values of the Kolmogorov–Smirnov test ( H 0 : The series is from a normal distribution) are all less than 0.0001, indicating that the AQI data do not follow a normal distribution.
The ARCH test is a Lagrange multiplier test to assess the significance of ARCH effects. A small p-value indicates rejection of the null hypothesis ( H 0 : There is no ARCH effect) in favor of the alternative. All p-values of the ARCH test are less than 0.0001, which supports the existence of ARCH effects. Heteroscedasticity refers to residuals for an AR model that do not have a constant variance. Therefore, we need to specify the GARCH effect and non-normal errors instead of regular AR models. Table 4 lists descriptive statistics for two weather covariates: PRE and TEM. The standard deviation of “PRE” increases toward the south in general.
Figure 3 shows the time series plots of daily AQI values (imputation for missing datapoints) for Shilin, Fengyuan, Zuoying, and Pingtung (sites 1, 6, 13, and 15 given in Table 2). These four monitoring stations represent the north, center, and south of Taiwan. Figure 4 and Figure 5 illustrate their related daily PRE and TEM in the same four sites. The time series plots of AQI present obvious seasonal patterns with a gradual decrease in May each year. AQIs are relatively low in June and July and gradually increase again until October. The pattern denotes that AQI is lower in summer than in other seasons, and the worst season is winter. We clearly notice that the rainy season is from May to September, and the highest amount of daily accumulated precipitation appears in July and August. Other cities/counties also present similar seasonal patterns. We observe that heavy rain is more likely to occur in the central and southern regions. In addition, the average temperature also shows a seasonal pattern. There are no sixth-level AQI values (301–500) in this study. We present the relative frequencies of AQI levels for each month based on the four monitoring stations noted above in Figure 6. We discover that a larger proportion of the first level (good) appears during summer. “Moderate” and “poor” air quality occurs in summer in a small proportion and then at a higher proportion in spring and winter. We scrutinize larger proportions in levels 2 and 3 (AQI > 100 ) in Zuoying and Pingtung, which represent south Taiwan.

4. Results

We predict the one-day-ahead AQI level by using a rolling window approach with a hold-out set: 375 days, which cover just a bit more than one year. We evaluate forecast performance for air quality levels, which include two levels and four levels based on four models: (1) the ARX-GARCH model; (2) the AR logistic regression; (3) the SVM method; (4) the NNARX model.
We add 11 monthly dummy variables as covariates in the ARX-GARCH model and AR logistic regression since the AQI time series presents a seasonal pattern. We use 1 to 12 values of the month indicator variable in the SVM method and NNARX model, because this setup improves the accuracy rate in the AQI-level prediction. We estimate the model parameters and the one-day-ahead forecasts by using the R package “rugarch” [28] for Model 1 (ARX-GARCH model). For the AR logistic regression and SVM method, we use the R package “MASS” [29] and the “e1071” package [30], respectively. For the NNARX model, we employ the R package “neuralnet”.
The categorization used for the two-level forecast is based on the threshold 100 (1st level: AQI 100 ; 2nd level: AQI > 100 ). Table 5 presents the correct classification rates for two-level predictions. The accuracy rates of all sites are greater than 81% for the SVM method. Most accuracy rates by the AR logistic and NNARX models are over 80%, except for site 15 at 78.13%, while the NNARX model has accuracy rates of 79.73% and 78.40% for sites 13 and 15, respectively. The ARX-GARCH model does not predict sites 8, 13, 14, and 15 very well.
We refine the second category into three levels: (i) 101–150 slightly polluted; (ii) 151–200 moderately polluted; (iii) 201–300 heavily polluted. When we turn to multi-level forecasting, Table 6 illustrates the percentage accuracy, average, standard deviation (std), and coefficient of variation (CV) of the four models. We show boxplots (a five-number summary with minimum, 1st quantile, median, 3rd quantile, and maximum) for the two-level and four-level predictions in Figure 7 and Figure 8. The notation △ stands for the average of accuracy rates from all 16 sites for each model. We summarize the results as follows.
  • The overall performances of the AR logistic regression, SVM, and NNARX are similar. Most accuracy rates by the three models are over 80%, except for sites 13 and 15. The SVM classification method has the highest average accuracy rate (88.53%) and the lowest standard deviation (7.00%) in the four-level predictions. The SVM method and AR logistic regression provide the lowest CV values among the four forecasting techniques. A lower CV is favored because it provides the most optimal forecasting performance with low variability, but a high average accuracy rate.
  • The prediction performance is relatively low at sites 13 and 15, and so we need to scrutinize the time series data carefully. We perceive that the major misspecified levels occur in October. The three classification models (AR logistic regression, SVM, and NNARX) tend to misspecify the rare level.
  • The lag-1 weather covariates of PRE and TEM with the hour-lag effect of WD are able to generate a reliable prediction level. We also consider wind speed and weekly/monthly weighted moving averages of AQI as extra covariates. However, these covariates do not improve forecast accuracy. Therefore, we do not include their results in the paper.
  • The ARX-GARCH model is for quantitative forecasting purposes. The classification of wind directions in the sixteen sectors may not be suitable as an explanatory variable for this model.

5. Conclusions

This study predicts one-day-ahead AQI levels for 16 cities/counties in Taiwan based on training/validation of the methodology set up herein and examines forecast accuracy by considering the ARX-GARCH, AR logistic regression, SVM, and NNARX models. We assess the accuracy of these forecasting models by a rolling window approach. These models relate to lag-1 AQI values and previous day weather covariates (PRE and TEM), while WD is a time-lag effect based on the idea of nowcasting. The results demonstrate that AR logistic regression and the SVM method are the best choices for AQI-level predictions regarding the high average and low variation accuracy rates among the four forecasting techniques. This information can greatly help the authorities to take proper action for AQI-level prediction.
There are many other established tools for ordinal time series classification, and it is worthwhile to predict ordinal time series using two other recently developed methods: the distance-based approach and the bounded-count method. We leave these new techniques for forecasting ordinal time series as a future research direction.

Author Contributions

Data curation, C.W.S.C. and L.M.C.; formal analysis, C.W.S.C.; funding acquisition, C.W.S.C.; investigation, C.W.S.C.; methodology, C.W.S.C.; supervision, C.W.S.C.; validation, C.W.S.C.; visualization, C.W.S.C.; writing—original draft, L.M.C.; writing—review and editing, C.W.S.C. Both authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Ministry of Science and Technology, Taiwan (MOST109-2118-M-035-005-MY3).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The daily AQI values supporting the reported results can be found at https://data.epa.gov.tw/dataset/aqx_p_488, (accessed on 29 June 2021). The daily weather variables are available from https://e-service.cwb.gov.tw/HistoryDataQuery/, (accessed on 29 June 2021).

Acknowledgments

The authors thank the academic editor and three anonymous referees for their valuable time and careful comments, which have improved this paper.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AQIAir quality index
AR logistic regressionAutoregressive multinomial logistic regression
ARXAutoregression with exogenous variables
ARCHAutoregressive conditional heteroskedasticity
GARCHGeneralized autoregressive conditional heteroskedasticity
NNARXNeural network autoregression with exogenous variables
SVMSupport vector machine

References

  1. Ferlito, S.; Bosso, F.; De Vito, S.; Esposito, E.; Di Francia, G. LSTM Networks for Particulate Matter Concentration Forecasting in AISEM Annual Conference on Sensors and Microsystems; Springer: Cham, Switzeland, 2019; pp. 409–415. [Google Scholar]
  2. Song, C.; Fu, X. Research on different weight combination in air quality forecasting models. J. Clean. Prod. 2020, 261, 121–169. [Google Scholar] [CrossRef]
  3. 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, 101–657. [Google Scholar] [CrossRef]
  4. Xiao, F.; Yang, M.; Fan, H.; Fan, G.; Al-Qaness, M.A. An improved deep learning model for predicting daily PM2.5 concentration. Sci. Rep. 2020, 10, 20988. [Google Scholar] [CrossRef] [PubMed]
  5. de Medrano, R.; Buen Remiro, V.; Aznarte, J.L. SOCAIRE: Forecasting and monitoring urban air quality in Madrid. Environ. Model. Softw. 2021, 143, 105084. [Google Scholar] [CrossRef]
  6. Liu, M.; Zhu, F.; Zhu, K. Modeling normalcy-dominant ordinal time series: An application to air quality level. J. Time Ser. Anal. 2021. [Google Scholar] [CrossRef]
  7. Kim, S.E. Ordinal time series model for forecasting air quality index for ozone in Southern California. Environ. Model. Assess. 2017, 22, 175–182. [Google Scholar] [CrossRef]
  8. Henry, R.C.; Chang, Y.; Spiegelman, C.H. Locating nearby sources of air pollution by nonparametric regression of atmospheric concentrations on wind direction. Atmos. Environ. 2002, 36, 2237–2244. [Google Scholar] [CrossRef]
  9. Carbajal-Hernàndez, J.J.; Sànchez-Fernàndez, L.P.; Carrasco-Ochoa, J.A.; Martìnez-Trinidad, J.F. Assessment and prediction of air quality using fuzzy logic and autoregressive models. Atmos. Environ. 2012, 60, 37–50. [Google Scholar] [CrossRef]
  10. So, M.K.P.; Chen, C.W.S.; Liu, F.C. Best subset selection of autoregressive models with exogenous variables and generalized autoregressive conditional heteroscedasticity errors. J. R. Stat. Soc. C Appl. Stat. 2006, 55, 201–224. [Google Scholar] [CrossRef]
  11. Chen, C.W.S.; Gerlach, R.; So, M.K.P. Bayesian model selection for heteroskedastic models. Bayesian Econom. 2008, 23, 567–594. [Google Scholar]
  12. Engle, R.F. Autoregressive conditional heteroscedasticity with estimates of the variance of United Kingdom inflation. Econometrica 1982, 50, 987–1007. [Google Scholar] [CrossRef]
  13. Bollerslev, T. Generalized autoregressive conditional heteroskedasticity. J. Econom. 1986, 31, 307–327. [Google Scholar] [CrossRef] [Green Version]
  14. Guanche, Y.; Minguez, R.; Méendez, F.J. Autoregressive logistic regression applied to atmospheric circulation patterns. Clim. Dyn. 2014, 42, 537–552. [Google Scholar] [CrossRef]
  15. Jiang, P.; Dong, Q.; Li, P. A novel hybrid strategy for PM2.5 concentration analysis and prediction. J. Environ. Manag. 2017, 196, 443–457. [Google Scholar] [CrossRef] [PubMed]
  16. Liu, B.C.; Binaykia, A.; Chang, P.C.; Tiwari, M.K.; Tsao, C.C. Urban air quality forecasting based on multi-dimensional collaborative support vector machines (SVM): A case study of Beijing-Tianjin-Shijiazhuang. PLoS ONE 2017, 12, e0179763. [Google Scholar]
  17. Liu, B.C.; Wang, H.; Binaykia, A.; Fu, C.C.; Xiang, B.P. Multi-level air quality classification in China using information gain and support vector machine hybrid model. Nat. Environ. Pollut. Technol. 2019, 18, 697–708. [Google Scholar]
  18. Hertz, J.A.; Krogh, A.S.; Palmer, R.G. Introduction to the Theory of Neural Computation; Westview Press: Boulder, CO, USA, 1991. [Google Scholar]
  19. Hyndman, R.J.; Athanasopoulos, G. Forecasting: Principles and Practice, 2rd ed.; OTexts: Melbourne, Australia, 2018. [Google Scholar]
  20. Cover, T.M.; Hart, P.E. Nearest neighbor pattern classification. IEEE Trans. Inf. Theory 1967, 13, 21–27. [Google Scholar] [CrossRef]
  21. Torgo, L. Data Mining with R, Learning with Case Studies; Chapman and Hall/CRC: Boca Raton, FL, USA, 2020. [Google Scholar]
  22. Hansen, B.E. Autoregressive conditional density estimation. J. Int. Econ. 1994, 35, 705–730. [Google Scholar] [CrossRef]
  23. Weiß, C.H. Distance-based analysis of ordinal data and ordinal time series. J. Am. Stat. Assoc. 2020, 115, 1189–1200. [Google Scholar] [CrossRef]
  24. Hsu, C.Y.; Chiang, H.C.; Lin, S.L.; Chen, M.J.; Lin, T.Y.; Chen, Y.C. Elemental characterization and source apportionment of PM10 and PM2.5 in the western coastal area of central Taiwan. Sci. Total Environ. 2016, 541, 1139–1150. [Google Scholar] [CrossRef]
  25. Chen, C.W.S.; Hsieh, Y.H.; Su, H.C.; Wu, J.J. Causality test of ambient fine particles and human influenza in Taiwan: Age group-specific disparity and geographic heterogeneity. Environ. Int. 2018, 111, 354–361. [Google Scholar] [CrossRef] [PubMed]
  26. Tseng, C.H.; Tsuang, B.J.; Chiang, C.J. et al. The relationship between air pollution and lung cancer in nonsmokers in Taiwan. J. Thorac. Oncol. 2019, 14, 784–792. [Google Scholar] [CrossRef] [PubMed]
  27. Tang, K.T.; Ku, K.C.; Chen, D.Y.; Lin, C.H.; Tsuang, B.J.; Chen, Y.H. Adult atopic dermatitis and exposure to air pollutants—A nationwide population-based study. Ann. Allergy Asthma Immunol. 2017, 118, 351–355. [Google Scholar] [CrossRef] [PubMed]
  28. Ghalanos, A.; Kley, T. Rugarch: Univariate GARCH Models; R Package Version 1.4-4; 2021; Available online: https://cran.r-project.org/web/packages/rugarch/index.html (accessed on 29 June 2021).
  29. Ripley, B.; Venables, B.; Bates, D.M.; Hornik, K. MASS: Support Functions and Datasets for Venables and Ripley’s MASS, R Package Version 7.3-54; 2021. Available online: http://www.stats.ox.ac.uk/pub/MASS4/ (accessed on 29 June 2021).
  30. Meyer, D.; Dimitriadou, E.; Hornik, K.; Weingessel, A.; Leisch, F. e1071: Misc Functions of the Department of Statistics, Probability Theory Group (Formerly: E1071), TU Wien, R Package Version 1.7-8; 2021. Available online: https://cran.r-project.org/web/packages/e1071/index.html (accessed on 29 June 2021).
Figure 1. Geographical locations of the 16 sites in Taiwan. Taipei: site 1; Taoyuan: site 2; Hsinchu: site 3; Miaoli: site 4; Taichung: sites 5 and 6; Changhua: site 7; Yunlin: site 8; Chiayi: sites 9 and 10; Tainan: sites 11 and 12; Kaohsiung: sites 13 and 14; Pingtung: sites 15 and 16.
Figure 1. Geographical locations of the 16 sites in Taiwan. Taipei: site 1; Taoyuan: site 2; Hsinchu: site 3; Miaoli: site 4; Taichung: sites 5 and 6; Changhua: site 7; Yunlin: site 8; Chiayi: sites 9 and 10; Tainan: sites 11 and 12; Kaohsiung: sites 13 and 14; Pingtung: sites 15 and 16.
Entropy 23 01167 g001
Figure 2. The rolling window approach.
Figure 2. The rolling window approach.
Entropy 23 01167 g002
Figure 3. Time series plots of daily AQI values for Shilin, Fengyuan, Zuoying, and Pingtung (sites 1, 6, 13, and 15) from 30 November 2016 to 9 April 2020.
Figure 3. Time series plots of daily AQI values for Shilin, Fengyuan, Zuoying, and Pingtung (sites 1, 6, 13, and 15) from 30 November 2016 to 9 April 2020.
Entropy 23 01167 g003
Figure 4. Time series plots of daily PRE for Shilin, Fengyuan, Zuoying, and Pingtung (sites 1, 6, 13, and 15) from 30 November 2016 to 9 April 2020.
Figure 4. Time series plots of daily PRE for Shilin, Fengyuan, Zuoying, and Pingtung (sites 1, 6, 13, and 15) from 30 November 2016 to 9 April 2020.
Entropy 23 01167 g004
Figure 5. Time series plots of daily TEM for Shilin, Fengyuan, Zuoying, and Pingtung (sites 1, 6, 13, and 15) from 30 November 2016 to 9 April 2020.
Figure 5. Time series plots of daily TEM for Shilin, Fengyuan, Zuoying, and Pingtung (sites 1, 6, 13, and 15) from 30 November 2016 to 9 April 2020.
Entropy 23 01167 g005
Figure 6. Monthly AQI levels for Shilin, Fengyuan, Zuoying, and Pingtung (sites 1, 6, 13, and 15) from 30 November 2016 to 9 April 2020.
Figure 6. Monthly AQI levels for Shilin, Fengyuan, Zuoying, and Pingtung (sites 1, 6, 13, and 15) from 30 November 2016 to 9 April 2020.
Entropy 23 01167 g006
Figure 7. Forecasting performance for two-level classifications. “△”denotes the average of accuracy rates from all 16 sites.
Figure 7. Forecasting performance for two-level classifications. “△”denotes the average of accuracy rates from all 16 sites.
Entropy 23 01167 g007
Figure 8. Forecasting performance for four-level classifications. “△” denotes the average of accuracy rates from all 16 sites.
Figure 8. Forecasting performance for four-level classifications. “△” denotes the average of accuracy rates from all 16 sites.
Entropy 23 01167 g008
Table 1. AQI’s six levels based on the U.S. EPA, where each level corresponds to different health problems.
Table 1. AQI’s six levels based on the U.S. EPA, where each level corresponds to different health problems.
ValueColorAQI Levels of Health Concern
0–50GreenGood
51–100YellowSatisfactory
101–150OrangeModerately
151–200RedPoor
201–300PurpleVery poor
301–500MaroonHazardous
Table 2. Descriptive statistics of daily AQI values.
Table 2. Descriptive statistics of daily AQI values.
SiteCity/CountyMeanStdMinMaxARCH Test
(p-Value)
1Shilin, Taipei54.88823.79913185<0.0001
2Taoyuan, Taoyuan54.92524.44315197<0.0001
3Dongqu, Hsinchu57.87327.44412203<0.0001
4Miaoli, Miaoli61.19725.89313172<0.0001
5Xitun, Taichung67.27132.27519190<0.0001
6Fengyuan, Taichung62.86129.70215207<0.0001
7Changhua, Changhua65.29831.09215190<0.0001
8Douliu, Yunlin80.40938.3471195<0.0001
9Xingang, Chiayi74.01434.6156179<0.0001
10West, Chiayi75.40036.94116179<0.0001
11West Central, Tainan74.51237.53917195<0.0001
12Xinying, Tainan74.44534.83115179<0.0001
13Zuoying, Kaohsiung81.03142.76717210<0.0001
14Quian, Kaohsiung79.33241.19617197<0.0001
15Pingtung, Pingtung81.96439.99515206<0.0001
16Hengchun, Pingtung43.93521.4983182<0.0001
Table 3. Wind direction and degree.
Table 3. Wind direction and degree.
CategoryDegreeDirection
1348.75–11.25N
211.25–33.75NNE
333.75–56.25NE
456.25–78.75ENE
578.75–101.25E
6101.25–123.75ESE
7123.75–146.25SE
8146.25–168.75SSE
9168.75–191.25S
10191.25–213.75SSW
11213.75–236.25SW
12236.25–258.75WSW
13258.75–281.25W
14281.25–303.75WNW
15303.75–326.25NW
16326.25–348.75NNW
Table 4. Descriptive statistics of two daily weather covariates.
Table 4. Descriptive statistics of two daily weather covariates.
SiteCity/CountyPRETEM
MeanStdMaxMeanStdMinMax
1Shilin, Taipei4.7014.40202.023.945.328.1033.10
2Taoyuan, Taoyuan5.0215.28175.022.255.566.9032.40
3Dongqu, Hsinchu4.0314.64260.023.415.357.6031.80
4Miaoli, Miaoli3.7312.53151.023.325.357.5031.60
5Xitun, Taichung4.2215.23179.023.805.037.9031.60
6Fengyuan, Taichung5.1719.28279.023.204.846.4030.80
7Changhua, Changhua4.5415.97164.523.384.637.8031.20
8Douliu, Yunlin4.6719.41415.023.704.648.2031.30
9Xingang, Chiayi3.8716.43332.523.934.719.0031.20
10West, Chiayi4.8519.32417.024.354.599.2031.70
11West Central, Tainan5.0021.71373.024.974.449.7031.60
12Xinying, Tainan4.6220.50451.524.334.579.0031.50
13Zuoying, Kaohsiung4.6219.24283.524.974.0310.2030.90
14Qiangin, Kaohsiung5.0621.02291.525.323.8510.9030.30
15Pingtung, Pingtung6.4424.92357.025.143.5711.0031.20
16Hengchun, Pingtung5.4220.18326.025.913.1215.5031.00
Table 5. Accuracy based on two forecast levels.
Table 5. Accuracy based on two forecast levels.
SiteCity/CountyAccuracy (%)
ARX-GARCHAR LogisticSVMNNARX
1Shilin, Taipei95.2095.2095.4795.47
2Taoyuan, Taoyuan95.2095.4496.5396.53
3Dongqu, Hsinchu93.6093.1697.0793.07
4Miaoli, Miaoli96.0096.7196.8097.33
5Xitun, Taichung86.1387.8590.9389.07
6Fengyuan, Taichung88.5389.6288.2789.07
7Changhua, Changhua91.7391.2094.6794.13
8Douliu, Yunlin78.1381.5284.2782.93
9Xingang, Chiayi83.4786.5885.6084.27
10West, Chiayi81.8785.3285.6088.27
11West Central, Tainan80.5383.0483.2082.93
12Xinying, Tainan84.0087.8587.2086.13
13Zuoying, Kaohsiung78.9382.6781.6079.73
14Qianjin, Kaohsiung76.8082.4083.4782.13
15Pingtung, Pingtung73.0778.1382.9378.40
16Hengchun, Pingtung97.6098.2397.0797.07
Table 6. Accuracy based on four forecast levels.
Table 6. Accuracy based on four forecast levels.
SiteCity/CountyAccuracy (%)
ARX-GARCHAR LogisticSVMNNARX
1Shilin, Taipei95.4795.2095.4795.47
2Taoyuan, Taoyuan96.8096.8096.5393.03
3Dongqu, Hsinchu93.3393.6097.0793.07
4Miaoli, Miaoli97.0797.0796.8097.33
5Xitun, Taichung86.6789.0790.4088.80
6Fengyuan, Taichung88.2788.8088.2788.80
7Changhua, Changhua93.8794.6794.6794.13
8Douliu, Yunlin76.2782.1382.1381.07
9Xingang, Chiayi84.0085.0785.6084.27
10West, Chiayi82.9385.3385.0788.00
11West Central, Tainan82.1383.7382.6782.67
12Xinying, Tainan86.1387.2086.6785.87
13Zuoying, Kaohsiung75.7378.1376.8075.47
14Qianjin, Kaohsiung75.2080.5382.4080.53
15Pingtung, Pingtung70.1374.4078.9374.93
16Hengchun, Pingtung97.0796.8097.0796.80
Average (%)86.3288.0388.5387.52
Std (%)8.8257.1827.0007.234
CV0.10220.08160.07900.0826
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Chen, C.W.S.; Chiu, L.M. Ordinal Time Series Forecasting of the Air Quality Index. Entropy 2021, 23, 1167. https://doi.org/10.3390/e23091167

AMA Style

Chen CWS, Chiu LM. Ordinal Time Series Forecasting of the Air Quality Index. Entropy. 2021; 23(9):1167. https://doi.org/10.3390/e23091167

Chicago/Turabian Style

Chen, Cathy W. S., and L. M. Chiu. 2021. "Ordinal Time Series Forecasting of the Air Quality Index" Entropy 23, no. 9: 1167. https://doi.org/10.3390/e23091167

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