Classification of Receiving Electricity Subsidy Assistance in Blang Panyang Village Using the K-NN (K-Nearest Neighbor) Method

Miftahul Jannah, Cut Syahira Salsabila, Nur Faiza, Mutasar Mutasar


The electricity subsidy program is one of the poverty reduction programs by providing electricity subsidy assistance funds to poor and disadvantaged households paid by the Government of Indonesia to PT PLN (Persero). The government implements a targeted electricity subsidy policy, the subsidy must be truly enjoyed by the poor. The purpose of this research is to test the K-Nearest Neighbors algorithm in predicting the receipt of electricity subsidy assistance. In the dataset of beneficiaries used in this study, there are 45 records or tuples with four attributes (house condition, income, occupation and number of amperes). The prediction of new data categories is done by using the manual calculation stage of Euclidean Distance from three different K values. The results show that with K=15, K=30 and K=45 the new data (46) has an "Ineligible" category with an accuracy rate of 100%. Then with K=45, K=30 and K=45 the new data (D46) has a "Viable" category with an accuracy rate of 66.6%.


Euclidean Distance; K-Nearest Neighbors; Electricity subsidy acceptance

Full Text:

PDF (Indonesian)


Dinata, R.K., Adek, R.T., Hasdyna, N., Retno, S. (2023). K-nearest neighbor classifier optimization using purity. AIP Conference Proceedings. 2431(1).

Duca, A. L., Bacciu, C., & Marchetti, A. (2017, June). A K-nearest neighbor classifier for ship route prediction. In OCEANS 2017-Aberdeen (pp. 1-6). IEEE.

Gunawan, A. A. N., Supardi, I. W., Wendri, N., Negara, A. A. N. F. C., Bagaskara, A. A. N., Patriawan, P., & Dharmawan, I. B. G. (2024). Digital Mammography Data Transformation Model to Improve the Accuracy of Benign and Malignant Detection in Breast Cancer. International Journal of Intelligent Systems and Applications in Engineering, 12(1), 647-665.

Hasanah, R.L., Hasan, M., Pangesti, W.E., Wati, F.F., Gata, W. (2019). KLASIFIKASI PENERIMA DANA BANTUAN DESA MENGGUNAKAN METODE KNN (K-NEAREST NEIGHBOR). Jurnal TECHNO Nusa Mandiri. 16(1): 1–6.

Hasdyna, N., Retno, S. (2022). Machine Learning Approach to Determine the Drug-Prone Areas in Lhokseumawe City, Indonesia. International Journal of Multidiciplinary Research and Analysis. 5(9): 2354-2464.

Kesarwani, A., Chauhan, S. S., & Nair, A. R. (2020, June). Fake news detection on social media using k-nearest neighbor classifier. In 2020 international conference on advances in computing and communication engineering (ICACCE) (pp. 1-4). IEEE.

Labuda, N., Seeliger, J., Gedrande, T., & Kozak, K. (2017). Selecting adaptive number of nearest neighbors in k-nearest neighbor classifier apply diabetes data. J. Math. Stat. Sci, 2017, 1-13.

Muharrom, M. (2023). Analisis Komparasi Algoritma Data Mining Naive Bayes, K-Nearest Neighbors dan Regresi Linier Dalam Prediksi Harga Emas. Bulletin of Information Technology (BIT), 4(4), 430-438.

Retno, S., Dinata, R.K., Hasdyna, N. (2023). Evaluasi model data chatbot dalam natural language processing menggunakan k-nearest neighbor. Jurnal CoSciTech (Computer Science and Information Technology. 4(1): 146-153.

Xie, T., Chen, L., Yi, B., Li, S., Leng, Z., Gan, X., & Mei, Z. (2023). Application of the Improved K-Nearest Neighbor-Based Multi-Model Ensemble Method for Runoff Prediction. Water, 16(1), 69.


Article Metrics

 Abstract Views : 87 times
 PDF (Indonesian) Downloaded : 24 times


  • There are currently no refbacks.

Copyright (c) 2023 Miftahul Jannah, Cut Syahira Salsabila, Nur Faiza, Mutasar Mutasar

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Journal of Advanced Computer Knowledge and Algorithms

JACKA indexed by


Berkas:Logo-Unimal-Aceh Utara.png - Wikipedia bahasa Indonesia,  ensiklopedia bebas
Department of Informatics
Faculty of Engineering
Universitas Malikussaleh
Journal Email :


Creative Commons License
Journal of Advanced Computer Knowledge and Algorithms is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.