Information Technology for Suicidal and Depressive Intentions Detection in social Networks Based on Logistic Regression, Multinomial Naive Bayes, Linear SVM and CNN

Authors

DOI:

https://doi.org/10.31649/1997-9266-2026-186-3-17-26

Keywords:

natural language processing (NLP), machine learning, deep learning, mental health, depression, suicidal inten, information and analytical platform, CNN, TF-IDF, social networks, psycholinguistics, digital mental hygiene

Abstract

The article considers the current problem of developing and implementing automated systems for monitoring users' mental health in the digital environment. Given the rapid increase in cases of depressive disorders and suicidal intentions, which is recorded by the World Health Organization, there is an urgent need to create tools for early detection of psychological risks based on the analysis of text content of social networks and messengers. Special attention is paid to the specifics of the Ukrainian context in conditions of social instability, where the resources of medical institutions are limited. The purpose of the study is to develop an intelligent information and analytical platform MindGuard, which allows for deep analysis of texts to identify signs of depression, anxiety and suicidal behavior. To achieve this goal, a large-scale training corpus was formed and labeled, including over 340,000 examples of messages from the Reddit platform, distributed by categories: “non-psycho” (texts without signs of disorders), “depression” (depressive states), and “suicide” (suicidal intentions). Within the framework of the study, several approaches to text classification were implemented and compared: classical machine learning algorithms (Logistic Regression, Multinomial Naive Bayes, Linear SVM) using TF-IDF statistical weighting, as well as deep learning methods, in particular the TextCNN architecture using pre-trained GloVe embeddings. The results of the experimental evaluation showed that the CNN model provides the best balance between accuracy and computational efficiency. The achieved F1-scores are 0.92 for the class “non-psycho”, 0.74 for “depression” and 0.76 for “suicide”. High values ​​of the ROC AUC metric (0.910–0.990) confirm the system’s ability to effectively rank texts by risk level. A detailed analysis of the inaccuracies matrices was conducted, which revealed lexical proximity between the categories of depression and suicidal thoughts, which causes the main difficulties in differentiating intermediate states. The practical implementation of the platform includes the development of a REST API based on FastAPI and a client part based on React. Performance testing confirmed the high speed of the system: the average latency is about 15 ms per request, which allows processing up to 66 texts per second on one CPU thread. This opens up opportunities for integrating MindGuard into the work of social media moderation teams, psychological services, and educational institutions to automate initial screening and timely adoption of preventive measures. The scientific novelty of the work lies in the creation of a hybrid architecture adapted to the local context, which ensures high accuracy in detecting psychologically risky messages in real time.

Author Biographies

V. A. Vysotska, Lviv Polytechnic National University; Kharkiv National University of Internal Affairs

Dr Sc. (Eng.), Associate Professor, Professor of the Chair of Information Systems and Networks

L. V. Chyrun, Lviv Polytechnic National University; Ivan Franko National University of Lviv

Cand. Sc. (Eng.), Associate Professor of the Chair of Information Systems and Networks

I. O. Bychkov, Lviv Polytechnic National University

Student of the Institute of Computer Science and Information Technology

References

J. W. Pennebaker, R. L. Boyd, K. Jordan, and K. Blackburn, The Development and Psychometric Properties of LIWC2015. Austin, TX, USA: University of Texas at Austin, 2015. [Electronic resource]. Available: http://hdl.handle.net/2152/31333 .

A. Cohan, et al., “SMHD: A large-scale resource for exploring online language usage for multiple mental health conditions,” arXiv preprint arXiv:1806.05258, 2018. https://doi.org/10.48550/arXiv.1806.05258 .

A. Yates, A. Cohan, and N. Goharian, “Depression and self-harm risk assessment in online forums,” arXiv preprint arXiv:1709.01848, 2017. https://doi.org/10.48550/arXiv.1709.01848 .

P. Resnik, et al., “Beyond LDA: Exploring supervised topic modeling for depression-related language in Twitter,” in Proceedings of the 2nd Workshop on Computational Linguistics and Clinical Psychology: From Linguistic Signal to Clinical Reality, 2015. [Electronic resource]. Available: https://aclanthology.org/W15-1212.pdf .

J. A. Russell, “A circumplex model of affect,” Journal of Personality and Social Psychology, vol. 39, no. 6, pp. 1161-1178, 1980. https://doi.org/10.1037/h0077714 .

Hugging Face, Transformers Documentation. [Electronic resource]. Available: https://huggingface.co/docs/transformers .

TensorFlow, “TextVectorization layer,” TensorFlow API Documentation. [Electronic resource]. Available: https://www.tensorflow.org/api_docs/python/tf/keras/layers/TextVectorization

A. Géron, Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd ed. Sebastopol, CA, USA: O’Reilly Media, 2023. [Electronic resource]. Available: http://14.139.161.31/OddSem-0822-1122/Hands-On_Machine_Learning_with_Scikit-Learn-Keras-and-TensorFlow-2nd-Edition-Aurelien-Geron.pdf .

Y. Chen, “Convolutional neural network for sentence classification.” M.S. thesis, University of Waterloo, Waterloo, ON, Canada, 2015. [Electronic resource]. Available: http://hdl.handle.net/10012/9592 .

S. Bird, E. Klein, and E. Loper, Natural Language Processing with Python: Analyzing Text with the Natural Language Toolkit. Sebastopol, CA, USA: O’Reilly Media, Inc., 2009. [Electronic resource]. Available: https://www.researchgate.net/publication/220691633_Natural_Language_Processing_with_Python .

Downloads

Abstract views: 8

Published

2026-07-06

How to Cite

[1]
V. A. Vysotska, L. V. Chyrun, and I. O. Bychkov, “Information Technology for Suicidal and Depressive Intentions Detection in social Networks Based on Logistic Regression, Multinomial Naive Bayes, Linear SVM and CNN”, Вісник ВПІ, no. 3, pp. 17–26, Jul. 2026.

Issue

Section

COMPUTER ENGINEERING, INFORMATION SYSTEMS AND TECHNOLOGIES

Metrics

Downloads

Download data is not yet available.