detect
Detect anomalies in time series using trained deep learning detector model
Since R2025a
Description
Add-On Required: This feature requires the Time Series Anomaly Detection for MATLAB add-on.
detects subsequence anomalies in detectionResults = detect(detector,data)data using the trained deep learning
anomaly detector detector and the subsequence length specified in the
property detector.DetectionWindowLength. By default, the subsequences
do not overlap.
detect calculates the anomaly scores, labels anomalies using the
threshold value in the property detector.Threshold, and returns these
labels and scores, as well as the window start indices, in
detectionResults. A label of 1 indicates an
anomaly and a label of 0 indicates no anomaly.
For an example of using detect as part of the detector development
workflow, see Train and Test TCN Anomaly Detector.
This function requires Deep Learning Toolbox™.
sets additional options using one or more detectionResults = detect(___,Name=Value)Name=Value arguments. These
options include execution-related specifications and the plotting of a histogram.