Skip to content
fayizulrahumanPublic

About

AI-powered, privacy-first fall detection for the elderly. Turns an old phone into a smart safety camera using MediaPipe, FastAPI, and React. Sends Telegram alerts with stick-figure snapshots.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

🛡️ FallGuard: AI-Powered Elderly Fall Detection

FallGuard is a privacy-first, edge-computed fall detection system designed for the elderly. It turns an old Android phone into a smart safety camera that detects falls, checks in via voice, and alerts caregivers via Telegram and a live web dashboard.

Disclaimer: This is an assistive safety tool, not a certified medical device.

🚀 Live Links

✨ Key Features

  • Zero New Hardware: Uses an old Android phone (via IP Webcam) and a laptop.
  • Privacy-First: Only processes skeleton keypoints. No real video is ever recorded or sent to the cloud.
  • Smart Escalation: If a fall is detected, it waits 10 seconds, asks "Are you okay?" (with a custom audio prompt), and if there is no response in 30 seconds, it sends a Telegram alert.
  • SOS Gesture: The elder can raise both arms for 3 seconds to trigger an immediate SOS alert.
  • Mobility Trend Tracking: Tracks walking speed over time to provide a preventive fall-risk indicator.
  • Beautiful Caregiver Dashboard: A React/Tailwind dashboard showing live events, alert history, and mobility analytics.

🏗️ System Architecture

  1. Edge Device (Local PC): Runs Python, OpenCV, and MediaPipe to extract body keypoints and calculate fall logic (main.py).
  2. Cloud Backend (Render): A FastAPI server (backend/server.py) that receives events and stores them in the database.
  3. Database (Supabase): A PostgreSQL database storing event logs and mobility metrics.
  4. Alerts (Telegram): Sends text alerts and privacy-preserving stick-figure snapshots to family members.
  5. Frontend (Vercel): A React-based PWA dashboard for caregivers to monitor the elder.

🛠️ Local Setup Instructions

1. Requirements

  • Python 3.10 or 3.11 (MediaPipe compatibility)
  • An old Android phone with the IP Webcam app installed.

2. Installation

git clone https://github.com/fayizulrahuman/fallguard.git
cd fallguard
python -m venv venv
# Windows: venv\Scripts\activate
# Mac/Linux: source venv/bin/activate
pip install -r requirements.txt
https://fallguard-ho7e.onrender.com

About

AI-powered, privacy-first fall detection for the elderly. Turns an old phone into a smart safety camera using MediaPipe, FastAPI, and React. Sends Telegram alerts with stick-figure snapshots.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages