The project's README from github.com/AwaisShah75/Real-Time-Person-Elderly-Fall-Detection-System. As one markdown file: README.md.
An enterprise-grade, edge-compatible AI computer vision system designed to detect accidental falls in real-time under severe visual occlusions (behind furniture, tables, beds, couches) while completely eliminating false positives from daily activities such as sitting down, tying shoelaces, or sleeping in bed.
MONITORING (RESTING) in calm green, zero false sirens).You only need ONE command:
python run.py
*(Or on Windows, simply double-click run.bat)*
======================================================================
🛡️ AI PERSON & ELDERLY FALL DETECTION SYSTEM
Advanced Occlusion Resilience & Kinematic Tracking
======================================================================
Select an input option:
[1] 📹 Live Webcam (Real-time monitoring)
[2] 📁 Custom Video File (Auto-detects videos + Drag & Drop)
[3] 🧪 Synthetic Occlusion Fall Demo (Built-in test)
[4] ❌ Exit
======================================================================
1, 2, 3, 4, 5), or accepts any drag-and-dropped .mp4 / .avi file.sample_videos/)The repository includes real-world benchmark fall test videos:
| # | Video File | Scenario & Purpose | Expected Result |
|---|---|---|---|
| 1 | sample_videos/standing_fall_1.mp4 |
🏃 Sudden collapse fall from standing | Instant [ALERT] FALL DETECTED |
| 2 | sample_videos/standing_fall_2.mp4 |
🍌 Slip & backward fall from standing | Instant [ALERT] FALL DETECTED |
| 3 | sample_videos/sitting_to_fall.mp4 |
🪑 Senior citizen falling off chair | Instant [ALERT] FALL DETECTED |
| 4 | sample_videos/bed_rollout_fall.mp4 |
🛏️ Roll-out fall from bed onto floor | Instant [ALERT] FALL DETECTED |
| 5 | sample_videos/normal_activity_no_fall.mp4 |
🚶 Walking, sitting & sleeping (ADL) | MONITORING (RESTING) (Zero False Alarms) |
┌─────────────────┐ ┌──────────────────────┐ ┌────────────────────────┐
│ Video / Webcam │ ──> │ YOLOv8-Pose Backbone │ ──> │ Occlusion Resilience │
│ Stream │ │ Keypoint Extractor │ │ & Bone Imputation │
└─────────────────┘ └──────────────────────┘ └────────────────────────┘
│
┌─────────────────┐ ┌──────────────────────┐ ▼
│ HUD Visualizer │ <── │ Multi-Stage Fall FSM │ <── ┌────────────────────────┐
│ & Alert Engine │ │ State Transitions │ │ Kinematic Extractor │
└─────────────────┘ └──────────────────────┘ │ (v_y, Angle, ω, Energy)│
└────────────────────────┘
[ MONITORING ] ──( v_y > 0.7 h/s OR ω > 35°/s )──> [ FALL_DETECTED ]
▲ │
│ ( > 1.5s Stillness )
( Stands Up ) │
│ ▼
[ MONITORING ] <──────( Upright Motion )─────── [ CONFIRMED_FALL ]
d:\A New Fall Detecion Sytem\
├── run.bat # One-click Windows desktop launcher
├── run.py # Interactive CLI runner with continuous loop
├── fall_detection_all_in_one.py # Standalone all-in-one pipeline (Zero sub-dependencies)
├── core/
│ ├── detector.py # YOLOv8-Pose wrapper & keypoint extractor
│ ├── tracker.py # Multi-person temporal tracklet manager
│ ├── occlusion.py # Occlusion engine, Kalman extrapolation & bone imputation
│ ├── kinematics.py # Biomechanical kinematic feature engine
│ ├── state_machine.py # Multi-stage Fall State Machine
│ └── visualizer.py # Telemetry HUD visualizer & alert banners
├── sample_videos/ # Benchmark fall test dataset
│ ├── standing_fall_1.mp4 # Sudden collapse fall
│ ├── standing_fall_2.mp4 # Slip and fall
│ ├── sitting_to_fall.mp4 # Chair fall
│ ├── bed_rollout_fall.mp4 # Bed roll-out fall
│ └── normal_activity_no_fall.mp4 # Normal ADL baseline (zero false alarm test)
├── test_generator.py # Synthetic occlusion test scenario generator
├── requirements.txt # Clean dependency manifest
├── FALL_DETECTION_SYSTEM_DESIGN.md # Comprehensive research & mathematical design spec
└── README.md # Documentation & quickstart guide
If you prefer direct command-line execution without the interactive menu:
# Run on webcam (device 0)
python fall_detection_all_in_one.py --source 0 --show
# Run on a specific video file
python fall_detection_all_in_one.py --source sample_videos/standing_fall_1.mp4 --show --save output_result.mp4
# Run synthetic occlusion demo
python fall_detection_all_in_one.py --source demo --show
For full mathematical formulations, biomechanical formulas, Kalman filter state equations, and multi-view homography matrices, refer to: 👉 FALL_DETECTION_SYSTEM_DESIGN.md