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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automatic Detection of Emotions and Mental Health Conditions from Social Networks in Panama

Miguel Vargas-Lombardo, Denis Cedeño-Moreno, Alan Delgado-Herrera, Nelson Montilla-Herrera
International Journal of Online and Biomedical Engineering (iJOE)
Mental Health via Writing
article

Automatic Detection of Emotions and Mental Health Conditions from Social Networks in Panama

Miguel Vargas-Lombardo, Denis Cedeño-Moreno, Alan Delgado-Herrera, Nelson Montilla-Herrera
article en

Abstract

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.

International Journal of Online and Biomedical Engineering (iJOE)Vol. 21(12)
Universidad de Panamá (PA), Universidad Tecnológica de Panamá (PA)
Openalex Percentile: Top 67%
Mental Health via Writing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.