IIUM Repository

Real-time NLP-based stress detection in social media for digital mental health intervention

Nazri, Nur Alya Batrisyia and Zulkurnain, Nurul Fariza and Gunawan, Teddy Surya and Zainuddin, Norafiza and Kartiwi, Mira and Md Yusoff, Nelidya (2025) Real-time NLP-based stress detection in social media for digital mental health intervention. In: 11th IEEE International Conference on Smart Instrumentation, Measurement and Applications, ICSIMA 2025, 10-11 September 2025, Kuala Lumpur, Malaysia.

[img] PDF - Published Version
Restricted to Registered users only

Download (1MB) | Request a copy
[img]
Preview
PDF - Supplemental Material
Download (136kB) | Preview

Abstract

This study presents an NLP-based machine learning system for detecting stress in social media posts, enabling timely digital mental health intervention. A dataset of 45,792 posts from Reddit and Twitter was compiled, cleaned, tokenised, lemmatised, and balanced using Random Oversampling, with sentiment features extracted via VADER. TF-IDF and sentiment scores were used to train four classifiers—Logistic Regression, LinearSVC, Random Forest, and XGBoost—evaluated on accuracy, precision, recall, F1-score, and inference time. LinearSVC achieved the highest F1-score (0.898) and fastest GUI inference (2.44 s), demonstrating strong performance and sensitivity to subtle stress cues. A Gradio-based GUI enables instant, accessible predictions, validating the system’s practicality. The results confirm the feasibility of combining linguistic and sentiment analysis for scalable, real-time stress detection, laying a foundation for future integration with cyberincivility monitoring in digital health tools.

Item Type: Proceeding Paper (Invited Papers)
Uncontrolled Keywords: stress detection, natural language processing, social media analysis, LinearSVC, mental health monitoring
Subjects: T Technology > TK Electrical engineering. Electronics Nuclear engineering > TK7800 Electronics. Computer engineering. Computer hardware. Photoelectronic devices > TK7885 Computer engineering
Kulliyyahs/Centres/Divisions/Institutes (Can select more than one option. Press CONTROL button): Kulliyyah of Engineering > Department of Electrical and Computer Engineering
Kulliyyah of Information and Communication Technology > Department of Information System
Kulliyyah of Information and Communication Technology > Department of Information System

Kulliyyah of Allied Health Sciences
Kulliyyah of Allied Health Sciences > Department of Biomedical Science (Effective:1st July 2011)
Kulliyyah of Engineering
Kulliyyah of Information and Communication Technology
Kulliyyah of Information and Communication Technology
Depositing User: Prof. Dr. Teddy Surya Gunawan
Date Deposited: 29 Jan 2026 08:39
Last Modified: 29 Jan 2026 08:39
Queue Number: 2026-01-Q1869
URI: http://irep.iium.edu.my/id/eprint/127113

Actions (login required)

View Item View Item

Downloads

Downloads per month over past year