Problem
A cement plant carries risks that need an immediate response: fire, smoke, missing personal protective equipment, people falling, vehicles in restricted areas. The goal was an autonomous system that analyses camera feeds continuously on servers without a GPU and alerts the right people without generating a stream of false alarms.
Data
- Fire/smoke model trained on 10,000 images
- Training runs on Colab and Kaggle, then models converted to OpenVINO
- Supported video sources: webcam, IP cameras (RTSP), replayed video files and image folders
- Validated on webcam and replayed videos: the site IP cameras are not connected yet
- Alerts flagged as false by operators feed the retraining set
Approach
- 8 YOLOv8 models: fire/smoke, arc flash, PPE, gloves/goggles and falls, conveyor-belt tears, people/animals, vehicles and load control (disabled by default)
- Models run in parallel on CPU with OpenVINO, one thread per camera
- 7-filter rule engine (monitored zones, classes, thresholds, de-duplication…) to limit false alarms
- Object tracking: one alert per person instead of one per frame
- Severity-based Telegram alerts (critical, high, medium, technical) with a snapshot and video clip
- FastAPI API, web interface, alert history in SQLite and PDF report
Results
- Cycle time reduced from 2–2.8 s to 0.18–0.27 s for 6 models, with no GPU
- Fire/smoke model: 92% recall on fire and 80% on smoke
- 179 automated tests, run on every push to GitHub
What I would improve
- Connect the site IP cameras to validate the models in real conditions, beyond replayed videos
- Improve recall on missing helmets and masks (~54%) with images from the site
- Retrain the load-control model with negative images so it can be re-enabled
- Add authentication to the interface, which is currently limited to the internal network