Traditional surveillance systems face challenges such as:
- High latency in live video streaming.
- Limited ability to process data in real time.
- Inefficient anomaly detection requiring manual monitoring.
- High bandwidth consumption when transmitting raw video continuously.
- Security concerns with unencrypted or poorly managed camera feeds.
👉 To address these challenges, we propose Smart Surveillance powered by 5G.
Our system leverages edge computing, AI/ML-based anomaly detection, and secure data storage to detect threats in real time and notify administrators immediately — transmitting only anomalous frames instead of continuous video.
-
5G Integration
- High bandwidth and ultra-low latency.
- Supports real-time anomaly detection and rapid alerts.
-
Edge Computing
- Video frames are processed locally (on the camera or nearby edge server).
- Reduces cloud dependency and improves response time.
-
AI/ML Models
- Uses YOLOv5 (PyTorch) for object detection.
- Detects anomalies such as weapons, fire, suspicious objects, and fights.
- Configurable anomaly classes (
ANOMALY_CLASSES).
-
Database Integration
- PostgreSQL is used to log anomalies.
- Stores anomaly name, confidence score, timestamp, and frame (as binary data).
- Can be extended to store file paths or integrate with dashboards.
-
Cybersecurity
- Secure storage of database credentials using .env files.
- Future scope: add encryption for data transmission (TLS/SSL).
-
Visualization & Alerts
- Annotated video feed shows real-time detections.
- Console alerts highlight anomalies with timestamps.
- Frames containing anomalies are stored in PostgreSQL for auditing.
- 5G-enabled cameras capture live footage.
- Edge computing (local inference with YOLOv5) processes video in real time.
- AI/ML anomaly detection identifies threats instantly.
- System triggers alerts and saves anomalies into PostgreSQL.
- Cloud/DB storage preserves frames for audit and retraining.
- Admins review anomalies without needing to sift through hours of video.
- Programming Language: Python
- Deep Learning Framework: PyTorch
- Object Detection Model: YOLOv5 (Ultralytics)
- Database: PostgreSQL 17
- Environment Management: dotenv
- Libraries: OpenCV, psycopg2, requests
git clone https://github.com/your-username/5g-smart-surveillance.git
cd 5g-smart-surveillance