Evidence-Grounded AI Analytics for Explainable Mental Health Screening Using Large Language Models
DOI:
https://doi.org/10.63646/UWZI7768Keywords:
Depression Screening; Large Language Models; Retrieval-Augmented Generation; LLM Agents; Explainable AI; Evidence-Based ReasoningAbstract
Depression is among the most prevalent and disabling mental disorders worldwide, yet timely and accurate diagnosis remains a persistent public-health challenge. Large Language Models (LLMs) have shown promise as auxiliary tools in clinical screening due to their strong language understanding and generation capabilities, but their direct deployment in psychiatric decision support is hindered by hallucination, opacity, and the absence of traceable evidence. To address these limitations, this paper proposes an evidence-grounded analytics framework that integrates Retrieval-Augmented Generation (RAG) with an agent-based two-stage diagnostic pipeline. In the first stage, an LLM agent extracts salient symptom phrases from a user-provided text and formulates a query against a structured knowledge base derived from authoritative clinical practice guidelines. In the second stage, the model predicts the text label and cites retrieved guideline excerpts as its rationale. Four open-weight models in the 4–8B range were evaluated on 100 labeled posts. Llama-3.1 accuracy rose from 57% to 74%. For Gemma-3, precision rose from 76.81% to 94.12%, while recall fell from 98.15% to 88.89%. DeepSeek-R1 accuracy remained 64%. Two contributions follow: (i) a unified RAG-Agent diagnostic architecture that grounds LLM outputs in verifiable clinical evidence, substantially reducing false positives and improving interpretability; and (ii) a comprehensive empirical study across heterogeneous LLM families demonstrating the cross-model generality of the approach. These results concern classification of a text label. Patient-level diagnosis, referral outcomes and the safety of clinical deployment require separate evaluation.
How to Cite
References
American Psychiatric Association (2013). Diagnostic and Statistical Manual of Mental Disorders. American Psychiatric Association. https://doi.org/10.1176/appi.books.9780890425596
Asgari, E., Montaña-Brown, N., Dubois, M., Khalil, S., Balloch, J., Yeung, J. A., & Pimenta, D. (2025). A framework to assess clinical safety and hallucination rates of LLMs for medical text summarisation. npj Digital Medicine, 8(1), Article 274. https://doi.org/10.1038/s41746-025-01670-7
Aydin, O., Karaarslan, E., Erenay, F. S., & Bacanin, N. (2025). Generative AI in academic writing: A comparison of DeepSeek, Qwen, ChatGPT, Gemini, Llama, Mistral, and Gemma. TechRxiv. https://doi.org/10.36227/techrxiv.174137796.60885820/v1
Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., et al. (2020). Language models are few-shot learners. Advances in Neural Information Processing Systems, 33, 1877–1901. Author version. https://doi.org/10.48550/arxiv.2005.14165
Bunnell, D. J., Bondy, M. J., Fromtling, L. M., Ludeman, E., & Gourab, K. (2025). Bridging AI and Healthcare: A Scoping Review of Retrieval-Augmented Generation—Ethics, Bias, Transparency, Improvements, and Applications. openRxiv. https://doi.org/10.1101/2025.04.01.25325033
Cao, H., Ma, R., Zhai, Y., & Shen, J. (2024). LLM-Collab: A framework for enhancing task planning via chain-of-thought and multi-agent collaboration. Applied Computing and Intelligence, 4(2), 328–348. https://doi.org/10.3934/aci.2024019
Chaddad, A., Peng, J., Xu, J., & Bouridane, A. (2023). Survey of explainable AI techniques in healthcare. Sensors, 23(2), 634. https://doi.org/10.3390/s23020634
Clusmann, J., Kolbinger, F. R., Muti, H. S., Carrero, Z. I., Eckardt, J. N., Laleh, N. G., Löffler, C. M. L., Schwarzkopf, S. C., Unger, M., Veldhuizen, G. P., Wagner, S. J., & Kather, J. N. (2023). The future landscape of large language models in medicine. Communications Medicine, 3, 141. https://doi.org/10.1038/s43856-023-00370-1
Cumbe, V. F. J., Muanido, A., Manaca, M. N., Fumo, H., Chiruca, P., Hicks, L., de Jesus Mari, J., & Wagenaar, B. H. (2020). Validity and item response theory properties of the Patient Health Questionnaire-9 for primary care depression screening in Mozambique (PHQ-9-MZ). BMC Psychiatry, 20, 382. https://doi.org/10.1186/s12888-020-02772-0
Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. Proceedings of NAACL-HLT 2019, 4171–4186. https://doi.org/10.18653/v1/n19-1423
Ehtesham, A., Singh, A., & Kumar, S. (2025). Enhancing Clinical Decision Support and EHR Insights through LLMs and the Model Context Protocol: An Open-Source MCP-FHIR Framework. 2025 IEEE World AI IoT Congress (AIIoT), 0205–0211. https://doi.org/10.1109/aiiot65859.2025.11105280
Goh, E., Gallo, R., Hom, J., Strong, E., Weng, Y., Kerman, H., Cool, J. A., Kanjee, Z., Parsons, A. S., Ahuja, N., Horvitz, E., Yang, D., Milstein, A., Olson, A. P. J., Rodman, A., & Chen, J. H. (2024). Large language model influence on diagnostic reasoning: A randomized clinical trial. JAMA Network Open, 7(10), e2440969. https://doi.org/10.1001/jamanetworkopen.2024.40969
Gómez-Gómez, I., Benítez, I., Bellón, J., Moreno-Peral, P., Oliván-Blázquez, B., Clavería, A., Zabaleta-del-Olmo, E., Llobera, J., Serrano-Ripoll, M. J., Tamayo-Morales, O., & Motrico, E. (2023). Utility of PHQ-2, PHQ-8 and PHQ-9 for detecting major depression in primary health care: A validation study in Spain. Psychological Medicine, 53(11), 5237–5246. https://doi.org/10.1017/s0033291722002835
Guo, T., Chen, X., Wang, Y., Chang, R., Pei, S., Chawla, N. V., Wiest, O., & Zhang, X. (2024). Large language model based multi- agents: A survey of progress and challenges. Proceedings of the 33rd International Joint Conference on Artificial Intelligence (IJCAI), 8048–8057. https://doi.org/10.24963/ijcai.2024/890
Hadar-Shoval, D., Asraf, K., Mizrachi, Y., Haber, Y., & Elyoseph, Z. (2024). Assessing the Alignment of Large Language Models With Human Values for Mental Health Integration: Cross-Sectional Study Using Schwartz’s Theory of Basic Values. JMIR Mental Health, 11, e55988. https://doi.org/10.2196/55988
Hong, S., Xiao, L., Zhang, X., & Chen, J. (2024). ArgMed-Agents: Explainable Clinical Decision Reasoning with LLM Disscusion via Argumentation Schemes. 2024 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), 5486–5493. https://doi.org/10.1109/bibm62325.2024.10822109
Jeong, M., Sohn, J., Sung, M., & Kang, J. (2024). Improving medical reasoning through retrieval and self-reflection with retrieval-augmented large language models. Bioinformatics, 40(Supplement_1), i119-i129. https://doi.org/10.1093/bioinformatics/btae238
Ke, Y. H., Jin, L., Elangovan, K., Abdullah, H. R., Liu, N., Sia, A. T. H., Soh, C. R., Tung, J. Y. M., Ong, J. C. L., Kuo, C.-F., Wu, D. B.-C., Sundar, V. T., & Ting, D. S. W. (2025). Retrieval-augmented generation for 10 large language models and its generalizability in assessing medical fitness. npj Digital Medicine, 8, 187. https://doi.org/10.1038/s41746-025-01519-z
Kim, S., Imieye, O., & Yin, Y. (2025). Interpretable depression detection from social media text using LLM-derived embeddings. arXiv. https://doi.org/10.48550/arxiv.2506.06616
Kojima, T., Gu, S. S., Reid, M., Matsuo, Y., & Iwasawa, Y. (2022). Large Language Models Are Zero-Shot Reasoners. Advances in Neural Information Processing Systems 35, 22199–22213. https://doi.org/10.52202/068431-1613
Lan, X., Han, Z., Cheng, Y., Sheng, L., Feng, J., Gao, C., & Li, Y. (2025). Depression Detection on Social Media with Large Language Models. Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: Industry Track, 2155–2171. https://doi.org/10.18653/v1/2025.emnlp-industry.151
Levkovich, I., & Elyoseph, Z. (2024). Large language models outperform general practitioners in identifying complex cases of childhood anxiety. Digital Health, 10, 20552076241294182. https://doi.org/10.1177/20552076241294182
Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W. T., Rocktäschel, T., Riedel, S., & Kiela, D. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, 33, 9459–9474. Author version. https://doi.org/10.48550/arxiv.2005.11401
Li, X., Henry, S., & Zhao, T. (2024). BMX: Entropy-weighted similarity and semantic-enhanced lexical search. arXiv. https://doi.org/10.48550/arxiv.2408.06643
Li, J., Wang, X., Zheng, S., Wang, X., Liu, X., & Liu, P. (2024). Personal LLM agents: Insights and survey about the capability, efficiency and security. arXiv. https://doi.org/10.48550/arxiv.2401.05459
Liu, J., Ning, W., Zhang, N., Zhu, B., & Mao, Y. (2024). Estimation of the Global Disease Burden of Depression and Anxiety between 1990 and 2044: An Analysis of the Global Burden of Disease Study 2019. Healthcare, 12(17), 1721. https://doi.org/10.3390/healthcare12171721
Liu, W., Zhang, Y., Chen, J., Li, X., Huang, Y., Zhao, F., Chen, F., Qu, P., & Li, Y. (2025). Global burden and trends of major mental disorders in individuals under 24 years of age from 1990 to 2021, with projections to 2050: insights from the Global Burden of Disease Study 2021. Frontiers in Public Health, 13, Article 1635801. https://doi.org/10.3389/fpubh.2025.1635801
Mavrepis, P., Roussos, G., Tsavalou, S., & Stamou, G. (2024). XAI for all: Can large language models simplify explainable AI? arXiv. https://doi.org/10.48550/arxiv.2401.13110
Muhammad, D., & Bendechache, M. (2024). Unveiling the black box: A systematic review of explainable artificial intelligence in medical image analysis. Computational and Structural Biotechnology Journal, 24, 542–560. https://doi.org/10.1016/j.csbj.2024.08.005
Omar, M., Soffer, S., Charney, A. W., Landi, I., Nadkarni, G. N., & Klang, E. (2024). Applications of large language models in psychiatry: A systematic review. Frontiers in Psychiatry, 15, 1422807. https://doi.org/10.3389/fpsyt.2024.1422807
Park, J. S., O'Brien, J. C., Cai, C. J., Morris, M. R., Liang, P., & Bernstein, M. S. (2023). Generative agents: Interactive simulacra of human behavior. Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology, 1–22. https://doi.org/10.1145/3586183.3606763
Raiaan, M. A. K., Mukta, M. S. H., Fatema, K., Fahad, N. M., Sakib, S., Mim, M. M. J., Ahmad, J., Ali, M. E., & Azam, S. (2024). A Review on Large Language Models: Architectures, Applications, Taxonomies, Open Issues and Challenges. IEEE Access, 12, 26839–26874. https://doi.org/10.1109/access.2024.3365742
Robertson, S., & Zaragoza, H. (2009). The probabilistic relevance framework: BM25 and beyond. Foundations and Trends in Information Retrieval, 3(4), 333–389. https://doi.org/10.1561/1500000019
Sadeghi, M., Richer, R., Egger, B., Schindler-Gmelch, L., Rupp, L. H., Rahimi, F., Berking, M., & Eskofier, B. M. (2024). Harnessing multimodal approaches for depression detection using large language models and facial expressions. npj Mental Health Research, 3, 66. https://doi.org/10.1038/s44184-024-00112-8
Sallam, M. (2023). ChatGPT utility in healthcare education, research, and practice: Systematic review on the promising perspectives and valid concerns. Healthcare, 11(6), 887. https://doi.org/10.3390/healthcare11060887
Schick, T., Dwivedi-Yu, J., Dessì, R., Raileanu, R., Lomeli, M., Zettlemoyer, L., Cancedda, N., & Scialom, T. (2023). Toolformer: Language Models Can Teach Themselves to Use Tools. arXiv. https://doi.org/10.48550/arxiv.2302.04761
Sharifymoghaddam, S., Ge, Y., & Lin, J. (2025). Lighting the Way for BRIGHT: Reproducible Baselines with Anserini, Pyserini, and RankLLM. arXiv. https://doi.org/10.48550/arxiv.2509.02558
Singh, Y., Hathaway, Q. A., Keishing, V., Salehi, S., Wei, Y., Horvat, N., Vera-Garcia, D. V., Choudhary, A., Mula Kh, A., Quaia, E., & Andersen, J. B. (2025). Beyond post hoc explanations: A comprehensive framework for accountable AI in medical imaging through transparency, interpretability, and explainability. Bioengineering, 12(8), 879. https://doi.org/10.3390/bioengineering12080879
Singhal, K., Tu, T., Gottweis, J., Sayres, R., Wulczyn, E., Amin, M., Hou, L., Clark, K., Pfohl, S. R., Cole-Lewis, H., Neal, D., Rashid, Q. M., Schaekermann, M., Wang, A., Dash, D., Chen, J. H., Shah, N. H., Lachgar, S., Mansfield, P. A., … Natarajan, V. (2025). Toward expert-level medical question answering with large language models. Nature Medicine, 31(3), 943–950. https://doi.org/10.1038/s41591-024-03423-7
Teferra, B. G., Rueda, A., Pang, H., Valenzano, R., Samavi, R., Krishnan, S., & Bhat, V. (2024). Screening for depression using natural language processing: Literature review. JMIR Medical Informatics, 12, e55067. https://doi.org/10.2196/55067
Thakur, N., Reimers, N., Rücklé, A., Srivastava, A., & Gurevych, I. (2021). BEIR: A heterogeneous benchmark for zero-shot evaluation of information retrieval models. Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, 1. Author version. https://doi.org/10.48550/arxiv.2104.08663
Thirunavukarasu, A. J., Ting, D. S. J., Elangovan, K., Gutierrez, L., Tan, T. F., & Ting, D. S. W. (2023). Large language models in medicine. Nature Medicine, 29(8), 1930–1940. https://doi.org/10.1038/s41591-023-02448-8
Thirunavukarasu, A. J. (2023). Large language models will not replace healthcare professionals: curbing popular fears and hype. Journal of the Royal Society of Medicine, 116(5), 181–182. https://doi.org/10.1177/01410768231173123
Thotapalli, S., Yilanli, M., McKay, I., Leever, W., Youngstrom, E., Harvey-Nuckles, K., Lowder, K., Schweitzer, S., Sunderland, E., Jackson, D. I., & Sezgin, E. (2025). Potential of ChatGPT in Youth Mental Health Emergency Triage: Comparative Analysis with Clinicians. openRxiv. https://doi.org/10.1101/2025.01.06.24319771
Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M. A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., et al. (2023). LLaMA: Open and efficient foundation language models. arXiv. https://doi.org/10.48550/arxiv.2302.13971
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł ., & Polosukhin, I. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30, 5998–6008. Author version. https://doi.org/10.48550/arxiv.1706.03762
Vilakati, S. (2025). Prompt engineering for accurate statistical reasoning with large language models in medical research. Frontiers in Artificial Intelligence, 8, 1658316. https://doi.org/10.3389/frai.2025.1658316
Vrdoljak, J., Boban, Z., Vilović, M., Kumrić, M., & Božić, J. (2025). A review of large language models in medical education, clinical decision support, and healthcare administration. Healthcare, 13(6), 603. https://doi.org/10.3390/healthcare13060603
Wan, Q., Pan, Y., & Zakeri, S. (2025). Analyzing depression in college students using NLP and transformer models: Implications for career and educational counseling. Brain and Behavior, 15(9), e70828. https://doi.org/10.1002/brb3.70828
Wang, L., Bhanushali, T., Huang, Z., & Yang, J. (2025). Evaluating generative AI in mental health: Systematic review of capabilities and limitations. JMIR Mental Health, 12, e70014. https://doi.org/10.2196/70014
Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q. V., & Zhou, D. (2022). Chain-Of-Thought Prompting Elicits Reasoning in Large Language Models. Advances in Neural Information Processing Systems 35, 24824–24837. https://doi.org/10.52202/068431-1800
Yao, S., Zhao, J., Yu, D., Du, N., Shafran, I., Narasimhan, K., & Cao, Y. (2022). ReAct: Synergizing Reasoning and Acting in Language Models. arXiv. https://doi.org/10.48550/arxiv.2210.03629
Yin, H., Aryani, A., & Nambiar, N. (2024). Evaluating the Performance of Large Language Models for SDG Mapping (Technical Report). arXiv. https://doi.org/10.48550/arxiv.2408.02201
Zakka, C., Chaurasia, A., Shad, R., Dalal, A. R., Kim, J. L., Moor, M., Alexander, K., Ashley, E., Boyd, J., Boyd, K., Hirsch, K., Langlotz, C., Nelson, J., & Hiesinger, W. (2024). Almanac: Retrieval-augmented language models for clinical medicine. NEJM AI, 1(2), AIoa2300068. https://doi.org/10.1056/aioa2300068
Zuo, K., & Jiang, Y. (2024). MedHallBench: A New Benchmark for Assessing Hallucination in Medical Large Language Models. arXiv. https://doi.org/10.48550/arxiv.2412.18947







