disruption predictor based on neural network and anomaly detection · 2019. 5. 13. · •anomaly...

24
磁约束聚变与等离子体国际合作联合实验室 International Joint Research Laboratory of Magnetic Confinement Fusion and Plasma Physics Disruption Predictor Based on Neural Network and Anomaly Detection Zheng Wei, Wu Qiqi and J-TEXT team IAEA-TM CODAC 2019

Upload: others

Post on 14-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

磁约束聚变与等离子体国际合作联合实验室International Joint Research Laboratory of Magnetic Confinement Fusion and Plasma Physics

Disruption Predictor Based on Neural Network and Anomaly Detection

Zheng Wei, Wu Qiqi and J-TEXT team

IAEA-TM CODAC 2019

Page 2: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• Current machine learning based disruption prediction and its drawbacks

• Anomaly detection and its application in disruption prediction

• Deep Neural network anomaly detection based disruption prediction and its result on J-TEXT

• Future work and summary

Outline

1

Page 3: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• As the physics behind the disruption is not clear, machine learning becomes a way to go

• Physics based predictors are mainly using locked-mode amplitude

• Performance of Machin learning predictors are great

Machine learning based disruption prediction

2

Support Vector MachineNeural Network

Page 4: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

•BUT, machine learning is not a silver bullet

for disruption prediction

3

Page 5: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• It needs disruptive data.• As tokamaks get larger, disruption is getting more expensive.

• It’s a black box.• It is almost impossible to get it work on devices other than it

is trained on.

Its drawbacks

4

Page 6: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

•So it is impossible to develop a machine

learning disruption predictors for a tokamak

without disruptions produced by it.

Its drawbacks

5

⚫Or is it?

Page 7: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• Anomaly detection is the identification of rare events which raise suspicions by differing significantly from the majority of the data.

Anomaly detection

6

• Applicable Use Cases:

• Very unbalanced training dataset

• Positive samples are rare and expensive

• Characteristics of the positive sample are unknown

Page 8: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• Non-disruptive discharges as normal scenario

• Disruption precursor as anomaly

• Benefit:

• No disruption needed in the training set

• No needs to extrapolate to other devices

• With adaptive training, can be deployed at very early stage

• No more bias on the occurrence of disruption precursor

Anomaly detection

7

Page 9: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• Preliminary experiment on J-TEXT• Single signal predictor based on anomaly detection (SPAD) developed by JET

• Adopted, modified and tested using J-TEXT signal

• Using rule based feature extraction

• Result: High success rate (TPR), but very low warming time (Twarn), and very high false alarm rate (FPR)

Anomaly detection

8

True Positive FalsePositive

Warning Time

0.84 0.20 20ms(69%<5ms)

Page 10: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• (One of the) Time series anomaly detection technique

• Regression based Anomaly Detection

• Using a regression model to predict the future value of some given signals,

• If the actual signal deviate from the expected value than an anomaly is found

Deep learning Anomaly detection

9

Page 11: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• Theory behind the Regression based Anomaly Detection

• Using a regression model to extract the characteristics of the normal signals

• Actually modeling a probability distribution of the normal signals

• Disruption precursor is generated by a different distribution other than that generated the normal signals

Deep learning Anomaly detection

10

Page 12: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• Deep learning time series prediction model

• Convolutional Neural Network + Recurrent neural network

• CNN: extract low dimension features of the high sampling rate signal

• RNN: remember the history of the signal

Deep learning Anomaly detection

11

Page 13: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• Time series Deep learning prediction model• The model we are using:

Deep learning Anomaly detection

12

14 Low sampling rate signals

23 High sampling rate signals (23 Mirnov probes)

Exsad*6

IP

Bt

AXUV

Soft X-ray

CⅢ

ECE

Ivfp

Ihfp

256*23

23 poloidal Mirnov

signal

1 ms window 250 kS/s

Convolution 1

Pooing

Convolution 2

Pooing

Convolution 3

Convolution 4

Convolution 5

82*1 Feature

14*1 Feature

Concatenated Feature

2 Layers

256-unit

LSTM

Fully Connected

3 Normalized

Locked-mode

signals 20 ms

into future

Page 14: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

⚫ Training target: 3 Normalized Locked-mode signals 20 msinto future

Deep learning Anomaly detection

13

br𝑜𝑑𝑑(4−11)

=\𝑒𝑥𝑠𝑎𝑑2 × 100/3.05 −\𝑒𝑥𝑠𝑎𝑑8 × 100/12.71

Page 15: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• Data set:

• J-TEXT 2017 autumn experiment campaign

• Helped by the “A Database Dedicated to the Development of Machine Learning Based Disruption Prediction”

Deep learning Anomaly detection

14

Data set Shot Number

Training 320 Non-disruptive only

Validation 80 Non-disruptive only

Test 170 Non-disruptive +77 disruptions

Page 16: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• Prediction result –Non-disruptive

Deep learning Anomaly detection

15

Page 17: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• Prediction result -Disruptions

Deep learning Anomaly detection

16

Page 18: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• The distribution of prediction residual for different types of shots

Deep learning Anomaly detection

17

Page 19: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

Deep learning Anomaly detection

18

• The evolving of the distribution of prediction residual for different types of shot

Page 20: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

Deep learning Anomaly detection

19

Non-disruption Disruption

Page 21: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• Performance evaluation

Deep learning Anomaly detection

20

Threshold=2.3

True Positive: 0.83

False Positive: 0.18

Average Warning Time 36 ms

Page 22: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• It is possible to build a ML disruption predictor without any disruptions in the training set.

• An anomaly detection and neural network based predictor is developed and tested using J-TEXT data

• The performance of the predictor is not as good as supervised ML disruption predictor.

• But there is room for improvement.

Summary

21

Page 23: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

• More work on signal selection

• Further development on the disruption database and get cleaner data

• Hyper-parameter search

• Adaptive training strategies

• Better deep learning feature extraction method like autoencoder

Future work

22

Page 24: Disruption Predictor Based on Neural Network and Anomaly Detection · 2019. 5. 13. · •Anomaly detection is the identification of rare events which raise suspicions by differing

Zheng Wei, IFPP, J-TEXT/23

•Thank you for your attentions

23