Git Product home page Git Product logo

mahmoud1yaser / vr-therapist-virtual-mental-health-experience Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 56.38 MB

A revolutionary blend of Virtual Reality and Large Language Models for immersive mental health therapy sessions, offering users a simulated therapist environment for interactive rehabilitation experiences.

Python 4.04% Jupyter Notebook 3.91% C# 31.37% ShaderLab 51.69% HLSL 8.99%

vr-therapist-virtual-mental-health-experience's Introduction

VR-Therapist-Virtual-Mental-Health-Experience

Overview

VR-Therapist-Virtual-Mental-Health-Experience (VR-Therapist) is a cutting-edge application integrating Virtual Reality (VR) technology and Large Language Models (LLMs) to simulate therapeutic interactions for mental health rehabilitation. This project provides a virtual therapist environment where users can experience immersive and interactive therapy sessions.

Features

  • Immersive Therapy: Offers a virtual therapist in a realistic VR environment.
  • AI-Driven Responses: Utilizes LLMs to generate therapeutic dialogue in real-time.
  • Customizable Interaction: Allows for dynamic interaction based on user input.
  • Virtual Environments: Provides various virtual settings for different therapeutic needs.

Project Structure

1. Figures and Media

  • Figures: Important figures illustrating the VR environment and system architecture.
  • PDF: The research paper detailing the project.
  • Presentation: Project presentation slides.
  • Demo: A video demo.

2. Codebase

The project consists of two main components:

  • Flask Python Server: Handles the backend processing, including speech-to-text conversion and LLM interaction.
  • Unity Project: Manages the VR environment and user interaction.

Setup and Installation

1. Flask Python Server

Requirements

  • Python 3.x
  • Flask
  • Google Speech-to-Text API
  • AWS Polly

Installation

  1. Clone the repository:

    git clone https://github.com/mahmoud1yaser/VR-Therapist-Virtual-Mental-Health-Experience
    
    cd VR-Therapist-Virtual-Mental-Health-Experience/Server
  2. Install the required packages:

    pip install -r req.txt
  3. Create a config.json file based on the provided example in Server/config.json.example.

    • You will need to obtain the following keys:
      • POE Session Key (Note: The POE API service is currently under maintenance and may not be functional at this time.)
      • AWS Polly ACCESS-Key and SECRET-ACCESS-Key
  4. Run the Flask server:

    python app.py

2. Unity Project

Requirements

  • Unity 2022.x or later
  • VR Headset (Oculus Rift, HTC Vive, etc.)

Installation

  1. Open Unity Hub and add the project:

    Open Unity Hub > Add Project > Select `VR-Therapist-Virtual-Mental-Health-Experience/VR-Game`
  2. Go to Assets/Scenes/Menu and run the scene:

    In Unity Editor > Add Project > Assets > Scenes > Menu > Open and Run

How to Use

  1. Start the Flask Server: Ensure the Flask server is running by following the steps in the Flask Python Server section.
  2. Run the Unity Project: Open and run the MainMenuScene in Unity as described.
  3. Initiate Therapy Session: Wear the VR headset, and follow the on-screen instructions to start a therapy session. The virtual therapist will interact with you based on your inputs.

Figures

  • System Diagram: System Diagram

  • Top and Side View of the Environment: Environment View Environment View

  • Isometric View of the Environment: Environment View Environment View

  • Patient Eye Tracking: Patient Eye Tracking

  • Therapist Lip Sync: Therapist Lip Sync

Resources

Demo

We have prepared a demo video to showcase the features and functionality of the VR-Therapist-Virtual-Mental-Health-Experience. The video includes a walkthrough of the system, including setting up the environment, starting a therapy session, and interacting with the virtual therapist.

VR Therapist Demo

Future Work

  • LLM Fine-Tuning: Enhance LLM performance for more accurate therapeutic responses.
  • Integration of Retrieval-Augmented Generation (RAG): Incorporate real-time information retrieval to improve response relevance.
  • Expansion of Therapy Modules: Add more psychological treatment methodologies.
  • Creation of Diverse Virtual Environments: Design various customizable virtual settings.
  • Customization of Virtual Therapist: Allow personalization of the therapist's appearance and interaction style.
  • Patient History Management and Analysis: Implement secure data handling for personalized therapy.

Contributors

License

This project is licensed under the MIT License.

vr-therapist-virtual-mental-health-experience's People

Contributors

mahmoud1yaser avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.