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.
- 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 |
The system is composed of three key modules working together:
-
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.
-
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.
-
Hardware:
- Arduino connected to a heart rate sensor for continuous monitoring.
Prerequisites:
- Python 3.11 or higher
- Node.js v22.13.1 or higher
- Arduino IDE (for setting up the heartbeat monitor)
- Clone the Repository:
git clone https://github.com/your-repo/detectium.git
cd detectium- 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- Set up the Frontend:
cd frontend
npm install- Set up Arduino:
- Connect Arduino to computer with heartbeat scanner.
- In
apps_util.pyupdate port value to the port your Arduino is connected to.
- Run the Backend:
python app.py- Run the Frontend:
npm run dev- Access the dashboard at
http://localhost:3000 - 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.
This project is licensed under the MIT License. See the LICENSE file for details.