Anomaly Detection | Multi Variate
About the Multi Variate Module
Anomaly Detection lets you monitor your manufacturing processes for anomalies by looking at changes in the population distribution between an evaluation set and a sample set. It consists of two modules: Single Variate Detection (SVD) and Multi Variate Detection (MVD). The Multi Variate module monitors multiple signals and their relationships.
Working with MVD Queries
To create or modify an MVD query
From the sidebar, click
Multi Variate.LinePulse displays the Multi Variate module.
Click
Queryto start a new query orEdit Queryto modify the current one.LinePulse displays the MVD Query Builder screen.
(Optional) Select a Line.
(Optional) Enter a search term.
As you type, the signal treeview updates to show only the values that match your search terms.
(Optional) Click
to restrict which signals appear in the query tree.See Working with Query Filters for more information.
Select a signal from the treeview.
LinePulse adds the selected signal to the Selected Items list and enables both the Filters tab and the
NEXTbutton.Select additional signals from the treeview.
A minimum of two signals is required to perform Multi Variate Analysis.
Click
NEXT.LinePulse displays the Filters screen.
Modify the MVD query filter or click
FETCH RESULTSto accept the default MVD query filter values.
You do not have to type the entire signal name. By entering a search term that includes any part of the desired signal, LinePulse will display only those signals containing the term in the signal treeview, making it easier to select a specific signal in the next step.
All of the selected signals must belong to the same Line. If you select a different Line, LinePulse will remove all previously selected signals from the Selected Items list.
To modify your query, repeat the steps above. LinePulse will remember your previously entered query information until you log out.
To modify an MVD query filter
From the MVD Query Builder screen, click
FILTERS.LinePulse displays the Filters tab.
Configure the period for the query.
Set the training split and evaluation percentages.
The training period is used to establish normal signal behavior. The evaluation period is compared against this baseline to detect drift.
(Optional) Select one or more model numbers.
This prevents alerts caused by expected differences between models.
(Optional) Select a result.
Filtering to passing results helps avoid alerts caused by failed parts.
(Optional) Click
ADD ATTRIBUTE FILTER.Click
FETCH RESULTS.LinePulse closes the MVD Query Builder screen.
MVD queries the last available data points across all selected signals for each part ID. Earlier data points are not included.
For MVD anomaly and metric calculations, missing readings are not treated as values. They are not counted as zero, blank, or as a category that can correlate with other signals.
If any selected signal is missing for a part, LinePulse removes that part from the MVD metric dataset. The Anomaly Chart, Study Data anomaly scores, Means difference ratio, and Max difference correlation are calculated from the remaining parts that have values for all selected signals.
This removal applies to MVD anomaly and metric calculations only. The same part can still appear in the Contributing Features analysis and charts when LinePulse has selected-signal readings to display for that part. As a result, Contributing Features may include parts that were excluded from the Anomaly Chart, Study Data anomaly score, Means difference ratio, or Max difference correlation because one or more selected signal readings were missing.
Understanding the Anomaly Report
The Anomaly Score indicates the level of variation between the selected training and evaluation samples—the greater the change, the higher the score.
The anomaly score for the overall report can be found in the Details section at the top. The anomaly score for each serial number is located in Study Data.
Anomaly severity — Mahalanobis distance
Mahalanobis distance is the default MVD metric. LinePulse automatically assigns an Insignificant, Low, Medium, or High rank by comparing the overall Mahalanobis report score with the thresholds below.
The report score is the maximum evaluation distance after any configured smoothing. It is a distance score, not a probability or percentage: a score of 0.98 does not mean a 98% likelihood of an anomaly.
| Rank | Overall Mahalanobis report score | Suggested response |
|---|---|---|
| Insignificant | Less than or equal to 3 | Review in the context of your process. |
| Low | Greater than 3 and less than or equal to 4 | Review the detected change and monitor its development. |
| Medium | Greater than 4 and less than or equal to 6 | Investigate whether the change affects production or quality. |
| High | Greater than 6 | Prioritize investigation into the change's cause and potential impact. |
The rank describes the magnitude of the statistical change; it does not establish its production or quality impact. These Mahalanobis thresholds do not vary with dataset size.
A score must strictly exceed a threshold to enter that level. Therefore, 3 is Insignificant, 4 is Low, and 6 is Medium.
Examples: Mahalanobis report scores of 0.98, 4.5, and 6.1 are classified as Insignificant, Medium, and High, respectively. These classifications apply to the overall report score. Individual part distances and contributing-feature values should not be interpreted as separate report severity ranks.
The monitor's Alert Threshold sets the minimum rank required for a breach; it does not change the severity thresholds:
- Low: Low, Medium, or High qualifies.
- Medium: Medium or High qualifies.
- High: Only High qualifies.
Whether a breach generates a notification also depends on the configured Alert Rules.
Other metrics use different thresholds
Always interpret a score using its metric. A score of 0.98 is Insignificant for Mahalanobis but Medium for SVD's Wasserstein metric, whose predefined thresholds are selected by dataset size.
For Entropy, the thresholds are 0.3 for Low, 0.5 for Medium, and 1.0 for High, using the same strict comparison rules. An Entropy score of 0.98 is Medium. The Mahalanobis table above does not apply to Entropy or Wasserstein scores.
Understanding Metrics
The MVD Metrics section displays two different anomaly calculations for each signal, as well as an overall Anomaly Score for the query:
The Means difference ratio is an indicator of signal variance between the training and evaluation periods. The higher the ratio, the larger the change in distribution. Greater change between training and evaluation is the first indicator that a particular signal was the cause of a high Anomaly Score.
The Max difference correlation calculates the correlation between the training period and the test period of each signal. This indicates if a signal is acting abnormally, rather than if it has shifted in distribution. Typically, scores greater than 1.0 indicate a signal that has influenced a high Anomaly Score. A score below 1.0 will not likely be responsible.
MVD metrics use complete records only. If a query selects three signals and one part is missing a value for one of those signals, that part is excluded from the anomaly score and metric calculations, but it can still be shown in Contributing Features.
For example, if a query returns 1,000 parts with an 80/20 training and evaluation split, the expected split is 800 training parts and 200 evaluation parts. If 20 evaluation parts are missing one selected signal, those 20 parts are removed from the metric dataset. They do not receive a true MVD anomaly score in Study Data, and they do not contribute to the Means difference ratio or Max difference correlation. The metrics are calculated from the remaining complete training and evaluation parts.
If readings are missing from the training sample, those training parts are also removed before the baseline is fit. This means the baseline mean vector and covariance/correlation structure are learned from fewer complete training parts. If the missing readings are not random, this can affect the learned signal relationships.
Working with Contributing Features
Use the Overlay Signals and Anomaly Score toggles to visually compare and identify which signals have changed in behavior when compared to each other and the calculated Anomaly Score.
The Contributing Features charts can display selected-signal readings that are not included in the MVD metric dataset. As a result, you may see a part in Contributing Features even when that part was excluded from the Anomaly Chart, Study Data anomaly score, Means difference ratio, or Max difference correlation because one or more selected signal readings were missing.
Interacting with Charts
You can interact with the Contributing Features charts in the following ways:
- Hover your mouse cursor over any record on the chart to view details for that record.
- Collapse one or more signal charts to make it easier to view specific charts. See Collapsing and Expanding Tables/Charts for more information.
- Hide or display individual signals by clicking on the corresponding signal label (see below).
See Working with Charts for more tips on sorting, filtering and resizing LinePulse charts.
To view all contributing features in a single chart
From the Navigation menu, click .
LinePulse displays the Multi Variate module.
(If required) Create an MVD query .
(If required) Click the Contributing Features tab.
Click
Overlay Signalsto enable this functionality.LinePulse displays all contributing features on a single chart.
With Overlay Signals enabled, you can select either a Normalized or Common y-axis. You can restore the default view of one chart per signal by disabling Overlay Signals.
To show/hide the anomaly score from all contributing features charts
From the Navigation menu, click .
LinePulse displays the Multi Variate module.
(If required) Create an MVD query .
(If required) Click the Contributing Features tab.
Click
Anomaly Scoreto enable or disable the anomaly score.LinePulse displays or hides the anomaly score values from the Contributing Features charts. This applies whether or not Overlay Signals has been enabled.
Using the Build Chart
The Build Chart allows you to view the path individual parts take through each contributing signal. This lets you quickly compare training and evaluation data sets, as well as select a specific range for each signal.
To select a range by signal
From the Navigation menu, click .
LinePulse displays the Multi Variate module.
(If required) Create an MVD query .
(If required) Click the Build Chart tab.
Click and drag along a signal axis to select the values you wish to include.
LinePulse redraws the chart to match your selection.
Repeat the previous step along additional signal axes, as required.
To show/hide data points in the Build Chart
From the Navigation menu, click .
LinePulse displays the Multi Variate module.
(If required) Create an MVD query .
(If required) Click the Build Chart tab.
(Optional) Click
TRAININGto enable or disable display of the training samples.LinePulse displays or hides the training sample values from the Build Chart and dims the TRAINING button.
(Optional) Click
EVALto enable or disable display of the evaluation samples.LinePulse displays or hides the evaluation sample values from the Build Chart and dims the EVAL button.
To reset the Build Chart
While viewing the Build Chart, click
.LinePulse resets the Build Chart.
Working with MVD Monitors
To create an MVD monitor
From the Navigation menu, click .
LinePulse displays the Multi Variate module.
Click
Create MVD Monitor.LinePulse displays the MVD Monitor screen.
(Optional) Enter a Monitor Name.
Enter a Frequency.
There is a minimum value for Frequency—if you enter a number lower than that value, LinePulse will replace it with the minimum value.
Select an Alert Threshold.
The possible values are Low, Medium and High. This selects the minimum severity required for a breach; see Anomaly severity for the numerical thresholds and examples.
(Optional) Select Create separate anomaly monitors for selected model numbers.
LinePulse creates one monitor per selected model number. Each monitor uses the shared configuration and evaluates only data for its assigned model. Each name follows the format
<Monitor name> - <Model number>.(Optional) Enter Notes.
You can enter up to 600 characters in the Notes field.
(Optional) Select Deploy upon creation.
By default, LinePulse will deploy your monitor immediately. If you do not wish to deploy your monitor at this time, be sure to deselect Deploy upon creation.
Click
Create.LinePulse closes the MVD Monitor screen. If you selected Deploy upon creation in the previous step, LinePulse will run the monitor now.
Only those MVD queries that are based on the number of records being returned can be used to create an MVD monitor. Queries based on either Duration or Time are not eligible. LinePulse will notify you whether a filter is compatible or not with MVD monitor creation.
LinePulse suggests a default name; however, you are free to override the suggestion. You can restore this default name at any time by clicking DEFAULT.
To view, edit, activate/deactivate or delete an MVD monitor
See Anomaly severity for how LinePulse calculates the rank and how it relates to the selected alert threshold. ETQ integration enable feedback in the loop. Previous users feedback on previous alerts is being integrated in future alerting levels on the same monitor.