
Blog - FixedIT Edge UnlockedPractical insights from the frontlines of apps at the edge on Axis devices.






Monitor edge-deployed computer vision pipelines with AI-driven anomaly detection and real-time dashboards, enabling reliable insights and natural language queries for your Axis network cameras.
Computer vision (CV) is rapidly transitioning from pilots to production; for example, companies like Obvio.ai use AI-driven cameras to detect unsafe driving behaviors, such as school-zone violations and distracted driving. Some Axis Technology Integration Partners (TIP) like FF Group run license plate and vehicle recognition directly on Axis cameras to support tolling, congestion management, and law enforcement.
These examples highlight the growing reliance on edge-based CV pipelines, which bring substantial advantages such as reduced latency, improved data privacy, lower bandwidth demands, and real-time decision-making close to the source. However, these distributed systems also require careful maintenance, as environmental changes, hardware drift, algorithmic shifts, and, most importantly, data drift can cause models to silently degrade, with failures often going unnoticed. At scale, when hundreds or thousands of cameras are deployed across cities or enterprises, the lack of systematic monitoring becomes a serious operational risk; one that AI-driven anomaly detection is designed to address.
The FixedIT Data Agent addresses this gap by turning edge-deployed CV systems running in the Axis network cameras into fully observable infrastructure. Running on Axis cameras, it collects inference metrics directly on-device, streams them securely into time-series storage, and powers real-time dashboards. In this blog, we show how to enable non-technical users to query the data in plain language via an OpenAI interface, translating questions into database queries. While this AI-driven querying capability is not built into the FixedIT Data Agent itself, it represents a powerful extension that we will explore in this article.
We’ll build a system that captures key computer vision (CV) pipeline metrics sourced from camera logs , streams them into InfluxDB, applies anomaly detection, and transforms the results into dashboards and AI-driven insights. We’ll also demonstrate how an integrated LLM can enable simple natural-language querying and possibly automated alerts (e.g., via Slack) that summarize detected issues in real time.
Out of the box, the FixedIT Data Agent monitors CPU, RAM, disk, etc., and provides a solid foundation for assessing device health. However, when it comes to understanding a CV model’s real-world performance, this is just the starting point and can be extended to include CV-specific metrics. Machine learning observability is crucial, as models operate on dynamic data that can change over time.
In the world of ML, unseen changes in input data or concept drift (a shift in the relationship between inputs and outputs) can cause the model’s predictions to become unreliable, even if the process is still running. An ML observability approach involves continuously tracking key model metrics (not just system metrics) to catch deviations early.
Key CV-specific metrics include: inference latency (time per frame) and detection confidence scores. If it spikes, the system may fail to respond in time and struggle to catch up later, leading to gaps in analytics. Persistent or recurring latency spikes can also signal deeper issues—such as insufficient hardware capacity or software inefficiencies. Low latency is crucial for ensuring robust and responsive AI. Meanwhile, tracking confidence scores provides an early warning of model drift or degraded image quality.
For instance, a model might still output a high confidence for “person” in every frame, but if the mean confidence gradually drops or the distribution shifts, that could signal unseen problems (e.g., low light or a new camera angle).
Beyond these, it is also useful to record metadata such as the camera hostname, serial number, application name, and process ID as tags for filtering and debugging. We recommend tagging each metric with the camera serial number or hostname, the application ID, and the process ID generating it.
In summary, observability for CV pipelines means tracking both system health and model-level metrics so that “model failures” (like drift or delays) do not go unnoticed.
Effective monitoring of a vision model in production requires capturing a variety of metrics and events. Below are the key items to collect from each frame or batch of frames and the variable names which correspond to the specific fields used in the example code later in this guide:
Pipeline Latency (preprocessing_latency_ms, inference_latency_ms, and parsing_latency_ms): The time (in milliseconds) the pipeline takes to process a frame and output results. These metrics are critical for real-time systems: increases or spikes can indicate performance bottlenecks that must be addressed.
Preprocessing: The time it takes to prepare the image for serving to the deep learning model. This might include format conversion, cropping and rescaling.
Inference: The time it actually takes to run the deep learning model. In our case, this includes the time it takes to move the image to the accelerator hardware and to move the output tensor back to primary memory.
Parsing: The time it takes to postprocess the output. In our case, this consist of parsing the output tensor and performing Non-Maximum Suppression (NMS).
Detection Confidence (cls_likelihood): The confidence (likelihood) of the predicted class for each detected object. Monitoring class-wise confidence levels helps catch model drift or low-quality inputs. Detection confidence reflects how sure the model is about what the object is.
Object Confidence (obj_likelihood): The confidence in the detection of an object (often the maximum over classes). Tracking object-level confidence across frames can reveal when detections become unreliable. Object confidence reflects how sure it is that an object exists at all.
Object Identity (object_id): A unique identifier assigned to each detected object, allowing the system to track the same object across frames and distinguish it from others in the scene.
Additionally, we tag each metric point with some metadata: the camera host name, the app or ACAP application name, and the process ID (PID) of the process. Tracking the PID allows us to detect if the application restarted or crashed and to compare behavior before and after a restart. This can be further extended for example, by recording the application’s start time, which helps identify issues like longer inference times during initialization. These tags make it easy to filter dashboards by camera or process, enabling rapid root-cause analysis when issues arise.
The data is sent from the Fixed Data Agent to InfluxDB. In InfluxDB, tags are indexed key-value pairs used for filtering and grouping data efficiently, while fields are the actual measured values stored for analysis. Below is a summary of the main metrics and tags we collect:
host (tag)
type: string
Hostname or ID of the Axis camera
app (tag)
type: string
Application name (e.g., "yolov5 ACAP module")
pid (tag)
type: integer
Process ID of the inference application
label (tag)
type: string
Class label of the detected object
preprocessing_latency_ms (field)
type: integer
Preprocessing time per frame (milliseconds)
inference_latency_ms (field)
type: integer
Inference time per frame (milliseconds)
parsing_latency_ms (field)
type: integer
Postprocessing time per frame (milliseconds)
obj_likelihood (field)
type: float
Overall confidence for the detected object
cls_likelihood (field)
type: float
Confidence for the predicted class of the object
object_id (field)
integer
Unique identifier for each detected object track
In this section, we’ll walk you through the step-by-step process of running YOLOv5 with MLOps monitoring metrics in Axis camera.
To illustrate this approach, an Axis network camera is running a YOLOv5 ACAP (Axis Camera Application Platform) app that detects objects such as people, chairs, and laptops in its field of view. If you want to detect other types of objects, you can easily extend the ACAP application by training your own deep learning model. You can read more about that in our blog post "How To Train and Deploy Your Own Edge-Based Object Detection Models Using Deep Learning for the Axis IP Cameras with ACAP (The Ultimate guide)".
The YOLOv5 app processes each video frame and logs metrics to the system log.
A FixedIT Data Agent (running on the same camera) then tail-reads these logs and forwards the parsed metrics into InfluxDB. This approach is just one way to extract information from the application—suitable here because the open-source YOLOv5 app already logs all relevant data to the system log. By tracking these metrics over time, we can catch silent failures.
The modular architecture of FixedIT.ai’s solutions supports our needs at each step. Specifically, the FixedIT Data Agent runs on-device, using Telegraf input/output plugins to collect data from the YOLOv5 app logs and stream it out. This on-camera processing means no sensitive data in the logs ever leaves the device; only processed metrics are transmitted. If the connection to the database is lost, the FixedIT Data Agent can buffer metrics locally and automatically backfill them once the connection is restored, ensuring no observability data is lost.
The overall architecture is as follows:

Architecture of the system for data ingestion, anomaly detection, dashboards, and AI insights with the Axis camera and ACAP apps.
The following components are used:
Axis Camera: All edge apps runs directly in the Axis camera which is also responsible for collecting the image frames. Axis cameras has amazing image quality, especially in challenging situations, and is therefore a good platform to deploy computer vision solutions with.
YOLOv5 ACAP app: The camera runs a YOLOv5 edge application that performs object detection on live video. The app logs each inference’s latency and detection details to the system log.
FixedIT Data Agent (Plumber) app: Installed on the camera, it tails the YOLOv5 logs, parses them via Telegraf, and sends the resulting metrics to a time-series database. This behavior comes from a custom configuration uploaded by the user using the extendability of the FixedIT Data Agent. The custom configuration can be adapted to parse other log formats or metrics sources as needed.
InfluxDB (on-prem or cloud): The database that will receive and store the CV metrics, tagged by host/app/label. This is a high-performance, write-optimized store suitable for time-series analytics.
Grafana Dashboards: Connects to InfluxDB and provides real-time visualizations of the metrics. Dashboards can display trends, histograms, and tables to reveal performance patterns.
OpenAI / LLM Interface: The API used to build the natural-language front-end for non-technical stakeholders. Users can type queries in plain English, which gives them analytical answers about the state of the deep learning inference.
This setup ensures that all CV-specific telemetry is captured and visualized, while the large language model (LLM) interface lowers the barrier for interactive exploration of the data.
Now, when we have a high-level overview of the monitoring system, let’s look at it technically:
Before setting up monitoring and anomaly detection, ensure the following components are in place:
Axis Camera: A compatible Axis device (e.g., ARTPEC-8/9 based) capable of running the ACAP applications. See the apps documentation for compatibility information.
FixedIT Data Agent: Should already be installed on the camera to robustly and securely collect and forward metrics. See the manual for more information.
InfluxDB: You should already have this time-series database setup so we can store detection metrics. See the FixedIT Data Agent Quick Start guide for more info.
Grafana: The framework should be set up so we can create real-time visualization dashboards and trend analysis. See the FixedIT Data Agent Quick Start guide for more info.
OpenAI API Key: Make sure you have an account setup and an API key.
Deploying YOLOv5 on Axis devices requires building the model as an ACAP application and installing it onto the target camera. The Axis examples repository includes native C examples that provide a great starting point. In this guide, we’ll focus on the yolov5-detection ACAP app. The open-source example provide a convenient way to get started, but the same approach can also be applied to other deep learning ACAP applications.
The instructions here have been tested on Windows 11 (for more info, see "What OS do I need on my developer machine"). For detailed guidance on building, running, and managing ACAP applications, see our ACAP Intro course, which covers these topics and much more. The course also provides instructions for Linux and MacOS since the exact commands might differ slightly.
From the application directory, build the application image with Docker:
docker build --tag <APP_IMAGE> --build-arg ARCH=<ARCH> --build-arg CHIP=<CHIP> .Where:
<APP_IMAGE>: is a tag name for the image that you decide (e.g., "object_detection_yolov5:1.0"), this can be set to any name you choose, as long as it is used consistently throughout the build and deployment process
<ARCH> is the SDK architecture to build with ("armv7hf" or "aarch64")
<CHIP> is the target chip ("artpec9", "artpec8", or "cpu"
Copy the compiled ACAP application (.eap) from the container image to your host:
$cid = docker create <APP_IMAGE>
docker cp ${cid}:/opt/app .\buildThe build directory will now contain the .eap artifact (e.g., object_detection_yolov5_<CHIP>_1_0_0_<ARCH>.eap).
Open the Axis device GUI by going to the IP of the camera. Then follow these steps:
Navigate to "Apps" and press "+ Add app".
Select the .eap file generated earlier.

Installing the .eap application
Click "Install" and then enable the app's slider to run the application.
Once installed, the application will run YOLOv5 inference on live video streams. Using the video overlay API, detected objects are drawn directly on the video feed. You can access the stream via the "Video" → "Stream" tab in the camera’s web interface.
In addition, logs provide detailed insights into each frame’s lifecycle, including preprocessing, inference, and parsing times, along with per-object detection details:
[ INFO ] object_detection_yolov5: Ran pre-processing for 20 ms
[ INFO ] object_detection_yolov5: Ran inference for 60 ms
[ INFO ] object_detection_yolov5: Ran parsing for 1 ms
[ INFO ] object_detection_yolov5: Object 1: Label=truck, Object Likelihood=0.57, Class Likelihood=0.75
[ INFO ] object_detection_yolov5: Object 2: Label=car, Object Likelihood=0.75, Class Likelihood=0.91
[ INFO ] object_detection_yolov5: Object 3: Label=car, Object Likelihood=0.83, Class Likelihood=0.94These logs form the primary source of structured metrics such as inference latency, class likelihood, and object likelihood that will later be scraped by the FixedIT Data Agent and ingested into InfluxDB. While convenient for demonstration, this method is not efficient or recommended for production, but we use it here as it avoids recompiling the YOLOv5 example app with any code changes.
These logs are customizable as well; the ACAP application’s C code uses the syslog feature to write into the system log (e.g., /var/log/info.log etc). This enables developers to decide exactly which metrics are logged.
A critical component of this monitoring architecture is the FixedIT Data Agent, which runs directly on Axis cameras. The FixedIT Data Agent is responsible for:
Collecting structured logs and metrics generated by the YOLOv5 ACAP application
Transforming raw log entries into machine-readable time-series fields and tags
Pushing these metrics securely to downstream systems such as InfluxDB and Grafana
By operating on the device itself, the FixedIT Data Agent ensures that sensitive data never leaves the camera unprotected. It also makes sure that the camera does not need to be reachable from the database server. As long as the camera has internet access, it can push the metrics to an InfluxDB instance. This makes the solution portable and the setup of cameras simple.
In practice, the YOLOv5 ACAP script produces logs such as:
[ INFO ] object_detection_yolov5: Object 3: Label=car, Object Likelihood=0.83, Class Likelihood=0.94Each line contains valuable metrics, such as object IDs, detection labels, likelihoods, and inference latency, that need to be extracted in a structured format.
The FixedIT Data Agent leverages the open-source tool Telegraf and its tail plugin, running in the FixedIT provided runtime, to parse logs using GROK patterns. GROK patterns are predefined regular-expression templates that extract structured data from unstructured log lines. In this setup, we use them to parse metrics such as inference latency, class likelihood, and object likelihood from the YOLOv5 logs for ingestion into InfluxDB.
The following configuration file for the FixedIT Data Agent extracts fields like inference_latency_ms, object_id, label, obj_likelihood, and cls_likelihood, while attaching tags for host, pid, and app. The results are then written to InfluxDB as time-series data with precise timestamps.
Here is an example configuration file:
[agent]
# The debug mode (true/false) which controls the verbosity of Telegraf.
debug = ${TELEGRAF_DEBUG:-false}
# Parse INFO logs for structured key-value pairs
[[inputs.tail]]
files = ["${INFO_LOG_FILE:-/var/log/info.log}"]
from_beginning = ${FROM_BEGINNING:-false}
data_format = "grok"
name_override = "yolov5_metrics"
grok_patterns = [
# Inference timing
'%{TIMESTAMP_ISO8601:timestamp} %{HOSTNAME:host} \[\s*%{LOGLEVEL:level}\s*\] %{WORD:app}\[%{NUMBER:pid}\]: Ran inference for %{NUMBER:inference_latency_ms:int} ms',
# Pre-processing timing
'%{TIMESTAMP_ISO8601:timestamp} %{HOSTNAME:host} \[\s*%{LOGLEVEL:level}\s*\] %{WORD:app}\[%{NUMBER:pid}\]: Ran pre-processing for %{NUMBER:preprocessing_latency_ms:int} ms',
# Parsing timing
'%{TIMESTAMP_ISO8601:timestamp} %{HOSTNAME:host} \[\s*%{LOGLEVEL:level}\s*\] %{WORD:app}\[%{NUMBER:pid}\]: Ran parsing for %{NUMBER:parsing_latency_ms:int} ms',
# Object detections
'%{TIMESTAMP_ISO8601:timestamp} %{HOSTNAME:host} \[\s*%{LOGLEVEL:level}\s*\] %{WORD:app}\[%{NUMBER:pid}\]: Object %{NUMBER:object_id:int}\s*:\s*Label=%{DATA:label}, Object Likelihood=%{NUMBER:obj_likelihood:float}, Class Likelihood=%{NUMBER:cls_likelihood:float},'
]
grok_timezone = "UTC"
[inputs.tail.tags]
appname = "object_detection_yolov5"
input_method = "${INPUT_METHOD:-live_logs}"
# Processor to calculate the total model time
[[processors.starlark]]
namepass = ["yolov5_metrics"]
source = '''
state = {
"preprocessing_ms": 0,
"inference_ms": 0,
"parsing_ms": 0,
}
def apply(m):
# Update state from whichever field arrived
if "preprocessing_latency_ms" in m.fields:
state["preprocessing_ms"] = int(m.fields["preprocessing_latency_ms"])
if "inference_latency_ms" in m.fields:
state["inference_ms"] = int(m.fields["inference_latency_ms"])
if "parsing_latency_ms" in m.fields:
state["parsing_ms"] = int(m.fields["parsing_latency_ms"])
# Create a new metric for the total time
out = deepcopy(m) # To keep timestamp and tags
out.fields.clear()
out.fields["total_latency_ms"] = state["preprocessing_ms"] + state["inference_ms"] + state["parsing_ms"]
# Emit original metric and the derived one
return [out, m]
'''
# Parse WARNING logs
[[inputs.tail]]
files = ["${WARNING_LOG_FILE:-/var/log/warning.log}"]
from_beginning = ${FROM_BEGINNING:-false}
data_format = "grok"
name_override = "yolov5_metrics"
grok_patterns = [
'%{TIMESTAMP_ISO8601:timestamp} %{DATA:hostname} \[\s*WARNING\s*\] object_detection_yolov5\[%{NUMBER:pid:tag}\]: %{GREEDYDATA:message}'
]
grok_timezone = "UTC"
[inputs.tail.tags]
appname = "object_detection_yolov5"
log_type = "log_warning"
input_method = "${INPUT_METHOD:-live_logs}"
# Parse ERROR logs
[[inputs.tail]]
files = ["${ERROR_LOG_FILE:-/var/log/error.log}"]
from_beginning = ${FROM_BEGINNING:-false}
data_format = "grok"
name_override = "yolov5_metrics"
grok_patterns = [
'%{TIMESTAMP_ISO8601:timestamp} %{DATA:hostname} \[\s*ERR\s*\] object_detection_yolov5\[%{NUMBER:pid:tag}\]: %{GREEDYDATA:message}'
]
grok_timezone = "UTC"
[inputs.tail.tags]
appname = "object_detection_yolov5"
log_type = "log_error"
input_method = "${INPUT_METHOD:-live_logs}"
# Push to InfluxDB
[[outputs.influxdb_v2]]
urls = ["${INFLUX_HOST}:${INFLUX_PORT}"]
token = "${INFLUX_TOKEN}"
organization = "${INFLUX_ORG}"
bucket = "${INFLUX_BUCKET}"
# Write to the "Logs" tab for easier debugging
[[outputs.file]]
files = ["stdout"]Here’s a concise breakdown of the configuration:
[[inputs.tail]] specifies the tail plugin, which reads new lines from the given log file. Since the YOLOv5 app writes logs using the system logging library, they will also be written to the system log files.
Three separate tail inputs are defined:
INFO logs (/var/log/info.log): Captures structured performance metrics including inference latency and object detection data with likelihood scores. The Grok patterns extract specific fields and tags, such as preprocessing_latency_ms, inference_latency_ms, parsing_latency_ms, object_id, label, and likelihood values.
WARNING logs (/var/log/warning.log): Monitors warning-level messages from the YOLOv5 app. Captures the full warning message text. Tagged with log_type = "log_warning" to enable filtered queries for warning-specific analytics.
ERROR logs (/var/log//error.log): Tracks error-level messages with a similar configuration as warnings but tagged with log_type = "log_error". This separation allows independent counting and alerting for errors versus warnings.
data_format = "grok" tells the plugin to parse each line using GROK patterns, which extract structured fields from unstructured text.
grok_patterns lists the regular-expression templates for parsing inference latency and detection metrics and/or warning and errors from the ACAP app.
from_beginning = false ensures only new log lines are processed, not the entire file with historic logs.
[inputs.tail.tags] adds static tags (appname) to every metric for easier filtering.
[[processors.starlark]] defines a custom script that is used to calculate a new field (total_latency_ms) which is the sum of the preprocessing, inference and parsing latency. This make sure that each device is continuously calculating its own metrics. The alternatives would either be very complicated (a processor on the server that trigger on each metric to enrich it) or very inefficient (calculating the total in the query every time someone views the historical data). This pattern can easily be expanded to add even more calculated metrics directly from the device using the FixedIT Data Agent.
[[outputs.influxdb_v2]] defines where to send the parsed metrics, in this case to an InfluxDB v2 instance using the variables defined in the FixedIT Data Agent settings (see the Quick Start guide for more details). Note that v2 API is also compatible with the v3 database.
[[outputs.file]] with files = ["stdout"] makes the parsed metrics visible in the “Logs” tab of the FixedIT Data Agent for easier debugging.
This setup instructs the FixedIT Data Agent to continuously monitor the Axis device’s log files, extract key metrics, and securely forward them to InfluxDB. This application can now be uploaded to the FixedIT Data Agent.
You can go to the settings of the application and set up the configurations accordingly:

Modifying the configurations for the InfluxDB into the FixedIT Data Agent by pressing the three dots and then "Settings".

Configure the settings for your InfluxDB server the FixedIT Data Agent should send the data to.
After this, we can simply upload the configuration file to the FixedIT Data Agent application by pressing "Open", then going to the "Configuration" tab and pressing "Upload Config". Then select the config file to upload it. Finally, press "Enable" to enable the use of it.

Uploading the configuration file to the FixedIT Data Agent.
Finally, disable the bundled configuration files to make sure they are not interfering with ours (an alternative would be to remove the InfluxDB output from our configuration and leave the bundled configuration enabled, this would work since the bundled file output.conf already contains the InfluxDB output configuration).
After enabling the configuration file, it should take a few minutes before the data is available in InfluxDB. We can validate the data pipeline by looking in the InfluxDB Data Explorer. For example, query the inference_latency_ms or cls_likelihood which should return numeric results. If values appear as NaN, it indicates a GROK parsing or ingestion issue that must be corrected.

The Data Explorer in InfluxDB can be used to validate that we get metrics from the pipeline.
With metrics flowing into InfluxDB, we can use Grafana to create dashboards that offer in-depth visibility into how an object detection pipeline performs in production. These dashboards reveal subtle issues like latency spikes, model drift, or anomalous detection patterns that could compromise system reliability.
Below are some of the key panels we created, powered by Flux queries on our Cameras bucket. We also explain why each is necessary for continuous monitoring.
First, create a new dashboard in Grafana by pressing “New" → "New Dashboard”. For each visualization, click “Add panel”, select the desired visualization type, and then copy-paste the corresponding Flux query into the “Query” field. Repeat this process for all metrics you want to display, arranging panels as needed to build a comprehensive view of your CV pipeline.
This panel visualizes the average obj_likelihood values across all detections for each camera.
Visualization type: Time Series

Detection confidence over time for each camera.
from(bucket: "Cameras")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) =>
r._measurement == "yolov5_metrics" and
r._field == "obj_likelihood"
)
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> keep(columns: ["_time", "_value", "host"])
|> yield(name: "mean")Confidence scores tell us how certain the model is about its predictions. A steady decline in these values may indicate model drift (e.g., new lighting conditions, occlusions, or seasonal changes like sunglasses or masks in face recognition). Sudden drops could also flag pipeline bugs or data quality issues with the specific camera.
This panel visualizes the average obj_likelihood values across all detections and cameras and shows it as a single number.
Visualization type: Stat

Detection confidence during the last hour.
from(bucket: "Cameras")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) =>
r._measurement == "yolov5_metrics" and
r._field == "obj_likelihood"
)
|> keep(columns: ["_time", "_value"])
|> aggregateWindow(every: 1h, fn: mean, createEmpty: false)
|> yield(name: "mean")Like the previous metric, this shows the model's confidence in it detecting something. This value is aggregated over all cameras so that it better reflect the state of the deep learning model currently in use instead of per-site problems.
This chart tracks the mean inference_latency_ms aggregated over all cameras and an hourly window.
Visualization Type: Stat

Mean total latency over an hour in milliseconds.
from(bucket: "Cameras")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) =>
r._measurement == "yolov5_metrics" and
r._field == "total_latency_ms"
)
|> keep(columns: ["_time", "_value"])
|> aggregateWindow(every: 1h, fn: mean, createEmpty: false)
|> yield(name: "mean")Monitoring inference latency ensures the system meets real-time requirements. Consistent increases can point to CPU throttling, or overloaded resources. Latency is often the first metric to spike when the system is stressed.
Here we count log events tagged as log_warning and log_error, grouped by severity level to monitor pipeline health across both critical and non-critical issues. This allows us to track and distinguish between different types of problems in the computer vision pipeline.
Visualization Type: Gauge

