real-time ranking of electrical feeders using expert advice

35
Real-time Ranking of Electrical Feeders using Expert Advice Hila Becker 1,2 , Marta Arias 1 1 Center for Computational Learning Systems 2 Computer Science Department Columbia University

Upload: hila-becker

Post on 10-Jul-2015

743 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Real-time Ranking of Electrical Feeders using Expert Advice

Real-time Ranking of Electrical Feeders using

Expert Advice

Hila Becker 1,2, Marta Arias 1

1Center for Computational Learning Systems2Computer Science DepartmentColumbia University

Page 2: Real-time Ranking of Electrical Feeders using Expert Advice

2

Overview The problem› The electrical system

› Available data

Approach

Challenges

Our solution using Online learning

Experimental results

Page 3: Real-time Ranking of Electrical Feeders using Expert Advice

3

The Electrical System

1. Generation 2. Transmission

3. PrimaryDistribution

4. Secondary Distribution

Page 4: Real-time Ranking of Electrical Feeders using Expert Advice

4

The Problem Distribution feeder failures result in

automatic feeder shutdown› called “Open Autos” or O/As

O/As stress networks, control centers, and field crews

O/As are expensive ($ millions annually) Proactive replacement is much cheaper

and safer than reactive repair How do we know which feeders to fix?

Page 5: Real-time Ranking of Electrical Feeders using Expert Advice

5

Some facts about feeders and failures mostly 0-5 failures

per day more in the

summer strong seasonality

effects

Page 6: Real-time Ranking of Electrical Feeders using Expert Advice

6

Feeder data Static data› Compositional/structural› Electrical

Dynamic data› Outage history (updated daily)› Load measurements (updated every 15

minutes)

Roughly 200 attributes for each feeder› New ones are still being added.

Page 7: Real-time Ranking of Electrical Feeders using Expert Advice

7

OverviewThe problem

› The electrical system

› Available data

Approach

Challenges

Our solution using Online learning

Experimental results

Page 8: Real-time Ranking of Electrical Feeders using Expert Advice

8

Machine Learning ApproachLeverage Con Edison’s domain

knowledge and resourcesLearn to rank feeders based on failure

susceptibilityHow?› Assemble data› Train ranking model based on past data› Re-rank frequently using model on current

data

Page 9: Real-time Ranking of Electrical Feeders using Expert Advice

9

Feeder Ranking Application

Goal: rank feeders according to failure susceptibility › High risk placed near the top

Integrate different types of data

Interface that reflects the latest state of the system› Update feeder ranking every 15 min.

Page 10: Real-time Ranking of Electrical Feeders using Expert Advice

10

Application Structure

Static data

SQLServer

DB

MLEngine

MLModels Rankings

DecisionSupport GUI

ActionDriver

ActionTracker

Decision Support App

Outage data

Xfmr Stress data

Feeder Load data

Page 11: Real-time Ranking of Electrical Feeders using Expert Advice

11

Decision Support GUI

Page 12: Real-time Ranking of Electrical Feeders using Expert Advice

12

OverviewThe problem

› The electrical system

› Available data

Approach

Challenges

Our solution using Online learning

Experimental results

Page 13: Real-time Ranking of Electrical Feeders using Expert Advice

13

Simple Solution Supervised batch-learning algorithms› Use past data to train a model› Re-rank frequently using this model on current

data Use the best performing learning

algorithm› How do we measure performance?› MartiRank - boosting algorithm by [Long &

Servedio, 2005] Use MartiRank for dynamic feeder ranking

Page 14: Real-time Ranking of Electrical Feeders using Expert Advice

14

Performance Metric

Normalized average rank of failed feeders

feedersfailures

failureranki

i

