Skip to content

Repository files navigation

Detectium

Developed by Raiyan Aaijaz, Ayaan Iqbal, Mekhael Thaha, Mevan Solanga, Arine Peltekian

Detectium is a real-time patient monitoring system designed for individuals at risk of delirium episodes. It integrates facial expression analysis, speech pattern tracking, and heartbeat monitoring to assist clinical staff in early detection and intervention.

This project was developed as part of the Pearl Sullivan Engineering IDEAs Clinic Health Tech Innovation Challenge, where it was awarded the title of 'Best Executed' for its innovative design and seamless implementation.

Table of Contents

Key Features and Tools

  • Detectium leverages a variety of cutting-edge technologies to deliver real-time patient monitoring:
Feature Description Technology/Tools
Facial Expression Analysis Real-time monitoring of facial expressions to detect signs of emotional distress. DeepFace, MediaPipe, OpenCV
Speech Pattern Analysis Detects and classifies speech emotions such as aggression, anxiety, and calmness. The patient's conversation is summarized and scanned for delirious dialogue. PyTorch, Hugging Face Transformers (Wav2Vec2 and Speech2Text)
Heartbeat Monitoring Tracks heart rate and detects anomalies using a heartbeat sensor. Arduino, Serial Communication
Web Dashboard Interactive interface displaying live data, including video feed, heart rate, and alerts. TypeScript, Next.js

System Architecture

The system is composed of three key modules working together:

  1. Backend (Flask):

    • Processes real-time video feed from the webcam.
    • Handles serial communication with the Arduino for heart rate monitoring.
    • Manages speech emotion analysis using audio recordings.
  2. Frontend (Next.js):

    • Displays real-time patient data in an easy-to-navigate dashboard.
    • Shows facial expression tracking, speech analysis, and heart rate monitoring on a single page.
  3. Hardware:

    • Arduino connected to a heart rate sensor for continuous monitoring.

Installation

Prerequisites:

  • Python 3.11 or higher
  • Node.js v22.13.1 or higher
  • Arduino IDE (for setting up the heartbeat monitor)
  1. Clone the Repository:
   git clone https://github.com/your-repo/detectium.git
   cd detectium
  1. Set up the Backend:
  • Create and activate a virtual environment
  python -m venv venv
  venv\Scripts\activate
  • Install required Python packages
  pip install -r requirements.txt
  1. Set up the Frontend:
  cd frontend
  npm install
  1. Set up Arduino:
  • Connect Arduino to computer with heartbeat scanner.
  • In apps_util.py update port value to the port your Arduino is connected to.
  1. Run the Backend:
  python app.py
  1. Run the Frontend:
  npm run dev

Usage

  1. Access the dashboard at http://localhost:3000
  2. Monitor Real-Time Data:
    • View live video analysis of facial expressions.
    • Track heart rate on dashboard.
    • Receive alerts when high stress or abnormal speech pattern detected.

Preview

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A real-time patient monitoring system designed for individuals at risk of delirium episodes, integrating facial expression analysis, speech pattern tracking, and heartbeat monitoring to assist clinical staff in early detection and intervention.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages