쉐도잉 연습: Johanna Vorwerk: Rethinking Power System Dynamic Simulations with Machine Learning - 영상으로 영어 말하기 배우기

연습 모드 선택

각 모드는 전체 화면 연습실로 열립니다.

599 문장
문장이 너무 짧거나 길면 Edit를 눌러 조정하세요.
1
Good afternoon everyone.
2
I think everyone is more or less back, so I hope you're all refreshed from lunch.
3
I'm Johanna Fawberg, I'm an assistant professor here at DTU in the power system section.
4
My research is mainly at the intersection of power system dynamics and machine learning.
5
And today I'm going to introduce you to some of the concepts
6
and some of the things that we've been studying here in the last years.
7
I try to keep this talk rather introductory
8
and more on sharing some foundational ideas
9
and then give you some pointers on where you can actually look to find more information.
10
I like to start with this image of Denmark 1980.
11
So these are the spots of the generators that we had in Denmark in 1980.
12
And the way that we study system dynamics is that we have a system of differential algebraic equations.
13
And at that point in time we had very few generators in the system.
14
So even though one could still say
15
that studying the dynamic behaviors of what happens after a fault in the system might still not be very trivial,
16
it is quite straightforward, especially for a small country because we have these through generators.
17
Also classically, and I guess you heard a lot of that also from Sitia, in the past all of these generators were synchronous machines and
18
And we studied these very well for like the last 60, 70 years.
19
So we know quite well how these behave.
20
And we know that they are the key in driving the system behavior after a fault.
21
Loads and distribution systems have predominantly been static in most of these dynamic concerns.
22
And we used rather simple models to present them.
23
So this is what our analytical and time -domain simulation methods
24
that are used to assess whether our system is stable or not are based on.
25
This is Denmark today.
26
And I think you can really see that all of these dots are decentralized sources that are not sitting at transmission level.
27
We still have some of the big generators.
28
We have a lot of wind turbines across all of the different transmission distribution layers.
29
So I hope that this picture makes it very clear
30
that some of the methods that we have developed and that we know so well
31
are not going to work for the system that we have today.
32
So the complexity of studying the system is tremendously increasing in different dimensions
33
and I'm briefly going to go over which ones are the key ones that complicate things for dynamic simulations.
34
So the question really is how can we assess for such a big system whether
35
or not we are going to have a stable behavior after a disturbance.
36
And how can we do this effectively?
37
Another problem just from the sheer size and the number of the units is the time scale separation.
38
So in power systems in the past we predominantly had synchronous machines dictating how our systems behave.
39
We've mainly been concerned with frequency stability, voltage, and rotor angle stability, and all of these are,
40
let's say, for dynamics on the slower spectrum of dynamics.
41
We haven't considered, for example, our line dynamics.
42
We haven't considered in some studies state of transients.
43
We considered that this would be static because for the phenomena
44
that we were interested in at system scale they used to be.
45
But now we are introducing inverter -based controls and these behave on much faster time scales.
46
So we also need to model and consider these faster time scales.
47
And because we are having so many of those in the system,
48
and I mean also Spain taught us that they start to matter at system scale,
49
there's actually two new stability classes that have officially been added to this stability classification,
50
which are resonance stability and converter driven stability, which inherently have to do with adding this many inverters to power systems.
51
So what this means is we have a faster time scales, we have interaction of different dynamics, and we need to include these into our simulations.
52
How do we study the systems?
53
So one might want to try to do this analytically.
54
You can for small systems
55
but to try to find the space where a system is going to be stable for a large system typically is unfeasible.
56
So that is why we are more and more drawn towards time -domain simulations
57
and towards more and more exact time -domain simulations
58
because we want to study what are all of the possible things that can happen for different contingencies.
59
So time -domain simulations, how do we classically do those?
60
So typically we have a system model that means our physics
61
and our controls and then we have a time -stepping integration algorithm, classic time domain integration.
62
I guess some of you have seen that in your numerical classes.
63
So what we typically have is that we know the initial condition.
64
We start from a power flow solution
65
and then we are trying to evaluate how the system is going to behave over time.
66
We are using numerical integration methods.
67
The one that I'm showing here is a trapezoidal rule
68
and then on the right you can see how that would look like if we're doing two steps.
69
What can happen, what we actually see here when our step size is a bit too large,
70
is that we might miss some of the things that actually happen in between those evaluation points that we have.
71
So our step size must be small enough so that we can actually capture the dynamics in the system.
72
What that means for our simulation tools with the fast inverters, we have more devices that we need to model,
73
and we need to model at smaller step sizes.
74
All of that means that simulation times increase and increase
75
and increase because we have more and more units
76
that we add to the system and we need to have smaller time steps.
77
And then also if we introduce discrete events, so a fault is a discrete event, we also need to reinitialize and that is also costly.
78
So the question is, can we do that differently?
79
But before we go into that, I also wanted to point out that often,
80
and particularly in industry, time domain solution is seen as a quite exact science and an exact solution.
81
But there are several errors that time domain simulation introduces.
82
So let's say we have the true dynamics shown in black here.
83
Then the first error that we're making is that we're actually modeling something
84
and our models are never going to be exact
85
so we're going to have a mismatch because we are having a physical model representing something.
86
And then our time -stepping algorithm, so the integration methods, is also going to introduce an error.
87
And you can think of it as we're introducing an error at every point in time that we evaluate,
88
and then we have this error propagating throughout the entire trajectory.
89
So what that means is that our simulated solution is not going to perfectly represent the true dynamics.
90
And I want you to take that particularly in mind because also when we're applying machine learning, we often treat the ODE solution,
91
a time domain solution, as the exact solution.
92
And then we're typically adding an error on top of that.
93
So it's important to keep that in mind,
94
that sometimes actually having measurements and true dynamics that we integrate into learning might help us to actually achieve better results.
95
All of these errors also depend on the integration method and time step,
96
but I just wanted to give you an overview to remind you that these are not exact.
97
So let's change the perspective a little bit on what a time domain simulation actually is.
98
So we are trying to solve this DAE system, which consists of differential and algebraic equations, and we have an initial condition.
99
What essentially what we want is, we want to understand the flow map of the system.
100
So what this flow map is, is basically all the possible trajectories that we have for given initial conditions.
101
So here on the x -axis, we have different initial conditions.
102
On the, well, into the pane, we have the time and to the top we have the flow map of the system so basically the solution.
103
What our time domain simulation does is
104
that it starts at a single point at a single initial condition and then it propagates throughout this flow map over time.
105
When we want to study a different initial condition
106
we're going to start at a different point on this flow map and propagate through time there.
107
So we're always kind of iterating through the flow map.
108
Now the question is, what if we could learn the flow map?
109
If we could have a representation of this flow map, then we could just have a one -shot solution,
110
knowing what our initial condition is going to be.
111
We would just have all of the time domain trajectories that we're interested in.
112
So if we can learn a model or if we can somehow find the flow map of the system,
113
we're going to know our dynamic system behavior.
114
and we do not need to recalculate for different initial conditions, and we don't have to do this evaluation of the single time trajectory every time.
115
So, that is the idea.
116
Can we learn this flow map with machine learning?
117
The question here is what we're now starting into is, what is machine learning?
118
There's two parts of it.
119
There's the machine, and you can think of that as a mathematical model as well.
120
It is a different representation of the models than we're used to, but it's a mathematical model.
121
And then we have the learning, which means that we calibrate our model to fit a certain objective.
122
And how we are fitting to that objective is something that we can decide.
123
The benefits are that we can learn a continuous function and we can also predict in parallel by simple parallel multiplications.
124
So we can also execute in parallel once we basically have learned a flow map.
125
So that is basically very high level what machine learning is.
126
So just to come back and contrast that again against this geometrical representation.
127
So as we discussed for the time domain solver, we are iterating through this every time we execute a time domain simulation.
128
The idea is that for a machine learning algorithm, we basically have learned the flow map so
129
that our machine learning model represents the flow map and
130
that then we feed it what is the initial condition and
131
that is what is the time at which we want to evaluate
132
and then we can actually get the full shot so
133
that we have these multiple trajectories basically in parallel because all
134
that we have to do for getting these trajectories is matrix multiplications.
135
That's the key idea.
136
The motivation for using these types of methods, generally in machine learning for path system dynamics, I think that there's three key reasons.
137
One of them is a simulation speedup,
138
which means that exactly because we can do this parallelization and its matrix multiplication rather than iterative algorithms for time -domain simulations,
139
we hope that there is a faster inference in time -domain so that we'll be faster with simulating a single trajectory.
140
The second is that we can maybe accurate aggregate models.
141
So you can think of very complex systems, for example, a big offshore wind farm.
142
The vendor is going to have a very, very detailed model of that wind farm, which might be very hard to solve even by itself.
143
So using machine learning to aggregate those dynamics into a simple model and then having that represented in the system
144
is a good application for machine learning.
145
Same for external systems.
146
Let's say we want to study Denmark, we need to represent Sweden, we need to represent Germany.
147
So also there, we could maybe use machine learning to better capture those behaviors.
148
A third application here is also interesting.
149
So when we know that, for example, we have some phenomena in EMT domain,
150
so faster dynamics or switching dynamics that we need to take into account on system scale, We could also, for example,
151
train a model in EMT domain and then plug it back into an RMS solver.
152
And then the last point regards intellectual property protection.
153
So our vendors, especially of wind turbines, they are typically not sharing their models as a white box.
154
They are sharing it as a black box.
155
And then there needs to be encryption and so on to actually protect the model.
156
With machine learning, we could use machine learning models that actually capture the dynamics of these complicated systems
157
and then use those to give to the user of the model because then even if the encryption fails,
158
all what you would get is the weights and the structure of the neural network.
159
And then with reverse engineering that to a true model, good luck because you probably don't know the structure of the true model.
160
So these are, for me, the three key points and application areas on where we can use machine learning for dynamic simulations.
161
So the question is, how can we make it happen?
162
We could try to learn the dynamics of the entire system, but that is a very large problem.
163
So what we're doing here is that we're breaking this down into component -based modeling.
164
So what we do is that for the components that we're interested in to model with machine learning tools, we learn these component dynamics.
165
So this is the ML training that you see here on the left.
166
Then once we have trained those, we need to verify them.
167
So we actually need to make sure that the model does what it should, so we do verification and evaluation of each model.
168
And then the last step is to put it back into a dynamic simulator.
169
So throughout the remainder of the talk, I'm going to step you through each of those three steps and give you some pointers and some developments
170
that we've had there in the past.
171
And then in the bottom, you'll always find some of our group's research papers that will actually provide you some more details on these topics.
172
So I'm going to start with, and that's the main body of the talk,
173
to look into different machine learning tools that we can use for power system dynamics.
174
If you're not working in the area, I hope that you'll get some inspiration for machine learning tools that maybe you can apply for your topics.
175
So generally, our goal is that we want to learn an initial value problem.
176
What that means is that we have a set of DAEs and an initial condition,
177
and we want to have a model so that we give it the state at our initial condition.
178
We give it where we want to evaluate the function, then we give that to the machine learning algorithm,
179
and then we get the state at that end time.
180
And the question is now, which machine learning model can we put inside of here?
181
So classically, machine learning, we are applying supervision tasks because we can use simulations to actually create our labels.
182
So we have labeled data and have a supervision learning task, and we minimize a specified loss term during training.
183
So given our true outputs X, then we train all of our model parameters such that we minimize a loss function.
184
So training the machine learning model always is an optimization problem.
185
And classically, you would minimize the mean squared error, as you can see here.
186
We are minimizing the error between the actual true solution
187
or the solution from the time domain simulation and our neural network solution.
188
And then given on the architecture, so here on the right you can see a vanilla neural network is what we call this
189
because it's just a blank neural network without any modification with two layers, so a hidden layer and the output layer,
190
and then we have the weights and the bias units and all of these are the parameters theta.
191
The model architecture and the activation functions we then select during hyperparameter tuning,
192
so we basically test which model architecture and also learning rate and other things give us the best learning outcome.
193
This is the classic machine learning.
194
While this typically fits the data, it might violate the physics.
195
And we know the physics, or we at least know our dynamic models,
196
so the next thing to do is to integrate the physics into the learning and that's exactly what we do.
197
So instead of minimizing the mean squared error of our labeled data, so this is still in here,
198
so we still have our labeled data as the data loss function, that's the same as before, we can add two more loss terms.
199
One is the physics based loss which actually makes sure
200
that during learning we enforce the dynamic equations of the system
201
that we have and the other one is the initial condition based loss
202
or boundary loss that enforces that our initial condition is going to be satisfied.
203
So the way that you do this is very similar.
204
I mean, we add these terms to the loss function,
205
we evaluate our DAEs and have these residuals at the collocation points.
206
So the collocation points are the point in time during the time trajectory
207
at which we want this physics -based loss to be evaluated.
208
And then we also minimize this residual.
209
So we want our machine learning output to be the same one as our actual trajectory.
210
And then similarly, it's the same for basically the initial condition -based loss.
211
What changes now in our pipeline is that we're not just having data, but then we also need to have the physics model, right?
212
So we need to have the differential equations of our model we need to define what initial conditions we needed to use,
213
and that then changes how we are training the model.
214
Another thing that we can do instead of changing the loss function is
215
that we can change the architecture or we can change the activation functions.
216
So our classic vanilla neural networks, they use activation, like standard activation functions.
217
For example, the radio function, that's the one that's shown here in the plot, a 10H or single linear function is sigmoid.
218
If we then want to capture highly non -linear systems, it means that we need to have quite large neural networks to do so.
219
what if we had learnable activation functions?
220
So this is an approach where we are not considering
221
that we know the shape of the activation function but we make
222
that flexible and the benefit of that is that we have smaller architectures
223
because our functions are flexible and can better capture the nonlinearities we can have smaller architectures
224
and this is exactly what Carmogorov R0 neural networks do.
225
And I'm going to work you now step by step through how that works, how we can do these learnable activations.
226
So the key idea here is that any continuous function
227
that we know on a bounded domain can be represented by one -dimensional functions, by a summation of these one -dimensional functions.
228
It's similar if you've had signal theory that you can decompose a signal into a superposition of sinusoids basically.
229
That's the key idea behind this.
230
So we use this DeBoer's recursive algorithm for B splines
231
and I'm going to show you an example where we have five distributed control points
232
so we also here decide on which points we want to control the function.
233
So the zeroth order if we have five at evaluation points, so these are the knots,
234
k0 to k4, then the zero of order basis function is always one between two knots and zero otherwise.
235
So that will give us these four functions.
236
So that's for the first order basis function.
237
Now for the second order basis function and all following order basis function, we use this recursive formula,
238
which then actually means that now we're going to have one less function because we always integrate two functions into one.
239
And then for this knot that we chose here, we are going to have these trapezoidal functions when we evaluate this for the first order.
240
And then we can move on and on and on.
241
I also put in here the second order
242
so also there we again take this function evaluate these basis functions the red ones with
243
that equation and then we'll get those green ones.
244
So then with this you can now say okay now we can get some different shape of functions
245
but still these don't look that flexible to you yet maybe.
246
What we can also control is that we can also control where we have the knots.
247
So here I'm evaluating the exact same algorithm in the middle for uniform grid,
248
what we had before, and in the bottom for non -uniform grid.
249
So by moving where these control points are, which are actually these interval boundaries during which we evaluate this algorithm,
250
we can shape quite significantly how these functions look.
251
And then the final activation function is the one that's on top of here, which is a weighted sum of these basis functions.
252
So that is our final activation function.
253
So we're doing this weighted sum of these splines to get our final activation.
254
That's part of the activation, so that is this first one
255
that we have in a CAN activation layer where we actually also add a weight and a basis activation function.
256
But these base activation functions are the tonnage and normal activations that you're used to.
257
The key part here is understanding that this B of X is our splines
258
that are now extremely flexible in the shape that they look.
259
CANs are quite promising, but they are a bit challenging to train.
260
So the trainable parameters are all of our weights and the spline.
261
The hyperparameters are then the grid, so the number and location of the control points that we want to have.
262
And what we need to keep in mind here is that for every neuron that we have,
263
we have this recursive evaluation of the splines per neuron.
264
And what that means is that this will slow down the learning
265
but also the inference because we can parallelize it a bit less.
266
They are generally a bit more prone to over -fetching
267
because they have this very flexible behavior you can quite easily over -fit to your training data.
268
But they can provide you a compact, closed -form solution.
269
So the architectures that you get have significantly less parameters than if you wouldn't use normal neural networks, for example.
270
That's it for CANS.
271
But there is one other neural network architecture or activation that I wanted to discuss here.
272
And this relates a little bit more to the oscillations that we have in power system dynamics.
273
We can linearize our power system, our differential equations, and then we can get the state space form that I'm showing on top here,
274
and then we can do eigenvalue analysis.
275
So these are the eigenvalues for one system,
276
and one eigenvalue here is actually a supervision of different states.
277
Or you can also say that one state x is influenced by different eigenvalues, and the eigenvalues have different oscillation frequencies.
278
And the oscillation frequencies mainly depend on where we are located here on this pane.
279
So one state, and we are trying to learn the states, is impacted by these different oscillation frequencies.
280
And that actually makes a computational challenging to learn those.
281
So this is specifically where ACNET comes in because what this features is
282
that we are having this weighted sum of sinusoid -based activation functions.
283
So now we're not having these completely flexible activation functions anymore.
284
We're using sinusoid shapes, but we are basically allowing to have different oscillation frequencies
285
which can correspond a bit better to those eigenmodes that we have in dynamic simulations.
286
so the activation function I put it here on the top really is the sinusoid
287
and then we actually norm this for numerical reasons to have numerical stability
288
and also here again we make a way to summation of these functions to then get the output
289
but the key idea here is that
290
if we have those sinusoidal oscillations in our systems
291
if we're using sinusoidal activation functions we can we can maybe capture that better. So generally,
292
this structure aligns with this multiscale nature that we have in power systems with those different oscillation frequencies that we do see.
293
And all of these ones that I showed you now, we can, of course, combine with physics -based learning, right?
294
Because we can shape the activation function and the loss function at the same time.
295
So now I'm going to show you one case study result.
296
So this is all still for rather small systems because this doesn't really scale very well yet to larger systems.
297
So I'm showing results here for a second -order synchronous machine model that has some voltage dynamics.
298
So this last one here is the terminal voltage and this is introducing some faster oscillation term.
299
And otherwise, it's a classic second -order synchronous machine model.
300
And here you can see the dynamic response of a vanilla PIN, a physics -informed CAN, and a physics -informed ACKNET.
301
And the black one, that's the oscillating one in the back, is the true solution from the time domain solver.
302
And what you can see here is that actually our P -CAN and our ACKNET, so the red and the blue,
303
are quite good at capturing these oscillations that we're seeing while the pin, the basic vanilla pin, cannot.
304
So if we're having this oscillatory behavior, these are a promising alternative to capture that.
305
Then another case study that we actually did, and you can find the details on this in the first paper that is hopefully soon out.
306
We then actually looked at how we can actually, how does this scale to different orders so we took a second a fourth
307
and a sixth order synchronous machine model
308
and then we're looking at the mean squared error
309
that we have for the like after we trained
310
and then the time that it takes us to predict a thousand trajectories
311
so what we can see here is that our architectures with learnable activation
312
so our can and our acnet improve the accuracy compared to the pin.
313
It's a little bit less for the 6D case, but for the other cases they significantly reduce it.
314
And then the key for CANS is, which I didn't put here,
315
but it significantly reduces the number of trainable parameters and thereby also the model size that you have.
316
Then for the time that it takes to predict a thousand trajectories, you can see that ARCNET is very fast compared to our normal PIN.
317
So if we want to have fast prediction and good accuracy, ARCNET can be a good trader for you.
318
And the CAN is more expensive in the evaluation because, like I said, we can't parallelize it as much as we could before.
319
So the key here is an understanding that you always need to carefully choose
320
which neural network might be better for your application and then also the downstream tasks,
321
like how fast do you need to be and how exact do you need to be.
322
One last architecture that I want to mention is neural operators.
323
And here, the key idea is that we're actually separating the encoding of our spatial and temporal information.
324
So previously, we've had one neural network that took our physics information and our time information, and here we're separating this.
325
So we are putting our time information as an input to our trunk net, which is a neural network.
326
And then we're having two neural networks on top of this that are branch networks.
327
And they take the initial conditions and our disturbances.
328
And then again, so this is basically three neural networks in parallel.
329
And then again, we have weighted multiplication at the end of it to predict the outcome.
330
So this is a stacked deponet structure that then especially does this separation of the encoding.
331
Now also a brief case study on this.
332
So here we use the fourth order synchronous machine model at an infinite bus
333
and have assumed that now our terminal voltage follows a first or a second order ODE.
334
So the key here is actually that we also need to know what our disturbance is going to look like,
335
which can be an advantage and a limitation.
336
It's something that we need to be aware of.
337
And then when we then go across the entire prediction horizon because we want to predict the trajectory,
338
we don't just want to predict one time step, what we can see is that our depot net is producing
339
more stable errors across the entire prediction horizon that are a little bit lower than if we used a single pin.
340
What the results have also shown, if we compared run times against ODE solver, against single trajectory and a thousand trajectories,
341
we actually saw that with this DeboNet, we had a similar speedup than with a PIN.
342
Well, actually a lot more significant than with a PIN.
343
So here it's key also to realize that the ODE solver trajectories are not parallelized, So we're evaluating one after the other,
344
whereas for the PIN and the stacked and DepotNet, we're having a parallelization.
345
But it is showing a potential of the speed up that we could have with these learned models.
346
And then for me, the application here could be
347
that this can actually serve like a fast screening tool on where maybe we need to make more accurate simulations.
348
You can find the whole description of the DepotNet, how it works, and all of the training in the GitHub end in that paper there.
349
Now the second part I want to get into is looking into the trustworthiness of ML tools.
350
So we have trained them but just
351
because we have integrated physics into the training doesn't mean
352
that we will always exactly follow
353
and we need to also understand what our machine learning model now actually learnt and how we can understand the results.
354
So here one first thing is to do mathematical verification and verification is also an optimization problem
355
where we try to limit the difference
356
or the discrepancy between the machine learning model and the true solution and we check it against an error.
357
So we try to find what is the maximum difference for an input domain
358
that we define between our machine learning model and our true model
359
or our true physics and we want it to be smaller than an epsilon
360
and this epsilon is then defined by our downstream tasks so this is the accuracy that we need to have.
361
I'm not going to go into more of the details of
362
that here because there is quite a lot of different verification methods.
363
Generally we can classify them into probabilistic and deterministic verification and and then complete and incomplete verification?
364
I think yes.
365
So you can find quite a lot on the details on this correctness verification
366
in those two papers that I'm mentioning there and also a verification toolbox.
367
Actually, also, if you're learning for optimization -based machine learning,
368
we also have a verification toolbox available online where you can actually check the verification of your algorithms.
369
One more thing that I wanted to share with you today is
370
that we can actually also gain some insights into our training dynamics.
371
So, back to your basic control course maybe.
372
When we're having the state -space form of our...
373
DAEs so we linearize them so that we can write them with this equation.
374
Then the eigenvalues actually tell us whether the system is small signal stable or not.
375
So if the real part of the eigenvalues is positive we're unstable
376
if it's negative we are having stable behavior
377
and then where you're located is also telling us
378
if there's going to be oscillation in that mode or if there's just going to be a decay.
379
So for the complex conjugate modes we're having oscillations
380
if we're just on the real axis we're having these decays
381
and the further away from the origin that we are the faster the decay is going to be.
382
We can do a similar cool thing with neural tangent kernels.
383
So this NTK provides insights into how fast dynamics can be learned by a machine learning model.
384
To show you that, let's consider this this trajectory where we have 10 collocation points.
385
So these are the points that we're trying to enforce with our physics -informed learning.
386
So then in the first iteration, and I'm showing you this to show you
387
that the error at each of those collocation points can change throughout the learning differently.
388
So the first trajectory could for example be the red one
389
that we're learning at the first iteration and then in the next iteration you could, for example, have the orange one and you can see
390
that the error at each of those collocation points can change independent of one another
391
because we're learning them at the same time.
392
Then we can also, with the NTK,
393
we can also calculate eigenvalues that show us how quickly the error across the learning reduces per collocation point.
394
So the error, the training losses that we have over an epoch tau decays with also the learning rate
395
with this function where you can see this is the initial error and then we're also having an eigenvalue up here.
396
So here we're going to have an error increase if our eigenvalue is smaller than zero
397
and we're going to have a reduction if it's larger than zero.
398
And of course, the larger than it's going to be, the faster it's going to decay.
399
And if we're close to zero, we're basically having a frozen error that is not going to change anymore.
400
So we can use this analysis to see what parts of our loss function we learn at which rates.
401
And this can also help us understand why maybe some phenomena we learn and others we're not learning so well.
402
So also here I'm going to show you another case study.
403
We have the same single machine infinite bus system as before with the two -dimensional synchronous machine with these voltage dynamics,
404
so with these small oscillations that you saw.
405
And now we can monitor the different parts of our loss function.
406
So we can monitor the rotor angle loss, the terminal voltage loss, rotor speed loss, and the initial condition loss.
407
What we want to see is
408
that for all collocation points we basically have a stable spectrum
409
because what that means is
410
that we're learning all of our collocation points at the same rate
411
and with the same speed which will give us the best performance.
412
This is what it looks like so you can see
413
that our initial condition loss basically is what we would like to have.
414
It's very stable across all of those 100 collocation points that we took for the trajectory.
415
And then for the others, for the pin, for example, you can see that we're having this very quick decay in the beginning,
416
and then it's stable.
417
So we're having very different speeds at which we are learning those dynamics,
418
which can help us explain why some of them we're learning more successfully than others.
419
What you can also see here is that for the can, we're actually having a very stable spectrum throughout most of the collocation points
420
so from from these spectra the can is actually the one
421
that has the most preferable spectrum how we want to learn because it has this flatter profile.
422
What we can then also do with these NTK eigenvalues is
423
that we can actually use them in the learning and this is what we did as a next test.
424
So we can actually use these to adapt the weights
425
that we have in the loss function to account for those different learning rates.
426
And this is the next test that we did.
427
So here on the left is the same results that I showed you before.
428
And on the right, we are training with adaptive weights.
429
What you can see here for the pin,
430
for example, is that now the three components that previously the voltage was deviating from the frequency and the angle,
431
we can now see that they have very much the same profile.
432
So we have a more balanced profile with having this weight from the NTK analysis.
433
And the same also holds for the CAN and the ACNET.
434
Our profiles get closer together and we're learning our different dynamics at the same rate
435
and then probably also learn our dynamics better and have less of an error.
436
So this is an interesting way how we can integrate that information into learning.
437
So now one last thing that we tried with this NTK analysis is look into why can't we learn an inverter?
438
Because we so far haven't been successful to learn the entire dynamics of an inverter.
439
And the challenge here is that in an inverter,
440
we have very fast dynamics of the inner control loops and then slower dynamics of the outer control loops.
441
So we also looked into an 11th order inverter model with those nested loops with 11 dynamic states.
442
And again, we are looking into different loss terms.
443
I'm realizing I put the wrong loss terms here.
444
Sorry for that.
445
But we can see for four different loss terms, you can see the spectra.
446
Now we can have pins with different widths, so that's different sizes of just classic neural networks.
447
And then we have an arc net and a can.
448
And you can see here that all of them, for all of them here, we have a very fast initial decay,
449
which is something that we want to avoid because we want to have a stable learning rate in the beginning.
450
And this is providing us some intuition on why it's
451
so difficult to learn an inverter this is kind of where we are with
452
that right now that we're not having this balanced learning rate
453
and some future work to look into that
454
and see how we can deal with
455
that to learn inverter models the third thing
456
that I wanted to cover then is
457
so now we have gained some insight into how do we learn a model how do we can we verify
458
it and then the last part is how can we actually use it
459
because we want to use it in a time -domain simulation.
460
There's different approaches out there.
461
So you could, for example, think of a time -domain simulator that is completely based on machine -learning -based models.
462
That is one that you could do.
463
The one that I'm going to focus on here is how can we put our machine -learning -based models, or neurosurrogates, how we also call them,
464
into an existing time -domain simulator and we have done some initial work on this
465
so in a classic time domain simulation or especially also how this simulator works
466
that steps runs a simulator is that we have a time step k
467
and we want to iterate to time step k plus one we're having network equations
468
so this is typically your power flow equations and
469
when we're having different component models that are attached to the network
470
and then we're having an iterative process where we are solving the differential equations of each component individually
471
and that is something that we can parallelize to be fast
472
but we're taking the voltage that we had at the node where the component is connected
473
and we update what is the current consumption of production
474
that we would have for that voltage input we update that with the current injections and then solve the network equations.
475
That's basically your power flow.
476
With a power flow we get new terminal voltages, we update our currents with the differential equations and we do
477
that until we have a convergence and our voltage is not changing anymore.
478
And then we know where we terminate that time step and we move on to the next time step.
479
So that is how you do a classic time domain simulation for a larger system with many components classically.
480
So the question is where in here can we put in our neurosurrogate?
481
One thing that you can do is the once a Newton iteration approach.
482
So that means that we basically take one of these components and replace it by a neural network.
483
So instead of solving that component with the differential equations, we are solving that component with a neural network and just do a single forward pass,
484
take the voltages, predict the currents.
485
That's one approach that we could do.
486
The other approach is that we do it once per time step
487
so that we predict that we take the voltages once a time step outside the Newton iteration
488
and then we integrate a simple model, for example a constant current model.
489
that actually acts as the component during our Newton iteration.
490
So that means that we only do a prediction and a forward pass of our neural network once.
491
And then we have here basically a constant current or constant impedance load that represents our neural surrogate during dynamic simulations.
492
With the accuracy of the neural networks that we're currently having, the Newton approach is not solving.
493
We cannot have neural networks right now that are accurate enough
494
so that they are below the error that we have in the Newton iterations.
495
So that one is not solving.
496
And also, yes, one point that I forgot to mention, when we're training these, so because the components take voltages as input
497
and output currents and our pins or neural surrogate take states,
498
we always need to convert the voltage input to an initial state and the state output to a current.
499
So there are some additional multiplication and transformation that you need to do.
500
We have done a case study on this,
501
and this paper is actually going to be presented at PowerUp in Boulder for some of you who maybe might be there.
502
So what we did here is that we actually took this 11 bus condor system,
503
which has four generators, and replaced this generator one here with a neurosurrogate.
504
And then we have results here for the once a time step approach.
505
And I guess you all see that this is not ideal yet.
506
Some of the problems that we're facing is that, for example, we're having this drift in the steady state.
507
So that means that even though there is no change in the input to our neural network,
508
our neural network has a different fixed point or a different steady state solution than our differential system does.
509
This is something that needs to be fixed.
510
And then you can also see that if we had a higher order pin,
511
there are some of these oscillations that happen which also we need to understand better.
512
But it was at least for us the first time
513
that we actually managed to integrate a neurosurrogate back into a time domain solver
514
which is essentially where we wanted to work and made us realize
515
that actually we really need to consider the downstream task
516
and the accuracy and all of those needs when we're training machine learning models.
517
That brings me to my few key takeaways that I hope what you've learned hear from me today.
518
So the main three reasons why maybe we want to use machine learning for time domain simulations is
519
because we might have a speed up, especially when we're representing complex dynamics with simpler models
520
that can be within one domain
521
so think of a big wind farm we can represent by now neural network
522
or EMT training and do that in RMS simulations and we can have this improved intellectual property protection.
523
The second thing that I hope that you realize is that
524
if we think about activation functions and
525
that there's actually processes on how we can make quite flexible activation functions and combine that with physics -informed learning,
526
we can actually inherently boost our accuracy of the model for DAEs, but I'm guessing also for a lot of the applications that maybe you have.
527
Then one key thing is also to look into verification and explainability tools.
528
So here the NTK analysis
529
that I provided you a brief overview of can actually give us key insights in how the training era evolves
530
and also can provide us insights into why we are maybe not as successful in the learning as we wish we'd be.
531
And then the last one, neurosurrogates can be integrated into standard time -domain installation tools
532
but there is still quite some more work needed to actually make this work and study that a bit further.
533
So some of maybe the outlook, some of the things that we are working on, but maybe some of the questions that I also find interesting.
534
So I think the key learning that we really had was that we need to think machine learning as a whole,
535
the whole streamline and where we want to use it.
536
Because if we don't need to be exact, maybe we don't need to have a can that's very slow and we can use another neural network.
537
If we need to be very exact, maybe we should use another one.
538
So it really depends on the downstream task
539
and where you want to use your machine learning algorithm which model and tools you should be using.
540
Improving a training error, so I briefly showed
541
you initially in the beginning how these different errors also in a numerical time to the main simulation stack onto each other.
542
If we're learning only from the DAE system or from simulated data, we're adding an additional error on top of that.
543
So one way to actually have more accuracy might be to actually go to actual physical data
544
or lab -based data and integrate that into your learning processes to boost it more
545
because you're otherwise having a stacked error and I think this also applies to other domains.
546
We definitely need to work on how we represent neurosurrogates
547
and time domain simulations announced something that we're actively working on in this group and I think we're close to a crack.
548
Freeman is here.
549
And yes, one other thing that also is interesting is studying those steady state and stability properties.
550
So we saw that we're having the steady state drift of our neural network
551
that it's not the fixed point that we wanted to have.
552
So also studying why that happens and how we can mitigate
553
that from happening is something that we're looking into with
554
that I would like to thank you
555
and I don't know my last there thanks for joining
556
so of course all of this work here was not done just by me
557
but by the entire group here so mainly Petros, Johannes and Bruno who are also around
558
and then also supported by my other PhDs
559
and collaborators you're very welcome to reach out
560
if this is an area of interest to you to yeah just reach out drop an email
561
I mean I'll also be here for the rest of the week
562
but thanks a lot for the attention and if you have any questions I'm happy to take them yes
563
I'm not sure I understand the question.
564
Basically, in a lot of the tools, for a while, we actually haven't used any data and have just used physics.
565
and the evaluation at these collocation points instead of data.
566
But we realize that if we have a mix of data and physics, we actually get better results.
567
But it is, I mean, you have to then also check for these weights
568
and the loss function for your different physics -based loss terms that you have and check that during your hyperparameter tuning.
569
Yes, but actually this NTK can also provide you insights there.
570
Other questions?
571
Yes?
572
Yes.
573
So for this physics -based loss, I mean, we're changing the initial conditions and then having all of those different trajectories, but the physical model part,
574
like the inertia constant, the damping constant, so that's typically stay the same.
575
We're changing the initial conditions because otherwise, I mean, if we would change machine parameters, that would mean that we're learning a different unit
576
so these stay the same but we are changing the parameters
577
that would also change during system operation yes
578
when we're learning just from data
579
so we've also done some work on where we're trying to learn for example an entire distribution system
580
when we're doing that we are actually exposing
581
that distribution system to all of the dynamics that it would see
582
so at the transformer that it's connected to we're doing different load steps
583
so that there's different frequency disturbances different voltage disturbances and so on So generally, what we want the model to represent.
584
If I'm not mistaken, there is a paper by Ioannis, who was sitting behind you,
585
who was looking into how well actually the entire initial condition space that we have.
586
And now maybe it's Johannes or Petros.
587
but how that initial entire space is then actually covered
588
and learned so where is the error across that solution space let's say
589
because you have you can define
590
and you can define a sampling of the initial space
591
and the initial conditions that you do but then the question is always how
592
that translates in the results
593
and is there for example is there a certain region where you're learning more accurately
594
or is there another region that you're learning less accurately
595
so there's definitely a paper there where we have been looking into this
596
and where we looked into how that how that's covered.
597
I'll find it and get back to you.
598
All right I mean I'm also still here we're already a bit behind
599
so thanks again for the attention and enjoy your coffee.