##

)(1

∗−

Page 15: Real-time Ranking of Electrical Feeders using Expert Advice

15

Performance Metric Example

feedersfailures

failureranki

i

##

)(1

∗−

5833.08*3

5321 =++−

0807061504131201

ranking outages

Page 16: Real-time Ranking of Electrical Feeders using Expert Advice

16

Real-time ranking with MartiRankMartiRank is a “batch” learning

algorithmDeal with changing system by:› generating new datasets with latest data› Re-training new model, replacing old

model› Using newest model to generate ranking

Must implement “training strategies”

Page 17: Real-time Ranking of Electrical Feeders using Expert Advice

17

Real-time ranking with MartiRank

time

time

time

Page 18: Real-time Ranking of Electrical Feeders using Expert Advice

18

How to measure performance over time

Every ~15 minutes, generate new ranking based on current model and latest data

Whenever there is a failure, look up its rank in the latest ranking before the failure

After a whole day, compute normalized average rank

Page 19: Real-time Ranking of Electrical Feeders using Expert Advice

19

Using MartiRank for real-time ranking of feeders

MartiRank seems to work well, but..› User decides when to re-train› User decides how much data to use for re-

training› Performance degrades over time

Want to make system automatic› Do not discard all old models› Let the system decide which models to use

Page 20: Real-time Ranking of Electrical Feeders using Expert Advice

20

OverviewThe problem

› The electrical system

› Available data

Approach

Challenges

Our solution using Online learning

Experimental results

Page 21: Real-time Ranking of Electrical Feeders using Expert Advice

21

Learning from expert advice

Consider each model as an expert Each expert has associated weight› Reward/penalize experts with good/bad

predictions

› Weight is a measure of confidence in expert’s prediction

Predict using weighted average of top-scoring experts

Page 22: Real-time Ranking of Electrical Feeders using Expert Advice

22

Learning from expert advice Advantages› Fully automatic› Adaptive› Can use many types of underlying learning

algorithms› Good performance guarantees from learning

theory: performance never too far off from best expert in hindsight

Disadvantages› Computational cost: need to track many models

“in parallel”

Page 23: Real-time Ranking of Electrical Feeders using Expert Advice

23

Weighted Majority Algorithm [Littlestone & Warmuth ‘88]

Introduced for binary classification› Experts make predictions in [0,1]› Obtain losses in [0,1]

Pseudocode:› Learning rate as main parameter, ß in (0,1]› There are N “experts”, initially weight is 1 for all

› For t=1,2,3, … Predict using weighted average of experts’

prediction Obtain “true” label; each expert incurs loss li Update experts’ weights using wi,t+1 = wi,t • pow(ß,li)

Page 24: Real-time Ranking of Electrical Feeders using Expert Advice

24

Weighted Majority Algorithm

e1 . . .e2 e3 eNN Experts

w1 w2 w3 wN

1 0 0 1?

w1*1 + w2*0 + w3*0 + . . . +wN*1>0.5 <0.5

1 0

1

- Calculate li = loss(i) for i=1,…,N- Update: wi,t+1 = wi,t • pow(ß,li) for learning rate ß, time t and i=1,..,N

Page 25: Real-time Ranking of Electrical Feeders using Expert Advice

25

In our case, can’t use WM directly Use ranking as opposed to binary

classification More importantly, do not have a fixed set

of experts

Page 26: Real-time Ranking of Electrical Feeders using Expert Advice

26

Dealing with ranking vs. binary classification

Ranking loss as normalized average rank of failures as seen before, loss in [0,1]

To combine rankings, use a weighted average of feeders’ ranks

Page 27: Real-time Ranking of Electrical Feeders using Expert Advice

27

Dealing with a moving set of experts Introduce new parameters› B: “budget” (max number of models) set to

100

› p: new models weight percentile in [0,100]

› α: age penalty in (0,1]

If too many models (more than B), drop models with poor q-score, where› qi = wi • pow(α, agei)

› I.e., α is rate of exponential decay

Page 28: Real-time Ranking of Electrical Feeders using Expert Advice

28

Online Ranking Algorithm

e1 . . .e2 e3 eB

w1 w2 w3 wB

? F1

F4

F3

F2

F5

F4

F2

F1

F3

F5

F1

F3

F5

F4

F2

F1

F3

F4

F2

F5

F1

F3

F4

F2

F5

F3

F1

F4

F2

F5

eB+1 eB+2

wB+1 wB+2

Page 29: Real-time Ranking of Electrical Feeders using Expert Advice

29

Other parameters How often do we train and add new models?› Hand-tuned over the course of the summer

› Alternatively, one could train when observed performance drops .. not used yet

How much data do we use to train models?› Based on observed performance and early

experiments

1 week worth of data, and

2 weeks worth of data

Page 30: Real-time Ranking of Electrical Feeders using Expert Advice

30

OverviewThe problem

› The electrical system

› Available data

Approach

Challenges

Our solution using Online learning

Experimental results

Page 31: Real-time Ranking of Electrical Feeders using Expert Advice

31

Experimental Comparison

Compare our approach to› Using “batch”-trained models› Other online learning methods

Ranking Perceptron› Online version

Hand Picked Model› Tuned by humans with domain knowledge

Page 32: Real-time Ranking of Electrical Feeders using Expert Advice

32

Performance – Summer 2005

Page 33: Real-time Ranking of Electrical Feeders using Expert Advice

33

Performance – Winter 2006

Page 34: Real-time Ranking of Electrical Feeders using Expert Advice

34

Parameter Variation - Budget

Page 35: Real-time Ranking of Electrical Feeders using Expert Advice

35

Future Work Concept drift detection› Add new models only when change is

detected Ensemble diversity control Exploit re-occurring contexts