towardsan ai assistant - epcc workshop 2019 · •wehave a large domainof plausible futures to...

26
EPCC 2019 - Reykjavik Towards an AI assistant 15/05/2019 Rémy CLEMENT, RTE R&D, [email protected] Pauline GAMBIER-MOREL, RTE R&D, [email protected]

Upload: others

Post on 22-Sep-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

EPCC 2019 - Reykjavik

Towards an AI assistant

15/05/2019Rémy CLEMENT, RTE R&D, [email protected] GAMBIER-MOREL, RTE R&D, [email protected]

Page 2: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

1. OUR TARGET: AN ASSISTANT FOR SHORT-TERM OPERATION

2. ANTICIPATING THE UPCOMING NETWORK STATE

3. OVERCOMING THE TRACTABILITY BARRIER

4. TOWARDS AN AUTOPILOT FOR THE TRANSMISSION SYSTEM

5. PRACTICAL CONCERNS WITH AI APPLIED TO SYSTEM OPERATION

2

Overview

Page 3: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

An assistant for short-term operation

1

Page 4: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Being an operator today

• Many screens, dispatchedinformation

• Manage activity peaks

• Anticipate as much as possible and be ready for the unexpected

• Think of everything4

Page 5: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Help the operators determine the « best » decisions

Apogée projectGoal

In line with principles developed in the iTesla and Garpur projects

5

Page 6: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

6

One screen to rule them all

https://github.com/opfab/

Page 7: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

• Explore a set of possible futures

• Risk assessment

• Recommandations on what to do

Behind the stage

Review of strategies

Real time

Choice Implementation

Real time – x hour(s)

7

Page 8: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Anticipating the upcoming network state

2

Page 9: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Current process

Classical process today to prepare day-ahead forecast files:• Pick a day of reference that should ressemble the next day

• For each hour, update the planned outages, the expected load, the expected generation

9

Problem 1: the process produces a single forecast file per-hour. Assessing a forecast domain would be more relevant.

Problem 2: the resulting forecast files may not respect the reliability criterion. We miss an automatic process that emulates what the dispatcher wouldmanage to do so that we can check whether we should be safe or not.

Page 10: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Forecasting process

Exogenousvariable forecast

ModuleTSO operator

emulator

Probabilistic RiskAssessment(including remedialactions)

Target forecasting process

Forecasting a range of possible futures

10

Restitution to the operator

Page 11: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Forecasting a single state è Forecasting a range of possible states

• Analysis of the historical records in order to understand the errordistribution between the forecasted states and the actual snapshots

• Dimensionality reduction technique (PCA,…) to grasp the correlations whilereducing the dimension

SnapshotForecast Delta

Forecast error analysis on wind data11

Page 12: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Forecasting processEmulating a TSO operator

12

Exogenous variable forecastModule

TSO operatoremulator

Probabilistic RiskAssessment(including remedialactions)

Target forecasting process

Restitution to the operator

Page 13: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

The example of voltage management

Input X• Injections• Monday/…/Sunday• Hour of Day• Reactive margin per generation unit

Output Y• Voltage set points of generation units• Voltage set points of tap-changers• Connection status 0/1 of shunts

• Tentative approach: supervized learning followed by postprocessing

• Train on snapshots• Apply on day-ahead forecast files

Imitation neural network applied to voltage management

13

Page 14: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Risk assessment: Overcoming the tractability barrier

3

Page 15: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Risk assessment: tractability barrier

• We have a large domain of plausible futures to assess

• We have a significant number of contingencies to consider

• Despite the dimensionality reduction tactic, a direct Monte-Carlo approachis not tractable

• Especially if there are many automatic devices in the network!

15

Page 16: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Overcoming the tractability barrier

• Run offline many load-flow computations/dynamic simulations and exploit a machine-learning model to learnthe mapping Inputs->Outputs

Approach 1: replacing traditional solvers with fastapproximators

16

Model input

Model output

• Then, either in real-time or in anticipation, use the fast machine-learningmodel on many cases instead of the accurate one on very few cases

Fast machine-learning approximator

Page 17: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Overcoming the tractability barrier

• Given some plausible domain for the network infeeds, an optimizationmodule will seek the injection pattern(s) that lead(s) to the most severeoverload

Approach 2: robust approach filtering

• Then thorough investigation of these few « worst-case » scenarios• Ongoing experimentation on the France-Spain border test case

17

Page 18: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Towards an autopilot for the transmission system

4

Page 19: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Towards an autopilot for the transmission system

• The recent successes of reinforcement learning applied to the game of Go or Starcraft have raised hope that it might be also applied to real-time TSO operation

PyPowNet: an environment to test agents that findtopological actions to alleviate overloads

• https://l2rpn.chalearn.org/

• Principle of reinforcement-learning:

While not good enough:improve a policy by trial and error with a simulator

• For us, the simulator can be based on a load-flow model

19

Page 20: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Practical concerns with AIapplied to TSO operation

5

Page 21: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Practical concerns with AI applied to TSO operation

What happens if the current system differs from what was seen in the training set?• New assets in the system, evolution of the behaviour of the (reactive) load,…

=> Growing interest around transfer learning

• Need to be able to identify atypical patterns and answer "I don’t know”

Maintenance of the model and data management

Human-machine interaction• The assistant should not bother too much the human

• Maintenance of competency of the operator: don’t be lazy and solely rely on the AI

21

Page 22: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Last words6

Page 23: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

In a nutshell

We believe there is a need for a new generation of tools for the exploitation of electricity transmission systems given the energy transition

• Probabilistic assessment of the reliability

• Taking into account the behaviour of the automatic curative devices

• The tool should act as a smart assistant that anticipates the upcoming network states, raisesflags, and suggests actions to do

Ongoing R&D work towards this goal, involving Machine-learning techniques• Approximate models will be mandatory in order to achieve something within a reasonable

duration

• Supervised learning, unsupervised learning, reinforcement learning are being explored

23

Page 24: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Some references

Machine-learning to approximate power system solvers• Anticipating contingencies in power grids using fast neural net screening, B. Donnot, I. Guyon, M.

Schoenaueur, A. Marot, P. Panciatici• Graph Neural Solver for Power Systems, B. Donon, B. Donnot, A. Marot & I. Guyon, IJCNN 2019

Worst-case Approach• Hierarchical programming for Worst-case analysis of power grids, H. Djelassi, S. Fliscounakis, A.

Mitsos, P. Panciatici

GARPUR: FP7 project on a new reliability criterion for TSOs• https://www.sintef.no/projectweb/garpur/

iTesla: FP7 project• http://www.itesla-project.eu/

24

Page 25: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Open source code

Powsybl project• https://github.com/powsybl

OpFab project• https://github.com/opfab/

Challenge on reinforcement learning• https://pypownet.readthedocs.io/en/latest/• https://github.com/MarvinLer/pypownet

25

Page 26: Towardsan AI assistant - EPCC Workshop 2019 · •Wehave a large domainof plausible futures to assess •Wehave a significantnumberof contingenciesto consider •Despitethe dimensionality

Thank you!