Skip to content

Costopoulos/Dementia-Severity-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dementia Severity Classifier

Vocal AI-powered dementia assessment system with conversational interface with Simli avatars and MMSE-based severity classification.

🌐 Live Demo: https://caresmafe-production.up.railway.app/

Features

  • Interactive Voice Conversation: Real-time voice interaction with AI avatar
  • Automated Assessment: MMSE-based cognitive scoring across 5 domains
  • Visual Avatar: Simli-powered avatar with lip-sync
  • Care Plan Generation: Personalized recommendations based on severity
  • CLI Tool: Standalone script for analyzing existing transcripts

Setup

1. Install Dependencies

# Backend
cd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# Frontend
cd ../frontend
npm install

2. Configure Environment Variables

# Backend .env
cd backend
cp .env.example .env
# Edit .env and add: OPENAI_API_KEY, INWORLD_API_KEY, CARTESIA_API_KEY

# Frontend .env
cd ../frontend
cp .env.example .env
# Edit .env and add: VITE_SIMLI_API_KEY, VITE_SIMLI_FACE_ID (optional)

3. Run the Application

# Terminal 1: Start backend
cd backend
source venv/bin/activate
uvicorn app.main:app --reload

# Terminal 2: Start frontend
cd frontend
npm run dev

Visit http://localhost:5173 to use the application.

CLI Tool Usage

Analyze existing transcripts without running the full application:

cd backend
source venv/bin/activate

# Analyze a transcript
python3 cli.py --path <fileName>.txt
python3 cli.py --path <fileName>.json

# Output as JSON
python3 cli.py --path <fileName>.json --output-json

Supports .txt and .json input files.

Severity Levels

Score Severity Follow-up
25-30 Normal 12 months
20-24 Early 6 months
10-19 Mid 1 month
0-9 Late 1 week

Testing

cd backend
source venv/bin/activate

# Run all tests
pytest

# Run without API calls
pytest -m "not integration"

API Keys Required

Disclaimer

This is an automated screening tool, not a clinical diagnosis. Professional evaluation by qualified healthcare providers is required for any medical decisions.

About

Vocal AI Dementia Severity Calculation with Simli Avatars & Care Personalization App using Cartesia Ink & Inworld

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors