ORIGINAL RESEARCH article
Front. Psychiatry
Sec. Anxiety and Stress Disorders
This article is part of the Research TopicSelf and Mental Disorders: Cognitive Mechanisms and Compassionate InterventionsView all 3 articles
Social anxiety prediction model for nursing students based on machine learning: a cross-sectional survey
Provisionally accepted- 1Xianning Polytechnic, Xianning, China
- 2Huazhong University of Science and Technology, Wuhan, China
- 3Xian'an District Hospital of Traditional Chinese Medici, Xian, China
- 4Jinan Yinfei Hospital, Jinan, China
- 5Guilin Medical University, Guilin, China
Select one of your emails
You have multiple emails registered with Frontiers:
Notify me on publication
Please enter your email address:
If you already have an account, please login
You don't have a Frontiers account ? You can register here
Background: The purpose of this study is to use a variety of machine learning (ML) algorithms to build a risk prediction model for nursing students' social anxiety, select the optimal model, and identify risk factors. Methods: The cross-sectional survey was conducted among nursing students at 10 universities from September to December 2024. A total of 2024 nursing students were included in this study. Nine acceptable features were selected through Logistic analysis. We developed and evaluated seven ML models: Logistic regression (LR), Elastic net (EN), k-nearest neighbors (KNN), Decision tree (DT), Extreme gradient boosting (XGBoost), Support vector machine (SVM), Random forest (RF). Results: The area under the Area Under Curve (AUC: 0.71) of the random forest model was the highest among the 7 models that predicted nursing students' social anxiety. The most important characteristics that predicted social anxiety in nursing students included Sleep condition, alexithymia, depression, education level, and religious belief. Conclusion: Our findings suggest that ML models, specifically random forests, can best predict the risk of social anxiety among nursing students
Keywords: nursing students, social anxiety, machine learning, Prediction model, random forest
Received: 09 Oct 2025; Accepted: 21 Nov 2025.
Copyright: © 2025 Wang, Xu, Huang, Liu and Yang. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
* Correspondence: Fang Wang, 53466388@qq.com
Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.