앱 다운로드

유창하게 말하는 데 필요한 모든 것

AI 발음 평가문장마다 점수 확인
IPA 발음 연습모든 소리 마스터
단어 학습나만의 단어장 만들기
단어 게임놀면서 외우기
FOR YOU

추천 영상

이 레슨의 어휘와 말하기 포인트

이 말하기 레슨은 영상 “Johanna Vorwerk: Rethinking Power System Dynamic Simulations with Machine Learning”을(를) 바탕으로 합니다. 가장 자주 반복되는 단어는 다음과 같습니다: learning, model, function, machine, dynamic. 이 영상에는 섀도잉할 문장 599개와 단어 8478개가 있습니다. 말하는 구간의 길이는 55:54입니다. 화자는 분당 약 152단어로, 일상 대화에 가까운 자연스러운 속도로 말합니다. 단어의 84%가 영어에서 가장 많이 쓰이는 3,000단어에 속합니다. 나머지는 연습 전에 미리 확인해 두세요.

이 영상의 핵심 어휘

영상에 나오는 익혀 둘 만한 단어 15개를 발음, 뜻과 함께 정리했습니다.

단어발음뜻
dynamics 명사/dɑɪˈnæm.ɪks/동역학
physics 명사/ˈfɪz.ɪks/물리학, 물리
trajectory 명사/tɹəˈd͡ʒɛktəɹi/궤도, 탄도
voltage 명사/ˈvəʊltɪd͡ʒ/전압
component 명사/kəmˈpoʊ.nənt/부분
equation 명사/ɪˈkweɪ.ʒən/방정식
stable 명사/ˈsteɪ.bəl/마구간, 축사
architecture 명사/ˈɑː.kɪˌtɛk.t͡ʃə/건축, 건축학
algorithm 명사/ˈælɡəɹɪðm̩/알고리즘, 알고리듬
evaluate 동사/ɪˈvaljʊeɪt/평가하다
solve 동사/sɒlv/해결하다
frequency 명사/ˈfɹiːkwənsi/빈도
predict 동사/pɹɪˈdɪkt/예언하다, 예측하다
capture 동사/ˈkæp.(t)ʃɚ/포획하다
evaluation 명사/ɪˌvæljuˈeɪʃn̩/평가

