[go: up one dir, main page]

Next Article in Journal
UWB Radio-Based Motion Detection System for Assisted Living
Previous Article in Journal
An Adaptive Unsupervised Feature Selection Algorithm Based on MDS for Tumor Gene Data Classification
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Using High-Frequency Information and RH to Estimate AQI Based on SVR

Department of Information and Communication Engineering, Chaoyang University of Technology, 168, Jifeng E. Rd., Wufeng District, Taichung 413310, Taiwan
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(11), 3630; https://doi.org/10.3390/s21113630
Submission received: 7 April 2021 / Revised: 18 May 2021 / Accepted: 20 May 2021 / Published: 23 May 2021
Figure 1
<p>A schematic diagram of AQI and visibility changes.</p> ">
Figure 2
<p>Automatic selection of the RoI flowchart.</p> ">
Figure 3
<p>A flow chart of the method of estimating AQI.</p> ">
Figure 4
<p>Images from the Renwu monitoring station in Kaohsiung, Taiwan; (<b>a</b>) low-AQI numerical image and (<b>b</b>) high-AQI numerical image.</p> ">
Figure 5
<p>The distribution of AQI and RH values at Renwu Monitoring Station in Kaohsiung, Taiwan; (<b>a</b>) AQI value distribution and (<b>b</b>) RH value distribution.</p> ">
Figure 6
<p>The image performs horizontal and vertical gradient calculations and calculates the high-frequency information.</p> ">
Figure 7
<p>The method for calculating the feature value in the RoI.</p> ">
Figure 8
<p>High-frequency images and feature values corresponding to different AQI values.</p> ">
Figure 9
<p>A conceptual diagram of the SVM segmentation data; (<b>a</b>,<b>b</b>) show the poor segmentation results, (<b>c</b>) shows the best segmentation results.</p> ">
Figure 10
<p>The conceptual difference between SVM and SVR; (<b>a</b>) the dividing line is far away from the data point; (<b>b</b>) the dividing line is close to the data point.</p> ">
Figure 11
<p>Value of feature change within one hour.</p> ">
Figure 12
<p>The standard deviation distribution of hourly feature values.</p> ">
Figure 13
<p>The R<sup>2</sup> of the estimated AQI and the actual AQI values; (<b>a</b>) invalid data is not excluded; (<b>b</b>) invalid data is excluded.</p> ">
Figure 14
<p>The RMSE of the estimated AQI and the actual AQI value; (<b>a</b>) invalid data is not excluded, (<b>b</b>) invalid data is excluded.</p> ">
Figure 15
<p>The relationship between the estimated and actual AQI when the ratio of training-to-test is 7:3; (<b>a</b>) invalid data is not excluded, (<b>b</b>) invalid data is excluded.</p> ">
Review Reports Versions Notes

Abstract

:
The Environmental Protection Administration of Taiwan’s Executive Yuan has set up many air quality monitoring stations to monitor air pollution in the environment. The current weather forecast also includes information used to predict air pollution. Since air quality indicators have a considerable impact on people, the development of a simple, fast, and low-cost method to measure the AQI value is a worthy topic of research. In this study, a method was proposed to estimate AQI. Visibility had a clear positive relationship with AQI. When images and AQI were compared, it was easy to see that visibility decreased with the AQI value increase. Distance is the main factor affecting visibility, so measuring visibility with images has also become a research topic. Images with high and low PM2.5 concentrations were used to obtain regions of interest (RoI). The pixels in the RoI were calculated to obtain high-frequency information. The high-frequency information of RoI, RH, and true AQI was used for training via SVR, which was used to generate the model for AQI estimation. One year of experimental samples was collected for the experiment. Two indices were used to evaluate the performance of the proposed method. The results showed that the proposed method could be used to estimate AQI with acceptable performance in a simple, fast, and low-cost way.

1. Introduction

In order to improve air quality, governments have established air quality standards. The Air Quality Index (AQI) in Taiwan is stipulated by the World Health Organization (WHO) [1]. It is divided into six categories (as shown in Table 1), which indicate the impact of air quality on health [2]. To measure AQI, the instrument first detects the concentration of pollutants, such as PM2.5, PM10, NO2, O3, SO2, and CO [3,4]. The impact of these pollutants on the human body is calculated as a sub-indicator. The maximum value of the sub-indicators is set as the current AQI. The measuring methods of the sub-indicators are different, as shown in Table 2 [2]. It is shown that the measurement procedures for the sub-indicators are different. Some methods are based on several hours of measurement results, while others are immediate measurements.
The government placed air pollution measuring instruments at air quality monitoring stations to monitor air quality in various regions. The values measured by the stations are accurate, but the instruments are expensive. Taiwan had established a total of 76 air quality monitoring stations before 2019 [5]. The cost of these monitoring stations is close to NT$10 million, and the annual maintenance and calibration costs are NT$700,000 to NT$800,000 [6]. In addition to the prohibitively high cost, there are also other shortcomings. For example, the range that can be measured is limited, the equipment needs to be calibrated regularly, and professional operators need to be trained. Therefore, developing a simple, fast, and low-cost method to measure the AQI value is an interesting topic of research.
PM2.5 and PM10 are prominent among the factors affecting air quality. Previous studies have pointed out that PM2.5 [7], PM10 [8], and relative humidity (RH) [9] have a serious impact on visibility [10,11]. It is not difficult to see that visibility has a positive relationship with AQI. Visibility is measured by trained professionals in the traditional way [12]. In recent years, various techniques for estimating visibility via images were developed [13,14]. The features, such as transmittance [15], entropy [16], contrast [17], and high-frequency information [18], are extracted from images and used to estimate visibility. The image characteristics of the scene, such as sky color, contrast, and spectral slope, are also used to estimate AQI [19,20]. In addition to image features, weather factors (such as RH, wind speed, or temperature) are used to adjust the parameters. In order to classify AQI into six categories, the multi-core learning method was applied. The results show that the average classification accuracy rate was 84%.
In addition to the fixed scene, sky information of different scenes is also used to estimate AQI [21]. The sky area of the image can be used to classify AQI into six categories via the Gabor filter and K-NN classifier after calculating the transmittance [22]. In an experiment using 3422 images (divided into training and testing sets), an 82% classification accuracy was shown in result with cross-validation [23]. Under the premise that the main factor affecting visibility is distance [24], it is not easy to use sky information to establish an air pollution measurement method. This is because the distance from the sky cannot be measured. However, the sampled images for the related study were not sufficient. It is better to take sampling images up for one year to estimate the performance of the method.
Since distance is the main factor affecting visibility, the measurement of visibility with buildings at different distances has also become a research topic. Buildings with different distances or different features in the image can be divided into different regions. The region used to estimate the visibility or air pollution index are selected as regions of interest (RoI) [24,25]. The features (the distance, fog model, entropy, contrast, sky color, sky gradient, and sunlight incidence angle) in the RoI are compared with the air pollution index, and the coefficient of determination (R2) is obtained with acceptable results. Moreover, the pixel values are shown as having an exponential relationship with the different distance objects [26]. The RoI has achieved good results with respect to estimating air pollution with image processing technologies. However, too many features and manually selected RoI are disadvantages of the operation.
In order to solve the method of manually selecting RoI, the method of automatic selected RoI was proposed [27]. Two images of high and low PM2.5 concentrations were put into a group. The differences in the features of the group were calculated. After calculating serval groups of images, the area most affected by the changes in PM2.5 concentration is the RoI. The pixels in the RoI were used to extract high-frequency information such as the parameters for estimating the PM2.5 concentrations. The top three areas with the largest differences were compared, and the area with the largest differences had the best effect on PM2.5 concentration estimation. However, the experimental data excludes RH, and the method is not applied to estimate AQI.
In this study, a method of estimating AQI is proposed and is simple, fast, and affordable. Images with high and low PM2.5 concentrations are used to obtain the RoI. The pixels in the RoI are calculated to obtain high-frequency information. Then, SVR is applied to estimate AQI with high-frequency information and RH. The experiment included one-year data collection, and performance is indexed with R2 and RMSE.

2. Automatic Selection of RoI

If images are shot from the environment and compared with the AQI, it can be observed that when visibility decreased, AQI values increased. Figure 1 shows the images taken by a fixed camera. According to the observation of the fixed building (red frame) in the image, when the AQI changed from 25 to 170, the details of the building changed from clear to blurry. The manifestation of such visibility changes in the frequency domain is a reduction in high-frequency information. This is the main reason for using high-frequency variation changes to obtain the RoI.
A flow chart of the automatic selection of RoI is shown in Figure 2 [27]. To find the difference between high and low visibility images, two images with different PM2.5 concentrations (high and low) were treated as a group. Each image of a group had high-frequency information extracted individually. High-visibility images would have more high-frequency information than low-visibility images. The binarization method and morphology were applied to obtain pixels with large differences in high-frequency information within individual images. The XOR operation leaves pixels of two images with large high-frequency differences. The pixels with large differences were combined with neighbors into a region via labeling. The labeling process was conducted by an algorithm that gave connected pixels the same label. Pixels with the same label could be treated as the same region. In regions obtained by calculating every group, the region with the largest high-frequency information is the RoI.

3. To Estimate AQI with RH

Figure 3 is a flowchart of the proposed AQI estimation method. First, the RoI is selected after the images are inputted. Features are extracted from images in the RoI and calculate feature values, and then divide these values into training data and test data. The characteristic value, actual AQI value, and actual RH value in the test data are input to Support vector regression (SVR) [28] for training. The image of the test data is estimated through the trained SVR to estimate the AQI value. Afterward, the estimated AQI and the actual AQI will be evaluated through evaluation indicators. Finally, the estimated performance is obtained. In Section 3.1, the dataset used for the experiment is introduced. Since the RoI selected method was proposed by Liaw et al., the method of the RoI selection process will not be introduced here. The method used to calculate the feature values will be introduced in Section 3.2. Section 3.3 will introduce the training data and test data of the image. Section 3.4 will introduce the support vector regression. Section 3.5 will introduce the evaluation index for evaluating the performance of the proposed method.

