Downloads · 30 days
9
9% of all-time downloads
ELiRF/Longformer-es-m-base-ICE-MR24-DD
Longformer-es-m-base-ICE-MR24-DD 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.
Longformer-es-m-base-ICE-MR24-DD is a Spanish long-context language model for mental disorder detection, trained using the Incremental Context Expansion (ICE) methodology. The model was developed for the MentalRisk 20…
Downloads · 30 days
9
9% of all-time downloads
All-time downloads
105
Public
Parameters
149M
4.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors595 MB · 99%
From the Hugging Face model README
Longformer-es-m-base-ICE-MR24-DD is a Spanish long-context language model for mental disorder detection, trained using the Incremental Context Expansion (ICE) methodology. The model was developed for the MentalRisk 2024 Disorder Detection (MR24-DD) shared task and builds upon the Longformer-es-mental-base foundation model.
This model corresponds to the base-sized version of the ICE-adapted Longformer models. Compared to its large counterpart, it contains fewer parameters, providing a more computationally efficient alternative while preserving the ability to process long user message histories.
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 strategy allows the model to better capture early and partial signals of mental health disorders, while remaining effective in full-context (user-level) evaluation settings.
The model is based on the Longformer architecture and supports input sequences of up to 4096 tokens, making it suitable for disorder detection scenarios where evidence is distributed across long and heterogeneous user histories.
This model is intended for research purposes in mental health disorder detection.
The model can be used directly for mental disorder detection from Spanish user-generated content, producing predictions from incrementally available user message histories.
Incremental Context Expansion (ICE) is a training methodology designed for early and incremental mental health detection tasks. Instead of training models on full user histories, ICE generates multiple incremental contexts per user, each corresponding to a partial message history.
This approach enables 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/Longformer-es-m-base-ICE-MR24-DD")
model = AutoModelForSequenceClassification.from_pretrained(
"ELiRF/Longformer-es-m-base-ICE-MR24-DD"
)
inputs = tokenizer(
"Ejemplo de historial de mensajes relacionado con salud mental.",
return_tensors="pt",
truncation=True,
max_length=4096
)
outputs = model(**inputs)
The model was fine-tuned on the MentalRisk 2024 Disorder Detection (MR24-DD) dataset. Training data was restructured using the ICE methodology, generating incremental user contexts from original user timelines.
When evaluated on the MentalRisk 2024 Disorder Detection task, Longformer-es-m-base-ICE-MR24-DD shows competitive performance under both full-context (user-level) and early / incremental detection evaluation settings, offering a favorable trade-off between performance and computational efficiency.
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)