Anomaly Detection¶
The “Anomaly Detection” category offers automated modeling capabilities for identifying the variations in your time series data as part of Predict offering using advanced machine learning technologies.
Anomaly detection use case is to learn from the normal behaviors of your data and identify the anomalous datapoints from multiple perspectives. In industrial scenarios, it could contribute to monitoring continuously the anomalous behaviors from sensors which could give early alerts to avoid more serious malfunctions in the near future.
Anomaly Detection could leverage data from asset as dataset and performs easy configuration for model building and detection of anomalies.
It could visualizes the anomaly spots, indicators, which could be further utilized for your targeted use cases like comparing with threshold value, reviewing historic records.
User Interface¶
The following image shows the Anomaly Detection screen:
① Displays the Dataset information
② Displays the variable for which anomaly needs to be created
③ Data visualization area
④ Displays the configuration parameters
Building the Anomaly Detection model¶
To build the anomaly detection model, proceed with the following steps:
- From the "Analyze" tab, click "Predict".
- Select "Use Case", and click "Anomaly Detections".
- In the "Training Dataset" section, select the "From Data" and "To Date" as the time period required for the training dataset for the model building.
- Select the "Predicator Variables" and the "Timeseries Type".
- Configure the "Perspective" settings:
- Residual: Detects the residuals with significantly higher magnitude than those observed on the in-sample period as anomalous.
- Fluctuation: Anomalous behavior model detects anomalies if different fluctuations are observed than those which were present during the in-sample period.
- Imbalance: The imbalance perspective helps to detect anomalies accompanied by deviation of the residuals output from zero for a longer period of time.
- Residual: Detects the residuals with significantly higher magnitude than those observed on the in-sample period as anomalous.
- Configure the "Data Imputation" setting by selecting the type from the drop-down.
- For "Seasonality", click "On" or "Off" to enable or disable the seasonality.
- Select "Polynomial" or "Fourier" to configure the type of "Feature".
- Click "Build a model".
The generated anomaly model can be used to visualizes the anomaly spots, indicators.
Change Threshold¶
- Click on Change threshold to change the sensitivity. User can change the threshold for a specific perspective and preview the results.
- Once satisfactory results are shown, aka user is happy with the anomalies based on sensitivity then click on save to persist updated model configurations.
- Now, updated thresholds will be used for inferences.
Schedule the Anomaly model for production¶
It is possible to schedule the production of the anomaly model which can be executed and evaluated on the regular intervals as per the preferred time range.
To schedule the production run of the anomaly model, proceed with the following steps:
- Open "Predict" in the "Analyze" tab.
- Select the "Use Case", and click "Anomaly Detections".
- Select the preferred model from the list of available models.
- Click Schedule for production.
- Select the preferred frequency for executing the models.
The anomaly models can be executed as per the below intervals:- Minutes
- Hourly
- Daily
- Weekly
- Minutes
- Select the date in the "Schedule Start Date" and "Schedule End Date".
- Click "Deploy".
Anomaly Detection Results¶
Once the anomaly detection is scheduled for production, the anomalies are generated as per the schedule. The generated anomalies can be used to analyze the data for the selected variables of the asset. To view the anomaly detection, click "Production Detections" and select the preferred anomaly detections from the "Detail result for anomaly execution" drop-down.
Detecting the Anomalies¶
Once the model for anomaly detection is built, configure the "Testing Dataset" setting, the time period to execute the anomaly detection. Click "Detect" to start detecting the anomaly spots for the selected dataset.
Once the Anomaly detection is completed, the anomaly spots are displayed as shown below:
① Displays the selected variables and Anomalies
② Displays the anomaly indicators as per the perspectives
③ Displays the top predictors
④ Displays the Anomaly detection configuration details
Delete Anomaly Detections¶
To delete the generated anomaly detections, select the anomaly detections from the list, click and select "Delete".