Detecting fall and not-fall events in videos using SVM
This repository provides a simple pipeline for detecting fall events in video sequences using a Support Vector Machine (SVM) classifier.
This project detects fall vs. not-fall events in videos:
- Features are extracted from video frames.
- A Support Vector Machine (SVM) is trained on these features.
- The trained SVM is used to classify new video sequences.
- Define the path to save extracted features of fall and not-fall events from training videos.
- Define the path to the training videos.
- Define paths to all extracted features (new and old).
- To extract features for fall and not-fall events during runtime, press the
zkey.
β‘ Feature extraction is required before training the SVM.
- Define the path where the trained SVM should be saved.
- Run the training script with your extracted features to train the classifier.
The SVM model will learn to distinguish between fall and not-fall events based on the features.
- Define the path to the trained SVM.
- Define the path to a test video.
- Run the detection script to classify fall and not-fall events in the video.
The SVM predicts frame-wise or event-wise labels using the learned model.
Below is an example output of the fall-detection system:
result.mp4
- The dataset for training and testing was collected by Mr. Farahnezhad, who also contributed to code development.
- This video shows a demonstration of fall vs. not-fall detection in action.
We thank Mr. Farahnezhad for providing the dataset and supporting the development of this project.