DOI: https://doi.org/10.1371/journal.pone.0341236
PMID: https://pubmed.ncbi.nlm.nih.gov/41637463
تاريخ النشر: 2026-02-04
المؤلف: Siyi Wang وآخرون
الموضوع الرئيسي: الصحة النفسية من خلال الكتابة
نظرة عامة
تبحث هذه الدراسة في تطوير نموذج توقع المخاطر المعتمد على التعلم الآلي للاكتئاب لدى المرضى المصابين بفيروس التهاب الكبد B (HBV)، مع معالجة القيود التي تواجه طرق الفحص الحالية التي تعتمد على التقييمات الذاتية. باستخدام بيانات من قاعدة بيانات NHANES، تستخدم الدراسة تقنيات مثل SMOTE لزيادة العينة لمعالجة عدم توازن الفئات وغابة عشوائية لاختيار الميزات، مع تحديد أفضل 20 ميزة تنبؤية. تم تقييم خمسة نماذج تعلم آلي، بما في ذلك تعزيز التدرج وMLPClassifier، لأدائها التنبؤي، حيث حقق MLPClassifier أعلى المقاييس: منطقة تحت المنحنى (AUC) تبلغ 0.935، واسترجاع قدره 0.980، ودرجة F1 تبلغ 0.917.
تسلط النتائج الضوء على العوامل الحرجة التي تؤثر على خطر الاكتئاب لدى مرضى HBV، بما في ذلك مؤشرات وظائف الكبد (مثل، البيليروبين الكلي في المصل)، اختلالات الكهارل (مثل، البوتاسيوم في المصل)، علامات الالتهاب المزمن (مثل، عرض توزيع كريات الدم الحمراء)، والمتغيرات الاجتماعية والاقتصادية (مثل، نسبة الفقر إلى الدخل، العرق). وتخلص الدراسة إلى أن نموذج التعلم الآلي المطور يوفر أداة قوية للتعرف المبكر على المرضى ذوي المخاطر العالية، مما يعزز استراتيجيات إدارة الصحة النفسية ويعطي معلومات للتدخلات الفردية. تساهم هذه الدراسة في فهم التفاعل بين العوامل الفيزيولوجية والبيوكيميائية والاجتماعية والاقتصادية في الصحة النفسية لمرضى HBV، مما يمهد الطريق لأساليب الطب الدقيق المستقبلية.
مقدمة
تتناول مقدمة هذه الورقة البحثية القضية المهمة للصحة العامة المتعلقة بالاكتئاب، الذي يؤثر على أكثر من 300 مليون فرد حول العالم ومن المتوقع أن يصبح السبب الرئيسي للإعاقة بحلول عام 2030. تسلط الضوء على التقاطع المقلق بين الاكتئاب وعدوى فيروس التهاب الكبد B (HBV)، مشيرة إلى أن المرضى المصابين بـ HBV يعانون من معدلات أعلى من الاكتئاب والقلق بسبب الضغط النفسي والاجتماعي على المدى الطويل. هذه الحالة المشتركة لا تؤدي فقط إلى تفاقم تقدم HBV ولكنها مرتبطة أيضًا بزيادة الوفيات المرتبطة بالكبد، خاصة لدى الأفراد الإيجابيين لـ HBsAg. تؤكد الورقة على الحاجة إلى التعرف المبكر على الاكتئاب لدى مرضى HBV، حيث تعتمد طرق التشخيص الحالية بشكل كبير على التقييمات الذاتية دون وجود علامات حيوية موضوعية.
لمعالجة هذه الفجوة، تقترح الدراسة استخدام تقنيات التعلم الآلي (ML) لتطوير نماذج تنبؤية لخطر الاكتئاب لدى مرضى HBV. باستخدام بيانات من قاعدة بيانات NHANES، تستخدم الدراسة طرق معالجة مسبقة متنوعة، بما في ذلك التوحيد وزيادة العينة لإدارة عدم توازن البيانات، تليها اختيار الميزات باستخدام خوارزمية الغابة العشوائية. تم تدريب وتقييم خمسة نماذج تعلم آلي—تعزيز التدرج، الانحدار اللوجستي، أدا بوست، MLP Classifier، وتحليل التمييز الخطي—من خلال التحقق المتقاطع بخمس طيات. الهدف النهائي هو إنشاء نموذج قوي لتصنيف خطر الاكتئاب لدى مرضى HBV، مما يعزز النتائج السريرية من خلال التدخل في الوقت المناسب.
طرق
في هذه الدراسة، تم استخراج مجموعة بيانات من مرضى التهاب الكبد B (HBV) من قاعدة بيانات NHANES، وتم استخدام نهج التحقق المتقاطع بخمس طيات لتقييم نماذج التعلم الآلي. تم تقسيم مجموعة البيانات إلى خمس مجموعات فرعية، حيث تم استخدام أربع مجموعات فرعية (حوالي 80%) للتدريب وتحسين المعلمات في كل تكرار، بينما كانت المجموعة الفرعية المتبقية (حوالي 20%) بمثابة مجموعة التحقق. سمح هذا العملية التكرارية، التي تكررت خمس مرات، بتقييم شامل لاستقرار النموذج وقدراته على التعميم، مما يقلل بشكل فعال من التحيز المرتبط بالتقسيم الفردي.
تم تجميع مقاييس الأداء، بما في ذلك المنطقة تحت المنحنى (AUC) ودرجة F1، عبر جميع الطيات ومتوسطها للحصول على النتائج النهائية. تم إجراء تحسين المعلمات الفائقة لجميع نماذج التعلم الآلي لتعزيز الأداء. تم تنفيذ التجارب في بيئة حوسبة تتميز بـ Ubuntu 20.04، Python 3.8، ومكتبات رئيسية مثل scikit-learn وnumpy، على خادم مزود ببطاقة رسومات NVIDIA RTX 3090 (ذاكرة فيديو 24 جيجابايت). تم تنفيذ استراتيجيات لضبط معدل التعلم والتقنين لمنع الإفراط في التكيف، مما يضمن أن جميع النماذج تتقارب بشكل فعال أثناء التدريب.
نتائج
في هذه الدراسة، تم تقييم أهمية الميزات لتوقع خطر الاكتئاب في مجموعة من مرضى التهاب الكبد B باستخدام خوارزمية الغابة العشوائية، التي حددت أفضل 20 ميزة تنبؤية. شملت هذه الميزات مؤشرات مختبرية مثل علامات وظائف الكبد (البيليروبين الكلي في المصل والفوسفاتاز القلوي)، الكهارل (البوتاسيوم والكالسيوم في المصل)، علامات دموية/التهابية (قياسات الهيموغلوبين، عدد كريات الدم الحمراء، وعدد اللمفاويات)، بالإضافة إلى عوامل اجتماعية واقتصادية مثل العرق/الأصل ونسبة دخل الفقر.
تم استخدام خمسة نماذج تعلم آلي—الانحدار اللوجستي (LR)، أدا بوست، MLPClassifier (المدرك متعدد الطبقات)، تحليل التمييز الخطي (LDA)، وتعزيز التدرج (GB)—لتوقع خطر الاكتئاب. أظهر MLPClassifier أداءً متفوقًا مع منطقة تحت المنحنى (AUC) تبلغ 0.935، ومعدل استرجاع قدره 0.980، ودرجة F1 تبلغ 0.917، مما يدل على حساسية عالية واستقرار في تحديد المرضى ذوي المخاطر العالية. تلاه تعزيز التدرج مع AUC تبلغ 0.919 ودرجة F1 تبلغ 0.851، بينما حقق أدا بوست AUC تبلغ 0.881. بالمقابل، أظهرت LR وLDA قدرات تنبؤية أقل مع AUC تبلغ 0.739 و0.751، على التوالي، مما يبرز قيود النماذج الخطية في بيئات الميزات المعقدة. بشكل عام، برز MLPClassifier كنموذج الأكثر فعالية في الكشف بدقة عن الأفراد ذوي المخاطر العالية، مدعومًا بمنحنيات ROC، ومنحنيات المعايرة، وتحليل منحنى القرار الذي عزز من فائدته السريرية.
مناقشة
في هذه الدراسة، تم تطوير إطار عمل للتعلم الآلي لتوقع خطر الاكتئاب لدى المرضى المصابين بعدوى فيروس التهاب الكبد B (HBV) باستخدام بيانات من قاعدة بيانات NHANES. شمل التحليل 189 مريضًا مصابًا بـ HBV، مع دمج البيانات الديموغرافية، الغذائية، الفيزيولوجية، المختبرية، والنفسية الاجتماعية. أظهر مصنف متعدد الطبقات (MLP) أعلى أداء تنبؤي، حيث حقق منطقة تحت منحنى التشغيل المستقبلي (AUC) تبلغ 0.935 ومعدل استرجاع قدره 0.980، مما يدل على فعاليته في التقاط التفاعلات المعقدة بين عوامل الخطر المختلفة. تضمنت المتنبئات الرئيسية التي تم تحديدها من خلال اختيار ميزات الغابة العشوائية علامات وظائف الكبد، والمعلمات الدموية، والعوامل الاجتماعية والاقتصادية، مما يبرز الطبيعة متعددة العوامل للاكتئاب في هذه الفئة السكانية.
على الرغم من النتائج الواعدة، تعترف الدراسة بعدة قيود، بما في ذلك حجم العينة الصغيرة، والإفراط المحتمل في التكيف بسبب تطبيق SMOTE لمعالجة عدم توازن الفئات، وغياب التحقق الخارجي. يحد التصميم العرضي من القدرة على استخلاص استنتاجات سببية، وغياب التقييمات النفسية التفصيلية الطولية يحد من نطاق التحليل. يجب أن تركز الأبحاث المستقبلية على التحقق من النموذج في مجموعات أكبر وأكثر تنوعًا ودمج بيانات متعددة الأنماط إضافية لتعزيز دقة التنبؤ. بشكل عام، تشير النتائج إلى أن دمج هذا النموذج للتعلم الآلي في أنظمة السجلات الصحية الإلكترونية يمكن أن يسهل التعرف المبكر وإدارة خطر الاكتئاب لدى مرضى HBV، مما يحسن في النهاية نتائج المرضى.
DOI: https://doi.org/10.1371/journal.pone.0341236
PMID: https://pubmed.ncbi.nlm.nih.gov/41637463
Publication Date: 2026-02-04
Author(s): Siyi Wang et al.
Primary Topic: Mental Health via Writing
Overview
This research investigates the development of a machine learning-based risk prediction model for depression in patients with Hepatitis B (HBV), addressing the limitations of current screening methods that rely on subjective assessments. Utilizing data from the NHANES database, the study employs techniques such as SMOTE oversampling to address class imbalance and Random Forest for feature selection, identifying the top 20 predictive features. Five machine learning models, including Gradient Boosting and MLPClassifier, were evaluated for their predictive performance, with the MLPClassifier achieving the highest metrics: an area under the curve (AUC) of 0.935, a recall of 0.980, and an F1-score of 0.917.
The findings highlight critical factors influencing depression risk in HBV patients, including liver function indicators (e.g., serum total bilirubin), electrolyte imbalances (e.g., serum potassium), chronic inflammation markers (e.g., red blood cell distribution width), and socioeconomic variables (e.g., poverty-income ratio, race). The study concludes that the developed machine learning model offers a robust tool for early identification of high-risk patients, thereby enhancing mental health management strategies and informing individualized interventions. This research contributes to the understanding of the interplay between physiological, biochemical, and socioeconomic factors in the mental health of HBV patients, paving the way for future precision medicine approaches.
Introduction
The introduction of this research paper addresses the significant public health issue of depression, which affects over 300 million individuals worldwide and is projected to become the leading cause of disability by 2030. It highlights the concerning intersection of depression and hepatitis B virus (HBV) infection, noting that patients with HBV experience higher rates of depression and anxiety due to long-term psychosocial stress. This comorbidity not only exacerbates the progression of HBV but is also linked to increased liver-related mortality, particularly in HBsAg-positive individuals. The paper emphasizes the need for early identification of depression in HBV patients, as current diagnostic methods rely heavily on subjective assessments without objective biomarkers.
To address this gap, the study proposes the use of machine learning (ML) techniques to develop predictive models for depression risk in HBV patients. Utilizing data from the NHANES database, the research employs various preprocessing methods, including standardization and oversampling to manage data imbalance, followed by feature selection using the Random Forest algorithm. Five machine learning models—Gradient Boosting, Logistic Regression, Adaboost, MLP Classifier, and Linear Discriminant Analysis—are trained and evaluated through fivefold cross-validation. The ultimate goal is to create a robust model for stratifying depression risk in HBV patients, thereby enhancing clinical outcomes through timely intervention.
Methods
In this study, a dataset of hepatitis B (HBV) patients was extracted from the NHANES database, and a five-fold cross-validation approach was employed to evaluate machine learning models. The dataset was divided into five subsets, with four subsets (approximately 80%) utilized for training and parameter optimization in each iteration, while the remaining subset (approximately 20%) served as a validation set. This iterative process, repeated five times, allowed for comprehensive assessment of the model’s stability and generalization capabilities, effectively reducing bias associated with single partitioning.
Performance metrics, including the area under the curve (AUC) and F1-score, were aggregated across all folds and averaged to yield final results. Hyperparameter optimization was conducted for all machine learning models to enhance performance. The experiments were executed in a computing environment featuring Ubuntu 20.04, Python 3.8, and key libraries such as scikit-learn and numpy, on a server equipped with an NVIDIA RTX 3090 GPU (24GB video memory). Strategies for learning rate adjustment and regularization were implemented to prevent overfitting, ensuring that all models converged effectively during training.
Results
In this study, feature importance for predicting depression risk in a cohort of hepatitis B patients was assessed using the Random Forest algorithm, which identified the top 20 predictive features. These features included laboratory indicators such as liver function markers (serum total bilirubin and alkaline phosphatase), electrolytes (serum potassium and calcium), hematological/inflammatory markers (hemoglobin measures, red blood cell count, and lymphocyte count), as well as socioeconomic factors like race/ethnicity and poverty income ratio.
Five machine learning models—Logistic Regression (LR), AdaBoost, MLPClassifier (multi-layer perceptron), Linear Discriminant Analysis (LDA), and Gradient Boosting (GB)—were employed to predict depression risk. The MLPClassifier demonstrated superior performance with an area under the curve (AUC) of 0.935, a recall rate of 0.980, and an F1 score of 0.917, indicating high sensitivity and stability in identifying high-risk patients. Gradient Boosting followed with an AUC of 0.919 and an F1 score of 0.851, while AdaBoost achieved an AUC of 0.881. In contrast, LR and LDA exhibited lower predictive capabilities with AUCs of 0.739 and 0.751, respectively, highlighting the limitations of linear models in complex feature environments. Overall, the MLPClassifier emerged as the most effective model for accurately detecting high-risk individuals, supported by ROC curves, calibration curves, and decision curve analysis that reinforced its clinical utility.
Discussion
In this study, a machine learning framework was developed to predict depression risk in patients with hepatitis B virus (HBV) infection using data from the NHANES database. The analysis included 189 HBV patients, integrating demographic, dietary, physiological, laboratory, and psychosocial data. The Multi-layer Perceptron (MLP) classifier demonstrated the highest predictive performance, achieving an area under the receiver operating characteristic curve (AUC) of 0.935 and a recall of 0.980, indicating its effectiveness in capturing complex interactions among various risk factors. Key predictors identified through Random Forest feature selection included liver function markers, hematological parameters, and socioeconomic factors, highlighting the multifactorial nature of depression in this population.
Despite the promising results, the study acknowledges several limitations, including a small sample size, potential overfitting due to the application of SMOTE for class imbalance, and the lack of external validation. The cross-sectional design restricts the ability to draw causal inferences, and the absence of detailed longitudinal psychiatric assessments limits the analytical scope. Future research should focus on validating the model in larger, diverse cohorts and incorporating additional multimodal data to enhance predictive accuracy. Overall, the findings suggest that integrating this machine learning model into electronic health record systems could facilitate early identification and management of depression risk in HBV patients, ultimately improving patient outcomes.