영상에 나오는 구동사

단어뜻
come back 동사돌아오다
point out 동사가리키다

따라 말해 볼 만한 문장

영상에 나오는 짧고 완결된 문장으로, 일상 대화에서 그대로 쓸 수 있습니다:

  • We haven't considered, for example, our line dynamics.
  • We haven't considered in some studies state of transients.
  • How do we study the systems?
  • Can we learn this flow map with machine learning?
  • It's something that we need to be aware of.

이 영상의 문법

화자가 가장 많이 쓰는 문형을 영상 속 실제 표현과 함께 정리했습니다.

문형영상 속 표현
현재완료진행 have/has been + -ing — 전에 시작해 지금도 계속되는 동작we've been studying · have been looking
현재완료 have/has + 과거분사 — 과거의 일이 지금도 관련이 있을 때have predominantly been · have developed · We've mainly been
수동태 be + 과거분사 — 누가 하는지보다 무슨 일이 일어나는지에 초점are based · are decentralized · been added
관계절 who / which + 절 — 사람이나 사물에 대한 추가 정보learning, which means · are, which are · here, which is

주의할 발음

화자는 we're, I'm, you're 같은 축약형과 약화된 형태를 139번 사용합니다. 들리는 대로 짧게 발음하세요.

  • “th” 소리: algorithm /ˈælɡəɹɪðm̩/, mathematical /ˌmæθ(.ə)ˈmæt.ɪ.kəl/
  • “sh”와 “zh” 소리: simulation /ˌsɪm.jəˈleɪ.ʃn̩/, activation /ˌæktəˈveɪʃən/, equation /ɪˈkweɪ.ʒən/, verification /ˌvɛ.ɹə.fɪˈkeɪ.ʃən/, differential [dɪfəˈɹənʃəɫ]
  • 긴 단어 — 강세 위치에 주의: activation /ˌæktəˈveɪʃən/, trajectory /tɹəˈd͡ʒɛktəɹi/, verification /ˌvɛ.ɹə.fɪˈkeɪ.ʃən/, architecture /ˈɑː.kɪˌtɛk.t͡ʃə/, stability /stəˈbɪlɪti/

