Implementasi Algoritma K-Nearest Neighbor pada Sistem Deteksi Tingkat Dehidrasi Berdasarkan Warna Urin Berbasis IoT dan Android

Authors

DOI:

https://doi.org/10.29408/jit.v9i2.35273

Keywords:

dehydration, Urine Color, K-Nearest Neighbor, IoT, ESP32-cam, android

Abstract

Dehydration is a condition in which the body loses more fluids than it receives, potentially causing health problems and disrupting normal body functions. One indicator of dehydration can be observed through urine color, where darker urine indicates a higher level of dehydration. This study aims to implement the K-Nearest Neighbor (KNN) algorithm in an Internet of Things (IoT)- and Android-based dehydration detection system using urine color analysis. The system utilizes a TCS3200 color sensor to detect urine color, an ESP32 microcontroller to process and transmit data, and an Android application to display detection results in real time. The acquired color data are processed using the KNN algorithm to classify dehydration levels into several categories. The classification results are then displayed on the Android application along with hydration reminder notifications. System testing was conducted using 50 artificial urine color samples with varying color intensities. The results showed that the proposed system was able to classify dehydration levels with an accuracy of 92% and successfully display real-time detection results through the Android application. The developed system is expected to assist users in monitoring their hydration status easily and effectively.

References

[1]. Sinaga TO, Yuliarti. Status Gizi, Asupan Cairan, dan Kebiasaan Olahraga terhadap Kejadian Dehidrasi Remaja di SMP Negeri 1 Indralaya Kabupaten Ogan Ilir. Jurnal Kesmas dan Gizi (JKG) [Internet]. 2025;7(2):185–94. Available from: https://doi.org/10.35451/jkg.v7i2.2467

[2]. Zahra AA, Diaty R, Normahya SR, Mangkurat UL. Elektrolit dalam Tubuh Manusia: Kunci Kesehatan dan Keharmonisan Hidup. Journal of Education, Politic, and Social Humaniora. 2024;2(2):158–76.

[3]. Antonio D. Monitoring Pengingat Tingkat Dehidrasi Tubuh Melalui Warna Urine Dengan Metode Fuzzy Mamdani Di Urinoir Toilet. Jurnal Informatika dan Teknik Elektro Terapan [Internet]. 2025;13(3S1). Available from: https://journal.eng.unila.ac.id/index.php/jitet/article/view/7930

[4]. Zulfachmi Z, Syahputra AF, Indra Prasetyo B, Elsa Shafira A. Klasifikasi Tingkat Dehidrasi Berdasarkan Warna Urin Menggunakan Metode KNN. Jurnal Bangkit Indonesia. 2023;12(1):43–8.

[5]. Utami PN, Arinal V, Mulyana DI. Klasifikasi Dehidrasi Tubuh Manusia Berdasarkan Citra RGB Pada Warna Urine Menggunakan Metode K-Nearest Neighbor. Jurnal Media Informatika Budidarma. 2022;6(1):18.

[6]. Rohman F, Vidi Pratama M, Sutarna N, Siti B, Purwanti R. Sistem Pendeteksi Keasaman dan Warna Urin Sebagai Indikasi Dini Dehidrasi. Electrices. 2020;2(2):57–61.

[7]. Zefi S, Rose MM, Picara DT. Rancang Bangun Pendeteksi Dehidrasi Manusia Berdasarkan Warna Urine Berbasis Internet of Things ( IoT ). Jurnal Informatika dan Teknik Elektro Terapan. 2024;12(3):4365–73.

[8]. Mayangsari M, Aditya P, Utomo SB. The Design Of Dehydration And Liver Disorder Detection System Based On Fuzzy Perancangan Sistem Pendeteksi Dehidrasi Dan Gangguan Hati Berbasis Fuzzy. MALCOM: Indonesian Journal of Machine Learning and Computer Science. 2021;1(April):65–72.

[9]. Rozi F, Majiding CM, Nuzul M, Ash A. The Assessment of Individual Fluid Adequacy Level ( FAL ) and Hydration Status. Jurnal Gizi Kerja dan Produktivitas. 2023;4(2):230–8.

[10]. Simbolon I. Edukasi Kesehatan Tentang Kebutuhan Minum Air Putih Berbasis Berat Badan. Jurnal Pengembangan dan Pengabdian Masyarakat Multikultural. 2025;3(August):51–9.

[11]. Ni Made Swantari, Alexander Halim Santoso, Daniel Goh, Gracienne Gracienne, Hans Sugiarto, Edwin Destra, et al. Pemeriksaan Rutin Diabetes Melitus dan Kadar Hidrasi Kulit pada Kelompok Usia Produktif di SMA Santo Yoseph. Cakung. Jurnal Informasi Pengabdian Masyarakat. 2025;3(1):17–25.

[12]. Saptarika R, Hadi GT, Salim K. Pendeteksian Kode Warna dengan Menggunakan Arduino Uno pada Beberapa Alternatif Pencahayaan. Zona Elektro: Jurnal Ilmiah. 2024;14(3):40–6.

[13]. Hariyanto D, Pertiwi N, Sirait RA. Analisis Kinerja Termometer Nonkontak Berbasis Sensor IR MLX90614 dan Sensor Ultrasonik yang Diintegrasikan pada Web Server. Jurnal Informatika dan Teknik Elektro Terapan. 2025;13(3).

[14]. No V, Fitrian HP, Permana RR, Lestari NR, Rotty YT, No V. Analisis Penerapan Internet Of Things ( IoT ) dalam Pertanian Cerdas di Era 4 . 0 Infotek : Jurnal Informatika dan Teknologi Perkembangan teknologi informasi pada era Industri 4 . 0 telah mendorong munculnya berbagai inovasi , salah satunya penerapan Inte. Infotek : Jurnal Informatika dan Teknologi. 2026;9(1).

[15]. Gunawan I, Sadali M, Wathoni MN, Ramdan MTH. Implementasi Sistem Monitoring Suhu dan Kualitas Udara Berbasis Internet of Things (IoT) dengan Kontrol Blower Otomatis. Infotek : Jurnal Informatika dan Teknologi. 2026;9(1).

[16]. Ahmad R, Niswani YL, Patwari IKD. Rancang Bangun Sistem Pematangan Buah Pisang Berbasis Internet Of Things (IOT). Infotek : Jurnal Informatika dan Teknologi. 2026;9(1):261–72.

[17]. M YA, Dristyan F. Pengenalan Kodular : Solusi Praktis untuk Pembuatan Aplikasi Android Interaksi : Jurnal Pengabdian Kepada Masyarakat. Interaksi : Jurnal Pengabdian Kepada Masyarakat. 2024;1:32–7

Downloads

Published

21-07-2026

How to Cite

Jumawal, Mahpuz, Sadali, M., & Wasil, M. (2026). Implementasi Algoritma K-Nearest Neighbor pada Sistem Deteksi Tingkat Dehidrasi Berdasarkan Warna Urin Berbasis IoT dan Android. Infotek: Jurnal Informatika Dan Teknologi, 9(2), 732–739. https://doi.org/10.29408/jit.v9i2.35273

Most read articles by the same author(s)

<< < 1 2 3 4 > >> 

Similar Articles

1 2 3 4 5 6 7 8 9 > >> 

You may also start an advanced similarity search for this article.