應用極限梯度提升演算法建構 PM2.5 濃度等級分類模型-以台中市及彰化縣為例
Using XGBoost Algorithm to Construct a Classification Model for PM2.5 Concentration Levels- Case Study of Taichung and Changhua Cities
摘要
工業技術的進步大幅提升了人們的生活水準,但是隨著工廠數量不段增加,也使得工廠廢棄物排放的問題日益嚴重,空氣污染的問題也逐漸浮上檯面。空氣污染物之一的懸浮微粒 (Particulate Matter) 已被證實會對人體健康造成嚴重的傷害,其中 PM2.5 對人體健康有非常大的威脅。為了有效預測 PM2.5 濃度來減少人體受傷害的機會,已有文獻發展了一些預測 PM2.5 濃度的方法,但皆為預測 PM2.5 濃度數值,然而大多數人並不清楚 PM2.5濃度數值大小對人體健康所代表之危險程度。因此,本研究之主要目的為以全台灣肺癌發生率相對最高之台中市及彰化縣為例,建立一個 PM2.5 濃度等級分類模型,透過分類模型的輸出結果,比起 PM2.5濃度預估值,一般民眾能更方便且直觀地判斷 PM2.5 之濃度的嚴重等級。本研究首先將 PM2.5 濃度分成三種等級,由於此三等級的資料數量差異太大,為了降低此類不平衡資料 (imbalanced data) 對分類模型準確度的影響,本研究先使用單邊篩選法 (one-sided selection) 刪除多餘之多數類別樣本,接著利用雙反應曲面法 (Dual Response Surface Method) 決定最適之隨機抽取多數類別資料之比例及利用SMOTE (Synthetic Minority Oversampling Technique) 法增生少數類別資料之比例,最後應用極限梯度提升(eXtreme Gradient Boosting) 演算法建構 PM2.5 濃度等級分類模型。本研究利用台中市及彰化縣之空氣污染物資料及相關氣象資訊驗證本研究提出之 PM2.5濃度等級分類模型確實有效。
The progress of industrial technology has greatly improved human life, but the problem of air pollution has gradually surfaced at the same time. Particulate Matter, one of the air pollutants, has been proven to cause serious harm to human health. Among all types of Particulate Matter, PM2.5 poses a great threat to human health. In order to keep people from the harm of PM2.5, many studies have developed some methods for predicting the concentration of PM2.5. All of these studies predict PM2.5 concentration in numeric scale, but many people do not know how dangerous the numerical value of PM2.5 concentration represents to human health. Therefore, the main objective of this study is to take Taichung and Changhua cities, which have the highest incidence rate of lung cancer in Taiwan, as examples to construct a PM2.5 concentration level classification model. People can conveniently and intuitively distinguish the condition of PM2.5 concentration using the proposed classification model. In this study, the hourly PM2.5 concentration level was divided into three classes. In order to reduce the impact of the imbalanced data on the accuracy of the classification model, one-sided selection is first used to delete unnecessary samples of majority class. Secondly, the Dual Response Surface Method (DRSM) is utilized to determine the optimal ratio of randomly selected majority class and the Synthetic Minority Oversampling Technique (SMOTE) method is employed to increase the observations of minority classes. Finally, the eXtreme Gradient Boosting (XGBoost) algorithm is applied to construct classification model for PM2.5 Concentration level. This study utilizes air pollutant data and related weather information in Taichung and Changhua cities to verify that the proposed classification model in this study is effective.