All projects

Real-Time Theft Detection

Spots suspicious behaviour on CCTV video, live or recorded, with four YOLOv10 models.

When
2025
Status
Prototype
Area
Computer vision
Role
Sole author
Real-Time Theft Detection poster

Four YOLOv10 detectors — nano to large — trained to tell people from suspicious activity in CCTV frames. The large model reaches 84.9% mAP@50 on 1,325 held-out images; the nano model gets within 2.3 points of it at 2.2 ms per image on a Tesla T4.

In short

  • Two classes — human and suspicion — trained on the Improved Thief Detection dataset from Kaggle.
  • The same training recipe at four model sizes, all at 640 px, so a camera setup can choose speed or accuracy.
  • Runs on a live CCTV stream or on recorded footage.

The problem

CCTV is recorded far more than it is watched. A detector that flags suspicious behaviour as it happens turns hours of footage into a few moments worth a look — but only if it can run on the hardware behind the cameras, not just on a large GPU.

Constraints

  • Real time: a frame has to be processed before the next one arrives.
  • Hardware differs per site — a single camera box and a central server cannot run the same model.
  • Training on free Colab GPUs (a Tesla T4), in sessions that end.

How it works

  1. CCTV frame

    live stream or recording

  2. YOLOv10

    n · s · m · l, chosen per site

  3. Detections

    human · suspicion

  4. Flagged frames

    suspicion above threshold

  5. For review

    the moments worth a look

The four sizes share one pipeline — only the model file changes.

Decisions

YOLOv10 rather than an older YOLO.

Instead of: YOLOv8, which most tutorials use.

YOLOv10 is trained to predict without non-maximum suppression, so there is less post-processing per frame — the part that adds latency on live video.

Train four sizes instead of picking one.

Instead of: A single model, and live with its speed.

The right trade-off depends on where it runs. With all four trained and measured on the same validation set, the choice per camera is a lookup, not a guess: nano at 2.2 ms per image, large at 15.1 ms with 2.3 points more mAP@50.

Results

84.9%

YOLOv10-l mAP@50

mAP@50-95 56.9% · 15.1 ms per image on a T4

84.1%

YOLOv10-s mAP@50

mAP@50-95 55.5%

83.5%

YOLOv10-m mAP@50

mAP@50-95 53.7% · 9.5 ms per image

82.6%

YOLOv10-n mAP@50

mAP@50-95 53.3% · 2.2 ms per image

What’s next

Turn detections into alerts: track each person across frames so one incident raises one alert, tune the suspicion threshold on real footage, and measure the models on CPUs and edge devices rather than only on a T4.