Developing efficient, stable, and user-friendly methods and technologies for predicting air quality has contributed to environmental research and management. Most traditional machine learning (ML) models often struggle to efficiently process extensive air quality data and grapple with the challenge of imbalanced data distributions. To this end, we introduced a novel multi-strategy collaborative approach that incorporates weighted feature selection, an adaptive enhanced rotation forest algorithm, and Bayesian Optimization for parameter tuning. Moreover, to improve the transparency in black box ML models, the novel Shapley Additive Explanations (SHAP) method was applied to interpret the outputs and analyze the importance of individual variables. Through experiments on real air quality datasets, we have verified the accuracy of our proposed method in classifying air quality levels. Notably, our model demonstrated an average test set accuracy improvement of approximately 10 % in cities like Beijing, Tianjin, Shijiazhuang, and Baoding after hyperparameter optimization using Bayesian methods. Furthermore, compared to alternative algorithms, our model showed an improvement of 1–2 % in evaluation metrics. By introducing novel methodologies and tools, our research contributes significantly to the advancement of air quality classification technology and holds profound implications for informing environmental policy decisions.
Read full abstract