Electron: Jurnal Ilmiah Teknik Elektro
Vol 7 No 1 (2026): Jurnal Electron, Mei 2026

Pemetaan Posisi Perokok pada Suatu Ruangan Menggunakan Metode K-Nearest Neighbor (KNN)

Anisa Ulya Darajat (Universitas Lampung)
Muhammad Qutham Najmi Abdillah (Universitas Lampung)
FX Arinto Setyawan (Universitas Lampung)
Helmy Fitriawan (Universitas Lampung)



Article Info

Publish Date
31 May 2026

Abstract

Due to the high prevalence of smoking among individuals aged 15 and older in Lampung Province and limited enforcement of smoke-free areas, a system was developed to detect and map smoker locations within a 4 × 3.42-meter room using four MQ-7 sensors. The K-Nearest Neighbor (KNN) algorithm classified smoke source locations based on carbon monoxide (CO) concentrations across four designated observation zones. Experimental results indicated that the system had an average sensor reading error of 2.041%. The classification process for smoker positions achieved 93.75% accuracy and displayed smoker locations in Zones 1, 2, 3, and 4 on a dashboard map. Detection and classification data were stored in the InfluxDB database and visualized online using Grafana. The system also delivered real-time values in parts per million (ppm), the status of each zone, and a ten-minute history of ppm values

Copyrights © 2026






Journal Info

Abbrev

electronubb

Publisher

Subject

Computer Science & IT Control & Systems Engineering Electrical & Electronics Engineering Energy

Description

E-journal of the Department of Electrical Engineering, Faculty of Engineering, University of Bangka Belitung, is a media for publication and information for scientific papers, undergraduate thesis, research, planning and design concepts, and analysis from students, professors, or any authors ...