한국어 화자가 어려워하는 소리:

  • /f/ — ㅍ(/p/)으로 바꾸지 말고 윗니를 아랫입술에 대기: physics /ˈfɪz.ɪks/, verification /ˌvɛ.ɹə.fɪˈkeɪ.ʃən/, frequency /ˈfɹiːkwənsi/, differential [dɪfəˈɹənʃəɫ], flexible /ˈflɛk.sɪ.bəl/
  • /v/ — ㅂ(/b/)과 구별하기: activation /ˌæktəˈveɪʃən/, voltage /ˈvəʊltɪd͡ʒ/, verification /ˌvɛ.ɹə.fɪˈkeɪ.ʃən/, evaluate /ɪˈvaljʊeɪt/, solve /sɒlv/
  • /z/ — ㅈ이 아니라 성대를 울리는 /s/: physics /ˈfɪz.ɪks/, minimize /ˈmɪn.ɪˌmaɪz/, representation /ˌɹɛp.ɹə.zɛnˈteɪ.ʃən/, optimization /ˌɑptəmaɪˈzeɪʃən/, horizon /həˈɹaɪ.zən/

이 영상으로 연습하는 방법

  1. 먼저 말하지 않고 영상을 끝까지 듣고 모르는 단어를 적어 둡니다.
  2. 0.75배속으로 한 문장씩 섀도잉을 시작하고, 익숙해지면 보통 속도로 돌아갑니다.
  3. 자신의 목소리를 녹음해 원본과 비교하고, dynamics, physics, trajectory 같은 단어에 특히 주의합니다.

쉐도잉이란? 영어 실력을 빠르게 키우는 과학적 방법

쉐도잉(Shadowing)은 원래 전문 통역사 훈련을 위해 개발된 언어 학습 기법으로, 다언어 학자인 Dr. Alexander Arguelles에 의해 대중화된 방법입니다. 핵심 원리는 간단하지만 매우 강력합니다: 원어민의 영어를 들으면서 1~2초의 짧은 지연으로 즉시 소리 내어 따라 말하는 것——마치 '그림자(shadow)'처럼 화자를 따라가는 것입니다. 문법 공부나 수동적인 청취와 달리, 쉐도잉은 뇌와 입 근육이 동시에 실시간으로 영어를 처리하고 재현하도록 훈련합니다. 연구에 따르면 이 방법은 발음 정확도, 억양, 리듬, 연음, 청취력, 말하기 유창성을 크게 향상시킵니다. IELTS 스피킹 준비와 자연스러운 영어 소통을 원하는 분들에게 특히 효과적입니다.

섀도잉 방법: 단계별 전체 가이드 읽기 →