TimeSeriesRRCForestDetector
Detect subsequence anomalies in time series using a robust random cut forest algorithm
Since R2026a
Description
Add-On Required: This feature requires the Time Series Anomaly Detection for MATLAB add-on.
The TimeSeriesRRCForestDetector object implements robust random
cut forest algorithm to implement a detector model capable of being trained to detect
subsequence anomalies in time series data using only nominal data.
TimeSeriesRRCForestDetector provides a time series version, for outlier
point and subsequence detection, of the RobustRandomCutForest
detector in Statistics and Machine Learning Toolbox™.
Creating a TimeSeriesRRCForestDetector model is the first step in a
workflow that includes training the detector with normal data, testing the detector with
anomalous data, and validating the model by visualizing detection effectiveness on anomalous
data using plotting functions. To improve detection performance, you can use updateDetector
to change certain properties, such as threshold properties, by updating the trained model
without retraining. To change other properties, you must create a new detector object and
specify the new properties using name-value arguments. You cannot modify detector properties
using dot notation.
For more information on the functions this workflow uses, see Object Functions.
Creation
Create a timeSeriesRRCForestDetector object by using the timeSeriesRrcforestAD function.
Properties
Object Functions
train | Train time series machine learning anomaly detector and obtain detection threshold |
detect | Detect anomalies in time series using a trained time series machine learning detector model |
plot | Plot detected anomalies and anomaly scores generated from trained machine learning anomaly detectors |
plotHistogram | Plot histogram of anomaly scores and detection threshold for trained machine learning anomaly detector |
updateDetector | Update settings of a trained time series machine learning anomaly detector and recompute detection threshold |
References
[1] Guha, Sudipto, N. Mishra, G. Roy, and O. Schrijvers. "Robust Random Cut Forest Based Anomaly Detection on Streams," Proceedings of The 33rd International Conference on Machine Learning 48 (June 2016): 2712–21.
[2] Bartos, Matthew D., A. Mullapudi, and S. C. Troutman. "rrcf: Implementation of the Robust Random Cut Forest Algorithm for Anomaly Detection on Streams." Journal of Open Source Software 4, no. 35 (2019): 1336.
Version History
Introduced in R2026a