Type 2 Diabetes Mellitus is a chronic disease that requires early detection to minimize the risk of complications. This study aims to develop a machine learning model for the early detection of Type 2 Diabetes Mellitus using an ensemble Soft Voting approach. The proposed model combines three algorithms, namely LightGBM, Random Forest, and Support Vector Machine. The dataset used consists of patient health attributes, including pregnancies, glucose level, blood pressure, skin thickness, insulin level, body mass index, diabetes pedigree function, and age. The preprocessing stage was conducted to prepare the data before the training process, including data balancing so that each class contained the same number of records, namely 500 diabetes data and 500 non-diabetes data. The evaluation results show that the model achieved an accuracy of 80%, with precision, recall, and f1-score of 0.80 for both classes. In addition, the Area Under the Curve value of 0.89 indicates that the model has a very good capability in distinguishing between diabetes and non-diabetes classes. The system was also implemented in the form of a Graphical User Interface to facilitate patient clinical data input and display risk detection results. Based on these results, the developed Soft Voting model can be used as a practical and sufficiently accurate tool for the early detection of Type 2 Diabetes Mellitus.
Copyrights © 2026