machine learning to scale fault detection in smart energy...

86
Machine Learning to Scale Fault Detection in Smart Energy Generation and Building Systems R. Lily Hu UC Berkeley November 18, 2016 Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Upload: others

Post on 24-May-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Machine Learning to Scale Fault Detection in Smart Energy Generation and Building

Systems

R. Lily Hu

UC Berkeley

November 18, 2016

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 2: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Overview

2

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Motivation and Background

Methodology

Application: Wind Turbines

Application: Commercial Buildings

Extension: Residential Energy Scheduling and Policy Application[1]

Conclusions and Future Work

[1] Hu, RL, Skorupski, R, Entriken, Ye, Y. 2016. A Mathematical Programming Formulation for Optimal Load Shifting of Electricity Demand for the Smart Grid. IEEE Transactions on Big Data: Big Data for Cyber-Physical Systems.

Page 3: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Thesis

Machine Learning and Data Driven

Techniques

Existing Sensor Data

Improve Energy System Performance

Fault Detection

Decrease Cost

Data image: https://openclipart.org/detail/256922/infographic-and-statistic-vector-packSensor: https://openclipart.org/detail/212119/sensors 3

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

$ kW

!

To+And Through

Page 4: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Background

4

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 5: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Definitions

Fault - a problem in the system, unpermitted deviation from acceptable, usual, or standard condition

Fault detection – indication of a fault

Improve energy system performance – increase energy generation output, increase efficiency, decrease energy waste

5

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 6: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Wind Turbine Monitoring

6

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 7: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Image: http://www.fosterandpartners.com/media/1723582/img0.jpg7

Page 8: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Wind Turbine O&M

Image Source: http://www.geograph.org.uk/photo/3434166[1] European Wind Energy Association (EWEA), “The Economics of Wind Energy,” Tech. Rep., 2009.

• Operations & Maintenance accounts for 25% of turbine LCOE over its lifetime [1]

• Remote locations

• Remote monitoring and maintenance scheduling extremely important

8

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 9: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Turbine Data

9

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Image of people: http://cliparting.com/free-business-clipart-25733/

10 min data

Page 10: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Turbine Manufacturer Service Plans

Central Data Center

10

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Image of people: http://cliparting.com/free-business-clipart-25733/

Page 11: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Turbine Manufacturer Service Plans

Central Data Center

Image of people: http://cliparting.com/free-business-clipart-25733/11

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 12: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

On-Site Maintenance or Independent Service Providers

Image of people: http://cliparting.com/free-business-clipart-25733/12

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 13: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection in Wind Turbines

13

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Condition monitoring systems

• Vibration/oil particulate sensors

• $15,000+ per turbine [2]

Power Curve Modelling

Performance monitoring using controls data• Very little work on fault diagnosis or prognosis

• [2] W. Yang et al., “Wind turbine condition monitoring: Technical and commercial challenges,” Wind Energy, vol. 17, no. 5, pp. 673–693, 2014.

Wind Speed

Pow

er

Page 14: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Commercial Building Monitoring

14

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 15: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Buildings

Buildings~40%

Industrial and Transportation

~60%

US NATIONAL ENERGY USE

Graph data: http://www.eia.gov/tools/faqs/faq.cfm?id=86&t=1

15-30% Of energy used in commercial buildings is wasted by poorly maintained, degraded, and improperly controlled equipment[2]

3.3 Bil$ Worth of energy wasted by 13 of the most common faults[3]

[2]Srinivas Katipamula and Michael R. Brambley. Review article: Methods for fault detection, diagnostics, and prognostics for building systems: A review, Part I. HVAC&R Research, 11(1):3-25, 2005[3]E. Mills. Building commissioning: a golden opportunity for reducing energy costs and greenhouse gas emissions in the United States. Energy Efficiency, 4(2):145:173, 2011

15

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 16: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Building Fault Detection

16

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Occupant complaintsRoutine and non-schedule maintenance

Image of people: http://cliparting.com/free-business-clipart-25733/

Page 17: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Building Fault Detection

Expertise, may include:• Equipment specs• Building operations• Modeling• Fault detection• Sensors installation• Communications and ITHardwareTailored Solution 17

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Occupant complaintsRoutine and non-schedule maintenance

Image of people: http://cliparting.com/free-business-clipart-25733/

Page 18: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Process Methods

18

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 19: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Process

Measurements

Features

Decisions

Classes

19

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Venkatasubramanian, Venkat, et al. "A review of process fault detection and diagnosis: Part I: Quantitative model-

based methods." Computers & chemical engineering 27.3 (2003): 293-311.

Page 20: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Process

Measurements

Features

Decisions

Classes

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Ex. Wind turbine controls data

Page 21: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Process

