PM2.5 prediction based on modified whale optimization algorithm and support vector regression

Zuhan Liu, Xin Huang, Xing WangScientific 2024 · DOI

Abstract

To accurately predict PM2.5 concentrations in Nanchang City, this study proposes a hybrid model combining Support Vector Regression (SVR) with a modified Whale Optimization Algorithm (mWOA). Feature selection was performed using Pearson correlation coefficients, identifying PM10, SO2, CO, temperature, and wind power as critical inputs. The mWOA was employed to optimize SVR hyperparameters, effectively avoiding local optima. Results demonstrate that the mWOA-SVR model, particularly when incorporating meteorological factors, significantly outperforms traditional single-pollutant models in forecasting accuracy.

Introduction

Fine particulate matter (PM2.5) is a critical air quality indicator with severe implications for public health. Due to the non-linear and complex nature of atmospheric chemistry, predicting PM2.5 levels remains a significant challenge. Machine learning techniques like Support Vector Regression (SVR) have shown promise, but their performance is highly sensitive to hyperparameter settings. This paper addresses the "Goldilocks" problem of SVR tuning by introducing a modified Whale Optimization Algorithm (mWOA) designed to find global optimal parameters more reliably than standard metaheuristic approaches.

Methodology

Feature Selection and Data Acquisition

The study focused on Nanchang City, China, utilizing a comprehensive dataset from 2022. Air pollutant data (PM2.5, PM10, NO2, SO2, CO, and O3) were collected from monitoring sites, while meteorological data (temperature and wind power) were sourced from the ECMWF. Pearson Correlation Coefficient (PCC) analysis revealed that PM10, SO2, and CO had the strongest relationships with PM2.5. Additionally, weather factors like temperature and wind power were found to be essential for capturing the seasonal and daily variability of particulate matter.

Time series data for air pollutants and meteorological factors in Nanchang City (2022).

The mWOA-SVR Model

The proposed mWOA-SVR model enhances the standard Whale Optimization Algorithm to prevent premature convergence. The modification includes a multi-population strategy that divides the search space into bounding and searching populations. This allows the algorithm to simultaneously exploit known high-performing regions and explore new areas of the parameter space.

Flowchart of the modified Whale Optimization Algorithm (mWOA) used for parameter tuning.

The algorithm alternates its update logic based on the iteration count (odd vs. even) and incorporates reverse learning strategies, ensuring a dynamic search process that can "jump out" of local traps. This optimized algorithm is then used to determine the ideal penalty factor ($C$), loss function ($\epsilon$), and kernel width ($\gamma$) for the SVR model.

Results and Discussion

The performance of the mWOA-SVR model was evaluated using Mean Absolute Percentage Error (MAPE) and the coefficient of determination (R²).

  • Meteorological Synergy: A key insight was that models using both pollutants and weather data achieved much higher accuracy. Weather factors act as multipliers or dispersants for pollutants, making them indispensable for accurate forecasting.
  • PM10 Correlation: The extremely high correlation (>0.8) between PM10 and PM2.5 confirms their shared origins and similar physical behavior in the Nanchang atmosphere.
  • Predictive Precision: The mWOA-SVR model successfully tracked the volatile "peaks and valleys" of PM2.5 concentrations, providing a much tighter fit to real-world observations than models using manual or standard optimization.

Conclusion

The mWOA-SVR hybrid model offers a significant advancement in air quality forecasting. By automating the complex task of hyperparameter tuning and integrating diverse environmental features, it provides a more reliable tool for environmental management. Future research will focus on incorporating spatial data and reducing the computational overhead associated with the multi-population optimization strategy.

Summary updated

Abstract

In order to obtain the pattern of variation of PM<sub>2.5</sub>concentrations in the atmosphere in Nanchang City, we build a Support Vector Regression(SVR) with modified Whale Optimization Algorithm(WOA) hybrid model (namely mWOA-SVR model) that can predict the PM<sub>2.5</sub>concentration. Firstly, according to the Pearson correlation coefficient (PCC) method to examine the dynamic relationship between air pollutants and meteorological factors together with them, PM<sub>10</sub>, SO<sub>2</sub>and CO were selected as air pollutant concentration characteristics, while daily maximum and minimum temperatures, and wind power levels were selected as meteorological characteristics; then, using modified WOA algorithm for parameter selection of SVR model, four sets of better parameter combinations were found; finally, the mWOA-SVR model was built by the four sets parameters to predict PM<sub>2.5</sub>concentration. The results show that the prediction accuracy of mixed mWOA-SVR model with pollutant concentration plus weather factors as the feature was higher than single pollutant concentration.
BibTeX
@inproceedings{liu2024pm,
  author = {Zuhan Liu and Xin Huang and Xing Wang},
  title = {{PM2.5 prediction based on modified whale optimization algorithm and support vector regression}},
  booktitle = {Scientific},
  year = {2024},
  doi = {10.1038/s41598-024-74122-z},
}
Figure