LLMs in the Mental Health Context: Development of the Rafira Platform and the Use of Speech Recognition and AI in Therapy Sessions
Resumo
This paper presents the development and evaluation of the Rafira platform, an assistant for psychologists that uses speech recognition and Large Language Models (LLMs) for automated transcription and summarization of therapy sessions. This study aims to develop and evaluate an LLM-based platform considering criteria of accuracy, clinical applicability, usability, and ethics. A case study was conducted in three stages: prototype development, testing with psychologists from different approaches, and analysis of the results. Key findings demonstrate technical accuracy, clinical applicability, and the tool's scalability, contributing to the optimization of clinical practice and therapeutic follow-up.
Referências
BENTES, A., SANCHES, D., and FONSECA, P. (2024). Assistentes Virtuais Inteligentes e saúde mental: debates regulatórios no Brasil. Revista Eletrônica de Comunicação, Informação & Inovação em Saúde, v. 18, n. 3.
FIGUEIREDO JUNIOR, J. S., FARINA, R. M., and FLORIAN, F. (2024). Inteligência artificial (IA) na reprodução de vozes humanas: explorando vantagens e desafios. Revista Científica Semana Acadêmica, ed. 251, v. 12, p. 1-16. DOI: 10.35265/2236-6717-251-13060. Accessed: July 30, 2025.
FREIRE, T. (2025). "Sessão de terapia" no ChatGPT oferece riscos e preocupa especialistas. Agência Brasil. Available at: [link]. Accessed: July 27, 2025.
JURAFSKY, D. and MARTIN, J. H. (2000). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models. 3rd ed. (draft) . Available at: [link].
NILC – Interinstitutional Center for Computational Linguistics (2023). CORAA ASR – v 1.1: open speech dataset for Automatic Speech Recognition in Brazilian Portuguese [GitHub repository]. Available at: [link]. Accessed: August 7, 2025.
PEREIRA, A. M., MARTINS, L. F., SARTES, L. M. A., ALMEIDA, L. F., BERNARDINO, H. S., and SOUZA, J. F. (2025). Anonimização de Textos Clínicos Utilizando LLM. In: Simpósio Brasileiro de Computação Aplicada à Saúde (SBCAS), 25., Porto Alegre. Anais... Porto Alegre: Sociedade Brasileira de Computação, p. 365-376. DOI: 10.5753/sbcas.2025.7150.
SILVEIRA, P. V. R. and PARAVIDINI, J. L. L. (2024). Ética da aplicação de inteligências artificiais e chatbots na saúde mental: uma perspectiva psicanalítica. Revista Pesquisa Qualitativa, v. 12, n. 30, p. 01-16. DOI: 10.33361/RPQ.2024.v.12.n.30.717. Accessed: July 27, 2025.
VAN VEEN, D.; VAN UDEN, C.; BLANKEMEIER, L.; DELBROUCK, J. B.; AALI, A.; BLUETHGEN, C.; PAREEK, A.; POLACIN, M.; REIS, E. P.; SEEHOFNEROVÁ, A.; ROHATGI, N.; HOSAMANI, P.; COLLINS, W.; AHUJA, N.; LANGLOTZ, C. P.; HOM, J.; GATIDIS, S.; PAULY, J.; CHAUDHARI, A. S. Adapted large language models can outperform medical experts in clinical text summarization. Nature Medicine, v. 30, n. 4, p. 1134-1142, 2024. Available at: DOI: 10.1038/s41591-024-02855-5
YOUNG, I. (2019). Listening Deeply. Medium. Available at: [link]. Accessed: July 30, 2025.
ZANQUETTA, B., OLIVEIRA, M. V. M., OLIVEIRA, L. R., CINTRA, M. E., and FERNANDES, A. F. C. (2024). Avaliação de Assistentes Virtuais Baseados em Inteligência Artificial para Simulações de Atendimento Psicológico. Anais da ERI-ES. Accessed: October 15, 2025.
