ambianic / fall-detection

Python ML library for people fall detection
Apache License 2.0
83 stars 16 forks source link

feat: reduce false positives when there are multiple persons in view #10

Open ivelin opened 3 years ago

ivelin commented 3 years ago

Is your feature request related to a problem? Please describe. Users report that fall detection triggers false positives when there are multiple persons in view. See attached screenshots. This is a known issue for single person PoseNet models.

Describe the solution you'd like A sophisticated solutions would be to implement multiple person tracking in a sequence of video frames.

An interim practical improvement would be to discard frames with multiple persons. This is a reasonable approach because:

For the interim solution we can use a multi person posenet model and simply discard frames when the model detects multiple persons in a frame. That will avoid potential false fall detections. Testing shows that multi-person posenet models take slightly more CPU time for inference than single person models (2-3 fps vs 3-4 fps on rpi4), which is a reasonable tradeoff since we only need 1fps for fall detection.

Describe alternatives you've considered A sophisticated solutions would be to implement multiple person tracking in a sequence of video frames. Respectively track and detect falls for each individual person as they move between frames.

Additional context Screenshots from users with false positives below.

screen_shot_2021-02-05_at_11 36 40_am screen_shot_2021-02-05_at_11 36 03_am screen_shot_2021-02-05_at_11 36 54_am