Text
KLASIFIKASI KUALITAS UDARA MENGGUNAKAN ALGORITMA K-NEAREST NEIGHBOR (K-NN) DI KABUPATEN OGAN KOMERING ILIR SUMATERA SELATAN
Ogan Komering Regency (OKI) is one of the regencies in South Sumatra Province which is prone to forest fire cases. The higher the level of forest fires that occur, the higher the level of air pollution that occurs. For this reason, it is necessary to accurately measure and classify air quality levels every day. This research aims to classify air quality in Ogan Komering Ilir Regency using the K-Nearest Neighbor (KNN) method. Using 641 ISPU data with 7 attributes. Daily air quality data is collected and classified based on the Air Pollution Standard Index (ISPU) categories, namely Good, Moderate, Unhealthy, Very Unhealthy and Hazardous. The classification process is carried out using the K-Nearest Neighbor algorithm and the results are evaluated using the Confusion Matrix to calculate accuracy, precision, recall and F1-Score. Based on test results, the K=1 value provides the highest accuracy of 98.97%. Meanwhile, the values K=3 to K=7 show accuracy between 98.86% to 98.52%, and the values K=9 to K=19 remain consistent with high accuracy in the range 98.41% to 98.18%. Overall, this research shows that the KNN method is able to classify air quality with an average accuracy of 98.52%.
No other version available