Measurements

Features

Decisions

Classes

21

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Ex. Wind turbine controls data

Ex. Power output, wind speed

Page 22: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Process

Measurements

Features

Decisions

Classes

22

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Ex. Wind turbine controls data

Ex. Power output, wind speed

Wind Speed

Ex.

Pow

er

Page 23: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Process

Measurements

Features

Decisions

Classes

23

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Ex. Wind turbine controls data

Ex. Power output, wind speed

Pow

er

Wind Speed

Ex.

Ex. Faulty sensor

Page 24: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Methods

Process History

24

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Quantitative Model Based

Qualitative

Page 25: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Methods

Process History

25

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Quantitative Model Based

Qualitative

RulesLimitsAlarmsHeuristicsExpert SystemsQualitative physics based

Page 26: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Methods

Process History

26

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Quantitative Model Based

Detailed physical modelsSimplified physical models

Qualitative

RulesLimitsAlarmsHeuristicsExpert SystemsQualitative physics based

Page 27: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Methods

Black boxStatisticalNeural networksOther pattern recognition

Gray box/hybrid approaches

Quantitative Model Based

Process History

27

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Detailed physical modelsSimplified physical models

Qualitative

RulesLimitsAlarmsHeuristicsExpert SystemsQualitative physics based

Page 28: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Methodology

28

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 29: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Methodology

Measurements

Features

Decisions

Classes

30

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 30: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Methodology

Expert Knowledge Generic to the System

Measurements

Features

Decisions

Classes

31

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 31: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Methodology

Machine Learning

Expert Knowledge Generic to the System

Measurements

Features

Decisions

Classes

32

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 32: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Machine Learning Introduction

Machine learning - systems that learn to solve information processing problemsLearn - use experience (ex. training samples) to improve performance

33

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 33: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Machine Learning Introduction

Machine learning - systems that learn to solve information processing problemsLearn - use experience (ex. training samples) to improve performance

Given X, infer Y

34

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 34: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Machine Learning Introduction

Machine learning - systems that learn to solve information processing problemsLearn - use experience (ex. training samples) to improve performance

Samples

Features

X Y

Given X, infer Y

35

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Labels

Page 35: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Proposed Methodology – Existing Data

Timestamped Samples

OriginalSensor

Features

Features

X

Class Labels

Fault or no fault

Y

36

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 36: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Proposed Methodology – Expert Knowledge

Timestamped Samples

OriginalSensor

Features

New features derived from

sensor features“Virtual sensors”

Features

X

Class Labels

Fault or no fault

Y

Can be input into various machine learning models and algorithmsCan use off-the-shelf solvers and libraries

37

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 37: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Proposed Methodology – Expert Knowledge

Timestamped Samples

OriginalSensor

Features

New features derived from

sensor features“Virtual sensors”

Features

X

Class Labels

Fault or no fault

Y

Can be input into various machine learning models and algorithmsCan use off-the-shelf solvers and libraries

38

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 38: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Expert KnowledgeData collection methods:• Interview • Group brainstorm• Documentation: manuals, technician teaching material, industry articles

39

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 39: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Expert Knowledge

These experts include: • A performance specialist • A director power plant engineering• A business development engineer• A wind farm operator and maintenance

dispatcher• A wind turbine researcher• Six building scientists• A data engineer• One building manager

From organizations that include:• Wind turbine manufacturers• Wind farm operator• Building controls company• Universities• Research lab

Data collection methods:• Interview • Group brainstorm• Documentation: manuals, technician teaching material, industry articles

40

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 40: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Expert Knowledge Features

Uses knowledge of the application. Including knowledge of:

• The quantities that the original features correspond to• The location of where data for those features is collected • The operation of the application

41

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 41: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Expert Knowledge Features

Uses knowledge of the application. Including knowledge of:

• The quantities that the original features correspond to, • The location of where data for those features is collected, • The operation of the application

Ex.

Inside Temperature

Outside temperature

42

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 42: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Expert Knowledge Features

Uses knowledge of the application. Including knowledge of:

• The quantities that the original features correspond to, • The location of where data for those features is collected, • The operation of the application

Ex.

Inside Temperature

Outside temperature

Air Conditioning

System

Cooling Output

Energy Input

43

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 43: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Time Series Features

One data pointY

t44

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 44: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Time Series Features

One data pointY

tt-1t-2t-3t-4t-545

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 45: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Statistical FeaturesMoving averageMoving standard deviation

Captures trends and slow moving behaviors

Filters high frequency noise

46

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 46: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Statistical Features

47

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Moving averageMoving standard deviation

Captures trends and slow moving behaviors

Filters high frequency noise

Page 47: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Quick Recap

Machine Learning

Expert Knowledge Generic to the System