Warning and error occurrences of the CV Pipeline.
from(bucket: "Cameras")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) =>
r._measurement == "yolov5_metrics" and
(r.log_type == "log_warning" or r.log_type == "log_error") and
r._field == "message"
)
|> aggregateWindow(every: 1h, fn: count, createEmpty: false)
|> group(columns: ["log_type"])
|> sum()
|> yield(name: "counts")This panel acts as a critical health signal for the pipeline. While confidence and latency charts may reveal subtle performance trends, warning and error counts provide direct evidence of pipeline degradation or failures (e.g., dropped frames, timeouts, hardware issues, or processing errors).
This chart aggregates average cls_likelihood values per class.
Visualization type: Time Series

The class likelihood over time for each class.
from(bucket: "Cameras")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) =>
r._measurement == "yolov5_metrics" and
r._field == "cls_likelihood"
)
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> keep(columns: ["_time", "_value", "label"])
|> group(columns: ["label"])
|> yield(name: "mean")Looking at class-specific confidence trends provides finer granularity than global averages. For example, if the system consistently shows lower confidence in detecting “vehicles” but not “persons,” it may suggest dataset imbalance or environmental interference affecting only certain categories.
This line graph tracks real-time inference_latency_ms where the max operation is used for the subsamling (with aggregateWindow).
Visualization Type: Time Series

