70
1 © 2021 The MathWorks, Inc. Data analysis and Predictive Maintenance with MATLAB and Simulink Dr.-Ing. Marco Rossi Edu Customer Success Engineer, The MathWorks [email protected] 26 th July 2021

Data analysis and Predictive Maintenance with MATLAB and

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Data analysis and Predictive Maintenance with MATLAB and

1© 2021 The MathWorks, Inc.

Data analysis and Predictive Maintenance with

MATLAB and Simulink

Dr.-Ing. Marco RossiEdu Customer Success Engineer, The MathWorks

[email protected] 26th July 2021

Page 2: Data analysis and Predictive Maintenance with MATLAB and

2

Conclusions

Case Study: flow pack machine

Predictive Maintenance workflow

Predictive Maintenance and what to expect from it

Event outline

Page 3: Data analysis and Predictive Maintenance with MATLAB and

3

MathWorks Today

in 2017 revenues with

60% from outside the US

$900+

million

4000+

staffin 31 offices around

the world

3 million+

usersin more than 180

countries

and profitable every year

Privately

held

Headquarters

Natick, MA USA Europe

France

Germany

Ireland

Italy

Netherlands

Spain

Sweden

Switzerland

UK

Asia-Pacific

Australia

China

India

Japan

Korea

North America

United States

Page 4: Data analysis and Predictive Maintenance with MATLAB and

4

Our software is used to design the products we rely on every day

Commercial Aircraft

Smartphones

Automobiles

Consumer Goods

Page 5: Data analysis and Predictive Maintenance with MATLAB and

5

And the breakthroughs transforming how we live, learn, and work

Advanced ProstheticsReusable Rockets

Covid-19 Research Ecology

Page 6: Data analysis and Predictive Maintenance with MATLAB and

6

Pool 1

Let’s test your knowledge

https://forms.office.com/r/Yueu8cuEFx

Scan me!

Page 7: Data analysis and Predictive Maintenance with MATLAB and

7

MATLAB and …

Math. Graphics. Programming.

• data analysis

• optimization

• predictive modelling

• algorithm development

MATLAB: high powerful scripting language

Page 8: Data analysis and Predictive Maintenance with MATLAB and

8

MATLAB and Simulink and …

Simulink: simulation and model based design

• integration multifield environment

• optimized model development

• grid design/integration

• code generation

Transforming the way Engineers work.

Page 9: Data analysis and Predictive Maintenance with MATLAB and

9

Schematic Physical Modeling

• multi-physics problem

• simple visualization

• learning oriented

• self-defined equations

Simscape: Physical Modeling

MATLAB and Simulink and Simscape and …

𝐹ext = 𝑚 ሷ𝑥 + 𝑏 ሶ𝑥 + 𝑘𝑥

Page 10: Data analysis and Predictive Maintenance with MATLAB and

10

MATLAB and much more…https://www.mathworks.com/products.html

Toolboxes and Add-Ons:

▪ more than 350 by MathWorks

▪ more than 40k by Community

Control System Toolbox - design and analyze control systems

Automated Driving Toolbox – design, simulate and test ADAS

Page 11: Data analysis and Predictive Maintenance with MATLAB and

11

The Impact of AI in the near future

Page 12: Data analysis and Predictive Maintenance with MATLAB and

12

Artificial Intelligence Index Report 2021 - HAI - Stanford University https://aiindex.stanford.edu/wp-content/uploads/2021/03/2021-AI-Index-Report_Master.pdf

Easily integrate Artificial Intelligence in your researchAI skills for next generation students

Page 13: Data analysis and Predictive Maintenance with MATLAB and

13

learn complex non-linear relationships

Solution is too complex for handwritten rules or equations

Speech Recognition Object Recognition Predictive Maintenance

update as more data becomes available

Solution needs to adapt with changing data

Weather Forecasting Energy Load Forecasting Stock Market Prediction

learn efficiently from very large data sets

Solution needs to scale

IoT Analytics Taxi Availability Airline Flight Delays

Easily integrate Artificial Intelligence in your researchAI is everywhere

Page 14: Data analysis and Predictive Maintenance with MATLAB and

14

learn complex non-linear relationships

Solution is too complex for handwritten rules or equations

Speech Recognition Object Recognition Predictive Maintenance

update as more data becomes available

Solution needs to adapt with changing data

Weather Forecasting Energy Load Forecasting Stock Market Prediction

learn efficiently from very large data sets

Solution needs to scale

IoT Analytics Taxi Availability Airline Flight Delays

Easily integrate Artificial Intelligence in your researchAI is everywhere

Page 15: Data analysis and Predictive Maintenance with MATLAB and

15© 2021 The MathWorks, Inc.

Page 16: Data analysis and Predictive Maintenance with MATLAB and

16

Why perform maintenance?

▪ Example:Faulty braking system → wind turbine disaster

▪ Wind turbines cost millions of dollars

▪ Failures can be dangerous

▪ Maintenance → expensive and dangerous

Page 17: Data analysis and Predictive Maintenance with MATLAB and

17

Types of Maintenance

Reactive Maintain once there is a problem

ScheduledMaintain at a regular rate

Predictive Forecast when problems will arise

Example Replace car’s battery after a problem

Example Change car’s oil every 10,000 km

Example Act on the specific equipment (e.g.

battery) when a failure is predicted

Issue Unexpected failures can be expensive

and potentially dangerous

Issue Unnecessary maintenance can be

wasteful

Issue Difficult to make accurate forecasts for

complex equipment

Page 18: Data analysis and Predictive Maintenance with MATLAB and

18

Example Change car’s oil every 10,000 km

Types of Maintenance

Reactive Maintain once there is a problem

ScheduledMaintain at a regular rate

Predictive Forecast when problems will arise

Example Replace car’s battery after a problem

Example Act on the specific equipment (e.g.

battery) when a failure is predicted

Issue Unexpected failures can be expensive

and potentially dangerous

Issue Unnecessary maintenance can be

wasteful

Issue Difficult to make accurate forecasts for

complex equipment

Page 19: Data analysis and Predictive Maintenance with MATLAB and

19

Why perform Predictive Maintenance?

✓ Reduced maintenance costs

✓ Reduced equipment failures

✓ Reduced downtime for repairs

✓ Increased service life of parts

✓ Increased equipment safety

✓ Increased overall profitability Image: Tensor Systems

Page 20: Data analysis and Predictive Maintenance with MATLAB and

20

Examples of Predictive Maintenance across industries

Online engine health monitoring

▪ Real-time analytics integrated with enterprise

service systems

▪ Predict sub-system performance:

oil, fuel, liftoff, mechanical health, controls

Pump Health Monitoring System

▪ Spectral analysis and filtering on binary sensor

data and neural network model prediction

▪ More than $10 million projected savings

Production machinery failure warning

▪ Reduce waste and machine downtime

▪ MATLAB based HMI warns operators of potential

failures

▪ > 200,000 € savings per year

Page 21: Data analysis and Predictive Maintenance with MATLAB and

21

Examples of Predictive Maintenance across industries

Page 22: Data analysis and Predictive Maintenance with MATLAB and

22

The challenges associated with predictive maintenance

Hard to get started

Too many options for

machine learning,

feature extraction, etc.

Lack of failure data

Integrating algorithms

with existing

infrastructure

Page 23: Data analysis and Predictive Maintenance with MATLAB and

23

Solutions

Page 24: Data analysis and Predictive Maintenance with MATLAB and

24

MathWorks provides a complete workflow solution

▪ Get started using reference examples for different machines

▪ Consulting & Training can support the process

▪ Use MATLAB to explore machine learning techniques

▪ Use Predictive Maintenance Toolbox to design different models

▪ Use Simulink to create a Digital Twin of the equipment

▪ Generate failure data directly from the simulated model

▪ Deploy on embedded devices through C/C++ code generation

▪ Integrate with enterprise IT systems with MATLAB Production Server

Page 25: Data analysis and Predictive Maintenance with MATLAB and

25© 2021 The MathWorks, Inc.

Page 26: Data analysis and Predictive Maintenance with MATLAB and

26

How does Predictive Maintenance work?

Page 27: Data analysis and Predictive Maintenance with MATLAB and

27

Ingredients

Page 28: Data analysis and Predictive Maintenance with MATLAB and

28

ALGORITHM

Failure in

20 ± 2 days

DATA

INFRASTRUCTURE

DEPLOY

Ingredients

Page 29: Data analysis and Predictive Maintenance with MATLAB and

29

Acquire

Data• Sensor

• Synthetic

Preprocess

Data

Identify

Condition

Indicators

Train

Model

Deploy &

Integrate

Algorithm development workflow

Page 30: Data analysis and Predictive Maintenance with MATLAB and

30

Preprocess

Data

Identify

Condition

Indicators

Train

Model

Deploy &

Integrate

Algorithm development workflow

Acquire

Data• Sensor

• Synthetic

• Digital-twin for generating faulty data

o no failures on the actual system

o failures injected on relevant components

Time

Sensor data Flow pack machine

Time

Sensor data

Inject faults• Motor winding – phase • Bearing – damping coef. • Gear box – efficiency Digital twin

of the flow pack machine

Refine model

Time

Synthetic data

Page 31: Data analysis and Predictive Maintenance with MATLAB and

31

Identify

Condition

Indicators

Train

Model

Deploy &

Integrate

Algorithm development workflow

Acquire

Data• Sensor

• Synthetic

• Data preprocessing

o signals and time-series prepared for the next step

o filtering, smoothing, labeling, etc.

Preprocess

Data

Source: Andrej Karpathy slide from TrainAI 2018

Page 32: Data analysis and Predictive Maintenance with MATLAB and

32

Train

Model

Preprocess

Data

Deploy &

Integrate

Algorithm development workflow

Acquire

Data• Sensor

• Synthetic

Identify

Condition

Indicators

• Condition indicators

o Analyze data & extract features

o Select the most appropriate one

o Diagnostic Feature Designer App by MathWorks

Page 33: Data analysis and Predictive Maintenance with MATLAB and

33

Preprocess

Data

Deploy &

Integrate

Algorithm development workflow

Acquire

Data• Sensor

• Synthetic

Identify

Condition

Indicators

• Condition monitoring ( “is my machine healthy? Is it failing? What’s failing exactly?” ):

o assess machine’s current condition, detect and diagnose faults

o Classification Learner App by MathWorks

Machine Learning

Train

Model

Page 34: Data analysis and Predictive Maintenance with MATLAB and

34

Preprocess

Data

Deploy &

Integrate

Algorithm development workflow

Acquire

Data• Sensor

• Synthetic

Identify

Condition

Indicators

• Prognostics ( “how much time do I have before my machine fails?” ):

o forecast when a failure will happen based on the current and past state of the machine,

o estimate machine's remaining useful life (RUL) or time-to-failure

Machine Learning

Train

Model

Page 35: Data analysis and Predictive Maintenance with MATLAB and

35

Train

Model

Preprocess

Data

Algorithm development workflow

Acquire

Data• Sensor

• Synthetic

Identify

Condition

Indicators

• Deployment & Integration:

o developed algorithms can be distributed on different targets: edge, embedded devices, etc.

o models and functions designed in MATLAB can be integrated with IT/Enterprise existing services

Deploy &

Integrate

Page 36: Data analysis and Predictive Maintenance with MATLAB and

36© 2021 The MathWorks, Inc.

Page 37: Data analysis and Predictive Maintenance with MATLAB and

37

Case Study: flow pack machine

Page 38: Data analysis and Predictive Maintenance with MATLAB and

38

❑ Data gatheringAcquisition/generation and preprocessing

❑ Condition monitoringDetect and diagnose failures on servomotor and gearbox

❑ PrognosticsPredict RUL for bearing system

Case Study: flow pack machine

Page 39: Data analysis and Predictive Maintenance with MATLAB and

39

Case Study: flow pack machine

Simscape™

Run

Simulations

Page 40: Data analysis and Predictive Maintenance with MATLAB and

40

Handle data efficiently: Ensemble Datastores and Tall Arrays

Page 41: Data analysis and Predictive Maintenance with MATLAB and

41

❑ Data gatheringAcquisition/generation and preprocessing

❑ Condition monitoringDetect and diagnose failures on servomotor and gearbox

❑ PrognosticsPredict RUL for bearing system

Case Study: flow pack machine Machine Learning

Page 42: Data analysis and Predictive Maintenance with MATLAB and

42

Poll 2

Machine Learning?

Scan me!

https://forms.office.com/r/ZcmYprvLMm

Page 43: Data analysis and Predictive Maintenance with MATLAB and

43

What’s Machine Learning about?An easy explanation

Page 44: Data analysis and Predictive Maintenance with MATLAB and

44

Machine Learning uses data and produces a program to perform a task

Task: detect and diagnose fault in the system

Classification

Model

‘DANGEROUS’

‘BAD’

‘WARNING’

‘GOOD’

Features

Machine Learning for Predictive Maintenance

Sensor/simulation data

STEP 1 STEP 2

Statistics and Machine Learning Toolbox™Predictive Maintenance Toolbox™

Page 45: Data analysis and Predictive Maintenance with MATLAB and

45

Machine Learning uses data and produces a program to perform a task

Task: detect and diagnose fault in the system

Classification

Model

‘DANGEROUS’

‘BAD’

‘WARNING’

‘GOOD’

Features

Machine Learning for Predictive Maintenance

Sensor/simulation data

STEP 1 STEP 2

Statistics and Machine Learning Toolbox™Predictive Maintenance Toolbox™

Page 46: Data analysis and Predictive Maintenance with MATLAB and

46

1. Import Data

2. Data Visual Inspection

3. Feature CalculationVisual inspection

4. Feature Ranking

5. Export Code and Results

STEP 1: Feature extraction – Diagnostic Feature Designer

Page 47: Data analysis and Predictive Maintenance with MATLAB and

47

1. Import Data

2. Data Visual Inspection

3. Feature CalculationVisual inspection

4. Feature Ranking

5. Export Code and Results

STEP 1: Feature extraction – Diagnostic Feature Designer

Page 48: Data analysis and Predictive Maintenance with MATLAB and

48

1. Import Data

2. Data Visual Inspection

3. Feature CalculationVisual inspection

4. Feature Ranking

5. Export Code and Results

STEP 1: Feature extraction – Diagnostic Feature Designer

Page 49: Data analysis and Predictive Maintenance with MATLAB and

49

1. Import Data

2. Data Visual Inspection

3. Feature CalculationVisual inspection

4. Feature Ranking

5. Export Code and Results

STEP 1: Feature extraction – Diagnostic Feature Designer

Page 50: Data analysis and Predictive Maintenance with MATLAB and

50

1. Import Data

2. Data Visual Inspection

3. Feature CalculationVisual inspection

4. Feature Ranking

5. Export Code and Results

STEP 1: Feature extraction – Diagnostic Feature Designer

General Parameter

Pro

ba

bili

ty

Fault 0 Fault 1 Fault 2 Fault 3 Fault 4 Fault 5

Page 51: Data analysis and Predictive Maintenance with MATLAB and

51

1. Import Data

2. Data Visual Inspection

3. Feature CalculationVisual inspection

4. Feature Ranking

5. Export Code and Results

STEP 1: Feature extraction – Diagnostic Feature Designer

Page 52: Data analysis and Predictive Maintenance with MATLAB and

52

1. Import Data

2. Data Visual Inspection

3. Feature CalculationVisual inspection

4. Feature Ranking

5. Export Code and Results

STEP 1: Feature extraction – Diagnostic Feature Designer

Page 53: Data analysis and Predictive Maintenance with MATLAB and

53

Machine Learning uses data and produces a program to perform a task

Task: detect and diagnose fault in the system

Classification

Model

‘DANGEROUS’

‘BAD’

‘WARNING’

‘GOOD’

Features

Machine Learning for Predictive Maintenance

Sensor/simulation data

STEP 1 STEP 2

Statistics and Machine Learning Toolbox™Predictive Maintenance Toolbox™

Page 54: Data analysis and Predictive Maintenance with MATLAB and

54

1. Import Data

2. Training

3. Result Evaluation

4. Model Refinement

5. Export Code and Results

STEP 2: Train a classification model – Classification Learner

Page 55: Data analysis and Predictive Maintenance with MATLAB and

55

1. Import Data

2. Training

3. Result Evaluation

4. Model Refinement

5. Export Code and Results

STEP 2: Train a classification model – Classification Learner

Page 56: Data analysis and Predictive Maintenance with MATLAB and

56

1. Import Data

2. Training

3. Result Evaluation

4. Model Refinement

5. Export Code and Results

STEP 2: Train a classification model – Classification Learner

Page 57: Data analysis and Predictive Maintenance with MATLAB and

57

1. Import Data

2. Training

3. Result Evaluation

4. Model Refinement

5. Export Code and Results

STEP 2: Train a classification model – Classification Learner

Page 58: Data analysis and Predictive Maintenance with MATLAB and

58

1. Import Data

2. Training

3. Result Evaluation

4. Model Refinement

5. Export Code and Results

STEP 2: Train a classification model – Classification Learner

Page 59: Data analysis and Predictive Maintenance with MATLAB and

59

1. Import Data

2. Training

3. Result Evaluation

4. Model Refinement

5. Export Code and Results

STEP 2: Train a classification model – Classification Learner

Page 60: Data analysis and Predictive Maintenance with MATLAB and

60

❑ Data gatheringAcquisition/generation and preprocessing

