Optimizing NLP for Mental Health Analysis: Can DistilBERT Match the Performance of Larger Transformer Models?

Driven by the growing relevance of mental health analysis and the rapid advancement of Transformer-based language models, this study explores the use of DistilBERT, a lightweight Transformer model, for mental health detection based on social media text. Focusing on resource-constrained environments where reliable model performance remains essential, we fine-tuned DistilBERT on publicly available datasets and compared its performance with BERT and RoBERTa using key metrics related to accuracy and computational efficiency. Despite its smaller size, DistilBERT achieved comparable F1-scores while significantly reducing inference time and memory usage. The comparative experiments demonstrate that DistilBERT offers a practical balance between accuracy and efficiency, highlight its potential as an efficient and scalable solution for mental health monitoring systems.

Authors

Institutions

Publication Details

Journal
Procedia Computer Science
Published
2025-01-01
DOI
https://doi.org/10.1016/j.procs.2025.09.069
Primary Topic
Mental Health via Writing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing NLP for Mental Health Analysis: Can DistilBERT Match the Performance of Larger Transformer Models?

Muhammad Fikri Hasani, Arif Fatahillah, Ayu Maulina, Nicole Alexandra Yauwrentius et al.
Procedia Computer Science
Mental Health via Writing
article

Optimizing NLP for Mental Health Analysis: Can DistilBERT Match the Performance of Larger Transformer Models?

Muhammad Fikri Hasani, Arif Fatahillah, Ayu Maulina, Nicole Alexandra Yauwrentius, Puti Rania Faiza
article en

Abstract

Driven by the growing relevance of mental health analysis and the rapid advancement of Transformer-based language models, this study explores the use of DistilBERT, a lightweight Transformer model, for mental health detection based on social media text. Focusing on resource-constrained environments where reliable model performance remains essential, we fine-tuned DistilBERT on publicly available datasets and compared its performance with BERT and RoBERTa using key metrics related to accuracy and computational efficiency. Despite its smaller size, DistilBERT achieved comparable F1-scores while significantly reducing inference time and memory usage. The comparative experiments demonstrate that DistilBERT offers a practical balance between accuracy and efficiency, highlight its potential as an efficient and scalable solution for mental health monitoring systems.

Procedia Computer ScienceVol. 269
Binus University (ID)
Openalex Percentile: Top 62%
Mental Health via Writing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.