Repository logo

Emotion-Aware Digital Twin for a Large Language Model-Based Personalized Therapy Solution

dc.contributor.authorAl Ghoul, Karim
dc.contributor.supervisorEl Saddik, Abdulmotaleb
dc.contributor.supervisorAl Osman, Hussein
dc.date.accessioned2026-05-05T19:01:07Z
dc.date.available2026-05-05T19:01:07Z
dc.date.issued2026-05-05
dc.description.abstractMental health disorders are increasing worldwide, yet many individuals still face limited access to timely mental health support. At the same time, wearable devices such as smartwatches enable continuous collection of physiological signals that may provide useful indicators of affective states in everyday life. This thesis explores how wearable-based emotion recognition can be integrated with retrieval-augmented large language models (RAG-LLMs) and a digital twin framework to provide accessible, personalized, and context-aware mental well-being support anytime and anywhere. First, the thesis introduces WARM-VR, a new affective computing dataset designed to address limitations of existing resources by combining immersive stimuli with wearable physiological sensing and self-report. The dataset includes recordings from 31 participants and integrates multimodal signals with arousal, valence, and relaxation annotations to support reproducible affect research in more realistic settings. Second, the thesis develops and evaluates multiple deep learning architectures for emotion recognition from Photoplethysmography (PPG)-based wearables, including hybrid CNN–LSTM–TCN models as well as Transformer-based and Mamba-based approaches, with attention to noise, subject variability, and class imbalance. Third, the thesis investigates the use of Retrieval-Augmented Generation (RAG) to reduce hallucination and improve reliability in mental-health-oriented conversational systems, and introduces an evaluation framework that distinguishes between retrieval-grounded factual accuracy and therapist-like conversational support across different LLMs. Building on these components, the thesis proposes UbiMyTherapist (You Be My Therapist), a ubiquitous emotion-aware digital twin framework designed to operate continuously alongside the user by combining wearable-based emotion estimation, user history, and psychological knowledge bases, enabling reactive conversational support and proactive interventions. A proof-of-concept prototype is implemented using an agentic orchestration layer and a vector-based RAG pipeline grounded in Cognitive Behavioral Therapy (CBT) content. Finally, a user case study with 24 participants compares four system configurations: baseline GPT-4o, prompt-engineered GPT-4o, RAG-based GPT-4o, and the full digital twin prototype. The results from the pilot study show that integrating retrieval grounding with user context and emotional-state history improves perceived therapist-like conversation, empathy, personalization, and overall user experience.
dc.identifier.urihttp://hdl.handle.net/10393/51606
dc.identifier.urihttps://doi.org/10.20381/ruor-31909
dc.language.isoen
dc.publisherUniversité d'Ottawa | University of Ottawa
dc.subjectAffective Computing
dc.subjectAI for healthcare
dc.subjectAI for mental health
dc.titleEmotion-Aware Digital Twin for a Large Language Model-Based Personalized Therapy Solution
dc.typeThesisen
thesis.degree.disciplineGénie / Engineering
thesis.degree.levelDoctoral
thesis.degree.namePhD
uottawa.departmentScience informatique et génie électrique / Electrical Engineering and Computer Science

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail ImageThumbnail Image
Name:
Al_Ghoul_Karim_2026_thesis.pdf
Size:
4.41 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail ImageThumbnail Image
Name:
license.txt
Size:
2.51 KB
Format:
Item-specific license agreed upon to submission
Description: