r/computervision • • 18d ago

Discussion Tuning for physical security.

It’s pretty obvious that tuning a small model on actual surroundings yields much more accurate results for day-to-day activity. Even small/tiny models on dated architectures seem to do really well when looking at things they are familiar with.

My question is how does this relate to security when you are looking for events that are anything but day-to-day where you have no idea what people may look like, what the lighting may be at that moment, and where they will be coming from?

Are you better off sticking to a much larger pretrained model from the likes of Ultralytics or Roboflow? These don’t seem to make many mistakes with people. Compute resources are basically limitless with these tasks with modern NPUs and a detection pipeline that makes sense for the possible activity.

2 Upvotes

4 comments sorted by

1

u/frgfm 17d ago

I'd keep the big pretrained detector as the base for people and tune on the site mostly to cut false alarms: the shadow that moves every afternoon, the cat, headlights at night. A small model tuned on local footage learns the background really well, and that's the opposite of what you want for the one event that doesn't look like any other day.

For the events you'll never capture on site, I've been generating synthetic ones in Blender and game engines: someone coming from an odd angle, at night, half hidden. The visual gap is real, but it at least lets me test those cases before they happen.

Do you have any real intrusion footage from the site to evaluate on, or would you be testing mostly on staged walkthroughs?

1

u/Least_Order4249 17d ago

I really don’t get false alarms with any of the newer, larger pretrained stuff like yolo26L.  I’m a robotics guy (not the fancy AI robots) but vision enthusiast and always wonder what might be lost whenever I try to modify models.  Ideally I’d like a diverse detection model to do everything In one pass, but I am learning that I am getting better results deploying a different tool for each individual problem. 

2

u/Careless_Abalone_505 17d ago

In physical security, sticking to a strong, large general-purpose pretrained model (like YOLO-L/X or RT-DETR) for the primary person/object detection stage is almost always the right call.

The biggest risk of fine-tuning a small model on local camera footage is overfitting to daytime backgrounds and "normal" appearances. When a rare event happens at 3 AM in heavy rain, or someone wears unusual gear/coats, a locally fine-tuned small model often suffers from catastrophic forgetting and misses the exact edge case you actually care about.

Since you have plenty of NPU compute, the most reliable production pattern is a two-stage cascade:

  1. Stage 1 (General Detector): Run a large, un-tuned foundational detector to reliably catch any human or vehicle across all lighting and weather conditions.
  2. Stage 2 (Scene-Specific Logic / Classifier): Use lightweight scene-tuned models, tracking zones, or anomaly rules only after a person is detected to filter out routine false positives (like swaying trees or shadows).

That way, you get the broad generalization of a massive dataset without sacrificing sensitivity to rare security events!