DIGINTEL-AI : DIGital INnovation and inTELligence – AI
Vol. 2 No. 1 (2026): October

Klasifikasi Kualitas Udara Berdasarkan Parameter Lingkungan Menggunakan Algoritma Decision Tree C4.5

Galang Putra Wicaksana Galang (Teknik Informatika, Universitas Muhammadiyah Prof. Dr. HAMKA, Kota Jakarta Timur)
Irwansyah (Teknik Informatika, Universitas Muhammadiyah Prof. Dr. HAMKA, Jakarta)
Ahmad Taufik (Sistem Informasi, Institut Sosial dan Teknologi Widuri, Jakarta)
Faldy Irwiensyah (Sistem dan Teknologi Informasi, Universitas Muhammadiyah Prof. Dr. HAMKA, Jakarta)



Article Info

Publish Date
31 Oct 2026

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.

Copyrights © 2026






Journal Info

Abbrev

digintelai

Publisher

Subject

Description

DIGINTEL-AI : DIGital INnovation and inTELligence – AI is a scientific journal published by PT Ajira Karya Indonesia in collaboration with the Informatics Engineering Study Program of ISTEK Widuri. This journal contains articles on research results, scientific studies, and applied studies in the ...