Skip to content

Model Training

Meridian VMS supports fine-tuning the detection model using images collected from your own cameras. By flagging false detections on the Events page and reviewing them in the training interface, you build a dataset that is specific to your environment. The system then fine-tunes the base model, producing a custom model that reduces false positives and improves accuracy for your deployment.

The training process follows a four-stage cycle:

On the Events page, operators can mark individual detection events as false detections. Each flagged event captures the detection thumbnail image along with the bounding box data and class label.

Flagging is non-destructive — the event record is preserved and simply marked with a false_detection flag. Flagged events remain visible in the event list with a visual indicator.

Navigate to Settings > AI Detection to access the training review interface. This page displays all flagged detection images collected from all recording servers.

For each flagged image, the reviewer can:

  • Keep the detection box — Confirm that the bounding box is correct (this was not actually a false detection, or the box should be used as a positive training example).
  • Remove the detection box — Confirm that the detection was indeed false and the box should be treated as a negative example.
  • Skip — Leave the image for later review.

Once a sufficient number of flagged images have been reviewed, initiate a training run. Training can be triggered manually or configured to run on a schedule.

Scheduled training:

  • Configure the training schedule in Settings > AI Detection.
  • Set the preferred time of day for training to run (e.g. overnight when GPU load is lowest).
  • The system automatically collects all reviewed flagged images, prepares the training dataset, and fine-tunes the base model.

What happens during training:

  1. Flagged and annotated images are collected from all detection-enabled recording servers.
  2. The images are prepared as a training dataset with corrected annotations.
  3. The base detection model is fine-tuned using the collected dataset.
  4. The resulting custom model weights are saved.

After training completes, the custom model is distributed to all detection-enabled recording servers:

  1. The trained model file is uploaded to the management server.
  2. Each recording server’s detection engine is notified to download and load the new model.
  3. The detection engine loads the custom model, replacing the base model for inference.

The custom model takes precedence over the base model. If the custom model file exists on a recording server, it is loaded automatically on startup.

The training archive is a persistent collection of all flagged and annotated images used across training runs. Key properties:

  • Persists across model switches — If you change the base model (e.g. from Small to Medium), the training archive is retained. A new training run will fine-tune the new base model using the existing archive plus any new flagged images.
  • Cumulative — Each training run adds to the archive. Images from previous training runs are included in future runs, providing a growing dataset that continually improves the model.
  • Per-deployment — The archive is specific to your Meridian VMS deployment and reflects the unique characteristics of your camera environments.

The effectiveness of model training depends on several factors:

FactorImpact
Number of flagged imagesMore examples lead to better generalisation
Diversity of environmentsImages from different cameras, lighting, and weather improve robustness
Accuracy of annotationsCorrectly marking true vs. false detections is critical
Training frequencyRegular training incorporates recent environmental changes

Recommended minimums:

  • At least 50 flagged images before the first training run
  • A mix of true positives (correctly kept) and false positives (correctly removed)
  • Images from multiple cameras and times of day
SettingLocationDescription
Training scheduleSettings > AI DetectionTime of day for automatic training
Manual training triggerSettings > AI DetectionStart a training run immediately
Review queueSettings > AI DetectionList of flagged images awaiting review
Custom model statusSettings > AI DetectionShows whether a custom model is active
  • Training requires a GPU on the recording server where the training job runs.
  • Training does not add new object classes — it fine-tunes detection accuracy for existing classes.
  • The training dataset should contain a balanced mix of positive and negative examples for best results.
  • Very small datasets (fewer than 20 images) may not produce meaningful improvements.