Master's Thesis

MentalRAG: Developing an Agentic Framework for Therapeutic Support Systems

Francisco Machuca Ribeiro e Silva — 2024

Key information

Authors:

Francisco Machuca Ribeiro e Silva (Francisco Machuca Ribeiro e Silva)

Supervisors:

Pedro Alexandre Simões dos Santos (Pedro Alexandre Simões dos Santos); João Miguel De Sousa de Assis Dias

Published in

November 15, 2024

Abstract

This paper introduces MentalRAG, a multi-agent system built upon an agentic framework designed to support mental health professionals through the automation of patient data collection and analysis. The system effectively gathers and processes high-sensitivity mental health data from users. It employs locally run open-source models for most tasks, while leveraging advanced state-of-the-art models for more complex analyses, ensuring the maintenance of data anonymity. The system's models have showed improvements in delivering empathetic and contextually adaptive responses, particularly in sensitive contexts such as emotional distress and crisis management. Notably, an integrated agent for detecting levels of suicidal ideation allows the system to assess and respond sensitively to diverse levels of risk, promptly alerting mental health professionals as needed. This innovation represents a stride towards creating a more reliable, efficient, and ethically responsible mental health support tool, capable of addressing both patient and doctor needs effectively while minimizing associated risks.

Publication details

Authors in the community:

Supervisors of this institution:

Fields of Science and Technology (FOS)

electrical-engineering-electronic-engineering-information-engineering - Electrical engineering, electronic engineering, information engineering

Publication language (ISO code)

por - Portuguese

Rights type:

Embargo lifted

Date available:

September 11, 2025

Institution name

Instituto Superior Técnico