Trend and Anomaly Detection

Enabling Trend and Anomaly Detection

You can enable trend and anomaly detection for each chart and query you create. Trend and anomaly detection looks at historical data for selected numerical properties of your model, automatically identifying patterns and raising notifications.

Queries

You can enable trend and anomaly detection for queries whether they are manually created or AI-generated.

Manual Queries

Go to the Build Query page and build a query as usual. To enable trend and anomaly detection, check the AI-Powered Trend and Anomaly Detection checkbox. Three new fields will appear:

  • Properties to Monitor: The properties of the model to check for trends and anomalies. This is currently limited to numerical properties only. If the list is empty, it means the selected model has no numerical properties and this feature is not available for the model.

  • Number of Data Points to Analyze: The maximum number of data points for each property to store for analysis. For example, if you input 50, the AI assistant will look at the last 50 saved values when it scans for trends and anomalies.

  • Data Collection Frequency (Seconds): How often to capture the values of the selected properties, from 10 to 3600 seconds. The default value for this field comes from the Default Data Collection Interval setting on the Admin page.

../../_images/anomaly_detection_form.png

Complete these fields with your preferred settings and press Run Query to run the query with Trend and Anomaly Detection enabled.

Note

Queries that use Trend and Anomaly Detection must be marked as Continuous to enable them to collect data. If a continuous query is stopped, trends and anomalies will not be detected.

AI-Generated Queries

For AI-generated queries, the process for enabling anomaly detection is very similar. Go to the Generate Query page, enter a query prompt, and select a model. To enable trend and anomaly detection, check the AI-Powered Trend and Anomaly Detection checkbox. Three new fields will appear (see above for descriptions). Complete the fields with your preferred settings, then press Generate Query.

Note

Queries that use trend and anomaly detection will be set as Continuous by default.

Charts

As with queries, you can enable trend and anomaly detection for charts whether they are manually created or AI-generated.

Manual Charts

Go to the Dashboard page and create or select an empty slot to add a new chart. To enable anomaly detection, check the AI-Powered Trend and Anomaly Detection checkbox. Two new fields will appear:

  • Number of Data Points to Analyze: The maximum number of data points for each property to store for analysis. For example, if you input 50, the AI assistant will look at the last 50 saved values when it scans for trends and anomalies.

  • Data Collection Frequency (Seconds): How often to capture the values of the selected properties, from 10 to 3600 seconds. The default value for this field comes from the Default Data Collection Interval setting on the Admin page.

../../_images/anomaly_detection_widget.png

Complete these fields with your preferred settings and press Create Chart.

Note

Unlike queries, charts have no option to select multiple model properties to monitor for trends and anomalies. This is because charts track only one property at a time.

AI-Generated Charts

For AI-generated charts, the process for enabling anomaly detection is very similar. Go to the Generate Chart tab, enter a prompt, and select a model. To enable trend and anomaly detection, check the AI-Powered Trend and Anomaly Detection checkbox. Two new fields will appear (see above for descriptions). Complete the fields with your preferred settings, then press Generate Chart.