Temporal fine-tuning for early risk detection
Horacio Thompson, Esaú Villatoro-Tello, Manuel Montes-y-Gómez, Marcelo Errecalde
TL;DR
This work tackles Early Risk Detection (ERD) on the Web, where timely and accurate identification of at-risk users is required as posts accumulate. It introduces temporal fine-tuning, a combined single-objective approach that injects explicit time information into transformer inputs and optimizes a differentiable surrogate for the temporal ERD metric $ERDE_\theta$. The method augments inputs with a [TIME] token, organizes training/validation around post windows, and uses a loss that jointly accounts for precision and latency, enabling end-to-end optimization. Experiments on the Spanish MentalRiskES 2023 depression and eating disorders tasks show competitive results against top teams, demonstrating improved decision speed and maintained accuracy. The work highlights potential extensions to cross-language evaluation, novel temporal losses, and deeper analysis of temporal representations for interpretability and broader ERD applicability.
Abstract
Early Risk Detection (ERD) on the Web aims to identify promptly users facing social and health issues. Users are analyzed post-by-post, and it is necessary to guarantee correct and quick answers, which is particularly challenging in critical scenarios. ERD involves optimizing classification precision and minimizing detection delay. Standard classification metrics may not suffice, resorting to specific metrics such as ERDE(theta) that explicitly consider precision and delay. The current research focuses on applying a multi-objective approach, prioritizing classification performance and establishing a separate criterion for decision time. In this work, we propose a completely different strategy, temporal fine-tuning, which allows tuning transformer-based models by explicitly incorporating time within the learning process. Our method allows us to analyze complete user post histories, tune models considering different contexts, and evaluate training performance using temporal metrics. We evaluated our proposal in the depression and eating disorders tasks for the Spanish language, achieving competitive results compared to the best models of MentalRiskES 2023. We found that temporal fine-tuning optimized decisions considering context and time progress. In this way, by properly taking advantage of the power of transformers, it is possible to address ERD by combining precision and speed as a single objective.