3.1. Dataset

In this study, the images were taken from Taiwan’s air quality monitoring station as an image database. The Kaohsiung Renwu Monitoring Station was selected as it has relatively serious air quality issues compared to other areas of Taiwan. The images were taken for one year from August 2018 to July 2019, gathered from 7:00 a.m. to 17:00 p.m. One image was taken every 10 minutes, for a total of 21,720 images. The actual RH value and AQI value corresponding to these images were collected. Figure 4 shows the high AQI numerical image and the low AQI numerical image of the Renwu monitoring station in Kaohsiung, Taiwan. The images taken by the Kaohsiung Renwu Monitoring Station are images of urban buildings. The locations of the buildings range from far to near the shooting location. When the AQI value increases, the image pixels of distant buildings are more affected, and the contours and high-frequency features are gradually lost. Therefore, the image of the distant buildings was used. Figure 5 shows the distribution of AQI and RH values in the database. In the collected database, the distribution of AQI values was average. AQI values ranging from 15 to 160 had a considerable amount of image data. The RH value shows a normal distribution [29]. The RH value is very important in the experiment because the RH value was not included in the calculation of AQI, and RH will also affect visibility. Therefore, the RH value was added to the SVR to adjust the estimated AQI.

3.2. Value of Feature Calculation

When the AQI value increases, the outline of the distant target will gradually disappear, and the high-frequency information will gradually decrease. Therefore, the visibility of the scene was estimated by calculating the high-frequency information in the image. Here, the method of Sobel was used [30] to calculate the high-frequency information of the image. Sobel is a method of spatial domain filtering, which uses a high-pass filter. By performing horizontal and vertical convolution processing in the image [31] and adding the results of the horizontal and vertical convolution processing, the edge information of the image can be obtained. In the calculated Sobel images, higher pixels represent higher gradients. After the images are gray-scaled, two sets of 3 × 3 matrices are used to perform convolution processing on the gray-scaled image A. The convolution matrix for horizontal and vertical calculation is as follows, where Lx represents the horizontal weight, and Ly represents the vertical weight:
L x   = [ 1 0 1 2 0 2 1 0 1 ] A ,   L y = [ 1 2 1 0   0   0 1   2   1 ] A
The horizontal and vertical gradients in the image pixels can be combined with the following formulas to calculate the magnitude of the gradient:
L x , y = | L x | + | L y |
Figure 6 shows the horizontal and vertical gradient calculation of the image and the combination of the two images used to calculate the high-frequency information. Lx in formula (7) calculates the horizontal weight, Ly calculates the vertical weight, and then Lx,y is calculated by formula (8) to calculate the high-frequency information.
After calculating the high-frequency information of the image, the next step was feature extraction. For RoI selection, the RoI selection method was proposed by Liaw et al. As shown in Figure 7, the feature can be obtained by calculating the pixel average of the high-frequency information in the RoI. The calculation formula is as follows:
E i g e n v a l u e s = 1 M × N x = p x M + p x y = p y M + p y G i ( x , y )
where Gi is the pixel position (x,y) in the high-frequency information, the value of the feature is the average value of Gi (x,y) in RoI, where the RoI is M × N. (px, py) is the coordinate position of the upper left corner of the RoI. Figure 8 shows the images presented at different AQI values, as well as the corresponding high-frequency images and feature values. When the AQI value increases, the image in the RoI gradually loses its outline and detailed texture. In the calculated high-frequency image, the high-frequency information of the building is also reduced. The calculated characteristic value also drops accordingly. Therefore, the value of AQI is negatively correlated with the calculated characteristic value of the high-frequency information.

3.3. Training Images and Testing Images

Before the experiment, the image data were divided into a training set and a test set. There was no duplicate data between the training set and test set. A cross-validation method was used to divide the data into the training set and test set. This method was used to randomly divide the data into a test set and training set at ratios of (1:9), (2:8), …, (8:2), (9:10). The collected database contained 21720 images. Table 3 shows the allocation table of the training and testing data. In the experimental results, the distribution ratios of these nine materials are shown.

3.4. Support Vector Regression

