Galang Putra Wicaksana Galang
Teknik Informatika, Universitas Muhammadiyah Prof. Dr. HAMKA, Kota Jakarta Timur

Published : 1 Documents Claim Missing Document
Claim Missing Document
Check
Articles

Found 1 Documents
Search

Klasifikasi Kualitas Udara Berdasarkan Parameter Lingkungan Menggunakan Algoritma Decision Tree C4.5 Galang Putra Wicaksana Galang; Irwansyah; Ahmad Taufik; Faldy Irwiensyah
DIGINTEL-AI : DIGital INnovation and inTELligence – AI Vol. 2 No. 1 (2026): October
Publisher : PT Ajira Karya Indonesia

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.66217/digintel-ai.v2i1.22

Abstract

Air quality directly affects public health. In Indonesia it is communicated through the Air Pollution Standard Index (ISPU), which is calculated from six pollutants: PM2.5, PM10, SO2, CO, O3, and NO2. This study aims to build an accurate and interpretable model that classifies ISPU categories using the C4.5 Decision Tree algorithm. The secondary dataset from Kaggle contains 1,416 air quality monitoring records from DKI Jakarta for 2021–2025. Preprocessing consisted of median and mode imputation for missing values, removal of one unlabeled record, merging the very small “Very Unhealthy” class (4 records) into “Unhealthy”, and label encoding, which resulted in 1,415 records in three classes (Good, Moderate, Unhealthy). The data were split 70:30 with stratification into 990 training and 425 testing records. The tree was built from entropy and information gain, pruned from 39 to 19 nodes (depth from nine to five levels), and converted into ten IF-THEN rules. PM2.5 had the highest information gain (0.8717) and became the root node, with a feature importance of 0.9048. The model correctly classified 416 of 425 test records, an accuracy of 97.88%. The F1-scores for the Unhealthy, Moderate, and Good classes were 99.35%, 98.27%, and 69.57%, respectively; the lower score for Good reflects only 11 test records. SMOTE and ADASYN did not improve accuracy (95.06% and 95.53%). The results show that C4.5 can classify ISPU categories accurately using transparent rules.