FallGuard: Using Edge AI to Monitor Safety with Full Privacy

FallGuard is an innovative project designed to detect falls in a privacy-respecting and efficient way using Edge AI technology. The system is built on the STM32N6570-DK development board paired with the MB1854B camera, enabling intelligent local processing without relying private images to the cloud—ensuring maximum privacy for the user.
Understanding Edge AI
- Instant response - no waiting for internet communication
- Complete privacy - sensitive video never leaves the device
- Reliable operation - works even without internet connection
- Lower costs - no cloud processing fees
- Reduced bandwidth - only sends simple alerts, not video data

- Normal standing/sitting people
- People who have fallen
- The camera captures video frames
- Frames are analyzed at a fixed rate of 20fps by the AI model
- The system looks for the distinctive visual patterns of a person on the ground
- When a fall is detected consistently over several frames, an alert is triggered
- Person detection: 100% precision, 4.9% recall
- Fall detection: 93.8% precision, 20.4% recall
- Processing time: 21.34 milliseconds per frame
Approach 2: Pose Estimation Using Body Movement Analysis

- Head region (keypoints 0-4) - colored green on display
- Shoulders (keypoints 5-6) - colored blue
- Hips (keypoints 11-12) - colored magenta
- Knees (keypoints 13-14) - colored orange
- Ankles (keypoints 15-16) - colored orange
- Calculate the average vertical position of each body region
- Compare positions between different regions
- When any two regions align horizontally (within 30 pixels), this suggests the person is lying down
- Trigger a fall alert only when this condition persists for 6 consecutive frames (300 milliseconds)
- Detects falls as they happen, not just after
- Can work even when the person is partially outside the camera view
- More sensitive to the actual motion of falling
Human Presence Detection with Radar
- Detects both moving and stationary people up to 5 meters away
- Works through walls and in darkness - unlike cameras, radar isn't affected by lighting
- Distinguishes between different types of movement - motion or complete stillness
- Configurable sensitivity zones - can be tuned for specific room layouts via smartphone app over bluetooth.
Intelligent Lighting Control
- Dual photodiode design measures both visible and infrared light
- Wide dynamic range from 0.1 to 40,000+ Lux
- Approximates human eye response to lighting conditions
Comprehensive Alert and Monitoring System
Real-Time Communication with MQTT
- Minimal data usage - perfect for battery-powered devices
- Reliable delivery with three quality-of-service levels
- Publish-subscribe architecture - multiple devices can receive the same alerts

- Instant notifications via Pushbullet and Slack
- Data logging to InfluxDB for historical analysis
- Visual dashboards through Grafana for real-time monitoring

- Optimized for sensor data - designed specifically for time-stamped measurements
- High-speed ingestion - can handle millions of data points per second
- Efficient compression - stores large amounts of historical data economically
- Real-time dashboards showing current system status
- Historical trending of fall incidents and environmental conditions
- Alert management with threshold-based notifications
Comparing the Two Detection Methods
Object Detection= OD / Pose Estimation= PE
Processing Speed | OD: Slower but more certain | PE: Faster response
Partial Visibility | OD: Requires full person in frame | PE: Works with partial visibility
Awkward Positions | OD: Better at detecting unusual fall positions | PE: May struggle with complex poses
False Positives | OD: Lower rate due to temporal filtering | PE: Higher rate, requires careful tuning
Best Use Case | OD: Monitoring unconscious individuals | PE: Active fall prevention
System States and Intelligence
Room State (Environment)
- Radar sensor: Determines if room is empty, has moving people, or stationary people
- Light sensor: Tracks lighting conditions with hysteresis to prevent flickering
- Object detection: Identifies fallen vs. normal postures this is the trained model class
- Pose estimation: Analyzes body positions and movement vectors
- Normal activity - person moving around normally
- Potential concern - person stationary but upright
- Fall with movement - person fell but still moving
- Fall without movement - person fell and completely still (highest priority)
- No cloud dependencies - all AI processing occurs on-device
- Open source code - complete transparency in implementation
- Configurable sensitivity - users control detection parameters
- Local data storage - historical data remains on local network
- Object Detection version: github.com/ginodecock/fall-guard-od
- Pose Estimation version: github.com/ginodecock/fall-guard-pe
Real-World Applications
- Elderly care facilities - 24/7 monitoring without privacy invasion
- Independent living - peace of mind for families
- Rehabilitation centers - tracking patient mobility and safety
- Smart homes - integration with existing home automation
Conclusion
Diskussion (0 Kommentare)