DOI: https://doi.org/10.37802/joti.v8i1.1195
تاريخ النشر: 2026-04-16
المؤلف: I Made Ardi Sudestra وآخرون
الموضوع الرئيسي: الذكاء الاصطناعي في الرعاية الصحية
نظرة عامة
تستكشف هذه الدراسة فعالية ثلاثة خوارزميات تعلم آلي—أقرب الجيران (k-NN)، آلة الدعم الشعاعي (SVM)، وغابة عشوائية (RF)—للكشف المبكر عن داء السكري، باستخدام مجموعة بيانات داء السكري للهنود البيما التي تضم 390 مريضًا و15 ميزة سريرية. تم تقييم أداء هذه الخوارزميات من خلال مقاييس مثل الدقة، الدقة الإيجابية، الاسترجاع، ودرجة F1. كشفت النتائج أن نموذج الغابة العشوائية حقق أعلى دقة بنسبة 89.7% وأفضل درجة F1 (0.636)، مما يدل على قوته في تصنيف كل من الحالات السكري وغير السكري. بالمقابل، بينما أظهر k-NN أعلى استرجاع (0.750)، عانى من دقة منخفضة (0.375)، مما يبرز معدل إيجابيات كاذبة كبير. قدمت SVM نتائج متوسطة لكنها لم تتجاوز أداء الغابة العشوائية.
تؤكد الدراسة على أهمية اختيار الخوارزميات المناسبة للتطبيقات السريرية في الكشف عن السكري. يُعزى الأداء المتفوق للغابة العشوائية إلى نهج التعلم الجماعي الخاص بها، الذي يدير الضوضاء بفعالية ويعكس التفاعلات المعقدة داخل مجموعة البيانات. كما استخدمت البحث تقنيات مثل SMOTE لمعالجة عدم التوازن في الفئات وتؤكد على الحاجة إلى تحقيقات مستقبلية في ضبط المعلمات لتحسين دقة النموذج بشكل أكبر. بشكل عام، تدعو النتائج إلى استخدام طرق جماعية مثل الغابة العشوائية في مهام التصنيف الطبي، مع تحقيق التوازن بين الاسترجاع والدقة.
مقدمة
تسلط مقدمة ورقة البحث الضوء على الأزمة الصحية العالمية المتزايدة التي يشكلها داء السكري، وهو اضطراب أيضي مزمن مرتبط بمضاعفات خطيرة مثل أمراض القلب والفشل الكلوي. تقتضي الزيادة في انتشار السكري استراتيجيات إدارة فعالة، حيث يكون الكشف المبكر والتشخيص الدقيق محوريين في منع تقدم المرض. ظهرت تقنيات تعلم الآلة (ML) كأدوات واعدة للتشخيص السريع والموضوعي للسكري، متفوقة على الطرق التقليدية. على وجه الخصوص، أظهرت خوارزميات مثل أقرب الجيران (k-NN)، وآلات الدعم الشعاعي (SVM)، والغابة العشوائية درجات متفاوتة من النجاح في التنبؤ بظهور السكري، حيث حقق k-NN دقة تقارب 80%، بينما أبلغت SVM والغابة العشوائية عن حوالي 72% و75%، على التوالي.
تهدف هذه الدراسة إلى معالجة الفجوة البحثية الحالية من خلال مقارنة شاملة بين هذه الخوارزميات الثلاثة باستخدام مجموعة بيانات داء السكري للهنود البيما. تسعى لتوضيح تأثير اختيار معلمات النموذج على النتائج التنبؤية وتحديد الميزات السريرية الحرجة—مثل تركيز الجلوكوز في البلازما، مقاومة الأنسولين في المصل، وضغط الدم—التي تعزز دقة التنبؤ. من خلال استخدام مقاييس تقييم قياسية تشمل الدقة، الدقة الإيجابية، الاسترجاع، ودرجة F1، تهدف الدراسة إلى تحديد أكثر خوارزمية تعلم آلي فعالة لتنبؤ السكري. من المتوقع أن تسهم النتائج في تطوير أنظمة دعم القرار المعتمدة على تعلم الآلة الأكثر فعالية في البيئات السريرية، مما يحسن جودة التشخيص وإدارة المرضى في رعاية السكري.
النتائج
في هذه الدراسة، تم تطوير نماذج تعلم الآلة وتقييمها باستخدام كل من Google Collaboratory وMacBook Air M1 كبيئة تطوير محلية. تم استخدام Google Collab لما يتمتع به من قدرات سحابية والوصول إلى وحدات معالجة الرسوميات المدمجة، مما عزز الكفاءة الحسابية. تم استخدام MacBook Air M1 للمعالجة الأولية للبيانات، التحليل الاستكشافي، وتصحيح الأخطاء المحلي، مستفيدًا من هيكله المعماري ARM المكون من 8 نوى وتحسينات وحدة المعالجة المركزية المدمجة. تم استخدام مكتبات أساسية مثل Scikit-learn، Pandas، NumPy، Matplotlib، Seaborn، وImbalanced-learn للنمذجة، ومعالجة البيانات، والتصور، ومعالجة عدم التوازن في الفئات من خلال SMOTE.
شمل عملية التدريب ثلاثة خوارزميات تعلم آلي: أقرب الجيران (k-NN)، آلة الدعم الشعاعي (SVM) مع نواة دالة الأساس الشعاعي (RBF)، ومصنف الغابة العشوائية. تم تدريب كل نموذج على بيانات متوازنة باستخدام SMOTE وتم تقييمه على بيانات طبيعية باستخدام StandardScaler. شملت مقاييس الأداء الدقة، الدقة الإيجابية، الاسترجاع، درجة F1، وتحليل مصفوفة الارتباك، مع تكرار عملية التقييم لكل نموذج لضمان مقارنة موضوعية لأدائها.
المناقشة
في هذه الدراسة، تم تقييم أداء ثلاثة خوارزميات تعلم آلي—أقرب الجيران (k-NN)، آلة الدعم الشعاعي (SVM)، والغابة العشوائية (RF)—لتنبؤ السكري باستخدام قاعدة بيانات داء السكري للهنود البيما. تم ملاحظة خوارزمية k-NN لبساطتها وفعاليتها مع البيانات غير الخطية، بينما تفوقت SVM في الفضاءات عالية الأبعاد، محددة بفعالية الحدود المثلى للفئات. أظهرت الغابة العشوائية أداءً متفوقًا، محققة دقة بنسبة 89.7% ودرجة F1 قدرها 0.636، مما يجعلها النموذج الأكثر موثوقية لتصنيف نتائج السكري. سلطت الدراسة الضوء على التوازن بين الدقة والاسترجاع، خاصة مع k-NN، الذي كان لديه استرجاع مرتفع (0.750) ولكن دقة منخفضة (0.375)، مما يدل على معدل كبير من الإيجابيات الكاذبة.
شملت المنهجية خطوات معالجة البيانات مثل ترميز الفئات وتطبيق تقنية الزيادة الاصطناعية للأقليات (SMOTE) لمعالجة عدم التوازن في الفئات. تم التحقق من النتائج من خلال تحليل مصفوفة الارتباك وتقييم منحنى ROC، حيث حققت RF أعلى درجة تحت المنحنى (AUC) قدرها 0.934، مما يدل على قدرات قوية في فصل الفئات. كشف تحليل أهمية الميزات أن مستويات الجلوكوز في الدم كانت الأكثر تأثيرًا، تليها العمر وضغط الدم الانقباضي، بينما كان للجنس تأثير ضئيل. تشير النتائج إلى أن الأبحاث المستقبلية يمكن أن تركز على ضبط المعلمات لتحسين أداء النموذج بشكل أكبر، مما يعزز فائدة تعلم الآلة في التنبؤ بالسكري السريري.
DOI: https://doi.org/10.37802/joti.v8i1.1195
Publication Date: 2026-04-16
Author(s): I Made Ardi Sudestra et al.
Primary Topic: Artificial Intelligence in Healthcare
Overview
This study investigates the efficacy of three machine learning algorithms—k-Nearest Neighbors (k-NN), Support Vector Machine (SVM), and Random Forest (RF)—for the early detection of diabetes mellitus, utilizing the Pima Indians Diabetes dataset comprising 390 patients and 15 clinical features. The performance of these algorithms was assessed through metrics such as accuracy, precision, recall, and F1-score. The findings revealed that the Random Forest model achieved the highest accuracy at 89.7% and the best F1-score (0.636), indicating its robustness in classifying both diabetic and non-diabetic cases. In contrast, while k-NN exhibited the highest recall (0.750), it suffered from low precision (0.375), highlighting a significant false-positive rate. SVM provided moderate results but did not surpass the performance of Random Forest.
The study underscores the importance of selecting appropriate algorithms for clinical applications in diabetes detection. The superior performance of Random Forest is attributed to its ensemble learning approach, which effectively manages noise and captures complex interactions within the dataset. The research also employed techniques such as SMOTE for addressing class imbalance and emphasizes the need for future investigations into hyperparameter tuning to enhance model accuracy further. Overall, the results advocate for the use of ensemble methods like Random Forest in medical classification tasks, balancing the trade-offs between recall and precision.
Introduction
The introduction of the research paper highlights the growing global health crisis posed by diabetes mellitus, a chronic metabolic disorder linked to severe complications such as cardiovascular diseases and kidney failure. The increasing prevalence of diabetes necessitates effective management strategies, with early detection and accurate diagnosis being pivotal in preventing disease progression. Machine learning (ML) technologies have emerged as promising tools for rapid and objective diabetes diagnosis, outperforming traditional methods. Specifically, algorithms such as k-Nearest Neighbors (k-NN), Support Vector Machines (SVM), and Random Forest have demonstrated varying degrees of success in predicting diabetes onset, with k-NN achieving approximately 80% accuracy, while SVM and Random Forest reported around 72% and 75%, respectively.
This study aims to address the existing research gap by comprehensively comparing these three ML algorithms using the Pima Indians Diabetes dataset. It seeks to elucidate the impact of model parameter selection on predictive outcomes and to identify critical clinical features—such as plasma glucose concentration, serum insulin resistance, and blood pressure—that enhance prediction accuracy. By employing standard evaluation metrics including accuracy, precision, recall, and F1 score, the research intends to determine the most effective ML algorithm for diabetes prediction. The findings are expected to contribute to the development of more effective ML-based decision support systems in clinical settings, ultimately improving diagnostic quality and patient management in diabetes care.
Results
In this study, machine learning models were developed and evaluated using both Google Collaboratory and a MacBook Air M1 as the local development environment. Google Collab was utilized for its cloud-based capabilities and access to integrated GPUs, which enhanced computational efficiency. The MacBook Air M1 was employed for initial data preprocessing, exploratory analysis, and local debugging, leveraging its 8-core ARM architecture and built-in CPU optimizations. Essential libraries such as Scikit-learn, Pandas, NumPy, Matplotlib, Seaborn, and Imbalanced-learn were utilized for modeling, data manipulation, visualization, and addressing class imbalance through SMOTE.
The training process involved three machine learning algorithms: k-Nearest Neighbors (k-NN), Support Vector Machine (SVM) with a Radial Basis Function (RBF) kernel, and Random Forest Classifier. Each model was trained on SMOTE-balanced data and evaluated on normalized data using StandardScaler. Performance metrics included accuracy, precision, recall, F1 score, and confusion matrix analysis, with the evaluation process repeated for each model to ensure an objective comparison of their performance.
Discussion
In this study, the performance of three machine learning algorithms—k-Nearest Neighbors (k-NN), Support Vector Machine (SVM), and Random Forest (RF)—was evaluated for diabetes prediction using the Pima Indians Diabetes Database. The k-NN algorithm was noted for its simplicity and effectiveness with non-linear data, while SVM excelled in high-dimensional spaces, effectively identifying optimal class boundaries. Random Forest demonstrated superior performance, achieving an accuracy of 89.7% and an F1-score of 0.636, making it the most reliable model for classifying diabetes outcomes. The study highlighted the trade-offs between precision and recall, particularly with k-NN, which had a high recall (0.750) but low precision (0.375), indicating a significant rate of false positives.
The methodology included data preprocessing steps such as categorical encoding and the application of the Synthetic Minority Over-sampling Technique (SMOTE) to address class imbalance. The results were further validated through confusion matrix analysis and ROC curve evaluation, with RF achieving the highest Area Under the Curve (AUC) score of 0.934, indicating robust class separation capabilities. Feature importance analysis revealed that blood glucose levels were the most influential predictor, followed by age and systolic blood pressure, while gender had minimal impact. The findings suggest that future research could focus on hyperparameter tuning to enhance model performance further, reinforcing the utility of machine learning in clinical diabetes prediction.
