Evidence Hub

Rafiq: An Arabic Conversational AI System for Early Depression Detection with Integrated Symptom Monitoring, PHQ-9 Screening, and Retrieval-Augmented Generation

Alshurafa A, Alijla B, SAAD MKH

2026

Abstract

Abstract Depression is a leading cause of disability worldwide, yet Arabic-speaking communities remain underserved by clinically grounded conversational AI. This paper presents Rafiq, a conversational healthcare informatics system for early Arabic depression detection and psychoeducation, developed end to end and clinically validated. Rafiq integrates four modules: (i) an Arabic mental health knowledge base of 14,624 words curated from four authoritative clinical sources (DSM-5-TR, MSD Manual, WebTeb, and WHO); (ii) a symptom detection module that monitors user messages with GPT-4o-mini and keyword-guided prompting driven by a clinically validated 217-expression Arabic PHQ-9 lexicon; (iii) an automated three-phase PHQ-9 administration and scoring module; and (iv) a retrieval-augmented generation (RAG) pipeline grounded in the knowledge base. The modules are orchestrated by a six-node LangGraph workflow and delivered via a React Native mobile application. Six Arabic sentence embedding models were benchmarked for mental-health retrieval on a purpose-built dataset of 33 queries and 99 annotated query–document pairs; Arabic-Triplet-Matryoshka-V2 performed best (MAP=80%, NDCG=86%, Precision@1=93% at k=2), while a state-of-the-art multilingual mixture-of-experts model failed to transfer (MAP=4%). Symptom detection reached 98% accuracy and an F1-score of 0.98 under leakage-aware evaluation. RAGAS evaluation yielded faithfulness=0.88, answer relevancy=0.84, and context…

Read the paper

Related studies

Go deeper in Evidence Hub

Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.

Open this study Sign up free