learning algorithms for physical systems: challenges and
TRANSCRIPT
![Page 1: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/1.jpg)
1
Learning algorithms for physical
systems: challenges and solutions
Ion Matei
Palo Alto Research Center
© 2018 PARC All Rights Reserved
![Page 2: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/2.jpg)
2
System analytics: how things are done
Use of models (physics) to inform AI algorithms
Use of AI algorithms to inform about the physics
![Page 3: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/3.jpg)
3
What are we trying to avoid
Solution:
□ ADD MORE INTELIGENCE
www.youtube.com
![Page 4: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/4.jpg)
4
Path forward
Awareness No
ne
None
Re
co
nfig
ure
R
eo
ptim
ize
Sensing
Reactive maintenance
• Fail and fix
• No automation
Preventative maintenance
• Scheduled
• Low automation
Condition-based maintenance
• Predictive
• More automation
Self-adaptive assets
• Proactively reconfigures
• Highly autonomous
Self- coordinated assets
• Recognizes key objectives
• Completely autonomous
Au
tom
ati
on
![Page 5: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/5.jpg)
5
Two Systematic Approaches to Increased Automation
1 2 3 4 5
1 9 8 7 6
Close Acceleration Constant velocity
Braking Open
Acceleration Constant velocity
Braking Ripples Close
Purely data-driven Purely behavioral
Simulink, MATLAB, Modelica,
Simscape, Easy5
Model-based
![Page 6: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/6.jpg)
6
Data driven methods
1 2 3 4 5
1 9 8 7 6
Close Acceleration Constant velocity
Braking Open
Acceleration Constant velocity
Braking Ripples Close
Purely data-driven
Pros:
□ A plethora of statistical models
(regression models, decision trees,
neural networks)
□ More and more efficient algorithms
for training
□ Easy access to documentation and
training platforms
□ Do not require “very” specialized
training
![Page 7: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/7.jpg)
7
Data driven methods
1 2 3 4 5
1 9 8 7 6
Close Acceleration Constant velocity
Braking Open
Acceleration Constant velocity
Braking Ripples Close
Purely data-driven
Cons:
□ May require a lot of data which is
not always easy to obtain (assets
do NOT fail very often)
□ May take a long time to train
□ Loss of explainability (systems are
seen as black boxes – nothing is
known about the internal structure
and behavior)
![Page 8: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/8.jpg)
8
Data driven methods
1 2 3 4 5
1 9 8 7 6
Close Acceleration Constant velocity
Braking Open
Acceleration Constant velocity
Braking Ripples Close
Purely data-driven
Training:
![Page 9: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/9.jpg)
9
Data driven methods enablers
Hardware Technology
□ GPU
□ Cheap storage
“Big data”
NVIDIA
www.blogs.gartner.com
![Page 10: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/10.jpg)
10
Data-driven methods success stories
Object detection
and tracking
www.towardsdatascience.com
Speech recognition
and translations
www.medium.com
Text generation
http://colah.github.io
![Page 11: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/11.jpg)
11
Data-driven methods success stories, but…
“All the impressive achievements of deep learning
amount to just curve fitting.”
Judea Pearl, 2011 ACM Turing award
![Page 12: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/12.jpg)
12
Model-based methods
Purely behavioral
Often in Simulink, MATLAB,
Modelica, Simscape, Easy5
Model-based
Pros:
□ Vast history of model-based results
(reasoning, control, diagnosis,
prognosis)
□ Well established modeling languages
and tools (Matlab, Modelica, Simulink,
OpenModelica)
□ Support for both causal (input-output
maps) and acausal (physics-based)
models
□ Explainability (can connect to particular
components and physical processes)
□ Require less data
![Page 13: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/13.jpg)
13
Two Systematic Approaches to System Analytics
Purely behavioral
Often in Simulink, MATLAB,
Modelica, Simscape, Easy5
Model-based
Cons:
□ Work well for specific classes of
problems (e.g. linear systems)
□ Does not always scale to complex
systems
□ Modeling complex systems can be
expensive
□ Requires deep expertise
□ Models are not very accurate due to
simplifying assumptions
![Page 14: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/14.jpg)
15
Model-based methods
How to benefit the from the combining the two approaches?
1 2 3 4 5
1 9 8 7 6
Close Acceleration Constant velocity
Braking Open
Acceleration Constant velocity
Braking Ripples Close
Purely data-driven Purely behavioral
Often in Simulink, MATLAB,
Modelica, Simscape, Easy5
Hybrid
![Page 15: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/15.jpg)
16
MODELS MACHINE
LEARNING
MAKE USE OF SYSTEM PROPERTIES (REGULARITIES)
THAT ARE INFORMED BY (PARTIAL) MODELS
![Page 16: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/16.jpg)
17
System regularities
© 2018 PARC All Rights Reserved
Inverted pendulum control
□ Pendulum stabilization when starting
from two opposing angles
□ The force needed to stabilize the
pendulum when starting from a left
angle can be used when starting
from an opposing right angle by
changing its sign
Animation produced using a Modelica model
![Page 17: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/17.jpg)
18
System regularities
© 2018 PARC All Rights Reserved
Inverted pendulum control: symmetric motion and control
![Page 18: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/18.jpg)
19
System regularities
Robotics: symmetries in complex robot motion
Animation produced using a Modelica model
![Page 19: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/19.jpg)
20
System regularities
Quadrotor motion
planning
□ Using rotational
symmetries we can
generate a multitude
of additional feasible
trajectories from one
initial trajectory
Matlab generated animation
![Page 20: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/20.jpg)
21
System regularities
Geometric symmetries
□ Transformations that take a system trajectory and
produce another system trajectory
□ Can have discrete symmetries:
□ Rotations at a fixed angle
□ Parametrized symmetries
□ Lie symmetries
□ Can check for typical symmetries (scaling,
translations, rotations)
□ Can be learned from data
![Page 21: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/21.jpg)
22
Leveraging system regularities for policy learning
Reinforcement learning:
□ Area of machine learning and control that
tells us what actions (controls) should we
take when interacting with an
environment to maximize some reward.
□ Suitable for incomplete, or model free
case (or when other methods fail)
□ Requires large amount of data
(experience) to learn the best policy
![Page 22: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/22.jpg)
23
Leveraging system regularities for policy learning
Symmetry enhanced reinforcement
learning:
□ Use geometric symmetries to augment
the training data set used for policy
learning
□ Using a discrete symmetry can double
the size of the training data set
□ More symmetries … more data
Policy
Policy* Symmetry
map
Experience*
Experience Policy
update
Policy**
Policy
update
![Page 23: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/23.jpg)
24
Leveraging system regularities for policy learning
Smaller number of failures (faster
convergence)
Higher rewards
Less uncertainty
Inverted pendulum example:
□ State-space discretization: 7 points for the
positions, 2 points for the velocity, 8 points
for the angle, 2 points for the angular velocity
□ Action space:
Standard reinforcement algorithm Symmetry enhanced
reinforcement algorithm
Training with symmetry use Training without symmetry use
![Page 24: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/24.jpg)
25
MODELS
MAKE USE OF MACHINE LEARNING TOOLS
(ALGORITHMS) TO LEARN (PHYSICAL) MODELS
MACHINE
LEARNING
![Page 25: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/25.jpg)
26
CAUSAL VS. ACAUSAL MODELS
ACAUSAL MODELS
□ There is no clear notion of input and outputs
□ Behavior described by constraints between variables
CAUSAL MODELS
□ Output is completely determined by the current and
past inputs, states and outputs
□ Typical in machine learning, control and signal
processing
![Page 26: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/26.jpg)
27
LEARNING PHYSICAL MODELS IN PARTIALLY KNOWN SYSTEMS
Learn a model that fits the data
What representation?
How can I make sure it makes sense?
![Page 27: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/27.jpg)
28
LEARNING PHYSICAL MODELS IN PARTIALLY KNOWN SYSTEMS
What representation?
□ Parametrized constraint equation:
How can I make sure it makes sense?
□ Impose a priori feasibility constraints on
parameters (component does not generate
energy, e.g., passive)
![Page 28: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/28.jpg)
29
LEARNING PHYSICAL MODELS IN PARTIALLY KNOWN SYSTEMS
What representation?
□ Parametrized constraint equation:
How can I make sure it makes sense?
□ Joint learning of best parameter and their
feasibility space (optimization problem with
unknown constraints)
![Page 29: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/29.jpg)
30
LEARNING PHYSICAL MODELS IN PARTIALLY KNOWN SYSTEMS
feasibility space
Strategy for joint learning of parameters and their constraints:
□ explore-exploit
![Page 30: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/30.jpg)
31
LEARNING PHYSICAL MODELS IN PARTIALLY KNOWN SYSTEMS
How do I learn the feasibility space?
□ Train a classifier
Current point
Unfeasible hyperplane
Feasible hyperplane
Optimization step
Simulation fails
Update separation between
feasible and unfeasible sets
□ Use the model simulator to label points
![Page 31: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/31.jpg)
32
LEARNING PHYSICAL MODELS IN PARTIALLY KNOWN SYSTEMS
What you would expect to learn?
□ At least a local separating hyperplane
Powell Simplex Quadratic programming
![Page 32: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/32.jpg)
33
LEARNING PHYSICAL MODELS: OTHERS IDEAS
Build “neural network” like representations
Neural network cell:
Linear part + activation
function (nonlinear)
Nonlinearities in the damper and springs
Acausal neural network cell
![Page 33: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/33.jpg)
34
LEARNING PHYSICAL MODELS: OTHERS IDEAS
Build “neural network” like representations
□ Need to add boundary conditions
□ Much more difficult to train
□ forward propagation needs to simulate a dynamical system
□ backward propagation require computation of gradients
![Page 34: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/34.jpg)
35
LEARNING PHYSICAL MODELS: OTHERS IDEAS
Discovering Hamiltonians, Lagrangians and other laws of
geometric and momentum conservations:
□ Symmetries and invariants underlie almost all physical law
□ Use of genetic algorithms (the main challenge is avoiding trivialities)
Hamiltonian
M. Schmidt, Hod Lipson, “Distilling Free-Form Natural Laws from Experimental Data,” Science Magazine
![Page 35: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/35.jpg)
37
Where we are today
Awareness No
ne
None
Re
co
nfig
ure
R
eo
ptim
ize
Sensing
Reactive maintenance
• Fail and fix
• No automation
Preventative maintenance
• Scheduled
• Low automation
Condition-based maintenance
• Predictive
• More automation
Self-adaptive assets
• Proactively reconfigures
• Highly autonomous
Self- coordinated assets
• Recognizes key objectives
• Completely autonomous
Au
tom
ati
on
current focus
![Page 36: Learning algorithms for physical systems: challenges and](https://reader033.vdocuments.us/reader033/viewer/2022051813/6282144529dc7354a71a5e28/html5/thumbnails/36.jpg)
38
What’s next…
□ Seamless integration between model-based and
data-driven methods
□ Explainable AI (what are we learning?)
□ Assured AI (what can we guarantee?)
□ Design use cases