Downloads · 30 days
16
12% of all-time downloads
ELiRF/RoBERTa-es-m-large-ICE-MR23-D
RoBERTa-es-m-large-ICE-MR23-D is a text classification model from ELiRF. Use it when you need a label for a piece of text. It is set up for transformers.
RoBERTa-es-m-large-ICE-MR23-D is a Spanish language model for early detection of depression risk, trained using the Incremental Context Expansion (ICE) methodology. The model was developed for the MentalRisk 2023 Depr…
Downloads · 30 days
16
12% of all-time downloads
All-time downloads
136
Public
Parameters
355M
32.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
RoBERTa-es-m-large-ICE-MR23-D is a Spanish language model for early detection of depression risk, trained using the Incremental Context Expansion (ICE) methodology. The model was developed for the MentalRisk 2023 Depression (MR23-D) shared task and builds upon the RoBERTa-es-mental-large foundation model.
The ICE methodology restructures the training data at the context level, enabling the model to learn from progressively expanding user message histories rather than complete user timelines. This training setup better reflects real-world early detection scenarios, where predictions must be generated with limited and evolving evidence, while remaining effective in full-context (user-level) evaluation settings.
The model is based on a RoBERTa-large architecture and supports input sequences of up to 512 tokens, making it suitable for depression detection scenarios where contextual information is incrementally available. It has been fine-tuned to detect depression-related risk signals from Spanish user-generated content.
This model is intended for research purposes in early mental health risk detection, specifically for depression.
The model can be used directly for early detection of depression risk from Spanish user-generated content, generating predictions incrementally as new user messages become available.
Incremental Context Expansion (ICE) is a training methodology designed for early and incremental mental health detection tasks. Rather than training on complete user histories, ICE generates multiple incremental contexts per user, each corresponding to a partial message history.
This approach allows the model to:
ICE modifies the dataset construction process while keeping the standard fine-tuning pipeline unchanged.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ELiRF/RoBERTa-es-m-large-ICE-MR23-D")
model = AutoModelForSequenceClassification.from_pretrained(
"ELiRF/RoBERTa-es-m-large-ICE-MR23-D"
)
inputs = tokenizer(
"Ejemplo de historial de mensajes relacionado con depresión.",
return_tensors="pt",
truncation=True,
max_length=512
)
outputs = model(**inputs)
The model was fine-tuned on the MentalRisk 2023 Depression (MR23-D) dataset. Training data was restructured using the ICE methodology, generating incremental user contexts from original user timelines.
When evaluated on the MentalRisk 2023 Depression task, RoBERTa-es-m-large-ICE-MR23-D shows competitive performance and improves upon the state of the art under both early detection and full-context (user-level) evaluation settings.
This model is part of an ongoing research project.
The associated paper is currently under review and will be added to this model card once the publication process is completed.
ELiRF research group (VRAIN, Universitat Politècnica de València)