LLM-Driven Conversational Agents for Mental Health Support with Long-Term User Behavior Modeling

Authors

  • Paul Robles Department of Computer Science, University of New Hampshire, Durham, NH, USA. Author
  • Flerian Neal School of Computing, Clemson University, Clemson, SC, USA. Author

Keywords:

conversational agents, large language models, mental health, behavior modeling, user memory systems, responsible AI, system architecture, telehealth

Abstract

The rapid advancement of large language models has opened new frontiers for digital mental health interventions, yet the design of conversational agents capable of providing sustained, personalized support over long durations remains a formidable systems challenge. This paper presents a comprehensive architectural and infrastructural analysis of LLM-driven conversational agents that incorporate long-term user behavior modeling to deliver context-aware, empathetic, and clinically sensitive mental health support. We examine the full lifecycle of such systems, from session-level dialogue management to longitudinal memory architectures that encode user emotional trajectories, adherence patterns, and evolving psychological states. The discussion integrates perspectives from distributed systems, responsible AI, health informatics, and public policy, foregrounding trade-offs between personalization depth and computational scalability, latency constraints in real-time therapeutic dialogues, and the tension between rich behavioral modeling and user privacy preservation. The paper critically evaluates modular pipeline designs, retrieval-augmented memory stores, hierarchical summarization strategies, and hybrid symbolic-neural controllers for safety enforcement. Governance frameworks are analyzed through the lens of medical device regulations, data sovereignty, and algorithmic fairness across diverse demographic groups. Emphasis is placed on deployment strategies that bridge research prototypes and production-grade telehealth platforms, addressing model updating without catastrophic forgetting of user-specific therapeutic alliances, and the orchestration of on-device and cloud-based inference for low-resource settings. The work articulates a socio-technical roadmap that aligns engineering capabilities with the ethical imperatives of mental healthcare, arguing that longevity of interaction, rather than single-session accuracy, constitutes the central design metric for sustainable digital support ecosystems.

References

1. Weizenbaum, J. (1966). ELIZA—A computer program for the study of natural language communication between man and machine. Communications of the ACM, 9(1), 36–45.

2. Fitzpatrick, K. K., Darcy, A., & Vierhile, M. (2017). Delivering cognitive behavior therapy to young adults with symptoms of depression and anxiety using a fully automated conversational agent (Woebot): A randomized controlled trial. JMIR Mental Health, 4(2), e19.

3. Inkster, B., Sarda, S., & Subramanian, V. (2018). An empathy-driven, conversational artificial intelligence agent (Wysa) for digital mental well-being: Real-world data evaluation mixed-methods study. JMIR mHealth and uHealth, 6(11), e12106.

4. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30.

5. Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., ... & Amodei, D. (2020). Language models are few-shot learners. Advances in Neural Information Processing Systems, 33, 1877–1901.

6. Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., ... & Kiela, D. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, 33, 9459–9474.

7. Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780.

8. Koren, Y., Bell, R., & Volinsky, C. (2009). Matrix factorization techniques for recommender systems. Computer, 42(8), 30–37.

9. Chen, T., Kornblith, S., Norouzi, M., & Hinton, G. (2020). A simple framework for contrastive learning of visual representations. Proceedings of the 37th International Conference on Machine Learning, 1597–1607.

10. McMahan, B., Moore, E., Ramage, D., Hampson, S., & Arcas, B. A. y. (2017). Communication-efficient learning of deep networks from decentralized data. Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, 1273–1282.

11. Dwork, C., & Roth, A. (2014). The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 9(3–4), 211–407.

12. U.S. Food and Drug Administration. (2022). Clinical decision support software: Guidance for industry and Food and Drug Administration staff.

13. European Parliament and Council. (2016). Regulation (EU) 2016/679 of the European Parliament and of the Council of 27 April 2016 on the protection of natural persons with regard to the processing of personal data and on the free movement of such data (General Data Protection Regulation). Official Journal of the European Union, L119, 1–88.

14. Buolamwini, J., & Gebru, T. (2018). Gender shades: Intersectional accuracy disparities in commercial gender classification. Proceedings of the 1st Conference on Fairness, Accountability and Transparency, 77–91.

15. Mitchell, M., Wu, S., Zaldivar, A., Barnes, P., Vasserman, L., Hutchinson, B., ... & Gebru, T. (2019). Model cards for model reporting. Proceedings of the Conference on Fairness, Accountability, and Transparency, 220–229.

16. Mehrabi, N., Morstatter, F., Saxena, N., Lerman, K., & Galstyan, A. (2021). A survey on bias and fairness in machine learning. ACM Computing Surveys, 54(6), 1–35.

17. Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., ... & Lample, G. (2023). LLaMA: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971.

18. Yu, X. (2026). Enhancing Search Efficiency through LLM-Based User Memory Systems for Query Matching and Intent Modeling.

19. Bommasani, R., Hudson, D. A., Adeli, E., Altman, R., Arora, S., von Arx, S., ... & Liang, P. (2021). On the opportunities and risks of foundation models. arXiv preprint arXiv:2108.07258.

20. Kirkpatrick, J., Pascanu, R., Rabinowitz, N., Veness, J., Desjardins, G., Rusu, A. A., ... & Hadsell, R. (2017). Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 114(13), 3521–3526.

21. Rajkomar, A., Dean, J., & Kohane, I. (2019). Machine learning in medicine. New England Journal of Medicine, 380(14), 1347–1358.

22. Cummings, M. L., & Cohn, J. (2022). Ethical and regulatory challenges of AI in mental healthcare. Nature Medicine, 28, 2246–2248.

23. Trivedi, M. H., Rush, A. J., Wisniewski, S. R., Nierenberg, A. A., Warden, D., Ritz, L., ... & Fava, M. (2006). Evaluation of outcomes with citalopram for depression using measurement-based care in STARD: Implications for clinical practice. American Journal of Psychiatry, 163(1), 28–40.

24. Shneiderman, B. (2020). Human-centered artificial intelligence: Reliable, safe & trustworthy. International Journal of Human–Computer Interaction, 36(6), 495–504.

25. World Health Organization. (2021). Ethics and governance of artificial intelligence for health. WHO guidance.

26. Floridi, L., Cowls, J., Beltrametti, M., Chatila, R., Chazerand, P., Dignum, V., ... & Schafer, B. (2018). AI4People—An ethical framework for a good AI society: Opportunities, risks, principles, and recommendations. Minds and Machines, 28(4), 689–707.

Downloads

Published

2026-05-19

How to Cite

LLM-Driven Conversational Agents for Mental Health Support with Long-Term User Behavior Modeling. (2026). Journal of Advanced Artificial Intelligence Research, 5(1). https://www.jaair.org/index.php/home/article/view/184