التنبؤ بمستويات السمنة بناءً على النشاط البدني وعادات الأكل باستخدام نموذج تعلم آلي مدمج مع الذكاء الاصطناعي القابل للتفسير
Prediction of obesity levels based on physical activity and eating habits with a machine learning model integrated with explainable artificial intelligence

شارك:
المجلة: Frontiers in Physiology، المجلد: 16
DOI: https://doi.org/10.3389/fphys.2025.1549306
PMID: https://pubmed.ncbi.nlm.nih.gov/40740428
تاريخ النشر: 2025-07-16
المؤلف: Yasin Görmez وآخرون
الموضوع الرئيسي: الذكاء الاصطناعي في الرعاية الصحية

نظرة عامة

تطور هذه الدراسة نموذج توقع باستخدام التعلم الآلي (ML) مع الذكاء الاصطناعي القابل للتفسير (XAI) لتصنيف مستويات السمنة بناءً على النشاط البدني والعادات الغذائية. يعزز دمج XAI شفافية النموذج من خلال توضيح عوامل الخطر التي تؤثر على التوقعات. تم استخدام ستة خوارزميات ML، بما في ذلك بيرنولي نايف بايز، كات بوست، شجرة القرار، مصنف الأشجار الإضافية، تعزيز التدرج القائم على الهيستوغرام، وآلة الدعم الناقل، مع تحسين المعلمات الفائقة من خلال البحث العشوائي وتقييم أداء النموذج عبر اختبارات الاحتفاظ المتكررة.

أشارت النتائج إلى أن نموذج كات بوست تفوق على الآخرين من حيث الدقة، والوضوح، ودرجة F1، والمساحة تحت المنحنى (AUC). ومع ذلك، أظهرت شجرة القرار وتعزيز التدرج القائم على الهيستوغرام أيضًا أداءً تنافسيًا. تشمل المؤشرات الرئيسية للسمنة التي تم تحديدها في الدراسة العمر، والوزن، والطول، وأنماط غذائية محددة. من بين طرق التفسير، قدمت LIME دقة أعلى، بينما قدمت SHAP تباينًا أفضل وثباتًا عبر النماذج، مما يعزز فهم أهمية الميزات. بشكل عام، تؤكد الأبحاث على فعالية خوارزميات ML المدمجة مع XAI في التنبؤ بدقة بمستويات السمنة وتوضيح عوامل نمط الحياة المهمة، مما يدعم تطوير استراتيجيات تدخل مستهدفة.

مقدمة

تسلط مقدمة هذه الورقة البحثية الضوء على أزمة السمنة العالمية المتزايدة، التي تضاعفت تقريبًا منذ عام 1975، مما أدى إلى مضاعفات صحية كبيرة وأعباء اقتصادية. غالبًا ما تتجاهل طرق توقع السمنة التقليدية، التي تعتمد بشكل أساسي على مؤشر كتلة الجسم (BMI) والبيانات الديموغرافية الأساسية، التفاعل المعقد لعوامل نمط الحياة، والنشاط البدني، والعادات الغذائية. يمثل ظهور التعلم الآلي (ML) فرصة لنماذج توقع أكثر تطورًا؛ ومع ذلك، تعاني العديد من أساليب ML من طبيعة “الصندوق الأسود”، مما يحد من قابليتها للتفسير في الإعدادات السريرية. ظهر الذكاء الاصطناعي القابل للتفسير (XAI) كحل لتعزيز شفافية هذه النماذج، وهو أمر بالغ الأهمية لاتخاذ قرارات سريرية مستنيرة.

على الرغم من الفوائد المحتملة لدمج ML و XAI في توقع السمنة، تكشف الأدبيات عن ندرة الدراسات التي تجمع بين هذه المنهجيات بشكل فعال. بينما استكشفت الأبحاث السابقة تقنيات ML مختلفة لتوقع السمنة، ركز القليل منها على تقديم نتائج قابلة للتفسير يمكن أن تفيد الممارسة السريرية. تهدف هذه الدراسة إلى سد هذه الفجوة من خلال استخدام مجموعة متنوعة من نماذج التصنيف جنبًا إلى جنب مع طريقتين من XAI – SHAP (SHapley Additive exPlanations) و LIME (Local Interpretable Model-agnostic Explanations) – لتعزيز كل من قابلية التفسير المحلية والعالمية للتوقعات. لا تقوم الأبحاث بتطوير خوارزميات ML متعددة لتوقع السمنة فحسب، بل تقيم أيضًا السمات المهمة التي تؤثر على هذه التوقعات، مما يساهم في إطار عمل أكثر شفافية ودقة لتقييم مخاطر السمنة. من المتوقع أن تُعلم النتائج استراتيجيات التدخل المخصصة وتحسن فهم عوامل خطر السمنة، مما يؤسس لأساس منهجي لتطبيقات الرعاية الصحية المستقبلية حيث تكون القابلية للتفسير أمرًا بالغ الأهمية.

الطرق

في هذه الدراسة، تم اقتراح عدة نماذج للتعلم الآلي (ML)، بما في ذلك بيرنولي نايف بايز، كات بوست، مصنف شجرة القرار، مصنف الأشجار الإضافية، مصنف تعزيز التدرج القائم على الهيستوغرام، وآلة الدعم الناقل، لتوقع مستويات السمنة بناءً على ميزات تتعلق بالنشاط البدني والعادات الغذائية. كانت اختيار هذه النماذج مدفوعة بتنوع أساليبها الخوارزمية وفعاليتها في التعامل مع كل من البيانات الفئوية والعددية. تم تفضيل بيرنولي نايف بايز لفعاليته مع الميزات الثنائية، بينما تم اختيار كات بوست وتعزيز التدرج القائم على الهيستوغرام لصلابتهما ضد الإفراط في التكيف. تم تضمين أشجار القرار والأشجار الإضافية لقابليتها للتفسير، وتم استخدام آلات الدعم الناقل لقدرتها على نمذجة الحدود المعقدة للقرار. تم إجراء تحسين المعلمات الفائقة باستخدام تقنية البحث العشوائي، وتم ضمان موثوقية النموذج من خلال اختبارات الاحتفاظ المتكررة.

لتقييم أهمية الميزات، استخدمت الدراسة طريقتين من الذكاء الاصطناعي القابل للتفسير (XAI): SHAP و LIME. يوفر SHAP، القائم على نظرية الألعاب، قابلية تفسير عالمية متسقة، بينما يقدم LIME تفسيرات محلية غير مرتبطة بالنموذج. كان الهدف من مقارنة هذه الطرق هو معالجة التحيزات المحتملة الناتجة عن الاعتماد على نهج XAI واحد. تضمنت العملية التجريبية أخذ عينات عشوائية طبقية لإنشاء مجموعات بيانات تدريب واختبار وتحقق متوازنة، مما يضمن أن توزيع الفئات يعكس توزيع مجموعة البيانات الأصلية. تم تحسين المعلمات الفائقة باستخدام مجموعات التدريب والتحقق، وتم تقييم النموذج النهائي على مجموعة بيانات الاختبار. تم تكرار هذه العملية بالكامل 100 مرة لأخذ في الاعتبار التباين في تقسيمات التدريب والاختبار، مما يعزز موثوقية تقديرات الأداء ويقلل من خطر الإفراط في التكيف. تتماشى المنهجية مع أفضل الممارسات في التعلم الآلي، خاصةً لمجموعات البيانات متوسطة الحجم.

النتائج

في هذه الدراسة، تم تقييم ستة نماذج تصنيف لتوقع مستويات السمنة باستخدام نهج الاحتفاظ المتكرر، الذي تضمن إنشاء 100 مجموعة بيانات تدريب واختبار وتحقيق متميزة. ظهر نموذج كات بوست كالأكثر فعالية، محققًا دقة بنسبة 93.67% ± 1.37%، ووضوح بنسبة 92.36% ± 1.78%، ودرجة F1 بنسبة 93.57% ± 1.49%، وAUC بنسبة 99.39% ± 1.73%. في المقابل، أظهر نموذج BNB أدنى مقاييس أداء، بدقة بنسبة 80.15% ± 0.49% وAUC بنسبة 82.97% ± 6.11%. من الجدير بالذكر أن مقياس AUC أظهر تباينًا أعلى عبر النماذج، لكن كات بوست حافظ على قيم انحراف معياري منخفضة، مما يدل على الأداء العالي والصلابة.

قامت الدراسة أيضًا بمقارنة طريقتين من الذكاء الاصطناعي القابل للتفسير (XAI)، LIME و SHAP، لتقييم أهمية الميزات عبر النماذج. أشارت النتائج إلى أن “الوزن” و “الطول” تم تصنيفهما باستمرار كميزات مهمة من قبل SHAP، بينما سلطت LIME الضوء على ميزات مثل “التدخين” و “SCC”. كشفت مقاييس الأداء لطرق XAI أن LIME حققت عمومًا درجات دقة أعلى من SHAP عبر نماذج مختلفة، على الرغم من أن SHAP أظهرت تباينًا أفضل في بعض الحالات. تؤكد هذه النتائج على أهمية اختيار طرق XAI المناسبة لاستخلاص رؤى ذات مغزى حول أهمية الميزات لتوقع مستويات السمنة.

المناقشة

استخدمت الدراسة الحالية تصميمًا ملاحظًا لتحليل مستويات السمنة بين 498 مشاركًا تتراوح أعمارهم بين 14 و 61 عامًا، مع التركيز على عاداتهم الغذائية وأنماط نشاطهم البدني. استخدمت الدراسة مجموعة متنوعة من مصنفات التعلم الآلي (ML)، بما في ذلك بيرنولي نايف بايز، كات بوست، شجرة القرار، الأشجار الإضافية، تعزيز التدرج القائم على الهيستوغرام، وآلة الدعم الناقل، لتوقع مستويات السمنة بناءً على مجموعة بيانات تتكون من 17 ميزة تم جمعها من خلال استبيان عبر الإنترنت. أشارت النتائج إلى أن نموذج كات بوست تفوق على الآخرين في توقع مستويات السمنة، تليه شجرة القرار وتعزيز التدرج القائم على الهيستوغرام. كما دمجت الدراسة طرق الذكاء الاصطناعي القابل للتفسير (XAI)، وتحديدًا SHapley Additive exPlanations (SHAP) وLocal Interpretable Model-agnostic Explanations (LIME)، لتقييم قابلية تفسير النموذج من خلال مقاييس مثل الدقة، والتباين، والثبات.

كشفت النتائج أن LIME حققت باستمرار درجات دقة أعلى مقارنةً بـ SHAP، بينما أظهرت SHAP مقاييس تباين وثبات متفوقة. أظهرت كلا الطريقتين من XAI صلابة، كما يتضح من انخفاض الانحرافات المعيارية عبر جميع المقاييس. تميزت الدراسة عن الأبحاث السابقة من خلال استخدام مقارنة شاملة للنماذج وتحليل قابلية تفسير مزدوج، مما يوفر إطار عمل أكثر شمولية لفهم مخاطر السمنة. تتماشى النتائج مع الأدبيات الحالية، مما يؤكد فعالية كل من LIME و SHAP في تعزيز قابلية تفسير النموذج، بينما تسلط الضوء أيضًا على الحاجة إلى مزيد من التحليلات المقارنة عبر نماذج ML وأساليب التفسير المتنوعة في أبحاث السمنة.

Journal: Frontiers in Physiology, Volume: 16
DOI: https://doi.org/10.3389/fphys.2025.1549306
PMID: https://pubmed.ncbi.nlm.nih.gov/40740428
Publication Date: 2025-07-16
Author(s): Yasin Görmez et al.
Primary Topic: Artificial Intelligence in Healthcare

Overview

This study develops a machine learning (ML) prediction model combined with explainable artificial intelligence (XAI) to classify obesity levels based on physical activity and dietary habits. The integration of XAI enhances the transparency of the model by elucidating the risk factors influencing predictions. Six ML algorithms were employed, including Bernoulli Naive Bayes, CatBoost, Decision Tree, Extra Trees Classifier, Histogram-based Gradient Boosting, and Support Vector Machine, with hyperparameters optimized through random search and model performance assessed via repeated holdout testing.

The results indicated that the CatBoost model outperformed others in terms of accuracy, precision, F1 score, and area under the curve (AUC). However, Decision Tree and Histogram-based Gradient Boosting also demonstrated competitive performance. Key predictors of obesity identified in the study included age, weight, height, and specific dietary patterns. Among the interpretability methods, LIME provided higher fidelity, while SHAP offered better sparsity and consistency across models, enhancing the understanding of feature importance. Overall, the research underscores the efficacy of ML algorithms integrated with XAI in accurately predicting obesity levels and elucidating significant lifestyle factors, thereby supporting the development of targeted intervention strategies.

Introduction

The introduction of this research paper highlights the escalating global obesity crisis, which has nearly tripled since 1975, leading to significant health complications and economic burdens. Traditional obesity prediction methods, primarily reliant on Body Mass Index (BMI) and basic demographic data, often overlook the complex interplay of lifestyle factors, physical activity, and dietary habits. The advent of machine learning (ML) presents an opportunity for more sophisticated predictive models; however, many ML approaches suffer from a “black box” nature, limiting their interpretability in clinical settings. Explainable Artificial Intelligence (XAI) has emerged as a solution to enhance the transparency of these models, which is crucial for informed clinical decision-making.

Despite the potential benefits of integrating ML and XAI for obesity prediction, the literature reveals a scarcity of studies that effectively combine these methodologies. While previous research has explored various ML techniques for obesity prediction, few have focused on providing interpretable outcomes that can inform clinical practice. This study aims to fill this gap by employing a diverse range of classification models alongside two XAI methods—SHAP (SHapley Additive exPlanations) and LIME (Local Interpretable Model-agnostic Explanations)—to enhance both local and global interpretability of predictions. The research not only develops multiple ML algorithms for predicting obesity but also evaluates the significant attributes influencing these predictions, thereby contributing to a more transparent and rigorous framework for obesity risk assessment. The findings are expected to inform tailored intervention strategies and improve understanding of obesity risk factors, establishing a methodological foundation for future healthcare applications where interpretability is paramount.

Methods

In this study, several machine learning (ML) models, including Bernoulli Naive Bayes, CatBoost, Decision Tree Classifier, Extra Trees Classifier, Histogram-Based Gradient Boosting Classifier, and Support Vector Machine, were proposed to predict obesity levels based on features related to physical activity and eating habits. The selection of these models was driven by their diverse algorithmic approaches and effectiveness in handling both categorical and numerical data. Bernoulli Naive Bayes was favored for its efficiency with binary features, while CatBoost and Histogram-Based Gradient Boosting were chosen for their robustness against overfitting. Decision Trees and Extra Trees were included for their interpretability, and Support Vector Machines were utilized for their ability to model complex decision boundaries. Hyperparameter optimization was performed using a random search technique, and model reliability was ensured through repeated holdout tests.

To evaluate feature importance, the study employed two explainable artificial intelligence (XAI) methods: SHAP and LIME. SHAP, based on game theory, provides consistent global interpretability, while LIME offers local, model-agnostic explanations. The comparison of these methods aimed to address potential biases from relying on a single XAI approach. The experimental process involved stratified random sampling to create balanced training, test, and validation datasets, ensuring that the class distribution mirrored that of the original dataset. Hyperparameters were optimized using the training and validation sets, and the final model was evaluated on the test dataset. This entire process was repeated 100 times to account for variability in training-test splits, thereby enhancing the reliability of performance estimates and reducing the risk of overfitting. The methodology aligns with best practices in machine learning, particularly for moderate-sized datasets.

Results

In this study, six classification models were evaluated for predicting obesity levels using a repeated holdout approach, which involved generating 100 distinct training, testing, and validation datasets. The CatBoost model emerged as the most effective, achieving an accuracy of 93.67% ± 1.37%, precision of 92.36% ± 1.78%, F1-score of 93.57% ± 1.49%, and AUC of 99.39% ± 1.73%. In contrast, the BNB model demonstrated the lowest performance metrics, with an accuracy of 80.15% ± 0.49% and an AUC of 82.97% ± 6.11%. Notably, the AUC metric exhibited higher variability across models, but CatBoost maintained low standard deviation values, indicating both high performance and robustness.

The study also compared two explainable artificial intelligence (XAI) methods, LIME and SHAP, to assess feature importance across models. The results indicated that “Weight” and “Height” were consistently ranked as important features by SHAP, while LIME highlighted features such as “SMOKE” and “SCC.” Performance metrics for the XAI methods revealed that LIME generally achieved higher fidelity scores than SHAP across various models, although SHAP exhibited better sparsity in some cases. These findings underscore the importance of selecting appropriate XAI methods to derive meaningful insights into feature significance for obesity level prediction.

Discussion

The present study utilized an observational design to analyze obesity levels among 498 participants aged 14 to 61, focusing on their eating habits and physical activity patterns. The study employed various machine learning (ML) classifiers, including Bernoulli Naive Bayes, CatBoost, Decision Tree, Extra Trees, Histogram-Based Gradient Boosting, and Support Vector Machine, to predict obesity levels based on a dataset comprising 17 features collected through an online survey. The results indicated that the CatBoost model outperformed others in predicting obesity levels, followed by Decision Tree and Histogram-Based Gradient Boosting. The study also integrated explainable artificial intelligence (XAI) methods, specifically SHapley Additive exPlanations (SHAP) and Local Interpretable Model-agnostic Explanations (LIME), to evaluate model interpretability through metrics such as fidelity, sparsity, and consistency.

The findings revealed that LIME consistently achieved higher fidelity scores compared to SHAP, while SHAP demonstrated superior sparsity and consistency metrics. Both XAI methods exhibited robustness, indicated by low standard deviations across all metrics. The study distinguishes itself from previous research by employing a comprehensive model comparison and a dual-layer interpretability analysis, thus providing a more holistic framework for understanding obesity risk. The results align with existing literature, affirming the effectiveness of both LIME and SHAP in enhancing model interpretability, while also highlighting the need for further comparative analyses across diverse ML models and interpretability methods in obesity research.