Klasifikasi Daerah Rawan Narkotika menggunakan Algoritma K-Nearest Neighbors (Studi Kasus: Kabupaten Klaten)

The impact of drug abuse can be devastating, including individual and community health. Various efforts have been made and coordinated with government agencies, law enforcement, communities and others. One of them is by classifying drug distribution areas to suppress the decline in drug abuse cases. This study tested 26 sub-districts in Klaten district, Central Java in 2022. The classification process is done by implementing the K-Nearest Neighbors method integrated with Google Colab and Python programming. The KNN method was chosen because it can assign categories or labels to new data based on the majority of its nearest neighbors in a predefined attribute space. The conclusion obtained is that the system can classify as many as 7 sub-districts with the status of Very Prone areas, 15 sub-districts with the status of Prone, and 7 sub-districts with the status of Not Prone Tests conducted with the KNN method with confusion matrix resulted in an accuracy of 100%, %, Precision 100%, recall 100% and f1-Score of 100% and an average accuracy of 70.5%. The high accuracy value shows that this research has successfully applied the KNN method in classifying drug-prone areas in Klaten district. Relevant agencies such as Klaten District Police can adjust the program dynamically to monitor areas that have been classified as drug-prone and conduct faster follow-up.

Authors

Institutions

Publication Details

Journal
Jikom Jurnal Informatika dan Komputer
Published
2025-04-11
DOI
https://doi.org/10.55794/jikom.v15i1.207
Primary Topic
Data Mining and Machine Learning Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Klasifikasi Daerah Rawan Narkotika menggunakan Algoritma K-Nearest Neighbors (Studi Kasus: Kabupaten Klaten)

M. Taufik Akbar, Prima Wulan Sari
Jikom Jurnal Informatika dan Komputer
Data Mining and Machine Learning Applications
article

Klasifikasi Daerah Rawan Narkotika menggunakan Algoritma K-Nearest Neighbors (Studi Kasus: Kabupaten Klaten)

M. Taufik Akbar, Prima Wulan Sari
article en

Abstract

The impact of drug abuse can be devastating, including individual and community health. Various efforts have been made and coordinated with government agencies, law enforcement, communities and others. One of them is by classifying drug distribution areas to suppress the decline in drug abuse cases. This study tested 26 sub-districts in Klaten district, Central Java in 2022. The classification process is done by implementing the K-Nearest Neighbors method integrated with Google Colab and Python programming. The KNN method was chosen because it can assign categories or labels to new data based on the majority of its nearest neighbors in a predefined attribute space. The conclusion obtained is that the system can classify as many as 7 sub-districts with the status of Very Prone areas, 15 sub-districts with the status of Prone, and 7 sub-districts with the status of Not Prone Tests conducted with the KNN method with confusion matrix resulted in an accuracy of 100%, %, Precision 100%, recall 100% and f1-Score of 100% and an average accuracy of 70.5%. The high accuracy value shows that this research has successfully applied the KNN method in classifying drug-prone areas in Klaten district. Relevant agencies such as Klaten District Police can adjust the program dynamically to monitor areas that have been classified as drug-prone and conduct faster follow-up.

Jikom Jurnal Informatika dan KomputerVol. 15(1)
Universitas Mercu Buana Yogyakarta (ID)
Openalex Percentile: Top 88%
Data Mining and Machine Learning Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Klasifikasi Daerah Rawan Narkotika menggunakan Algoritma K-Nearest Neighbors (Studi Kasus: Kabupaten Klaten) — M. Taufik Akbar, Prima Wulan Sari · Jikom Jurnal Informatika dan Komputer (2025) | TGRS Research Map | TGRS