ORIGINAL RESEARCH article
Front. Big Data
Sec. Machine Learning and Artificial Intelligence
Volume 8 - 2025 | doi: 10.3389/fdata.2025.1615788
RoBERTa-Large LLM for Examining Mental Health of Students through Sentiment Analysis and Data Analytics
Provisionally accepted- 1University of Sargodha, Sargodha, Pakistan
- 2King Faisal University, Al-Ahsa, Eastern Province, Saudi Arabia
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
Mental health of students plays an important role in the overall well-being as well as their academic performance. The growing pressure from academic concerns, co-curriculum activities such as sports, and personal challenges demand modern methods for monitoring mental health. Traditional approaches depend on self-reported surveys and psychological evaluations, which can be particular and time-taking. With the progression of Artificial Intelligence (AI) particularly in Natural Language Processing (NLP), sentiment analysis has emerged as an effective technique for detecting mental health patterns through textual data. However, analyzing students' mental health remains a challenging task due to the intensity of emotional expressions, linguistic variations, and context-dependent sentiments. In this study, our main aim is to examine the mental health of students by carrying out sentiment analysis using advanced deep learning models. To accomplish this task, the state-of-the-art Large Language Model (LLM) approaches such as RoBERTa (Robustly optimized BERT approach) Large and ELECTRA have been used for empirical analysis. RoBERTa-Large, based on Google based BERT, is a larger architecture which captures more complex patterns and performs better on various natural language processing tasks. A few deep learning algorithms have been applied and RoBERTa-Large achieves the highest accuracy of 97% while ELECTRA shows 91% results on multi-classification task showing seven diverse mental health status class labels which help to predict the mental health of all those individuals who are involved in physical activities.
Keywords: Large Language Model, Mental Health, academic performance, Natural languageprocessing, sentiment analysis
Received: 21 Apr 2025; Accepted: 23 Sep 2025.
Copyright: © 2025 Khan, Naz, Alarfaj and Almusallam. 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:
Hikmat Ullah Khan, dr.hikmat.niazi@gmail.com
Fawaz Khaled Alarfaj, falarfaj@kfu.edu.sa
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.