With the development of computer technology, there have been many technological breakthroughs in regression models [32]. Regression models are also used in the field of machine learning. The SVR application was used in this study. SVR is an application method used by the Support Vector Machine (SVM) [33] to solve regression estimation problems. The concept of SVM is shown in Figure 9. On two-dimensional data, the red and blue data are needed to divide, so they can be divided with a one-dimensional line. Obviously, Figure 9c has the best segmentation result because the segmentation line has the farthest distance from the data point. However, usually, the data is not only two-dimensional, so the data is needed to be mapped to a higher dimension to divide the data. Two-dimensional data can be divided by one-dimensional lines, and after the data is mapped to a three-dimensional space, the data can be divided by a two-dimensional plane. Therefore, when the data is mapped to an n-dimensional hyperplane, the data can be divided by an (n-1)-dimensional hyperplane.
The principle of SVR is the same as that of SVM, but the concept is different. Figure 10 shows the conceptual difference between SVM and SVR. SVM is used to find a hyperplane that separates the data, while SVR is used to find a hyperplane that can make all data points close to this hyperplane. When these data points are closer to the regression hyperplane, the estimated data will be more accurate.
Assuming that the system is linear, there are several planes in the feature space that can accurately express the relationship between the two types of data. There will be a classification boundary which can cause a small margin between the classifications. The best hyperplane should express different data on one hyperplane as much as possible. Taking a two-dimensional coordinate system as an example, the data set in space is composed of xi and yi, and it can be written as:
{ x i , y i } ,   i = 1 , , n y i { 1 , 1 }
where xi is the data point, and yi is the label of the classification. The hyperplane equation can be set as:
f ( x ) = w T x i + b = 0
where w is the normal vector, and b is the offset. The SVR is used to find the solution of the following [34]:
Minimize 1 2 w 2 + C i ( ξ i + ξ i * )
Subject   to   { w x i + b y i ϵ + ξ i y i w x i b ϵ + ξ i * ξ i   and   ξ i * 0
where ||.|| is the Euclidean norm, ε represents the allowable error, C is the tradeoff between the flatness and the allowable error, and ξ i   and   ξ i * are the ith slack variable. Lagrange Multiplier is used to solve the above optimization problem [35].

3.5. Evaluation Index

The correlation coefficient is used to measure the degree of correlation between two pieces of data. R2 [36] and root-mean-square error (RMSE) are used as the evaluation standard for estimating AQI, and the calculation formula of R2 is as follows:
R 2 = 1 i = 1 n ( a i b i   ) 2 i = 1 n ( a i b ¯ i ) 2
Among them, a i is the ith estimated value, b i is the ith actual value, b ¯ i is the average value of   b i , and n is the number of data. R2 is between 0 and 1. A value closer to 1 represents the estimated data, which is more linear. That is to say, when R2 is 1, this means the estimated AQI value is exactly the same as the actual AQI value. Generally speaking, when R2 is greater than 0.5, it means that the two pieces of data have a greater correlation.
The calculation formula of RMSE is as follows:
R M S E = 1 n i = 1 n ( a i b i ) 2
RMSE represents the root mean square error between the estimated value and the actual value. If the difference between the estimated AQI value and the actual AQI value is smaller, the RMSE will be smaller. Therefore, when the RMSE is closer to 0, it means that there is no error in the actual value.

4. Experiment

In this section, the results of the entire experiment are introduced. There were some factors that could affect the results of the experiment, so we needed to exclude invalid data. Details will be introduced in Section 4.1. Section 4.2 shows all the experimental results, showing the AQI estimation performance under different training and test allocation ratios. Section 4.3 discusses the experimental results and how future experiments can improve these problems.

4.1. Exclude Invalid Data

In the collected image database, images were taken every 10 min, but the AQI value was one image per hour. This resulted in a situation where there is only one AQI value but six images in an hour. This is because when the air quality monitoring station measures the AQI value, it takes about 1 hour of sampling time. However, in actual situations, the feature values calculated from the six images within this hour are likely to show large changes. This is because air pollutants are usually not uniform in the air, and visibility levels within an hour may vary greatly due to wind speeds, weather conditions, and relative humidity of the day. Therefore, when the variation of the characteristic value within one hour is too large, the estimated AQI will also have big differences. However, the AQI corresponding to these six sheets has only one value. The performance evaluated at this time would be affected. As shown in Figure 11, the AQI in this hour had only one value, but the characteristic value of the six images changed from 17.5 to 40.7. At this time, the estimated AQI value would also show a very large change. Therefore, we excluded data whose characteristic values changed too much.
The data with characteristic value changes excessively within one hour were also excluded. First, the feature values of the images in the training set were calculated. The characteristic value Standard Deviation(SD) [37] was calculated from the six characteristic values per hour and the mean SD from the standard deviation of each hour’s characteristic value in the database. In the experiment, a threshold value should be set to exclude data with characteristic value SDs that are too high. As shown in Figure 12, data were treated with hourly feature value standard deviations greater than the mean SD as invalid data and excluded. The calculated mean SD was 3.66. When excluding data larger than the mean SD, 35% of the data of the appointment was excluded. It is shown that this 35% will affect the experimental estimates. The dataset after excluding invalid data includes 13,945 images. The performance before and after excluding invalid data is compared in Section 4.2.

4.2. Experimental Result

The high-frequency feature value, RH, and actual AQI value of the image were added to the SVR, and the AQI values of the images in the test set were estimated. R2 and RMSE were used to evaluate the performance before and after excluding invalid data. Table 4 shows the AQI estimation results of the training to test ratio from [1:9] to [9:1], and Figure 13 shows a comparison chart of the AQI estimation results.
Each evaluation value in Table 4 is the average result of three times experiments. The average experimental results before excluding invalid data obtained R2 of 0.646 and RMSE of 23.5. After excluding invalid data, the R2 was 0.678 and the RMSE was 22.3. We used experiments to prove that the exclusion of invalid data indeed affected the estimation results, and these data cannot accurately estimate the AQI value.
After excluding invalid data, the training to test ratio has the best estimation performance at [7:3]; R2 was 0.694 and RMSE was 21.8. The estimated performance when the ratio of training to test was (1:9) was the worst; the R2 was 0.655 and RMSE was 23.1. This can be seen in Figure 14. The ratio of training and testing starts from (1:9) to (7:3) to reach the peak of estimated performance, and when it reaches (8:2) and (9:1), the estimated performance begins to decline. In particular, the worst and best-estimated performance difference R2 was only about 0.04, and for RMSE is was only about 1.3. Figure 15 shows the relationship between the best performance estimate and the actual AQI. It was found that the data was quite concentrated. There were better estimation results when the AQI was lower and higher. When the AQI value was medium, the estimated performance was worse.

4.3. Discussion of Experimental Results

In previous studies, linear or non-linear regression models were mostly used, so the RH weather characteristics could not be used to adjust the estimation results. Data with RH that are too high would be excluded at this time. In the experiment, SVR was used to estimate AQI, and RH weather characteristics were added to adjust the estimated AQI value. This can solve the impact on visibility when the RH was too high. The method of automatically calculating RoI was also used. This method can better find the area suitable for estimating AQI. Therefore, the proposed method has better performance to estimate the AQI value.
In the experimental results, the estimated AQI performance R2 reached a correlation coefficient of 0.694. The worst R2 was 0.655. In fact, the estimated performance was not particularly good. There are several factors that could cause estimated performance to decline. The first indicators that have a greater impact on visibility are PM2.5, PM10, and RH. However, in addition to these three indicators, there will be other factors that affect visibility. At the same time, light and weather could also affect visibility, so it was estimated that performance will decrease.
Although PM2.5 and PM10 affect the AQI value to a large extent, other secondary indicators also affect the AQI value to a lesser extent. In other words, it was difficult to estimate 100% correct AQI values.
In this experiment, only the high-frequency information of the image was used. However, the method of estimating visibility through images was not limited to high-frequency image information. Other experiments often use methods such as image transmittance, entropy, and contrast to estimate visibility. Moreover, SVR is a very powerful regression model, which can input quite a lot of features to perform regression operations. Therefore, estimating AQI through more features can improve estimation performance and should be the focus of future works.
Although the proposed method could estimate the effective AQI value, this method still has some limitations. First, it requires a lot of data for training. In the experiment, the highest estimation performance was achieved when the ratio of the training data to test data was 7:3. Currently, about 9800 images were used for training. Training with these images requires actual AQI values and actual RH values. In addition, the scene and angle of the photos cannot be changed. Therefore, when the scene target in the RoI changes, the RoI is needed to recalculate. Finally, the proposed method is only suitable for daytime images. The AQI value for the images cannot be estimated at night. In future experiments, in addition to improving the performance of estimating AQI, these limitations with respect to estimating AQI will be resolved.

5. Conclusions

In this study, a method was proposed to estimate AQI. The proposed method included applying an automatically selected RoI obtained from the difference between images with high and low visibility. The high-frequency information of RoI, RH, and true AQI was used to train via SVR, which was used to generate the model of estimation. One year of experimental samples, which included 21,720 images with corresponding RH and AQI, were collected from a fixed monitoring station. According to the results, the performance of AQI estimation could reach R2 = 0.694 and RMSE = 21.8 when the training-to-test ratio was 7:3. The experiments showed that including RH did not reduce the performance in a whole year of sampled data. The proposed method could be used to estimate AQI with acceptable performance in a simple, fast, and low-cost way. Since the image features (rather than chemical composition) were used to estimate AQI, the correlation between features and AQI is worth exploring in the future. In addition, SVR is a kind of machine learning method, so the question of how many input effective features can be used to improve the performance should also be a focus of future efforts.

Author Contributions

Conceptualization, J.-J.L.; methodology, J.-J.L.; software, K.-Y.C.; data curation, K.-Y.C.; writing—original draft preparation, K.-Y.C.; writing—review and editing, J.-J.L.; visualization, K.-Y.C.; supervision, J.-J.L.; All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Cheng, A.W.L.; Chen, Y.S.; Zhang, J.; Lyons, T.J.; Pai, J.L.; Chang, S.H. Comparison of the revised air quality index with the PSI and AQI indices. Sci. Total Environ. 2007, 382, 191–198. [Google Scholar] [CrossRef] [PubMed]
  2. Environmental Protection Administration Executive Yuan, R.O.C., Taiwan. Available online: https://airtw.epa.gov.tw/CHT/Information/Standard/AirQualityIndicator.aspx (accessed on 30 April 2021).
  3. Jobson, B.T.; Berkowitz, C.M.; Kuster, W.C.; Goldan, P.D.; Williams, E.J.; Fesenfeld, F.C.; Riemer, D. Hydrocarbon source signatures in Houston, Texas: Influence of the petrochemical industry. J. Geophys. Res. Atmos. 2004, 109. [Google Scholar] [CrossRef]
  4. Rahman, M.M.; Alam, M.M.; Asiri, A.M.; Opo, F.A.D.M. An Electrochemical Approach for the Selective Detection of Cancer Metabolic Creatine Biomarker with Porous Nano-Formulated CMNO Materials Decorated Glassy Carbon Electrode. Sensors 2020, 20, 7060. [Google Scholar] [CrossRef]
  5. Yu-Sung, Y. Introduction of the Taiwan Air Quality Monitoring Stations. Instrum. Today 2005, 145, 47–53. [Google Scholar]
  6. Air Quality Annual Report of R.O.C. (Taiwan). Environmental Protection Agency of Taiwan Executive Yuan. 2018. Available online: https://www.epa.gov.tw/DisplayFile.aspx?FileID=9FDF33456FA1DB1F (accessed on 22 May 2021).
  7. Xing, Y.-F.; Xu, Y.-H.; Shi, M.-H.; Lian, Y.-X. The impact of PM2.5 on the human respiratory system. J. Thorac. Dis. 2016, 8, E69. [Google Scholar]
  8. Arden Pope, C., III; Douglas, W.; Dockery, J.; Spengler, D.; Raizenne, M.E. Respiratory health and PM10 pollution: A daily time series analysis. Am. Rev. Respir. Dis. 1991, 144, 668–674. [Google Scholar] [CrossRef]
  9. Manabe, S.; Wetherald, R.T. Thermal Equilibrium of the Atmosphere with a Given Distribution of Relative Humidity; John Wiley & Sons Ltd: Hoboken, NJ, USA, 1967; pp. 241–259. [Google Scholar]
  10. David, Y.H.; Chen, P.S.-C.; Zhili, Z. PM2.5 in China: Measurements, sources, visibility and health effects, and mitigation. Particuology 2014, 13, 1–26. [Google Scholar]
  11. Tao, J.; Ho, K.-F.; Chen, L.; Zhu, L.; Han, J.; Xu, Z. Effect of chemical composition of PM2.5 on visibility in Guangzhou, China, 2007 spring. Particuology 2009, 7, 68–75. [Google Scholar] [CrossRef]
  12. Watson, J.G. Visibility: Science and regulation. J. Air Waste Manag. Assoc. 2002, 52, 628–713. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  13. Ngo, D.; Lee, S.; Ngo, T.M.; Lee, G.-D.; Kang, B. Visibility Restoration: A Systematic Review and Meta-Analysis. Sensors 2021, 21, 2625. [Google Scholar] [CrossRef] [PubMed]
  14. Cheng, X.; Yang, B.; Liu, G.; Olofsson, T.; Li, H. A Total Bounded Variation Approach to Low Visibility Estimation on Expressways. Sensors 2018, 18, 392. [Google Scholar] [CrossRef] [Green Version]
  15. Liu, J. Visibility distance estimation in foggy situations and single image dehazing based on transmission computation model. IET Image Process. 2018, 12, 1237–1244. [Google Scholar] [CrossRef]
  16. Hou, Z.; Yau, W.-Y. Visible entropy: A measure for image visibility. In Proceedings of the 2010 20th International Conference on Pattern Recognition, Istanbul, Turkey, 23–26 August 2010; pp. 4448–4451. [Google Scholar] [CrossRef]
  17. Uc, E.Y.; Rizzo, M.; Anderson, S.W.; Dastrup, E.; Sparks, J.D.; Dawson, J.D. Driving under low-contrast visibility conditions in Parkinson disease. Neurology 2009, 73, 1103–1110. [Google Scholar] [CrossRef] [Green Version]
  18. Luo, C.-H.; Yuan, C.-S.; Wen, C.-Y.; Liaw, J.-J.; Chiu, S.-H. Investigation of Urban Atmospheric Visibility Hsing Haar Wavelet Transform. Aerosol Air Quality Res. 2005, 5, 39–47. [Google Scholar] [CrossRef] [Green Version]
  19. Zhang, Z.; Ma, H.; Fu, H.; Liu, L.; Zhang, C. Outdoor air quality inference from single image. In International Conference on Multimedia Modeling; Springer: Cham, Switzerland, 2015; pp. 13–25. [Google Scholar]
  20. Wu, D.; Gong, J.; Liang, J.; Sun, J.; Zhang, G. Analyzing the Influence of Urban Street Greening and Street Buildings on Summertime Air Pollution Based on Street View Image Data. ISPRS Int. J. Geo-Inf. 2020, 9, 500. [Google Scholar] [CrossRef]
  21. Samsami, M.M.; Shojaee, N.; Savar, S.; Yazdi, M. Classification of the Air Quality Level based on Analysis of the Sky Images. In Proceedings of the 27th Iranian Conference on Electrical Engineering, Yazd, Iran, 30 April–2 May 2019; pp. 1492–1497. [Google Scholar]
  22. Mack, Y.P. Local properties of k-NN regression estimates. SIAM J. Algebr. Discret. Methods 1981, 2, 311–323. [Google Scholar] [CrossRef]
  23. Browne, M.W. Cross-validation methods. J. Math. Psychol. 2000, 44, 108–132. [Google Scholar] [CrossRef] [Green Version]
  24. Liu, C.; Tsow, F.; Zou, Y.; Tao, N. Particle pollution estimation based on image analysis. PloS ONE 2016, 11, e0145955. [Google Scholar] [CrossRef] [PubMed]
  25. Matthew, B.; Anton, J.-L.; Valabregue, R.; Poline, J.-B. Region of interest analysis using an SPM toolbox. 8th Int. Conf. Funct. Mapp. Hum. Brain 2002, 16, 497. [Google Scholar]
  26. Luzón-González, R.; Juan, L.; Nieves, J.R. Recovering of weather degraded images based on RGB response ratio constancy. Appl. Opt. 2015, 54, B222–B231. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  27. Liaw, J.-J.; Huang, Y.-F.; Hsieh, C.-H.; Lin, D.-C.; Luo, C.-H. PM2.5 Concentration Estimation Based on Image Processing Schemes and Simple Linear Regression. Sensors 2020, 20, 2423. [Google Scholar] [CrossRef] [PubMed]
  28. Drucker, H.; Chris, J.C.; Burges, L.K.; Smola, A.; Vapnik, V. Support vector regression machines. Adv. Neural Inf. Process. Syst. 1997, 9, 155–161. [Google Scholar]
  29. Ahsanullah, M.; Golam Kibria, B.M.; Shakil, M. Normal distribution. In Normal and Student´s Distributions and Their Applications; Atlantis Press: Paris, France, 2014; pp. 7–50. [Google Scholar]
  30. Vincent, R.O.; Folorunso, O. A descriptive algorithm for sobel image edge detection. Proceedings of Informing Science & IT Education Conference (InSITE), Macon, GA, USA, 12–15 June 2009; Informing Science Institute California: Santa Rosa, CA, USA, 2009; Volume 40. [Google Scholar]
  31. Gonzalez, R.C.; Woods, R.E. Image processing. In Digital Image Process; Pearson Education, Inc.: Upper Saddle River, NJ, USA, 2008. [Google Scholar]
  32. Poole, M.A.; O’Farrell, P.N. The assumptions of the linear regression model. Trans. Inst. Br. Geogr. 1971, 145–158. [Google Scholar] [CrossRef]
  33. Noble, W.S. What is a support vector machine? Nat. Biotechnol. 2006, 24, 1565–1567. [Google Scholar] [CrossRef] [PubMed]
  34. Smola, A.J.; Schölkopf, B. A Tutorial on Support Vector Regression. Stat. Comput. 2004, 14, 199–222. [Google Scholar] [CrossRef] [Green Version]
  35. Bansal, N.; Defo, M.; Lacase, M.A. Application of Support Vector Regression to the Prediction of the Long-Term Impacts of Climate Change on the Moisture Performance of Wood Frame and Massive Timber Walls. Buildings 2021, 11, 188. [Google Scholar] [CrossRef]
  36. Akossou, A.Y.J.; Palm, R. Impact of Data Structure on the Estimators R-square and Adjusted R-square in Linear Regression. Int. J. Math. Comput. 2013, 20, 84–93. [Google Scholar]
  37. Wan, X.; Wang, W.; Liu, J.; Tong, T. Estimating the sample mean and standard deviation from the sample size, median, range and/or interquartile range. BMC Med. Res. Methodol. 2014, 14, 1–13. [Google Scholar] [CrossRef] [Green Version]
Figure 1. A schematic diagram of AQI and visibility changes.
Figure 1. A schematic diagram of AQI and visibility changes.
Sensors 21 03630 g001
Figure 2. Automatic selection of the RoI flowchart.
Figure 2. Automatic selection of the RoI flowchart.
Sensors 21 03630 g002
Figure 3. A flow chart of the method of estimating AQI.
Figure 3. A flow chart of the method of estimating AQI.
Sensors 21 03630 g003
Figure 4. Images from the Renwu monitoring station in Kaohsiung, Taiwan; (a) low-AQI numerical image and (b) high-AQI numerical image.
Figure 4. Images from the Renwu monitoring station in Kaohsiung, Taiwan; (a) low-AQI numerical image and (b) high-AQI numerical image.
Sensors 21 03630 g004
Figure 5. The distribution of AQI and RH values at Renwu Monitoring Station in Kaohsiung, Taiwan; (a) AQI value distribution and (b) RH value distribution.
Figure 5. The distribution of AQI and RH values at Renwu Monitoring Station in Kaohsiung, Taiwan; (a) AQI value distribution and (b) RH value distribution.
Sensors 21 03630 g005
Figure 6. The image performs horizontal and vertical gradient calculations and calculates the high-frequency information.
Figure 6. The image performs horizontal and vertical gradient calculations and calculates the high-frequency information.
Sensors 21 03630 g006
Figure 7. The method for calculating the feature value in the RoI.
Figure 7. The method for calculating the feature value in the RoI.
Sensors 21 03630 g007
Figure 8. High-frequency images and feature values corresponding to different AQI values.
Figure 8. High-frequency images and feature values corresponding to different AQI values.
Sensors 21 03630 g008
Figure 9. A conceptual diagram of the SVM segmentation data; (a,b) show the poor segmentation results, (c) shows the best segmentation results.
Figure 9. A conceptual diagram of the SVM segmentation data; (a,b) show the poor segmentation results, (c) shows the best segmentation results.
Sensors 21 03630 g009
Figure 10. The conceptual difference between SVM and SVR; (a) the dividing line is far away from the data point; (b) the dividing line is close to the data point.
Figure 10. The conceptual difference between SVM and SVR; (a) the dividing line is far away from the data point; (b) the dividing line is close to the data point.
Sensors 21 03630 g010
Figure 11. Value of feature change within one hour.
Figure 11. Value of feature change within one hour.
Sensors 21 03630 g011
Figure 12. The standard deviation distribution of hourly feature values.
Figure 12. The standard deviation distribution of hourly feature values.
Sensors 21 03630 g012
Figure 13. The R2 of the estimated AQI and the actual AQI values; (a) invalid data is not excluded; (b) invalid data is excluded.
Figure 13. The R2 of the estimated AQI and the actual AQI values; (a) invalid data is not excluded; (b) invalid data is excluded.
Sensors 21 03630 g013
Figure 14. The RMSE of the estimated AQI and the actual AQI value; (a) invalid data is not excluded, (b) invalid data is excluded.
Figure 14. The RMSE of the estimated AQI and the actual AQI value; (a) invalid data is not excluded, (b) invalid data is excluded.
Sensors 21 03630 g014
Figure 15. The relationship between the estimated and actual AQI when the ratio of training-to-test is 7:3; (a) invalid data is not excluded, (b) invalid data is excluded.
Figure 15. The relationship between the estimated and actual AQI when the ratio of training-to-test is 7:3; (a) invalid data is not excluded, (b) invalid data is excluded.
Sensors 21 03630 g015
Table 1. AQI categories and the corresponding human health effects [2].
Table 1. AQI categories and the corresponding human health effects [2].
AQIConcern LevelsColorDescription
0–50GoodGreenAir quality is good; little air pollution or no risk.
51–100ModerateYellowAir quality is acceptable. There may be a risk for some people who are sensitive to air pollution.
101–150Unhealthy for sensitive groupsOrangeSensitive people may experience health effects. The general public is less likely to be affected.
151–200UnhealthyRedThe general public may experience health effects; sensitive people may experience more serious health effects.
201–300Very unhealthyPurpleThe risk of health effects is increased for everyone.
301–500HazardousDark redEveryone is more likely to be affected.
Table 2. AQI’s sub-indicator calculation method [2].
Table 2. AQI’s sub-indicator calculation method [2].
Sub-IndicatorCalculation Method
O3, 8hmoving average value of the last 8 h
O3real-time value
PM2.50.5 × average of the first 12 h + 0.5 × average of the first 4 h
PM100.5 × average of the first 12 h + 0.5 × average of the first 4 h
COmoving average value of the last 8 h
SO2real-time value
SO2, 24haverage in the last 24 h
NO2real-time value
Table 3. Distribution of the training data and test data.
Table 3. Distribution of the training data and test data.
Training:TestingTraining DataTest Data
1:9217219,548
2:8434417,376
3:7651615,204
4:6868813,032
5:510,86010,860
6:413,0328688
7:315,2046516
8:217,3764344
9:119,5482172
Table 4. AQI estimated performance table.
Table 4. AQI estimated performance table.
Invalid Data not ExcludedExclude Invalid Data
Training: TestingR2RMSER2RMSE
1:90.62924.10.65523.1
2:80.63823.90.66422.6
3:70.64323.60.67622.3
4:60.64823.50.69722.2
5:50.64923.50.68822.2
6:40.65023.40.69121.9
7:30.65023.40.69421.8
8:20.65223.40.68322.1
9:10.65723.20.67622.2
Average value0.64623.50.67822.3
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Liaw, J.-J.; Chen, K.-Y. Using High-Frequency Information and RH to Estimate AQI Based on SVR. Sensors 2021, 21, 3630. https://doi.org/10.3390/s21113630

AMA Style

Liaw J-J, Chen K-Y. Using High-Frequency Information and RH to Estimate AQI Based on SVR. Sensors. 2021; 21(11):3630. https://doi.org/10.3390/s21113630

Chicago/Turabian Style

Liaw, Jiun-Jian, and Kuan-Yu Chen. 2021. "Using High-Frequency Information and RH to Estimate AQI Based on SVR" Sensors 21, no. 11: 3630. https://doi.org/10.3390/s21113630

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