❑ Condition monitoringDetect and diagnose failures on servomotor and gearbox

❑ PrognosticsPredict RUL for bearing system

Case Study: flow pack machine Machine Learning

Page 61: Data analysis and Predictive Maintenance with MATLAB and

61

Prediction model – RUL estimation

Healthy state Failure

RUL Estimator Models

Similarity model Degradation model

Survival model

Safety

threshold

Healthy state Failure

Healthy state Failure

Check out: RUL Estimation Using RUL Estimator Models

Page 62: Data analysis and Predictive Maintenance with MATLAB and

62

RUL estimation: results

MATLAB App Designer

Page 63: Data analysis and Predictive Maintenance with MATLAB and

63

Integrate analytics with systems

MATLAB

Runtime

C, C++ HDL PLC

Embedded Hardware

StandaloneApplication Python

MATLABProduction

ServerC/C++ ++

ExcelAdd-in Java

Hadoop/

Spark.NET

Enterprise Systems

PythonStandaloneApplication

(.exe)

Web App

Page 64: Data analysis and Predictive Maintenance with MATLAB and

64© 2021 The MathWorks, Inc.

Page 65: Data analysis and Predictive Maintenance with MATLAB and

65

Key Takeaways

❑ Frequent maintenance + unexpected failures

→ expensive and dangerous

❑ Predictive Maintenance:

▪ Costs

▪ Reliability and safety of equipment

▪ Opportunities for new services

▪ Algorithm complexity

▪ Initial investment

❑ MATLAB → Predictive Maintenance programs

▪ Systematic and integrated approach

▪ Quick & easy

▪ and…

Predictive Maintenance Toolbox™

Statistics and Machine Learning Toolbox™

Page 66: Data analysis and Predictive Maintenance with MATLAB and

66

is a Leader in the 2021 Gartner

Magic Quadrant for Data Science

and Machine Learning Platforms for

the Second Year in a Row

Gartner Magic Quadrant for Data Science and Machine Learning Platforms, Peter Krensky, Carlie Idoine, Erick Brethenoux, Pieter den Hamer, Farhan Choudhary, Afraz Jaffri, Shubhangi Vashisth,1st March 2021.

This graphic was published by Gartner, Inc. as part of a larger research document and should be evaluated in the context of the entire document. The Gartner document is available upon request from MathWorks.

Gartner does not endorse any vendor, product or service depicted in its research publications, and does not advise technology users to select only those vendors with the highest ratings or other designation. Gartner research

publications consist of the opinions of Gartner research organization and should not be construed as statements of fact. Gartner disclaims all warranties, express or implied, with respect to this research, including any

warranties of merchantability or fitness for a particular purpose.

Page 67: Data analysis and Predictive Maintenance with MATLAB and

67

MathWorks can help you get started TODAY

Stateflow OnrampDeep Learning

OnrampSimulink Onramp

12 hours of FREE content –

available for everyone

Over 80 hours of comprehensive MATLAB learning content

Get started

Core MATLAB

Data Science

MATLAB Onramp

FREE FREE FREE FREE

MATLAB

Fundamentals

MATLAB

Programming

Techniques

MATLAB for Data

Processing and

Visualization

Machine Learning

with MATLAB

Deep Learning with

MATLAB

• Interactive learning environment

• Automated assessment and feedback

• Measurable progress report and completion certificate

• 24/7 availability

• No cancellation or travel required

Machine Learning

Onramp

FREE

www.mathworks.com/services/training/

Page 69: Data analysis and Predictive Maintenance with MATLAB and

69© 2021 The MathWorks, Inc.

Thanks. Questions ?Poll 3

https://forms.office.com/r/Zr1rPB1Fkg

Scan me!

Page 70: Data analysis and Predictive Maintenance with MATLAB and

70

Customer Success Stories

‒ Atlas Copco Minimizes Cost of Ownership Using Simulation and Digital Twins

‒ Baker Hughes Develops Predictive Maintenance Software for Gas and Oil Extraction Equipment Using

Data Analytics and Machine Learning

‒ Krones Develops Package-Handling Robot Digital Twin

‒ Lockheed Martin Builds Discrete-Event Models to Predict F-35 Fleet Performance

‒ Metro de Madrid Adopts Machine Learning for Predictive Maintenance in Tunnels

‒ Mondi Implements Statistics-Based Health Monitoring and Predictive Maintenance for Manufacturing

Processes with Machine Learning

‒ Siemens Develops Health Monitoring System for Distribution Transformers