Skip to content

Sleek UI with fine-tuned model using PyTorch based YOLOv7 application for stroke detection and monitoring old patients and targets at risk.

License

Notifications You must be signed in to change notification settings

ngotphong/FallSense

Repository files navigation

Project Logo

FallSense

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.


🚀 Features

1. Real-Time Stroke & Fall Detection

  • 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.

Live Camera Live Camera feature

2. Automatic Event Recorder

  • 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.

Automatic recorder Automatically records and saves the falling moment for future analysis (only work in live camera feature)

3. Detection Analysis & Review

  • Load and analyze previously recorded events.
  • Useful for both medical professionals and AI researchers.

Video Mode Allows user-uploaded footages for further analysis

4. User-Friendly Interface

  • Modern, intuitive PyQt5 GUI.
  • Easy toggles for camera, video, and keypoint visualization.
  • Customizable settings for recording, saving, and flipping video feeds.

Keypoint detection Toggle keypoint (skeleton) display Flip camera Flip the camera (only in camera mode) Set folder Setting the folder where footages will be stored


📸 Screenshots

gif1 ss2


🛠️ Installation & Setup

1. Prepare Environment

  • Install Miniconda
  • Create a new virtual environment:
    conda create -n fallsense python=3.11.10
    conda activate fallsense

2. Clone the Repository

git clone https://github.com/ngotphong/fall-detection.git
cd fall-detection

3. Install Dependencies

pip install -r requirements.txt

4. Download Model Weights

  • Download the fine-tuned YOLOv7 weights from Hugging Face
  • Place the file in the weights/ directory:
    weights/
      └── fall_detection_person.pt
    

5. Run FallSense

python Main_Gui.py

📂 Project Structure

FallSense/
├── 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!


🤝 Contributing

Contributions are welcome!

  • Please open issues for bug reports or feature requests.
  • Pull requests are encouraged for improvements, new features, or documentation updates.

📄 License

This project is licensed under the MIT License. See LICENSE for details.


🙏 Acknowledgements


📬 Contact

For questions, support, or collaboration, please open an issue or contact ngotphong.


About

Sleek UI with fine-tuned model using PyTorch based YOLOv7 application for stroke detection and monitoring old patients and targets at risk.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages