Emotion Forecasting: A Transformer-Based Approach.

J Med Internet Res

Signal Theory and Communications Department, Universidad Carlos III de Madrid, Leganés, Spain.

Published: March 2025


Category Ranking

98%

Total Visits

921

Avg Visit Duration

2 minutes

Citations

20

Article Abstract

Background: Monitoring the emotional states of patients with psychiatric problems has always been challenging due to the noncontinuous nature of clinical assessments, the effect of the health care environment, and the inherent subjectivity of evaluation instruments. However, mental states in psychiatric disorders exhibit substantial variability over time, making real-time monitoring crucial for preventing risky situations and ensuring appropriate treatment.

Objective: This study aimed to leverage new technologies and deep learning techniques to enable more objective, real-time monitoring of patients. This was achieved by passively monitoring variables such as step count, patient location, and sleep patterns using mobile devices. We aimed to predict patient self-reports and detect sudden variations in their emotional valence, identifying situations that may require clinical intervention.

Methods: Data for this project were collected using the Evidence-Based Behavior (eB2) app, which records both passive and self-reported variables daily. Passive data refer to behavioral information gathered via the eB2 app through sensors embedded in mobile devices and wearables. These data were obtained from studies conducted in collaboration with hospitals and clinics that used eB2. We used hidden Markov models (HMMs) to address missing data and transformer deep neural networks for time-series forecasting. Finally, classification algorithms were applied to predict several variables, including emotional state and responses to the Patient Health Questionnaire-9.

Results: Through real-time patient monitoring, we demonstrated the ability to accurately predict patients' emotional states and anticipate changes over time. Specifically, our approach achieved high accuracy (0.93) and a receiver operating characteristic (ROC) area under the curve (AUC) of 0.98 for emotional valence classification. For predicting emotional state changes 1 day in advance, we obtained an ROC AUC of 0.87. Furthermore, we demonstrated the feasibility of forecasting responses to the Patient Health Questionnaire-9, with particularly strong performance for certain questions. For example, in question 9, related to suicidal ideation, our model achieved an accuracy of 0.9 and an ROC AUC of 0.77 for predicting the next day's response. Moreover, we illustrated the enhanced stability of multivariate time-series forecasting when HMM preprocessing was combined with a transformer model, as opposed to other time-series forecasting methods, such as recurrent neural networks or long short-term memory cells.

Conclusions: The stability of multivariate time-series forecasting improved when HMM preprocessing was combined with a transformer model, as opposed to other time-series forecasting methods (eg, recurrent neural network and long short-term memory), leveraging the attention mechanisms to capture longer time dependencies and gain interpretability. We showed the potential to assess the emotional state of a patient and the scores of psychiatric questionnaires from passive variables in advance. This allows real-time monitoring of patients and hence better risk detection and treatment adjustment.

Download full-text PDF

Source
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC11962324PMC
http://dx.doi.org/10.2196/63962DOI Listing

Publication Analysis

Top Keywords

time-series forecasting
20
real-time monitoring
12
emotional state
12
emotional states
8
monitoring patients
8
mobile devices
8
emotional valence
8
eb2 app
8
neural networks
8
responses patient
8

Similar Publications

Objective: To analyze the temporal trend of dengue incidence and lethality rates and the proportions of its serotypes, in the different macro-regions of Brazil, between 2001 and 2022. In particular, the immediate and gradual effects of these indicators were verified in the periods before and after the publication of the National Guidelines for the Prevention and Control of Dengue Epidemics.

Methods: This was an interrupted time series analysis.

View Article and Find Full Text PDF

Temporal trend and spatial distribution of reported sexual violence cases in Brazil between 2013 and 2022.

Cien Saude Colet

August 2025

Programa de Pós-Graduação em Ciências da Saúde, Universidade do Sul de Santa Catarina. Av. José Acácio Moreira 787, Humaitá. 88704-900 Tubarão SC Brasil.

The aim is to review the temporal trend and spatial distribution of reported cases of sexual violence in Brazil from 2013 to 2022. This is a mixed ecological study, descriptive of multiple groups, with a temporal trend analysis. Notifications of sexual violence from the Information System for Notifiable Diseases were reviewed.

View Article and Find Full Text PDF

The weak land carbon sink hypothesis.

Sci Adv

September 2025

Department of Earth System Science, University of California, Irvine, CA 92697, USA.

Over the past three decades, assessments of the contemporary global carbon budget consistently report a strong net land carbon sink. Here, we review evidence supporting this paradigm and quantify the differences in global and Northern Hemisphere estimates of the net land sink derived from atmospheric inversion and satellite-derived vegetation biomass time series. Our analysis, combined with additional synthesis, supports a hypothesis that the net land sink is substantially weaker than commonly reported.

View Article and Find Full Text PDF

A retrospective review of 7185 South Australian discharge summaries revealed that 37.6% of discharge summaries were released at least a day after discharge, and per day of delay of medical discharge summary release, the chance of hospital 30-day readmission increased by 1.60% (P < 0.

View Article and Find Full Text PDF

Background: Ovarian cancer remains the most lethal gynecological cancer, with fewer than 50% of patients surviving more than five years after diagnosis. This study aimed to analyze the global epidemiological trends of ovarian cancer from 1990 to 2021 and also project its prevalence to 2050, providing insights into these evolving patterns and helping health policymakers use healthcare resources more effectively.

Methods: This study comprehensively analyzes the original data related to ovarian cancer from the GBD 2021 database, employing a variety of methods including descriptive analysis, correlation analysis, age-period-cohort (APC) analysis, decomposition analysis, predictive analysis, frontier analysis, and health inequality analysis.

View Article and Find Full Text PDF