Personalized Healthcare Recommendation via LLM-Based Patient Memory Modeling and Medical Query Understanding

Authors

  • Dend Oliavoer School of Computing, Clemson University, Clemson, SC, USA.
  • Neeriaj Mathiur Department of Computer Science and Engineering, University at Buffalo, Buffalo, NY, USA.

Keywords:

large language models, patient memory modeling, medical query understanding, personalized healthcare recommendation, health AI governance, socio-technical systems

Abstract

The integration of large language models into healthcare recommender systems represents a paradigm shift in the delivery of personalized medical information and decision support. Traditional clinical recommendation engines often rely on structured electronic health records and static rule-based logic, failing to capture the fluid, longitudinal narrative of a patient’s lived health experience. This paper presents a system-level investigation into a novel architecture that constructs a dynamic patient memory model using the generative and contextual capabilities of large language models, coupled with advanced medical query understanding. Rather than proposing a single algorithm, we examine the structural trade-offs, integration pathways, and socio-technical implications of embedding such memory-augmented models within real-world healthcare infrastructures. The discussion extends to the architecture’s handling of temporal dynamics, multi-modal health signals, and the disambiguation of clinically ambiguous language in patient queries. A central theme is the governance of such systems, addressing fairness across heterogeneous populations, interpretability for clinical stakeholders, and the sustainability of large-scale deployment under computational and energy constraints. Through conceptual analysis and cross-domain comparison with consumer personalization systems, the paper identifies unique challenges in the medical domain, including the irreversibility of harmful recommendations and the imperative of value alignment between patient preferences and evidence-based medicine. We argue that the memory model must not be a passive log but an active, ethically-aware construct that supports continuity of care while respecting privacy boundaries and evolving patient identities. The analysis further explores federated learning paradigms to distribute model training across institutions without sharing sensitive data, and examines policy implications for regulatory approval of continuously learning recommendation agents. The paper concludes with a forward-looking perspective on how patient-centric memory architectures could reshape chronic disease management, remote monitoring, and shared clinical decision-making, ultimately contributing to more resilient and equitable health systems.

References

1. 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, 5998–6008.

2. Lee, J., Yoon, W., Kim, S., Kim, D., Kim, S., So, C. H., & Kang, J. (2020). BioBERT: A pre-trained biomedical language representation model for biomedical text mining. Bioinformatics, 36(4), 1234–1240.

3. Gu, Y., Tinn, R., Cheng, H., Lucas, M., Usuyama, N., Liu, X., Naumann, T., Gao, J., & Poon, H. (2021). Domain-specific language model pretraining for biomedical natural language processing. ACM Transactions on Computing for Healthcare, 3(1), 1–23.

4. 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.

5. Sukhbaatar, S., Weston, J., Fergus, R., et al. (2015). End-to-end memory networks. Advances in Neural Information Processing Systems, 28, 2440–2448.

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. Zhang, S., Yao, L., Sun, A., & Tay, Y. (2019). Deep learning based recommender system: A survey and new perspectives. ACM Computing Surveys, 52(1), 1–38.

8. Yin, F., Wang, L., Liu, J., Zhou, X., & Li, Q. (2021). GAMENet: Graph augmented memory network for medication recommendation. IEEE Transactions on Knowledge and Data Engineering, 35(1), 699–712.

9. Yu, C., Ren, G., & Liu, J. (2020). Deep reinforcement learning for treatment recommendation. In Proceedings of the AAAI Conference on Artificial Intelligence, 34(01), 1184–1191.

10. Obermeyer, Z., Powers, B., Vogeli, C., & Mullainathan, S. (2019). Dissecting racial bias in an algorithm used to manage the health of populations. Science, 366(6464), 447–453.

11. Lundberg, S. M., & Lee, S. I. (2017). A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems, 30, 4765–4774.

12. Ribeiro, M. T., Singh, S., & Guestrin, C. (2016). “Why should I trust you?” Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 1135–1144).

13. Alsentzer, E., Murphy, J. R., Boag, W., Weng, W. H., Jin, D., Naumann, T., & McDermott, M. B. A. (2019). Publicly available clinical BERT embeddings. In Proceedings of the 2nd Clinical Natural Language Processing Workshop (pp. 72–78).

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

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

16. Jagannatha, A. N., & Yu, H. (2016). Bidirectional RNN for medical event detection in electronic health records. In Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (pp. 473–482).

17. Amodei, D., Olah, C., Steinhardt, J., Christiano, P., Schulman, J., & Mané, D. (2016). Concrete problems in AI safety. arXiv preprint arXiv:1606.06565.

18. Elwyn, G., Frosch, D., Thomson, R., Joseph-Williams, N., Lloyd, A., Kinnersley, P., ... & Barry, M. (2012). Shared decision making: A model for clinical practice. Journal of General Internal Medicine, 27(10), 1361–1367.

19. Singhal, K., Azizi, S., Tu, T., Mahdavi, S. S., Wei, J., Chung, H. W., ... & Natarajan, V. (2023). Large language models encode clinical knowledge. Nature, 620(7972), 172–180.

20. Dwork, C., Hardt, M., Pitassi, T., Reingold, O., & Zemel, R. (2012). Fairness through awareness. In Proceedings of the 3rd Innovations in Theoretical Computer Science Conference (pp. 214–226).

21. Jain, S., & Wallace, B. C. (2019). Attention is not explanation. In Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (pp. 3543–3556).

22. U.S. Food and Drug Administration. (2021). Artificial intelligence and machine learning in software as a medical device. FDA.

23. Strubell, E., Ganesh, A., & McCallum, A. (2019). Energy and policy considerations for deep learning in NLP. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (pp. 3645–3650).

24. Susskind, R., & Susskind, D. (2015). The future of the professions: How technology will transform the work of human experts. Oxford University Press.

25. Rajpurkar, P., Chen, E., Banerjee, O., & Topol, E. J. (2022). AI in health and medicine. Nature Medicine, 28(1), 31–38.

Downloads

Published

2026-07-18