Skip to content
Review Open access

Predicting Mental Health Conditions from Text Using Interpretable Machine Learning

Jul 2026 · International Journal for Research in Applied Science and Engineering Technology · Vol 14, pp. 1073-1080 · 0 citations

TL;DR

Experimental results demonstrate that interpretability does not significantly compromise predictive performance, enabling trustworthy AI-assisted mental health screening, and presents an interpretable machine learning framework that combines natural language processing (NLP) feature extraction with explainable AI techniques.

Abstract

Mental health disorders such as depression, anxiety, and post-traumatic stress disorder (PTSD) affect over one billion people worldwide, yet early detection remains a major clinical challenge. In recent years, text data from social media posts, clinical notes, and patient surveys has emerged as a rich source of signals for automated mental health screening. However, most existing machine learning models operate as black boxes, limiting clinical adoption. This paper presents an interpretable machine learning framework that combines natural language processing (NLP) feature extraction with explainable AI techniques — specifically SHAP (SHapley Additive exPlanations) and LIME (Local Interpretable Model-agnostic Explanations) — to predict mental health conditions from text while providing transparent, clinically meaningful explanations. A multi- class classification task involving depression, anxiety, PTSD, and healthy controls is performed on a dataset of 19,320 labelled text samples. The proposed XGBoost model with SHAP explanations achieves 87.3% accuracy and an AUC of 0.924, while the fine-tuned BERT model achieves 91.6% accuracy and an AUC of 0.961. Experimental results demonstrate that interpretability does not significantly compromise predictive performance, enabling trustworthy AI-assisted mental health screening.

Read PDF

Similar papers

Open access 2026

Machine Learning-Driven Mental Health Detection: A Comparative Analysis of Existing Techniques and Development of a Predictive Computational Model

A novel machine learning-driven predictive computational model based on DistilBERT for automated multi-class mental health identification from Reddit posts is proposed in this paper and indicates that transformer-based models are robust and scalable solutions for real-world mental health testing and decision-support sy...

Radhey Shyam, Prashant Yadav, Pawan Thakur · 0 citations
Open access Aug 2026

An explainable AI framework integrating deep learning and large language model for student’s mental health

The proposed method achieves strong robustness, generalization ability, and clinical applicability for early detection and effective psychological intervention in young adults, demonstrating strong robustness, generalization ability, and clinical applicability for early detection and effective psychological interventio...

Rupali D. Kasar, Garima Shukla · 0 citations
Review Open access Aug 2026

Review of Artificial Intelligence Applications in Mental Health Diagnosis and Therapy

These technologies show promise in reducing human error and enhancing mental health care delivery; however, persistent challenges include data privacy, ethical considerations, and the need for diverse, large-scale datasets.

Juster Donal Sinaga · 0 citations
Preprint Aug 2026

Natural Language Processing Psychometrics

Results show the promise and limits of synthetic data: LLM personas can expose model biases, recover patterns consistent with clinical rumination, and support psychometric prediction from human text without a matched questionnaire, but cannot substitute for human validation.

Edoardo Sebastiano De Duro, Emma Franchino, M. Stella · 0 citations
Open access Sep 2026

THE APPLICATION OF MACHINE LEARNING IN EARLY DETECTION OF MENTAL HEALTH CONDITIONS THROUGH ANALYSIS OF HEALTHCARE CLAIMS DATA

Mental illness is a major world health issue, with increasing rates of depression, anxiety, and other psychiatric disorders affecting millions of people worldwide. Early diagnosis is crucial in preventing violent presentation and maximizing patient outcomes. However, conventional diagnosis largely relies on self-report...

A. Agyeman · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.