Logo
Nazad
Faruk Bećirović, Nejra Merdović, Madžida Hundur Hiyari, Merima Smajlhodžić-Deljo, Irma Salkić, Adna Softić
1 1. 9. 2024.

Assessing the Accuracy of Logistic Regression and Bert in Sentiment Analysis and Mental Disorder Classification

Sentiment analysis leverages machine learning and natural language processing techniques to classify and interpret textual data, identifying sentiments as positive, negative, or neutral. This study explores sentiment analysis in the context of mental health, utilising two models: Logistic Regression and Bidirectional Encoder Representations from Transformers (BERT). The dataset comprises 52 680 unique statements associated with seven mental health statuses, including depression, anxiety and suicidal tendencies. Logistic Regression achieved an accuracy of 72%, while BERT, with its advanced deep learning architecture, demonstrated a significant improvement with an accuracy of 84%. BERT’s superior performance is attributed to its bidirectional contextual understanding and attention mechanisms, enhancing its ability to handle complex and nuanced textual information. This study highlights the efficacy of BERT over traditional models in analysing and classifying sentiments related to mental health, underscoring its potential for improving early detection and intervention.

Pretplatite se na novosti o BH Akademskom Imeniku

Ova stranica koristi kolačiće da bi vam pružila najbolje iskustvo

Saznaj više