Automatic Detection of Emotions and Mental Health Conditions from Social Networks in Panama
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.
Authors
- Miguel Vargas-Lombardo (ORCID: https://orcid.org/0000-0002-2074-2939)
- Denis Cedeño-Moreno (ORCID: https://orcid.org/0000-0002-9640-1284)
- Alan Delgado-Herrera
- Nelson Montilla-Herrera
Institutions
- Universidad de Panamá (PA)
- Universidad Tecnológica de Panamá (PA)
Publication Details
- Journal
- International Journal of Online and Biomedical Engineering (iJOE)
- Published
- 2025-10-10
- DOI
- https://doi.org/10.3991/ijoe.v21i12.57173
- Primary Topic
- Mental Health via Writing
- Type
- article
- Field-Weighted Citation Impact
- 0.00