| Issue |
E3S Web Conf.
Volume 688, 2026
The 2nd International Conference on Sustainable Environment, Development, and Energy (CONSER 2025)
|
|
|---|---|---|
| Article Number | 05001 | |
| Number of page(s) | 9 | |
| Section | Smart Technologies and Energy Solutions for a Low-Carbon Future | |
| DOI | https://doi.org/10.1051/e3sconf/202668805001 | |
| Published online | 20 January 2026 | |
#DEBITAAPPS: A Machine learning – based web system for diabetes mellitus detection using k-nearest neighbor algorithm to support sustainable health development
1 Computer Science Department Semarang Campus, School of Computer Science, Bina Nusantara University, Jakarta, Indonesia, 11480
2 Digital Business Department Semarang Campus, Binus Business School, Bina Nusantara University, Jakarta, Indonesia, 11480
* Corresponding author: This email address is being protected from spambots. You need JavaScript enabled to view it.
Abstract
This study implemented the K-Nearest Neighbor (KNN) algorithm to build a predictive model for early detection of diabetes. Various distance metrics, namely cityblock, cosine, euclidean, and minkowski, as well as n_neighbor values from 1 to 6, were tested to determine the best combination to improve model accuracy. The dataset was divided into three parts : 80% for training, 10% for validation, and 10% for testing. The best results were obtained from the combination of the cityblock metric with n_neighbors = 3, which resulted in a training accuracy of 97.55%, validation accuracy of 94.0%, and testing accuracy of 100%. The F1 score on the test data also showed a perfect result, namely 1.00, indicating that the model can provide accurate and consistent predictions. As a real application of this research, a web application was developed designed to detect diabetes early, which is expected to be used by the community as a preventive health tool. This application allows users to easily and quickly conduct early screening for potential diabetes, thereby increasing health awareness and helping in making earlier and more appropriate preventive decisions and supporting sustainable health development in accordance with SDG 3 namely good health and well-being.
© The Authors, published by EDP Sciences, 2026
This is an Open Access article distributed under the terms of the Creative Commons Attribution License 4.0, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.

