Skip to main content

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​

  1. From the sidebar, click Multi Variate.

    LinePulse displays the Multi Variate module.

  2. Click Query to start a new query or Edit Query to modify the current one.

    LinePulse displays the MVD Query Builder screen.

  3. (Optional) Select a Line.

  4. (Optional) Enter a search term.

    As you type, the signal treeview updates to show only the values that match your search terms.

  5. tip

    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.

  6. (Optional) Click Filter Icon to restrict which signals appear in the query tree.

    See Working with Query Filters for more information.

  7. Select a signal from the treeview.

    LinePulse adds the selected signal to the Selected Items list and enables both the Filters tab and the NEXT button.

  8. Select additional signals from the treeview.

    A minimum of two signals is required to perform Multi Variate Analysis.

  9. note

    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.

  10. Click NEXT.

    LinePulse displays the Filters screen.

  11. Modify the MVD query filter or click FETCH RESULTS to accept the default MVD query filter values.

tip

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​

  1. Create or modify an MVD query .

  2. From the MVD Query Builder screen, click FILTERS.

    LinePulse displays the Filters tab.

  3. Configure the period for the query.

  4. note

    MVD queries the last available data points across all selected signals for each part ID. Earlier data points are not included.

    note

    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.

  5. 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.

  6. (Optional) Select one or more model numbers.

    This prevents alerts caused by expected differences between models.

  7. (Optional) Select a result.

    Filtering to passing results helps avoid alerts caused by failed parts.

  8. (Optional) Click ADD ATTRIBUTE FILTER.

  9. Click FETCH RESULTS.

    LinePulse closes the MVD Query Builder screen.

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.

tip

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.

RankOverall Mahalanobis report scoreSuggested response
InsignificantLess than or equal to 3Review in the context of your process.
LowGreater than 3 and less than or equal to 4Review the detected change and monitor its development.
MediumGreater than 4 and less than or equal to 6Investigate whether the change affects production or quality.
HighGreater than 6Prioritize 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​

Metrics Example

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.

note

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.

Run Chart
note

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).
Show/hide signals
tip

See Working with Charts for more tips on sorting, filtering and resizing LinePulse charts.

To view all contributing features in a single chart​

  1. From the Navigation menu, click Multi Variate.

    LinePulse displays the Multi Variate module.

  2. (If required) Create an MVD query .

  3. (If required) Click the Contributing Features tab.

  4. Click Overlay Signals to enable this functionality.

    LinePulse displays all contributing features on a single chart.

note

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​

  1. From the Navigation menu, click Multi Variate.

    LinePulse displays the Multi Variate module.

  2. (If required) Create an MVD query .

  3. (If required) Click the Contributing Features tab.

  4. Click Anomaly Score to 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.

Build Chart Demonstration

To select a range by signal​

  1. From the Navigation menu, click Multi Variate.

    LinePulse displays the Multi Variate module.

  2. (If required) Create an MVD query .

  3. (If required) Click the Build Chart tab.

  4. Click and drag along a signal axis to select the values you wish to include.

    LinePulse redraws the chart to match your selection.

  5. Repeat the previous step along additional signal axes, as required.

To show/hide data points in the Build Chart​

  1. From the Navigation menu, click Multi Variate.

    LinePulse displays the Multi Variate module.

  2. (If required) Create an MVD query .

  3. (If required) Click the Build Chart tab.

  4. (Optional) Click TRAINING to 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.

  5. (Optional) Click EVAL to 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​

  1. While viewing the Build Chart, click Reset Icon.

    LinePulse resets the Build Chart.

Working with MVD Monitors​

To create an MVD monitor​

  1. From the Navigation menu, click Multi Variate.

    LinePulse displays the Multi Variate module.

  2. Create an MVD query.

  3. note

    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.

  4. Click Create MVD Monitor.

    LinePulse displays the MVD Monitor screen.

  5. (Optional) Enter a Monitor Name.

  6. tip

    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.

  7. 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.

  8. 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.

  9. (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>.

  10. (Optional) Enter Notes.

    You can enter up to 600 characters in the Notes field.

  11. (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.

  12. Click Create.

    LinePulse closes the MVD Monitor screen. If you selected Deploy upon creation in the previous step, LinePulse will run the monitor now.

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.