FallSense is an open-source AI application with a sleek UI, powered by a fine-tuned YOLOv7 model (PyTorch) for real-time stroke and fall detection. Designed for monitoring elderly patients and individuals at risk, FallSense provides instant alerts, automatic video recording, and actionable analytics to help caregivers and medical professionals respond quickly and effectively.
- Utilizes a state-of-the-art YOLOv7 model, fine-tuned on real CCTV footage for robust detection of sudden strokes and falls.
- Fast, accurate, and reliable—works with live camera feeds or video files.
- Instantly records and saves video clips when a fall or stroke is detected.
- Footage is stored locally for later review, medical analysis, or model retraining.
Automatically records and saves the falling moment for future analysis (only work in live camera feature)
- Load and analyze previously recorded events.
- Useful for both medical professionals and AI researchers.
Allows user-uploaded footages for further analysis
- Modern, intuitive PyQt5 GUI.
- Easy toggles for camera, video, and keypoint visualization.
- Customizable settings for recording, saving, and flipping video feeds.
Toggle keypoint (skeleton) display
Flip the camera (only in camera mode)
Setting the folder where footages will be stored
- Install Miniconda
- Create a new virtual environment:
conda create -n fallsense python=3.11.10 conda activate fallsense
git clone https://github.com/ngotphong/fall-detection.git
cd fall-detectionpip install -r requirements.txt- Download the fine-tuned YOLOv7 weights from Hugging Face
- Place the file in the
weights/directory:weights/ └── fall_detection_person.pt
python Main_Gui.pyFallSense/
├── GUI/
│ └── images/
│ └── logo.png
├── weights/
│ └── fall_detection_person.pt
├── Main_Gui.py
├── src/
│ └── ...
├── requirements.txt
└── README.md
Tips:
- Add your screenshots/GIFs in the "Screenshots" section.
- Update the Hugging Face/model links as needed.
- Add badges (build, license, etc.) at the top for extra polish.
Let me know if you want a more minimal or more technical version!
Contributions are welcome!
- Please open issues for bug reports or feature requests.
- Pull requests are encouraged for improvements, new features, or documentation updates.
This project is licensed under the MIT License. See LICENSE for details.
- YOLOv7 by WongKinYiu
- Hugging Face Model Hosting
- PyTorch, OpenCV, PyQt5, and the open-source community
For questions, support, or collaboration, please open an issue or contact ngotphong.



