← Latest papers
📄 medicine

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

This paper introduces Rafiq, a clinically validated Arabic conversational AI system that integrates a curated mental health knowledge base, a 217-expression PHQ-9 lexicon for symptom detection, and a retrieval-augmented generation pipeline to enable early depression screening and psychoeducation for Arabic-speaking communities.

Original authors: Alaa Alshurafa, Basem Alijla, Motaz K H SAAD

Published 2026-10-19
📖 5 min read🧠 Deep dive

Original authors: Alaa Alshurafa, Basem Alijla, Motaz K H SAAD

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Depression is a heavy burden that affects hundreds of millions of people worldwide, often leaving them isolated and unable to function. In Arabic-speaking communities, this burden is made heavier by a lack of accessible, culturally sensitive tools to help people understand their feelings. While technology has offered hope through chatbots that can talk to people about their mental health, most of these tools are built for English speakers. They often lack the deep clinical knowledge needed to spot the early signs of depression or the ability to guide a user through a proper screening process in their own language. The challenge for researchers is not just to build a computer program that speaks Arabic, but to create one that understands the specific nuances of the language, the cultural context of the speakers, and the strict medical standards required to safely discuss mental health.

A team of researchers has addressed this gap by creating Rafiq, a conversational AI system designed specifically to detect early signs of depression among Arabic speakers. Unlike simple chatbots that offer general advice, Rafiq is built on a foundation of verified medical information and follows a structured clinical process. The system was developed to listen to a user's words, identify specific symptoms of depression, and then, if necessary, guide the user through a standard nine-question screening test known as the PHQ-9. This test is a trusted tool used by doctors worldwide to measure the severity of depression. Once the screening is complete, the system uses a method called retrieval-augmented generation to provide answers. Instead of making things up, the system searches through a carefully curated library of medical texts written in Arabic and uses only that information to form its responses. This ensures that every piece of advice is grounded in fact and supported by authoritative sources like the World Health Organization and major medical manuals.

To make this work, the researchers first had to build a massive digital library of knowledge. They gathered information from four trusted clinical sources, including the official diagnostic manual for mental disorders and a widely used medical reference, and converted over 14,000 words of text into a format the computer could read and search. They then tested several different types of computer models to see which one was best at understanding the meaning behind Arabic sentences. They found that a model specifically trained on Arabic sentence pairs worked far better than a powerful, general-purpose model designed for many languages. In fact, the general model failed almost completely when asked to find relevant medical information in Arabic, proving that for specialized tasks like mental health, a tool built for the specific language is essential.

The core of the system is its ability to listen and react in real time. As a user types messages, the system checks for keywords and phrases that indicate specific symptoms, such as sadness, loss of sleep, or feelings of worthlessness. It uses a list of 217 carefully selected Arabic expressions, including dialects and variations, to spot these signs with high accuracy. If the system detects that a user is showing three or more distinct symptoms, it gently suggests that they take the nine-question screening test. The user can choose to accept or decline. If they accept, the system asks the questions one by one, recording the answers to calculate a score that indicates the severity of their depression. Throughout this process, the system maintains a warm, supportive tone, avoiding medical jargon and never offering a diagnosis.

The researchers tested the system rigorously before releasing it. They evaluated its ability to detect symptoms and found it was correct 98 percent of the time. They also tested its ability to answer questions using its medical library, finding that it could retrieve the right information and generate helpful, accurate responses. Most importantly, five licensed psychologists reviewed the system's conversations across five different scenarios, including cases involving suicidal thoughts. The experts gave the system high marks for its safety, accuracy, and empathy, noting that it felt like a genuine companion rather than a machine. They confirmed that the system correctly identified risks and knew when to suggest professional help, with no critical safety concerns raised.

The study concludes that it is possible to build a sophisticated, clinically grounded mental health tool for Arabic speakers that combines the speed of artificial intelligence with the reliability of human medical knowledge. By integrating a structured screening process with a vast library of verified facts, Rafiq demonstrates that technology can be used to support early detection of depression in underserved communities. The researchers emphasize that this system is designed to be a supportive companion that encourages people to seek professional help, not a replacement for a doctor. Their work provides a clear path forward for developing similar tools that respect cultural differences and adhere to strict medical standards, offering a new form of support for those who have long been left without it.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →