This repository contains the code and resources for our submission to the MentalQA 2025 Shared Task, Track 1. Our work focuses on the multi-label classification of user questions in Arabic within the mental health domain. We conduct a comprehensive comparative analysis of few-shot learning with Large Language Models (LLMs) against several fine-tuning strategies using two base models: CAMeL-BERT and AraBERT. For each base model, we evaluate a single, hyperparameter-optimized model against a 5-fold cross-validation ensemble. Our findings reveal that few-shot learning with a large, specialized LLM and a single, optimized CAMeL-BERT model are the most effective strategies for this task.
Our methodology is a three-pronged comparative analysis:
Optimized Single Model Fine-Tuning: We used the Optuna framework for automated hyperparameter search to find the best configuration for a single model.
K-Fold Ensemble Fine-Tuning: We trained an ensemble of five models using 5-fold cross-validation and averaged their predictions. The training and development sets were combined for this process.
In-Context Few-Shot Learning with LLMs: For this strategy, we constructed a prompt that included a task description, category definitions, and 3-5 examples from the training set to guide the LLM in classifying the questions. We utilized several large language models available through the NVIDIA NIM inference microservices API.
A high-level overview of our data processing pipeline, from input data to the final parsed output.
Our experiments revealed a clear performance hierarchy among the different approaches. The Palmyra-Med LLM and the single optimized CAMeL-BERT model are the top performers, significantly outclassing all other approaches.
| Paradigm | Model Name | Weighted F1-Score |
|---|---|---|
| Few-Shot | Palmyra-Med-70B | 0.605 |
| Fine-Tuning | CAMEL-BERT (Optimized) | 0.597 |
| Few-Shot | Mixtral-8X22B | 0.563 |
| Fine-Tuning | AraBERTv2 (Optimized) | 0.543 |
| Fine-Tuning | CAMEL-BERT (K-Fold) | 0.537 |
| Few-Shot | Qwen3-235B | 0.325 |
| Fine-Tuning | AraBERTv2 (K-Fold) | 0.328 |
| Few-Shot | Gpt-Oss-20B | 0.147 |
| Few-Shot | Colosseum-355B | 0.014 |
Table derived from results presented in the paper.
The pre-trained model weights for our best-performing fine-tuned models can be found on the Hugging Face Hub:
| Model Name | Link to Model |
|---|---|
| Sakinah-AI-CAMEL-BERT-Optimized | HuggingFace |
| Sakinah-AI-AraBERT-Optimized | HuggingFace |
This project is released under the MIT License. For more details, please refer to the LICENSE file.
If you use our work in your research, please cite our paper:
@inproceedings{mohamed-emad-elden-ab-abukar-2025-sakinah,
title = "Sakinah-{AI} at {M}ental{QA}: A Comparative Study of Few-Shot, Optimized, and Ensemble Methods for {A}rabic Mental Health Question Classification",
author = "Mohamed Emad Elden, Fatimah and
Ab. Abukar, Mumina",
editor = "Darwish, Kareem and
Ali, Ahmed and
Abu Farha, Ibrahim and
Touileb, Samia and
Zitouni, Imed and
Abdelali, Ahmed and
Al-Ghamdi, Sharefah and
Alkhereyf, Sakhar and
Zaghouani, Wajdi and
Khalifa, Salam and
AlKhamissi, Badr and
Almatham, Rawan and
Hamed, Injy and
Alyafeai, Zaid and
Alowisheq, Areeb and
Inoue, Go and
Mrini, Khalil and
Alshammari, Waad",
booktitle = "Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks",
month = nov,
year = "2025",
address = "Suzhou, China",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.arabicnlp-sharedtasks.21/",
doi = "10.18653/v1/2025.arabicnlp-sharedtasks.21",
pages = "140--148",
ISBN = "979-8-89176-356-2",
abstract = ""
}
This repository contains the code and resources for our submission to the MentalQA 2025 Shared Task, Track 1. Our work focuses on the multi-label classification of user questions in Arabic within the mental health domain. We conduct a comprehensive comparative analysis of few-shot learning with Large Language Models (LLMs) against several fine-tuning strategies using two base models: CAMeL-BERT and AraBERT. For each base model, we evaluate a single, hyperparameter-optimized model against a 5-fold cross-validation ensemble. Our findings reveal that few-shot learning with a large, specialized LLM and a single, optimized CAMeL-BERT model are the most effective strategies for this task.
Our methodology is a three-pronged comparative analysis:
Optimized Single Model Fine-Tuning: We used the Optuna framework for automated hyperparameter search to find the best configuration for a single model.
K-Fold Ensemble Fine-Tuning: We trained an ensemble of five models using 5-fold cross-validation and averaged their predictions. The training and development sets were combined for this process.
In-Context Few-Shot Learning with LLMs: For this strategy, we constructed a prompt that included a task description, category definitions, and 3-5 examples from the training set to guide the LLM in classifying the questions. We utilized several large language models available through the NVIDIA NIM inference microservices API.
A high-level overview of our data processing pipeline, from input data to the final parsed output.
Our experiments revealed a clear performance hierarchy among the different approaches. The Palmyra-Med LLM and the single optimized CAMeL-BERT model are the top performers, significantly outclassing all other approaches.
| Paradigm | Model Name | Weighted F1-Score |
|---|---|---|
| Few-Shot | Palmyra-Med-70B | 0.605 |
| Fine-Tuning | CAMEL-BERT (Optimized) | 0.597 |
| Few-Shot | Mixtral-8X22B | 0.563 |
| Fine-Tuning | AraBERTv2 (Optimized) | 0.543 |
| Fine-Tuning | CAMEL-BERT (K-Fold) | 0.537 |
| Few-Shot | Qwen3-235B | 0.325 |
| Fine-Tuning | AraBERTv2 (K-Fold) | 0.328 |
| Few-Shot | Gpt-Oss-20B | 0.147 |
| Few-Shot | Colosseum-355B | 0.014 |
Table derived from results presented in the paper.
The pre-trained model weights for our best-performing fine-tuned models can be found on the Hugging Face Hub:
| Model Name | Link to Model |
|---|---|
| Sakinah-AI-CAMEL-BERT-Optimized | HuggingFace |
| Sakinah-AI-AraBERT-Optimized | HuggingFace |
This project is released under the MIT License. For more details, please refer to the LICENSE file.
If you use our work in your research, please cite our paper:
@inproceedings{mohamed-emad-elden-ab-abukar-2025-sakinah,
title = "Sakinah-{AI} at {M}ental{QA}: A Comparative Study of Few-Shot, Optimized, and Ensemble Methods for {A}rabic Mental Health Question Classification",
author = "Mohamed Emad Elden, Fatimah and
Ab. Abukar, Mumina",
editor = "Darwish, Kareem and
Ali, Ahmed and
Abu Farha, Ibrahim and
Touileb, Samia and
Zitouni, Imed and
Abdelali, Ahmed and
Al-Ghamdi, Sharefah and
Alkhereyf, Sakhar and
Zaghouani, Wajdi and
Khalifa, Salam and
AlKhamissi, Badr and
Almatham, Rawan and
Hamed, Injy and
Alyafeai, Zaid and
Alowisheq, Areeb and
Inoue, Go and
Mrini, Khalil and
Alshammari, Waad",
booktitle = "Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks",
month = nov,
year = "2025",
address = "Suzhou, China",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.arabicnlp-sharedtasks.21/",
doi = "10.18653/v1/2025.arabicnlp-sharedtasks.21",
pages = "140--148",
ISBN = "979-8-89176-356-2",
abstract = ""
}