Klasifikasi Kualitas Udara Menggunakan Algoritma K-Nearest Neighbor Berdasarkan Data Pm2.5 Di Indonesia Tahun 2025

Authors

  • Khaila Mukti Harahap Mukti UNIVERSITAS ISLAM NEGRI SUMATERA UTARA Author
  • Lailan Sofinah Harahap Universitas Islam Negeri Sumatera Utara Author

Keywords:

air quality, classification, Indonesia, k-nearest neighbor, PM2.5

Abstract

This study aims to classify air quality in various cities in Indonesia based on PM2.5 concentrations using the K-Nearest Neighbor (KNN) algorithm. The data used is sourced from the June–July 2025 edition of Nafas Indonesia, which contains the average PM2.5 values from 21 major cities. The analysis process includes normalization, category labeling based on US EPA standards, model training, and accuracy evaluation. The results show that the KNN model with a k value of 3 is capable of classifying air quality with an accuracy rate of 85%. These findings indicate that the KNN algorithm is quite effective in grouping air quality levels based on particulate pollutant (PM2.5) data.

Downloads

Download data is not yet available.

Downloads

Published

2025-12-31

How to Cite

[1]
K. M. H. Mukti and L. Sofinah Harahap, “Klasifikasi Kualitas Udara Menggunakan Algoritma K-Nearest Neighbor Berdasarkan Data Pm2.5 Di Indonesia Tahun 2025”, J. Ilkom. Tek. If., vol. 2, no. 2, pp. 8–12, Dec. 2025, Accessed: Jan. 02, 2026. [Online]. Available: https://ojs.sains.ac.id/index.php/Jikomti/article/view/137