RABIT: Jurnal Teknologi dan Sistem Informasi Univrab
Vol 11 No 1 (2026): Januari

SISTEM CHATBOT KESEHATAN MENTAL BERBASIS LLM DENGAN DETEKSI EMOSI DAN RETRIEVAL AUGMENTED GENERATION

Dhia Tawakalna (Universitas Dian Nuswantoro)
Junta Zeniarja (Universitas Dian Nuswantoro)



Article Info

Publish Date
11 Jan 2026

Abstract

Mental health challenges in Indonesia highlight the urgent need for accessible, safe, and responsible early psychological support systems. Recent advances in Large Language Models (LLMs) enable the development of mental health chatbots capable of generating empathetic and context-aware responses. This study proposes and evaluates a hybrid LLM-based mental health chatbot architecture that integrates parameter-efficient fine-tuning (QLoRA), short-term user profiling through emotion detection, and Retrieval-Augmented Generation (RAG) to improve response quality, relevance, and safety. The research methodology is designed to be modular and reproducible, encompassing Indonesian mental health dialogue preprocessing, QLoRA-based LLM fine-tuning, IndoBERT-based emotion recognition, and a FAISS-powered RAG framework using sentence embeddings. The contribution of each component is systematically assessed through a staged ablation study, while response quality is evaluated using BLEU, ROUGE-L, METEOR, and CIDEr metrics, complemented by qualitative analysis and safety stress testing. Results indicate that although BLEU scores remain relatively low—consistent with open-domain dialogue systems—higher METEOR and CIDEr scores demonstrate strong semantic alignment and informational relevance. Furthermore, the system consistently identifies user emotions, rejects high-risk requests, and produces non-diagnostic responses aligned with AI safety principles. These findings demonstrate that the proposed hybrid LLM–RAG architecture is effective as a context-aware, safe, and responsible early-stage mental health support system, without replacing professional clinical services.

Copyrights © 2026






Journal Info

Abbrev

rabit

Publisher

Subject

Computer Science & IT Engineering

Description

This journal is called RABIT, where the name comes from two words namely, RAB which means Abdurrab University and IT which means information technology, it can be interpreted as a journal of this journal Journal of Informatics Engineering Study Program Pekanbaru Abdurrab University. This RABIT ...