The preprocessing, inference and parsing latency over time on a log scale.
from(bucket: "Cameras")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) =>
r._measurement == "yolov5_metrics" and
r._field =~ /.*_latency_ms/ and
r._field != "total_latency_ms"
)
|> aggregateWindow(every: v.windowPeriod, fn: max, createEmpty: false)
|> keep(columns: ["_time", "_value", "_field"])
|> yield(name: "mean")Unlike the hourly average panel, this visualization shows short-term peaks. It helps identify spikes that may not affect the mean but still cause noticeable delays in production (e.g., a few overloaded seconds that led to dropped detections).
With all these visualizations, you have a good starting point for an operational dashboard for MLOps teams.

The complete dashboard with all MLOps metrics for a YoloV5 model in an Axis ARTPEC-9 camera.
But a dashboard is only helpful if someone is looking at it, so next, let's dive into how AI agents can assist us with the monitoring.
We use OpenAI’s function-calling API to make anomaly detection accessible even to non-technical users. In this setup, time-series metrics are stored in InfluxDB (e.g., YOLOv5 object-detection logs), and we define Python functions that query and analyze this data.
A chat interface (for the sake of simplicity, in this guide through a terminal CLI) lets users ask natural-language questions; the LLM then calls these custom analysis functions and returns a clear result summary. This approach leverages LLMs as a “co-pilot” for data analysis, enabling quick insights without writing queries or code.
First, we configure connections to InfluxDB and OpenAI. We load credentials from .env and create client objects:
# src\config.py
import os
from dotenv import load_dotenv
import influxdb_client
from openai import OpenAI
load_dotenv()
INFLUX_TOKEN = os.environ.get("INFLUXDB_TOKEN")
ORG = "Whisperer"
BUCKET = "Cameras"
URL = os.environ.get("INFLUXDB_URL")
# OpenAI client for the ChatGPT API
ai_client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
# InfluxDB client for time-series queries
client = influxdb_client.InfluxDBClient(url=URL, token=INFLUX_TOKEN, org=ORG)
query_api = client.query_api()Make sure that the organization (ORG) and bucket (BUCKET) for the Telegraf client match the values configured on the camera in the FixedIT Data Agent settings. Also make sure that you have a dotenv file with INFLUXDB_TOKEN, INFLUXDB_URL and OPENAI_API_KEY parameters configured.
We also define a helper function run_query(query: str) that executes a Flux query and returns the result tables. This lets our analysis functions simply pass a Flux query string:
# src\utils\influxdb_tables.py
from src.config import query_api, ORG
def run_query(query: str):
tables = query_api.query(query, org=ORG)
return tablesThese setup steps connect our Python code to the data source. The run_query function encapsulates the InfluxDB lookup; each analysis tool (below) calls it with a Flux query filtering the relevant measurement and time range.
We implement several Python functions to analyze different metrics. Each takes a start and end time and runs an InfluxDB query, then computes anomalies or summaries. Key examples include the following.
We check how often each detected object_id appears within a given window. Fewer than 3 detections are flagged as “unstable.” This is interesting because, at a known inference frame rate, an object that is truly present in the scene should be detected in multiple consecutive frames. If an object appears only once or twice, it may indicate a false positive or that the model is struggling to detect it consistently.
The threshold of 3 detections can be tuned based on the inference frame rate and application requirements.
This function returns counts of unique objects, along with lists of stable versus unstable IDs.
# src\analytics\detection_stability.py
from src.utils.influxdb_tables import run_query
from src.config import BUCKET
def analyze_detection_stability(start_time: str, end_time: str):
query = f'''
from(bucket: "{BUCKET}")
|> range(start: {start_time}, stop: {end_time})
|> filter(fn: (r) => r._measurement == "yolov5_metrics" and r._field == "object_id")
'''
tables = run_query(query)
ids = [r.get_value() for t in tables for r in t.records]
freq = {obj_id: ids.count(obj_id) for obj_id in set(ids)}
unstable = {oid: count for oid, count in freq.items() if count < 3}
return {
"unique_objects_detected": len(freq),
"unstable_objects": unstable,
"stable_objects_count": len(freq) - len(unstable),
}We compute average inference latency per host (grouped by a host tag) and identify the slowest and fastest hosts. This helps spot overloaded Axis cameras.
# src\analytics\host_performance.py
from src.utils.influxdb_tables import run_query
from src.config import BUCKET
def analyze_host_performance(start_time: str, end_time: str):
query = f'''
from(bucket: "{BUCKET}")
|> range(start: {start_time}, stop: {end_time})
|> filter(fn: (r) => r._measurement == "yolov5_metrics"
and r._field == "inference_latency_ms")
|> group(columns: ["host"])
|> mean()
'''
tables = run_query(query)
results = {r.values.get("host"): float(r.get_value()) for t in tables for r in t.records}
if not results:
return {"message": "No host performance data in given range."}
slowest = max(results, key=results.get)
fastest = min(results, key=results.get)
return {
"host_latency_summary": results,
"slowest_host": slowest,
"fastest_host": fastest,
}We detect unusual spikes in inference latency. We take 30-second aggregates and compute the mean latency. Any window exceeding twice the mean is marked as a spike.
# src\analytics\latency.py
from src.utils.influxdb_tables import run_query
from src.config import BUCKET
def detect_latency_anomalies(start_time: str, end_time: str):
query = f'''
from(bucket: "{BUCKET}")
|> range(start: {start_time}, stop: {end_time})
|> filter(fn: (r) => r._measurement == "yolov5_metrics"
and r._field == "inference_latency_ms")
|> aggregateWindow(every: 30s, fn: mean, createEmpty: false)
'''
tables = run_query(query)
values = [float(r.get_value()) for t in tables for r in t.records]
if not values:
return {"message": "No latency data in given range."}
mean_latency = sum(values) / len(values)
spikes = [v for v in values if v > 2 * mean_latency]
return {
"mean_latency_ms": mean_latency,
"spike_count": len(spikes),
"sample_spikes": spikes[:5],
}We count detected objects per minute and flag any minute where the count is unusually high or low (beyond ±50% of the mean). While this does not necessarily indicate a problem (for example, it’s expected if no objects are present), deviations that correlate with other anomalies may still be worth investigating.
# src\analytics\frequency.py
from src.utils.influxdb_tables import run_query
from src.config import BUCKET
def detect_object_frequency_anomalies(start_time: str, end_time: str):
query = f'''
from(bucket: "{BUCKET}")
|> range(start: {start_time}, stop: {end_time})
|> filter(fn: (r) => r._measurement == "yolov5_metrics"
and r._field == "object_id")
|> aggregateWindow(every: 1m, fn: count, createEmpty: false)
'''
tables = run_query(query)
counts = [int(r.get_value()) for t in tables for r in t.records]
if not counts:
return {"message": "No object frequency data in given range."}
mean_count = sum(counts) / len(counts)
anomalies = [c for c in counts if c > 2 * mean_count or c < 0.5 * mean_count]
return {
"mean_object_count_per_min": mean_count,
"anomalous_minutes": len(anomalies),
"sample_anomalies": anomalies[:5],
}We simply list all detected object labels in the time range and count each type. This gives a distribution of what objects were seen.
# src\analytics\object_labels.py
from src.utils.influxdb_tables import run_query
from src.config import BUCKET
def summarize_object_labels(start_time: str, end_time: str):
query = f'''
from(bucket: "{BUCKET}")
|> range(start: {start_time}, stop: {end_time})
|> filter(fn: (r) => r._measurement == "yolov5_metrics"
and r._field == "object_id")
'''
tables = run_query(query)
labels = [
r.values.get("label")
for t in tables
for r in t.records
if r.values.get("label")
]
if not labels:
return {"message": "No labels detected in given range."}
summary = {}
for lbl in labels:
summary[lbl] = summary.get(lbl, 0) + 1
return {"total_labels": len(labels), "label_distribution": summary}These tools cover common monitoring needs: checking object-count stability, host latency, latency spikes, frequency outliers, and label counts. Each function queries InfluxDB and applies simple logic or threshold rules. The code above illustrates how to ingest metrics and compute these anomaly indicators.
We register each analysis function as a “tool” with a name, description, and JSON schema of its parameters. This will tell the LLM what tools are available, what they can be used for and how they are used. For example:
# src\tools.py
from src.analytics.latency import detect_latency_anomalies
from src.analytics.object_labels import summarize_object_labels
from src.analytics.likelihood import analyze_likelihood_distribution
from src.analytics.frequency import detect_object_frequency_anomalies
from src.analytics.host_performance import analyze_host_performance
from src.analytics.detection_stability import analyze_detection_stability
tools = [
{
"type": "function",
"name": "detect_latency_anomalies",
"description": "Detect unusual latency spikes in inference pipeline within a time range.",
"parameters": {
"type": "object",
"properties": {
"start_time": {
"type": "string",
"description": "Start time in RFC3339 format, e.g. 2025-08-31T18:13:30Z"
},
"end_time": {
"type": "string",
"description": "End time in RFC3339 format, e.g. 2025-08-31T18:27:30Z"
}
},
"required": ["start_time", "end_time"],
},
},
{
"type": "function",
"name": "summarize_object_labels",
"description": "Summarize detected object labels and their counts within a time range.",
"parameters": {
"type": "object",
"properties": {
"start_time": {
"type": "string",
"description": "Start time in RFC3339 format"
},
"end_time": {
"type": "string",
"description": "End time in RFC3339 format"
}
},
"required": ["start_time", "end_time"],
},
},
{
"type": "function",
"name": "analyze_likelihood_distribution",
"description": "Check how many detections have low confidence scores within a time range and return the labels associated with them.",
"parameters": {
"type": "object",
"properties": {
"start_time": {
"type": "string",
"description": "Start time in RFC3339 format"
},
"end_time": {
"type": "string",
"description": "End time in RFC3339 format"
}
},
"required": ["start_time", "end_time"],
},
},
{
"type": "function",
"name": "detect_object_frequency_anomalies",
"description": "Detect sudden surges or drops in object detection frequency within a time range.",
"parameters": {
"type": "object",
"properties": {
"start_time": {
"type": "string",
"description": "Start time in RFC3339 format"
},
"end_time": {
"type": "string",
"description": "End time in RFC3339 format"
}
},
"required": ["start_time", "end_time"],
},
},
{
"type": "function",
"name": "analyze_host_performance",
"description": "Compare inference latency across different hosts to detect slow-performing nodes.",
"parameters": {
"type": "object",
"properties": {
"start_time": {
"type": "string",
"description": "Start time in RFC3339 format"
},
"end_time": {
"type": "string",
"description": "End time in RFC3339 format"
}
},
"required": ["start_time", "end_time"],
},
},
{
"type": "function",
"name": "analyze_detection_stability",
"description": "Measure detection stability by object_id and identify objects flickering in/out inconsistently.",
"parameters": {
"type": "object",
"properties": {
"start_time": {
"type": "string",
"description": "Start time in RFC3339 format"
},
"end_time": {
"type": "string",
"description": "End time in RFC3339 format"
}
},
"required": ["start_time", "end_time"],
},
},
]
dispatcher = {
"detect_latency_anomalies": detect_latency_anomalies,
"summarize_object_labels": summarize_object_labels,
"analyze_likelihood_distribution": analyze_likelihood_distribution,
"detect_object_frequency_anomalies": detect_object_frequency_anomalies,
"analyze_host_performance": analyze_host_performance,
"analyze_detection_stability": analyze_detection_stability
}These definitions will be passed to the OpenAI API, enabling the model to choose the right function. Internally, tools is a list of such definitions, and a dispatcher maps function names to our Python implementations.
Here’s our simple prompt we will use for the LLM:
# src\prompt.py
SYSTEM_PROMPT = """
You are FixedIT CamGuard, an AI assistant specializing in analyzing AI camera detections.
Your job is to:
- Analyze object detection metrics (latency, object counts, likelihoods, anomalies).
- Provide concise, technical, and actionable summaries useful for a DevOps/ML monitoring team.
- Avoid vague statements; always ground responses in the data retrieved.
- When confidence is low or anomalies are detected, highlight them clearly and suggest possible causes.
- Write responses in a helpful and professional tone, as if briefing engineers monitoring real-time systems.
- Avoid generic chit-chat -- stay focused on monitoring insights.
IMPORTANT: Always provide time ranges in RFC3339 format.
CURRENT TIME IN UTC: {CURRENT_TIME}
TIME RANGE RULES:
- start_time must be BEFORE end_time (they cannot be equal)
- For "now" or "right now", use a range like: last 5-10 minutes (e.g., start: now - 10min, end: now)
- For real-time queries, always include a time window (minimum 1 minute)
The user may ask high-level questions ("Were there latency spikes yesterday?")
or drill into anomalies. If tools are required, call them with precise RFC3339 time ranges.
When results come back, explain them in plain language and emphasize
patterns or anomalies that matter for system reliability.
"""The main logic to call the LLMs and the tools comes here:
# chat.py
import json
from datetime import datetime, timezone
from src.config import ai_client
from src.tools import tools, dispatcher
from src.prompt import SYSTEM_PROMPT
def chat_with_llm(user_message: str):
tool_called = False
current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
system_prompt = SYSTEM_PROMPT.format(CURRENT_TIME=current_time)
inputs = [
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_message},
]
# First request
response = ai_client.responses.create(
model="gpt-4o-mini",
input=inputs,
tools=tools,
)
for item in response.output:
if item.type == "function_call":
tool_called = True
fn_name = item.name
args = json.loads(item.arguments or "{}")
print(f"[LLM requested tool: {fn_name} with args {args}]")
# Run the tool
result = dispatcher.get(
fn_name,
lambda **kw: {"error": f"Unknown tool {fn_name}"}
)(**args)
# Append assistant's function call
inputs.append({
"role": "assistant",
"content": [{
"type": "function_call",
"id": item.id,
"name": fn_name,
"arguments": item.arguments,
"call_id": item.call_id,
}]
})
# Append tool's output
inputs.append({
"role": "tool",
"content": [{
"type": "function_call_output",
"call_id": item.call_id,
"output": json.dumps(result),
}]
})
inputs_str = json.dumps(inputs, indent=2)
# If a tool was called, run follow-up summarization
if tool_called:
followup = ai_client.responses.create(
model="gpt-5",
tools=tools,
input="Summarize results for DevOps team for the following result:\n:"
f"{inputs_str}",
)
return followup.output_text, inputs_str
return response.output_text, inputs_str
if __name__ == "__main__":
user_input = input("Enter your question: ")
response, logs = chat_with_llm(user_input)
# Print detailed logs with prefix
print("\n[LOGS]")
for line in logs.split('\n'):
print(f" | {line}")
# Print response
print("\n[RESPONSE]")
print(response)The conversation flow in chat.py is roughly:
Send a system prompt and the user’s question to GPT (here using model gpt-4o-mini with function calling enabled and our tools list).
If the model outputs a function call, we parse its name and arguments.
We invoke the corresponding Python function (via dispatcher[fn_name](**args)) to get the result.
We append both the function call and its JSON output back into the conversation history as a special tool message.
Finally, if any tool was called, we perform one more LLM call (using a more capable model like GPT-5) with an instruction like “Summarize results for the DevOps team,” providing the tool results. This yields a human-readable summary.
For example, if the user asks: Are there any latency anomalies observed on 2025-08-31?, then here’s the flow:
User → Assistant: Query about latency anomalies.
Assistant → System: Call detect_latency_anomalies(start_time="2025-08-31T00:00:00Z",end_time="2025-09-01T00:00:00Z").
System → Assistant: Return JSON with mean, spike count, values.
Assistant → User: Summarize results clearly.Here’s a response for the tool function result:
{
"mean_latency_ms": 50.2,
"spike_count": 3,
"sample_spikes": [110.5, 105.3, 102.8]
}Assistant:
On August 31st, the average latency was about 50.2 ms. However, we detected 3 spikes, each more than twice the mean - with sample values around 105-110 ms.
And if the user asks: How many detections have we had during the last hour?, then the response might look like this:
Summary for DevOps/ML Monitoring
Time window (UTC): 2026-01-05T16:41:06Z to 2026-01-05T17:41:06Z
Total detections: 6,829 (~114/min, ~1.9/sec)
Label distribution:
person: 6,765 (99.06%)
cup: 50 (0.73%)
cell phone: 10 (0.15%)
remote: 3 (0.04%)
bottle: 1 (0.01%)
Notes:
- Distribution is heavily dominated by “person.” No anomaly checks were run in this query. If needed, I can analyze frequency/latency anomalies and low-confidence rates for this same window.
The above functions use simple aggregation and rule-based heuristics (e.g., fixed multipliers and counts) to flag anomalies. This architecture is easily extensible: additional functions can be added and made configurable through input arguments, such as filtering by specific devices, groups, or camera architectures. We return only a small set of sample values instead of all data to reduce noise and highlight the most relevant anomalies.
Once these functions are in place, more advanced approaches like Isolation Forests or other ML-based detectors can be implemented to identify outliers more intelligently. The Isolation Forest is an unsupervised decision-tree ensemble that “efficiently isolates anomalies by randomly selecting features and splitting data based on threshold values”. The key is that any Python code can be converted into a new analysis function. If the business later needs a custom ML model, we simply add it to the dispatcher and update the tools list.
Currently, the architecture is trigger-based, but it can also run in an event-driven mode. Many metrics and anomaly checks can be calculated directly on the edge device using the FixedIT Data Agent, eliminating the need for continuous server-side processing that may not scale for large deployments. In such a setup, the agent would push metrics along with an anomaly flag, and the LLM would be invoked on the server only when an anomaly is detected. This highlights the added value of the FixedIT Data Agent compared to sending raw metrics directly to InfluxDB and can lead to benefits like reduced server load and better scalability.
The FixedIT Data Agent configuration could even be extended to capture and send a small sample image when an anomaly occurs. Once an anomaly is detected, an event would be emitted, and the LLM would summarize the issue and generates human-readable alerts via Slack, email, PagerDuty, or other channels.
This architecture saves cost, reduces noise, and ensures the LLM is only used for human-facing explanations. New detectors (e.g., Isolation Forest, LSTM forecasters, etc.) can be plugged in as workers, each feeding anomalies into a central dispatcher.
Enterprise CV systems demand observability to remain reliable at scale. By treating vision pipelines like production services and tracking model-centric metrics (latency, confidence, anomaly scores), teams can detect drift and failures early instead of “flying blind.” Dashboards make spikes and drops immediately visible, while anomaly detectors flag abnormal time ranges automatically and LLMs explains any observations to less technical people in an easy to understand language.
The FixedIT Data Agent brings this to Axis cameras by making it easy to process data locally on the camera and pushing metrics to a cloud-hosted database. Its modular stack, FixedIT Data Agent Observer (prebuilt monitoring that is simple to deploy), FixedIT Data Agent Plumber (Extensible configurations using Telegraf pipelines, what we used in this article), and FixedIT Data Agent Builder (advanced edge workflows using Telegraf, Starlark and shell scripts) integrates with InfluxDB and Grafana and many other databases and protocols, enabling fleets of thousands to be monitored under full customer control.
The next step is to instrument your own custom CV apps (YOLO, U-Net, etc.) with similar pipelines. To get started with that is easy, and we have a detailed guide in our blog post "How To Train and Deploy Your Own Edge-Based Object Detection Models Using Deep Learning for the Axis IP Cameras with ACAP (The Ultimate guide)". Metrics stream into InfluxDB, anomalies are detected on rolling windows, and with an LLM interface, non-technical users can query insights in natural language. The result: faster debugging, resilient model lifecycle management, and trustworthy edge AI at scale.
Concept Drift: When the relationship between input data and target output changes over time, causing a model’s predictions to become less accurate.
Model Drift: The overall degradation of a model’s performance over time, often due to concept drift or changes in data distribution.
YOLO (You Only Look Once): A fast, real-time object detection algorithm that detects multiple objects in a single pass through the image.
U-Net: A convolutional neural network architecture for image segmentation that uses an encoder–decoder structure with skip connections to precisely classify each pixel.
This article is based, among other, on insights gained during the DAIDESS research project (Decomposable AI Deployments made Efficient and Sustainable by Specialization). The project is co-financed by Vinnova, Sweden’s Innovation Agency. FixedIT Consulting AB is executing the project in collaboration with The Faculty of Engineering at Lund University and Spiideo.

The project has been co-financed by Vinnova, Sweden's Innovation Agency.