Measurements

Features

Decisions

Classes

48

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

√ √

Page 48: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Quick Recap

Machine Learning

Expert Knowledge Generic to the System

Measurements

Features

Decisions

Classes

49

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

√ √

Page 49: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Feature Selection

50

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 50: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

What is Feature Selection?

51

Power1

Angle1

Temperature1

Avg Temperature1

Wind Speed1

Select

All the Features

Power1

Wind Speed1

Subset of features

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

etc…

Page 51: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

What is Feature Selection?

52

Power1

Angle1

Temperature1

Avg Temperature1

Wind Speed1

Select

All the Features

Power1

Wind Speed1

Subset of features

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

etc…

Page 52: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

What is Feature Selection?

53

Power1

Angle1

Temperature1

Avg Temperature1

Wind Speed1

Select

All the Features

Power1

Wind Speed1

Subset of features

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

etc…

Pow

er

Wind Speed

Page 53: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Methodology - Feature Selection

Remove features with zero variance

Use Maximize Relevance Minimize Redundancy criterion (mRMR) to select features

54

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 54: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Methodology - Feature Selection

Remove features with zero variance

Use Maximize Relevance Minimize Redundancy criterion (mRMR) to select features

55

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

mRMR

Ordered list of features1. Top feature 12. Top feature 2…

Page 55: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Quick Recap

Machine Learning

Expert Knowledge Generic to the System

Measurements

Features

Decisions

Classes

56

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 56: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Quick Recap

Machine Learning

Expert Knowledge Generic to the System

Measurements

Features

Decisions

Classes

57

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

√ √√

Page 57: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Quick Recap

Machine Learning

Expert Knowledge Generic to the System

Measurements

Features

Decisions

Classes

58

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

√ √√

Page 58: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Machine Learning Models

59

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 59: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection as a Classification Problem

Two classes : no fault, faultMulticlass : no fault, fault 1, fault 2, etc…

60

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 60: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection as a Classification Problem

Two classes : no fault, faultMulticlass : no fault, fault 1, fault 2, etc…

Support vector machine (SVM)• SVMs are well suited to this problem [3]• SVMs have seen past success in condition

monitoring [4]• Basic premise: separating hyperplane in

high-dimensional space using kernels [5]

[3] B. E. Boser, I. M. Guyon, and V. N. Vapnik, “A Training Algorithm for Optimal Margin Classifiers,” Proceedings of the Fifth Annual ACM Workshop on Computational Learning Theory, 1992.[4] N. Laouti, N. Sheibat-othman, and S. Othman, “Support Vector Machines for Fault Detection in Wind Turbines,” 18th IFAC World Congress,, 2011.[5] A. Widodo and B.-S. Yang, “Support vector machine in machine condition monitoring and fault diagnosis,” Mechanical Systems and Signal Processing, vol. 21, no. 6, 2007.

61

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 61: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Train the Model

Algorithms and libraries train models for you

Weigh the data• Ensure balanced classes• Weigh more recent data more than older data

To tune hyperparameters, use randomized grid searchTrain using 10-fold cross validation

62

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 62: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Application to Wind Turbines

63

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 63: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Wind Turbine Data

3MW wind turbine in Ireland1 year of data 10 minute SCADA data – standard in the wind industry4 types of faults

64

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 64: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Proposed Methodology – Expert Knowledge

Timestamped Samples

OriginalSensor

Features

Features

X

Class Labels

Fault or no fault

Y

65

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 65: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Proposed Methodology – Expert Knowledge

Timestamped Samples

Features

X

Class Labels

Fault or no fault

Y

66

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Pow

er

Tem

per

atu

re

Page 66: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Proposed Methodology – Expert Knowledge

Timestamped Samples

OriginalSensor

Features

New features derived from

sensor features

Features

X

Class Labels

Fault or no fault

Y

67

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 67: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Proposed Methodology – Expert Knowledge

Timestamped Samples

Features

X

Class Labels

Fault or no fault

Y

68

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Pow

er

Tem

per

atu

re

Tem

p1

–Te

mp

2

Tem

per

atu

re -

10

min

s

Page 68: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Proposed Methodology – Expert Knowledge

Timestamped Samples

OriginalSensor

Features

New features derived from

sensor features

Features

X

Class Labels

Fault or no fault

Y

69

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 69: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Proposed Methodology – Expert Knowledge

Timestamped Samples

OriginalSensor

Features

New features derived from

sensor features

Features

X

Class Labels

Fault or no fault

Y

70

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

mRMR

1. Top feature 12. Top feature 2…

