GradientOne
  • Home
  • Why GradientOne?
    • How It Works
    • Product Features
  • Solutions
    • Test Engineering
    • Compliance Labs
  • Resources
    • API
    • Blog
    • News
    • Documentation
  • Free Trial Signup

Blog

Trace Pattern Matching

6/12/2017

3 Comments

 
In science, many discoveries are made by tracking anomalies in signals. In the LHC, finding an unusually large number of particles of a certain type in a high-energy collision's debris indicates the existence of a new type of particle. Pulsars were initially discovered by a careful study of a repetitive pattern in the radio waves hitting our planet. While you may not be probing the edge of known physics, tracking anomalies in your data can help you predict failure modes before they are discovered in the field. GradientOne's Pattern Matching analysis function can help you in your search for anomalies.

This blog post will demonstrate how to use Pattern Matching, and how it works.

Tagging Features

Suppose we have the trace generated by a motor: 
Picture
The blue line is the motor velocity and the yellow line is the position. While the position is increasing, the velocity is large and positive, and it drops down to zero once the target position is reached. The dip below zero occurs because the motor slightly overshoots its target. This is a pattern we might want to track - for example, does it always overshoot at this time stamp during the run? Does it always overshoot by the same amount? If we turn this section into a pattern, we can find all instances with the same phenomenon in our saved test results.

To create a new pattern:
  1. Click on the Markers button on the right side of the page, then select a Horz Range
  2. Move your cursor over the plot until the tooltip is at the start of the pattern, and click once
  3. Move your cursor over the plot until the tooltip is at the end of the pattern, and click once
  4. Click on the Tag as Pattern checkbox, and enter a name (for example end of movement in the box below). Click Add.

Picture
The newly created pattern can be seen in the previews on the ANALYSIS page in the Patterns tab.
Picture
Creating and Running an Analysis
The newly-created end of movement pattern can be used to create an analysis suite. To create an analysis suite:
  1. Click on New Suite
  2. Name the new suite - in this case find end of movement
  3. Select Pattern Search from the list of measurement types and click on Add Step to Suite
  4. Select end of movement from the list of saved patterns
  5. Save the suite
​

Picture
The new Suite should appear in the list. To run this suite against saved data:
  1. Select the checkbox for that suite
  2. Click on Run Selected
  3. Select which data to run the suite on. Data can be selected either by selecting multiple runs with the control key, or by config name. 
  4. Click on Run. The gears will turn while the analysis is running.
Picture
Picture
The results page for any data captured in the run will have a new marker where the pattern matched. Hovering over this marker shows that the comment has been set to end of movement feature found, and that the author is GradientOne. The results page will also have three new views - Pattern Overlay will have the original pattern overlayed where it was matched, and Full Analysis has areas, convolutions and intersections. To remove these new traces and markers from the original data, run the Clear Generated Analysis Results suite on the data.

How it Works
Unlike other GradientOne analysis suites, the Pattern Search does not use any Machine Learning techniques, instead using pure calculus. We test for congruence - meaning, we check to see whether two shapes are roughly the same. If all of the points in shape A can fit within area of shape B, and the area of shape A is the same as shape B, then shape A must be the same as shape B.

In practice, this means that we look for intersections between the area under the trace curve and the convolution of the trace and target. The animated gif below shows this calculation in action.
Picture
In this graph, the blue line is the trace being searched for the target pattern defined by the orange line. The green line represents the area under the blue curve at the current scan location of the target pattern (the area of the graph covered by the green hatch pattern) and the red line is the convolution between the trace and target pattern (the area of the graph covered by the red hatch pattern). At the location of intersection, the target matches the trace, which we highlight with a vertical line.

You can see the area and convolution curves, and where they intersect by selecting the Full Analysis: 
Picture
 Closing

Automated pattern matching techniques like this eliminate the need for engineers to use cursors,  markers, and other manual tools to find the needle in the haystack and calculate measurements.  Whether on the R&D bench or the production floor, cloud powered analytics are becoming a key asset in the pursuit of higher quality, better products, and increased  engineering efficiency.

3 Comments

    Archives

    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    September 2017
    August 2017
    July 2017
    June 2017
    April 2017
    July 2016

    Categories

    All
    Instrument
    Usability

    RSS Feed


​Home
News
Jobs
​
Privacy Policy
Contact Us
OUR MISSION - 
GradientOne’s mission is to improve the work of engineers,manufacturing organizations,  technical support teams, and scientists, by using cloud computing to streamline instrument management, data collection, analysis, reporting and search.
        ©2019 GradientOne Inc.  All Rights Reserved.
  • Home
  • Why GradientOne?
    • How It Works
    • Product Features
  • Solutions
    • Test Engineering
    • Compliance Labs
  • Resources
    • API
    • Blog
    • News
    • Documentation
  • Free Trial Signup