Applying Multiple Machine Learning Methods to Identify Correlates of Non-Suicidal Self-Injury Behaviors in Chinese Middle School Students: A Cross-Sectional Study
بهکارگیری روشهای متعدد یادگیری ماشین برای شناسایی همبستههای رفتارهای خودآسیبی غیرخودکشی در دانشآموزان متوسطه چینی: یک مطالعه مقطعی
چکیده
Background: Adolescent non-suicidal self-injury (NSSI) has become a major public health concern, with its rising prevalence driven by complex and interacting factors. Traditional analytical methods have limited capacity to capture non-linear relationships among high-dimensional variables. This study aimed to compare the performance of five machine learning algorithms in identifying NSSI and to determine its key correlates among Chinese adolescents. Participants and Setting: A total of 2,295 middle school students from Hebei and Shandong provinces in China, aged between 11 and 16 years, participated in the study. Methods: Five machine learning algorithms-Random Forest, AdaBoost, XGBoost, LightGBM, and Naive Bayes-were applied to identify NSSI using 43 features encompassing psychological traits, emotional states, and environmental factors. SMOTE was used to address class imbalance, and hyperparameters were tuned via 5-fold cross-validated grid search. Model performance was evaluated using ROC AUC, PR AUC, accuracy, sensitivity, specificity, PPV, and NPV. SHAP analysis was employed to determine feature effect directionality. Results: The prevalence of NSSI was 21.7%. Individuals with NSSI reported significantly higher levels of Academic Pressure, Self-criticism, Negative self-schema, Hopelessness, and Depression (P < 0.001). XGBoost achieved the highest ROC AUC (0.884), PR AUC (0.741), accuracy (85.62%), and specificity (92.50%), while Naive Bayes achieved the highest sensitivity (71.72%). Self-criticism ranked first in four of the five models. SHAP analysis confirmed that higher Self-criticism, Negative self-schema, Academic Pressure, Depression, and Hopelessness were associated with increased NSSI probability. Conclusion: Self-criticism, Negative self-schema, Academic Pressure, Depression, and Hopelessness were consistently identified as the most important correlates of NSSI across models. These results highlight the potential of machine learning approaches for identifying key correlates of adolescent NSSI, although external validation is needed before clinical application.
زمینه: خودآسیبی غیرخودکشی در نوجوانان به یک نگرانی عمده بهداشت عمومی تبدیل شده است که شیوع رو به افزایش آن ناشی از عوامل پیچیده و متقابل است. روشهای تحلیلی سنتی ظرفیت محدودی در ثبت روابط غیرخطی میان متغیرهای با ابعاد بالا دارند. هدف این مطالعه مقایسه عملکرد پنج الگوریتم یادگیری ماشین در شناسایی خودآسیبی غیرخودکشی و تعیین عوامل مرتبط کلیدی در میان نوجوانان چینی بود. شرکتکنندگان و محل مطالعه: مجموعاً ۲۲۹۵ دانشآموز دوره متوسطه از استانهای هبی و شاندونگ چین، با سنین بین ۱۱ تا ۱۶ سال، در مطالعه شرکت کردند. روشها: پنج الگوریتم یادگیری ماشین شامل Random Forest، AdaBoost، XGBoost، LightGBM و Naive Bayes برای شناسایی خودآسیبی غیرخودکشی با استفاده از ۴۳ ویژگی شامل ویژگیهای روانشناختی، حالات هیجانی و عوامل محیطی به کار گرفته شدند. برای رفع عدم تعادل کلاس از SMOTE استفاده شد و ابرپارامترها از طریق جستجوی شبکهای با اعتبارسنجی متقابل ۵-تایی تنظیم گردید. عملکرد مدلها با استفاده از ROC AUC، PR AUC، صحت اندازهگیری، حساسیت، ویژگی، PPV و NPV ارزیابی شد. تحلیل SHAP برای تعیین جهت اثر ویژگیها به کار رفت. نتایج: شیوع خودآسیبی غیرخودکشی ۲۱.۷٪ بود. افراد دارای خودآسیبی غیرخودکشی سطوح بالاتری از فشار آموزشی و تحصیلی، خودانتقادی، طرحواره منفی از خود، ناامیدی و افسردگی گزارش کردند (P < 0.001). الگوریتم XGBoost بالاترین ROC AUC (۰.۸۸۴)، PR AUC (۰.۷۴۱)، صحت اندازهگیری (۸۵.۶۲٪) و ویژگی (۹۲.۵۰٪) را کسب کرد، در حالی که Naive Bayes بالاترین حساسیت (۷۱.۷۲٪) را داشت. خودانتقادی در چهار مدل از پنج مدل رتبه اول را داشت. تحلیل SHAP تأیید کرد که خودانتقادی بالاتر، طرحواره منفی از خود، فشار آموزشی و تحصیلی، افسردگی و ناامیدی با افزایش احتمال خودآسیبی غیرخودکشی مرتبط هستند. نتیجهگیری: خودانتقادی، طرحواره منفی از خود، فشار آموزشی و تحصیلی، افسردگی و ناامیدی به طور مداوم به عنوان مهمترین عوامل مرتبط با خودآسیبی غیرخودکشی در مدلها شناسایی شدند. این نتایج پتانسیل روشهای یادگیری ماشین را برای شناسایی عوامل کلیدی خودآسیبی غیرخودکشی نوجوانان نشان میدهد، هرچند پیش از کاربرد بالینی نیاز به اعتبارسنجی خارجی وجود دارد.