Page 70: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Top 10 Selected Features1. Difference between P technical and P external 2. System 1 inverter 1 cabinet temp t-30min 3. 2hr mean of average blade angle A 4. 2hr stddev of spinner temp 5. Difference between P technical and P majeure 6. 2hr mean of RTU ava Setpoint 1 7. 2hr stddev of rear bearing temp 8. 2hr mean of rotor temp 1 9. Difference between avg Power and P from wind 10. Average Nacel position including cable twisting t-60min

All new features:• 3 engineering knowledge

features• 3 moving means• 2 moving standard deviations• 2 delays

71

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 71: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Comparison of Relative Rankings Between Original and New Features

72

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

0C

ou

nt

+500-500

Relative Ranking

Page 72: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Comparison of Relative Rankings Between Original and New Features

73

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Original Features Ranked Higher

New Features Ranked Higher

0C

ou

nt

+500-500

Relative Ranking

Page 73: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Comparison of Relative Rankings Between Original and New Features

New features are ranked higher than the original features they are derived fromSometimes ranked substantially higher

74

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

0C

ou

nt

+500-500

Original Features Ranked Higher

New Features Ranked Higher

Page 74: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Results

75

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Results on Testing DataResults on Training Data

Page 75: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Results on Testing DataResults on Training Data

Fault Detection Results

76

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Perf

orm

ance

Sco

re

Number of Features

Perf

orm

ance

Sco

re

Number of Features

Page 76: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Results – Precision

77

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Precision – Ratio of true positives to missed alarms‘Fault’ as Positive is plotted. ‘No Fault’ as Positive is 99%-100%

𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒

𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒 + 𝐹𝑎𝑙𝑠𝑒 𝑁𝑒𝑔𝑎𝑡𝑖𝑣𝑒

Page 77: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Results – Recall

78

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Recall – Ratio of true positives to false alarms‘Fault’ as Positive is plotted. ‘No Fault’ as Positive is 99%-100%

𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒

𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒 + 𝐹𝑎𝑙𝑠𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒

Page 78: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Results – F1 Score

79

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

F1 – harmonic mean of precision and recall‘Fault’ as Positive is plotted. ‘No Fault’ as Positive is 99%-100%

2 ∗ 𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒

2 ∗ 𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒 + 𝐹𝑎𝑙𝑠𝑒 𝑁𝑒𝑔𝑎𝑡𝑖𝑣𝑒 + 𝐹𝑎𝑙𝑠𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒

Page 79: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Results

Hu, RL, Leahy, K, Konstantakopoulos, IC, Auslander, DM, Spanos, C, Agogino, AM. 2016. Application Domain Knowledge Features for Diagnostics in Wind Turbines. IEEE International Conference on Machine Learning and Applications.

• Higher classification scores and improved detection of faults while using fewer features • F1 score improves by 20% using the same number of features• F1 score improves by up to 27% with more features

• Improvements are seen using only basic, general knowledge of wind turbines that is not specific to the particular wind turbine installation.

80

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 80: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Application: Commercial Building Chiller Plants

Chiller Plants - large facilities that provide centralized chilled water to cool large buildings and multi-building campuses

81

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 81: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Data – LBNL Molecular Foundry

6 floors~100 occupants24x7 operations3 chillers2 cooling towers

5 min datas3 types of faults 6 different faults in total

82

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 82: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Fault Detection Results – F1 score

84

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 83: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

How to Scale

To apply this methodology to another system requires:1. Identify common data points in the control system2. Create a list of basic application knowledge

Lowered cost of deployment due to• Lack of reliance on individual deployment specific information• Use of off-the-shelf algorithms and libraries• No additional sensors

86

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 84: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Conclusions

• Existing control system data can be used for automated fault detection• Can be combined with general application domain knowledge to create

virtual sensors that may combine several sensors• Increases the performance of fault detection• Only a few sensors are necessary to detect faults with high accuracy rates• Features can be automatically selected• Top selected features have probabilistic relationship to a fault, but may not

be the sensor directly at the fault location at the time of the fault • Enables savings from decreased data collection needs and avoids problems

from high dimensional data

87

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 85: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Future WorkProblems Regarding Faults• Other faults, fault prognostics, early detection• Account for when faults are fixed and the physical system changes• Apply to other systems• Fuse expert knowledge with data driven approachesAlgorithms and Computation• More effective choices of parameters• Other machine learning models, process history methods, point processes

methods• Address computational challengesUser Experience• Support for decision-analytic queries• Ease of installation • Encourage action

88

Introduction Methodology Wind Turbines Commercial Buildings Conclusions

Page 86: Machine Learning to Scale Fault Detection in Smart Energy ...best.berkeley.edu/wp-content/uploads/2015/07/PhD-Presentation_Lily… · Machine Learning Introduction Machine learning

Thank You

Introduction Methodology Wind Turbines Commercial Buildings Conclusions