Automatic Detection of Emotions and Mental Health Conditions from Social Networks in Panama
A Comparative Study of Large Language Models and Transformers
DOI:
https://doi.org/10.3991/ijoe.v21i12.57173Keywords:
Emotions,, automatic emotion recognition,, , mental health,, large language models,, natural language processingAbstract
Social media platforms such as X publish millions of emotionally charged comments every day. These posts can be classified into several categories, and automatic emotion recognition (AER) can be applied to identify the human emotions associated with them based on aspects such as text, speech, or facial expressions. From these emotions, we can detect mental health conditions, which represent a complex, multi-layered problem with negative impacts. The aim of this study is to perform an analysis of the emotions expressed via Panama’s social networks by extracting a dataset from the X network and evaluating it using some existing lightweight Transformer models to detect mental health conditions that could then be referred to Panamanian hospitals. Methods: Natural language processing (NLP) has undergone major development thanks to the emergence of large language models (LLMs). These models are based on the Transformer, a powerful neural network architecture that has revolutionized the field of deep learning. We show that lightweight models generally outperform alternative approaches. This study demonstrates the potential for automatic emotion detection, with the aim of developing predictive models that can support authorities in decision-making processes.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Denis Cedeno-Moreno, Alan Delgado-Herrera, Miguel Vargas-Lombardo, Nelson Montilla-Herrera

This work is licensed under a Creative Commons Attribution 4.0 International License.

