Diabetes Mellitus (DM) is a chronic disease characterized by high blood sugar levels and can cause various serious complications if not treated properly. This study aims to analyze the effectiveness of Support Vector Machines (SVM) and K-Nearest Neighbor (KNN) methods in classifying diabetes mellitus patient data. The methodology used includes collecting diabetes datasets, preprocessing data, and applying SVM and KNN algorithms to perform classification. The performance of both methods is analyzed using evaluation metrics such as accuracy, precision, recall, and F1-score. The experimental results show that the SVM method provides more optimal performance in classifying diabetes data compared to KNN, with higher accuracy and lower error rate. This finding indicates that SVM is more suitable for early detection of diabetes mellitus in the dataset used in this study.
Copyrights © 2025