User Stress Detection Using Social Media Text: A Novel Machine Learning Approach

Authors

  • Xiangxuan Wan Nankai University, China
  • Li Tian Peking University, China

DOI:

https://doi.org/10.15837/ijccc.2024.5.6772

Keywords:

Stress Detection, Social Media, Machine Learning, Bi-LSTM with Attention Mechanism

Abstract

This paper introduces a novel Attention-based Bidirectional Long Short-Term Memory (Bi- LSTM) model for detecting stress in social media text, aiming to enhance mental health monitoring in the digital age. Utilizing the unique communicative nature of social media, this study employs user-generated content to analyze emotional and stress levels. The proposed model incorporates an attention mechanism with the Bi-LSTM architecture to improve the identification of temporal features and context relationships in text data, which is crucial for detecting stress indicators. This model stands out by dynamically focusing on text segments that significantly denote stress, thereby boosting the detection sensitivity and accuracy. Through rigorous testing against baseline models such as Text-CNN, LSTM, GRU, and standard Bi-LSTM, our method demonstrates superior performance, achieving the highest F1-score of 81.21%. These results underscore its potential for practical applications in mental health monitoring where accurate and timely detection of stress is essential.

References

Antoni, M. H., Moreno, P. I., & Penedo, F. J. (2023). Stress management interventions to facilitate psychological and physiological adaptation and optimal health outcomes in cancer patients and survivors, Annual review of psychology, 74, 423-455. https://doi.org/10.1146/annurev-psych-030122-124119

Janani, S. R., Subramanian, R., Karthik, S., & Vimalarani, C. (2023). Healthcare monitoring using machine learning based data analytics, International Journal of Computers Communications& Control, 18(1).

Khadka, S., & Khadka, A. K. (2023). The role of social media in determining tourists’ choices of Nepalese destinations, Journal of Logistics, Informatics and Service Science, 10(3), 180-193. https://doi.org/10.33168/JLISS.2023.0314

Zhu, L., De Costa, F., & Bin Yasin, M. A. (2023). Social media communication network analysis and influence propagation model: A case study, Journal of Logistics, Informatics and Service Science, 10(3), 264-279. https://doi.org/10.33168/JLISS.2023.0320

Shaban, A. M. (2023). The effectiveness of TV promotion and social media applications in achieving consumer brand loyalty, Journal of System and Management Sciences, 13(4), 140-151. https://doi.org/10.33168/JSMS.2023.0408

Laghari, A. A., He, H., Khan, A., Laghari, R. A., Yin, S., & Wang, J. (2022). Crowdsourcing platform for QoE evaluation for cloud multimedia services, Computer Science and Information Systems, 19(3), 1305-1328. https://doi.org/10.2298/CSIS220322038L

Garg, M. (2023). Mental health analysis in social media posts: A survey, Archives of Computational Methods in Engineering, 30(3), 1819-1842. https://doi.org/10.1007/s11831-022-09863-z

Adili, P., & Chen, Y. (2024). Fast Disaster Event Detection from Social Media: An Active Learning Method, International Journal of Computers Communications & Control, 19(2).

Mao, Y., Liu, S., & Gong, D. (2023). A hybrid technological innovation text mining, ensemble learning and risk scorecard approach for enterprise credit risk assessment, Tehnički vjesnik, 30(6), 1692-1703. https://doi.org/10.17559/TV-20230316000447

Cheng, Y., Wan, Y., Sima, Y., Zhang, Y., Hu, S., & Wu, S. (2022). Text detection of transformer based on deep learning algorithm, Tehnički vjesnik, 29(3), 861-866. https://doi.org/10.17559/TV- 20211027110610

Injadat, M., Salo, F., & Nassif, A. B. (2016). Data mining techniques in social media: A survey, Neurocomputing, 214, 654-670. https://doi.org/10.1016/j.neucom.2016.06.045

Barbier, G., & Liu, H. (2011). Data mining in social media, Social network data analytics, 327-352. https://doi.org/10.1007/978-1-4419-8462-3_12

Mani, V., & Thilagamani, S. (2023). Hybrid Filtering-based Physician Recommender Systems using Fuzzy Analytic Hierarchy Process and User Ratings, International Journal of Computers Communications & Control, 18(6).

Lin, S. Y., Cheng, X., Zhang, J., Yannam, J. S., Barnes, A. J., Koch, J. R., ... & Xue, H. (2023). Social media data mining of antitobacco campaign messages: machine learning analysis of facebook posts, Journal of Medical Internet Research, 25, e42863. https://doi.org/10.2196/42863

Pei, Y., & O’Brien, K. H. (2024). Use of Social Media Data Mining to Examine Needs, Concerns, and Experiences of People With Traumatic Brain Injury, American Journal of Speech-Language Pathology, 33(2), 831-847. https://doi.org/10.1044/2023_ajslp-23-00297

Bravo, C., Castells, V. B., Zietek-Gutsch, S., Bodin, P. A., Molony, C., & Frühwein, M. (2022). Using social media listening and data mining to understand travellers’ perspectives on travel disease risks and vaccine-related attitudes and behaviours, Journal of Travel Medicine 29(2), taac009. https://doi.org/10.1093/jtm/taac009

Hou, K., Hou, T., & Cai, L. (2021). Public attention about COVID-19 on social media: An investigation based on data mining and text analysis, Personality and individual differences, 175, 110701. https://doi.org/10.1016/j.paid.2021.110701

Galassi, A., Lippi, M., & Torroni, P. (2020). Attention in natural language processing, IEEE transactions on neural networks and learning systems, 32(10), 4291-4308. https://doi.org/10.1109/tnnls.2020.3019893

Usama, M., Ahmad, B., Song, E., Hossain, M. S., Alrashoud, M., & Muhammad, G. (2020). Attention-based sentiment analysis using convolutional and recurrent neural network, Future Generation Computer Systems, 113, 571-578. https://doi.org/10.1016/j.future.2020.07.022

Deng, H., Ergu, D., Liu, F., Cai, Y., & Ma, B. (2022). Text sentiment analysis of fusion model based on attention mechanism, Procedia Computer Science, 199, 741-748. https://doi.org/10.1016/j.procs.2022.01.092

Yang, B., Li, H., & Xing, Y. (2023). SenticGAT: Sentiment Knowledge Enhanced Graph Attention Network for Multi-view Feature Representation in Aspect-based Sentiment Analysis, International Journal of Computers Communications & Control, 18(5).

Ramaswamy, S. L.,& Chinnappan, J. (2022). RecogNet-LSTM+ CNN: a hybrid network with attention mechanism for aspect categorization and sentiment classification, Journal of Intelligent Information Systems, 58(2), 379-404. https://doi.org/10.1007/s10844-021-00692-3

Additional Files

Published

2024-09-02

Most read articles by the same author(s)

Obs.: This plugin requires at least one statistics/report plugin to be enabled. If your statistics plugins provide more than one metric then please also select a main metric on the admin's site settings page and/or on the journal manager's settings pages.