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.
- Caregiver Dashboard: https://fallguard-ho7e.onrender.com (Replace with your Vercel / Render link)
- Telegram Alert Bot: https://t.me/FallGuardAlertBot (Replace with your Bot link)
- Local Camera Stream (IP Webcam):
http://192.168.1.xxx:8080(Replace with your phone's local IP when running)
- 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.
- Edge Device (Local PC): Runs Python, OpenCV, and MediaPipe to extract body keypoints and calculate fall logic (
main.py). - Cloud Backend (Render): A FastAPI server (
backend/server.py) that receives events and stores them in the database. - Database (Supabase): A PostgreSQL database storing event logs and mobility metrics.
- Alerts (Telegram): Sends text alerts and privacy-preserving stick-figure snapshots to family members.
- Frontend (Vercel): A React-based PWA dashboard for caregivers to monitor the elder.
- Python 3.10 or 3.11 (MediaPipe compatibility)
- An old Android phone with the IP Webcam app installed.
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