Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 May-Jun;32(3):e70082.
doi: 10.1002/cpp.70082.

Predicting Suicidal Ideation Among Youths With Autism Spectrum Disorder: An Advanced Machine Learning Study

Affiliations

Predicting Suicidal Ideation Among Youths With Autism Spectrum Disorder: An Advanced Machine Learning Study

Hussein Al-Srehan et al. Clin Psychol Psychother. 2025 May-Jun.

Abstract

This study aimed to predict suicidal ideation among youth with autism spectrum disorder (ASD) by applying machine learning techniques. A cross-sectional sample of 368 ASD-diagnosed young people (aged 18-24 years) was recruited, and 34 candidate predictors-including sociodemographic characteristics, psychiatric symptoms (e.g., anxiety problems and depressive symptoms), behavioural measures (e.g., bullying victimization and insomnia severity) and adverse childhood experiences-were assessed using standardized instruments and parent-report checklists. After listwise deletion of missing data, recursive feature elimination (RFE) with a random forest wrapper was performed to identify the five most influential predictors. Four classification algorithms (logistic regression, random forest, eXtreme Gradient Boosting [XGBoost] and support vector machine [SVM]) were then trained on a 70/30 stratified split and evaluated on the hold-out test set using area under the curve (AUC), sensitivity, specificity, positive predictive value, negative predictive value and accuracy. RFE identified anxiety problems, insomnia, bullying victimization, age and depression (PHQ-9) as the top predictors. Logistic regression achieved an AUC of 0.943 (sensitivity = 0.773, specificity = 0.957 and accuracy = 0.922), random forest an AUC of 0.948 (sensitivity = 0.727, specificity = 0.989 and accuracy = 0.939), XGBoost an AUC of 0.930 (sensitivity = 0.772, specificity = 0.989 and accuracy = 0.947) and SVM an AUC of 0.942 (sensitivity = 0.772, specificity = 0.978 and accuracy = 0.939). Across models, anxiety and insomnia emerged as the two most important risk factors, and XGBoost demonstrated the best overall balance of performance metrics, yielding the highest accuracy. Gradient-boosted tree models were thus shown to effectively integrate multidimensional data to predict suicidality in autistic youth, highlighting anxiety and sleep disturbances as critical targets for personalized risk assessment and prevention efforts.

Keywords: anxiety; depression; learning disability; machine learning; suicide.

PubMed Disclaimer

References

    1. Alanzi, T., A. A. Alsalem, H. Alzahrani, et al. 2023. “AI‐Powered Mental Health Virtual Assistants' Acceptance: An Empirical Study on Influencing Factors Among Generations X, Y, and Z.” Cureus 15, no. 11.
    1. Aleem, S., N. Huda, R. Amin, S. Khalid, S. S. Alshamrani, and A. Alshehri. 2022. “Machine Learning Algorithms for Depression: Diagnosis, Insights, and Research Directions.” Electronics 11, no. 7: 1111.
    1. Amjad, M., I. Ahmad, M. Ahmad, P. Wróblewski, P. Kamiński, and U. Amjad. 2022. “Prediction of Pile Bearing Capacity Using XGBoost Algorithm: Modeling and Performance Evaluation.” Applied Sciences 12, no. 4: 2126.
    1. Ang, C. S., and R. Venkatachala. 2023. “Generalizability of Machine Learning to Categorize Various Mental Illness Using Social Media Activity Patterns.” Societies 13, no. 5: 117. https://www.mdpi.com/2075‐4698/13/5/117.
    1. Bastien, C. H., A. Vallières, and C. M. Morin. 2001. “Validation of the Insomnia Severity Index as an Outcome Measure for Insomnia Research.” Sleep Medicine 2, no. 4: 297–307. https://doi.org/10.1016/S1389‐9457(00)00065‐4.