NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Application of Decision Tree C4.5 Algorithm in Air Quality Evaluation

Nan Hu, Qing Li2017

Abstract

Air pollution has a significant impact on human production and life; predicting air quality levels helps relevant departments take appropriate measures. This paper selects six basic pollutants—$PM_{10}$, $PM_{2.5}$, $SO_2$, $NO_2$, $CO$, and $O_3$—stipulated in China's "Ambient Air Quality Standard" (GB3905-2012). Based on air pollutant concentration data from Wuhan in October 2016, a prediction model using the C4.5 decision tree algorithm was established. Experimental results show that the proposed algorithm achieves an ideal classification prediction effect.

Introduction

Rapid industrialization and economic growth have led to significant air quality degradation, posing serious risks to public health. While raw data on individual pollutants is often available, translating these complex, continuous variables into a clear "Air Quality Grade" (e.g., Excellent, Good, Moderate) is essential for both public safety and urban policy-making. This study aims to create a reliable, automated model that categorizes air quality levels using the standards set by China’s GB3905-2012. The challenge lies in selecting an algorithm that can handle continuous numerical data efficiently while providing a transparent, interpretable decision-making process.

Methodology

The researchers utilized the C4.5 Decision Tree algorithm, an evolution of the ID3 algorithm that handles continuous attributes and uses the information gain ratio to select attributes, preventing bias toward attributes with many distinct values.

The experimental workflow involved:

  1. Data Preprocessing: Converting raw CSV data into the ARFF format required by the Weka machine learning workbench.
  2. Implementation: Using the J48 algorithm (Weka’s implementation of C4.5).
  3. Optimization: Tuning parameters such as ConfidenceFactor (optimal at 0.25) and minNumObj (minimum instances per leaf, optimal at 4).
  4. Validation: Employing 10-fold cross-validation to ensure model robustness.
ARFF file header defining the pollutant attributes and air quality index classes.

Dataset

The study used a dataset from the Qingyue Open Environment Data Center, consisting of one-hour average concentrations of air pollutants in Wuhan, China, during October 2016. The dataset includes 638 individual data points with six primary pollutant attributes ($SO_2, NO_2, CO, O_3, PM_{10}, PM_{2.5}$) and one target classification (Air Quality Grade I through VI).

Key Results and Discussion

The optimized C4.5 model performed exceptionally well, reaching a maximum accuracy of 97.0219%. The model revealed that for Wuhan, $PM_{10}$, $PM_{2.5}$, and $NO_2$ are the most significant predictors of air quality. This interpretability allows urban planners to identify specific thresholds that trigger drops in air quality grades.

Resulting ARFF file showing the predicted air quality index and prediction margins.

The researchers found that the number of branches significantly impacted accuracy; a model with 4 branches provided peak performance, while additional branches led to slight decreases in accuracy, likely due to overfitting.

Conclusion and Future Work

The C4.5 algorithm successfully transformed complex pollutant data into a concise set of classification rules for real-time monitoring. However, the study is limited by its temporal and spatial scope (Wuhan, October 2016). Future work should incorporate meteorological factors like humidity and wind speed, and expand the dataset to account for seasonal variations.

Summary updated

BibTeX
@misc{hu2017application,
  author = {Nan Hu and Qing Li},
  title = {{Application of Decision Tree C4.5 Algorithm in Air Quality Evaluation}},
  year = {2017},
  doi = {10.2991/amcce-17.2017.197},
}
Figure