Mental Health Detection Models
Collection
Detects mental-health conditions and cyberbullying in social-media posts. MentalBERT: 0.92 accuracy, 0.76 macro F1. Best Paper, AAAI-26. • 5 items • Updated
How to use Jayi2424/mhdc-modernbert with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Jayi2424/mhdc-modernbert") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Jayi2424/mhdc-modernbert")
model = AutoModelForSequenceClassification.from_pretrained("Jayi2424/mhdc-modernbert", device_map="auto")Fine-tuned ModernBERT-base from the same experiment.
Fine-tuned from answerdotai/ModernBERT-base for Ajayi, Kachweka, Deku, and Aiken, PMLR 317:15-26, 2026. Best Paper, AAAI-26 AIMedHealth Bridge. https://proceedings.mlr.press/v317/ajayi26a.html
A screening aid with a person in the loop, not a diagnostic tool.
Training tokenized posts at max length 128. Label order is the training order.
0 age_cb 1 anxiety 2 bipolar 3 ethnicity_cb 4 gender_cb 5 non_suicide 6 personality_disorder 7 religion_cb 8 stress 9 suicide
from transformers import pipeline
clf = pipeline("text-classification", model="Jayi2424/mhdc-modernbert")
print(clf("I have not slept and I feel worthless."))
Base model
answerdotai/ModernBERT-base