Predictive Data Science for physical systems From model reduction - - PowerPoint PPT Presentation

predictive data science for physical systems
SMART_READER_LITE
LIVE PREVIEW

Predictive Data Science for physical systems From model reduction - - PowerPoint PPT Presentation

Predictive Data Science for physical systems From model reduction to scientific machine learning Professor Karen E. Willcox Mathematics of Reduced Order Models | ICERM | 2-20-20 2 1 The Team Funding sources: US Air Force Computational


slide-1
SLIDE 1

Predictive Data Science for physical systems

From model reduction to scientific machine learning

Professor Karen E. Willcox Mathematics of Reduced Order Models | ICERM | 2-20-202

1

slide-2
SLIDE 2

The Team

Funding sources:

  • US Air Force Computational

Math Program (F. Fahroo)

  • US Air Force Center of

Excellence on Rocket Combustion (M. Birkan, F. Fahroo, R. Munipalli, D. Talley)

  • US Department of Energy

AEOLUS MMICC (S. Lee,

  • W. Spotz)
  • SUTD-MIT International

Design Centre

  • Dr. Parisa

Khodabakhshi Oden Institute

  • Prof. Benjamin

Peherstorfer Courant Institute

  • Prof. Boris Kramer

UCSD Renee Swischuk Caliper Elizabeth Qian MIT Michael Kapteyn MIT

2

slide-3
SLIDE 3

Outline 1

Scientific Machine Learning What, Why & How?

2

Lift & Learn Projection-based model reduction as a lens through which to learn predictive models

3

Conclusions & Outlook

3

slide-4
SLIDE 4

Scientific Machine Learning

“Scientific machine learning (SciML) is a core component of artificial intelligence (AI) and a computational technology that can be trained, with scientific data, to augment or automate human skills. Across the Department of Energy (DOE), SciML has the potential to transform science and energy research. Breakthroughs and major progress will be enabled by harnessing DOE investments in massive data from scientific user facilities, software for predictive models and algorithms, high-performance computing platforms, and the national workforce.”

4

slide-5
SLIDE 5

Scientific Machine Learning

What role for model reduction? 1 reduce the cost of training 2 foundational shift in ML perspectives

Respect physical constraints Embed domain knowledge Bring interpretability to results Integrate heterogeneous, noisy & incomplete data Get predictions with quantified uncertainties

5

slide-6
SLIDE 6

Of Offline: fline: Online: Online:

Use model library to train a classifier that predicts asset state based on sensor data Construct library of ROMs representing different asset states

sensor data

Analysis Prediction Optimization

updated Digital Twin current Digital Twin

Predictive Digital Twin

via component-based ROMs and interpretable machine learning ROMs embed predictive modeling and reduce the cost of training

[Kapteyn, Knezevic, W. AIAA Scitech 2020]

slide-7
SLIDE 7

Machine learning

“The scientific study of algorithms & statistical models that computer systems use to perform a specific task without using explicit instructions, relying on patterns & inference instead.” [Wikipedia]

Reduced-order modeling

“Model order reduction (MOR) is a technique for reducing the computational complexity of mathematical models in numerical simulations.” [Wikipedia] Model reduction methods have grown from Computational Science & Engineering, with focus on reducing high-dimensional models that arise from physics-based modeling, whereas machine learning has grown from Computer Science, with a focus on creating low-dimensional models from black-box data streams. [Swischuk et al., Computers & Fluids, 2019]

What is the connection between reduced-order modeling and machine learning?

7

slide-8
SLIDE 8

Reduced-order modeling & machine learning: Can we get the best of both worlds?

Machine learning

“The scientific study of algorithms & statistical models that computer systems use to perform a specific task without using explicit instructions, relying on patterns & inference instead.” [Wikipedia]

Reduced-order modeling

“Model order reduction (MOR) is a technique for reducing the computational complexity of mathematical models in numerical simulations.” [Wikipedia]

Discover hidden structure Non-intrusive implementation Black-box & flexible Accessible & available Embed governing equations Structure-preserving Predictive (error estimators) Stability-preserving

8

slide-9
SLIDE 9

Lift & Learn

Projection-based model reduction as a lens through which to learn low-dimensional predictive models 1 Scientific Machine Learning 2 Lift & Learn 3 Conclusions & Outlook

9

slide-10
SLIDE 10

Lift & Learn: Ingredients

P, kPa T, K Q, MW/m3 YCH4

𝑦

Temperature Order parameter

Rocket combustion Solidification process in additive manufacturing

  • 1. A physics-based model

Typically described by a set of PDEs or ODEs

  • 2. Lens of projection to define a structure-preserving

low-dimensional model

  • 3. Non-intrusive learning of the reduced model
  • 4. Variable transformations that expose

polynomial structure in the model → can be exploited with non-intrusive learning

10

slide-11
SLIDE 11

Start with a physics-based model

Discretize: Spatially discretized finite element model discretized state 𝐲 contains temperature and phase field

  • rder parameter at

𝑂𝑨 spatial grid points

𝐲 = 𝑈

1

⋮ 𝑈𝑂𝑨 𝜚1 ⋮ 𝜚𝑂𝑨

ሶ 𝐲 = 𝐁𝐲 + 𝐂𝐯 + 𝐠(𝐲, 𝐯)

𝑂𝑨~𝑃(103 − 109)

Figure from: https://www.bintoa.com/powder-bed-fusion/

Example: modeling solidification in additive manufacturing Space/time evolution of temperature 𝑈 and phase parameter 𝜚

with

Model based on Kobayashi, 1993; collaboration with Bao & Biros

11

slide-12
SLIDE 12

Projection-based model reduction

1 Train: Solve PDEs to generate training data (snapshots) 2 Identify structure: Compute a low-dimensional basis 3 Reduce: Project PDE model onto the low-dimensional subspace

= +

dimension 103 − 109 solution time ~minutes / hours dimension 101 − 103 solution time ~seconds / minutes

+ =

12

high-fidelity physics-based simulation reduced-order model

slide-13
SLIDE 13

Full-order model (FOM) state 𝐲 ∈ ℝ𝑂 Reduced-order model (ROM) state 𝐲𝑠 ∈ ℝ𝑠 ሶ 𝐲 = 𝐁𝐲 + 𝐂𝐯 Approximate 𝐲 ≈ 𝐖𝐲𝑠 𝑊 ∈ ℝ𝑂×𝑠 𝐬 = 𝐖 ሶ 𝐲𝑠 − 𝐁𝐖𝐲𝑠 − 𝐂𝐯 Project 𝐗⊤𝐬 = 0 (Galerkin: 𝐗 = 𝐖) Residual: 𝑶 eqs ≫ 𝒔 dof ሶ 𝐲𝑠 = 𝐁𝑠𝐲𝑠 + 𝐂𝑠𝐯 𝐁𝑠 = 𝐖⊤𝐁𝐖 𝐂𝑠 = 𝐖⊤𝐂

Projecting a linear system

13

slide-14
SLIDE 14

Linear Model

14

FOM: ROM: ROM: FOM: Precompute the ROM matrices: Precompute the ROM matrices and tensor:

Quadratic Model

ሶ 𝐲𝑠 = 𝐁𝑠𝐲𝑠 + 𝐂𝑠𝐯 ሶ 𝐲𝑠 = 𝐁𝑠𝐲𝑠 + 𝐈𝑠 𝐲𝑠 ⊗ 𝐲𝑠 + 𝐂𝑠𝐯 ሶ 𝐲 = 𝐁𝐲 + 𝐈 𝐲 ⊗ 𝐲 + 𝐂𝐯 ሶ 𝐲 = 𝐁𝐲 + 𝐂𝐯 projection preserves structure ↔ structure embeds physical constraints 𝐁𝑠 = 𝐖⊤𝐁𝐖, 𝐂𝑠 = 𝐖⊤𝐂 𝐈𝑠 = 𝐖⊤𝐈(𝐖 ⊗ 𝐖)

slide-15
SLIDE 15

Operator inference

Non-intrusive learning of reduced models from simulation snapshot data

slide-16
SLIDE 16

Given reduced state data, learn the reduced model

Operator Inference

using proper orthogonal decomposition (POD) aka PCA

Peherstorfer & W. Data-driven operator inference for nonintrusive projection-based model reduction, Computer Methods in Applied Mechanics and Engineering, 2016

෡ 𝐘 = | | ො 𝐲(𝑢1) … ො 𝐲(𝑢𝐿) | | ሶ ෡ 𝐘 = | | ሶ ො 𝐲(𝑢1) … ሶ ො 𝐲(𝑢𝐿) | | Given reduced state data (෡ 𝐘) and derivative data ( ሶ ෡ 𝐘): Find the operators ෡ 𝐁, ෡ 𝐂, ෡ 𝐈 by solving the least squares problem:

min

෡ 𝐁,෡ 𝐂,෡ 𝐈

෡ 𝐘⊤෡ 𝐁⊤ + ෡ 𝐘 ⊗ ෡ 𝐘

⊤෡

𝐈⊤ + 𝐕⊤෡ 𝐂⊤ − ሶ ෡ 𝐘⊤

  • Generate ෡

𝐘 data by projection of 𝐘 snapshot data

  • nto POD basis
  • If data are Markovian, Operator Inference recovers

the intrusive POD reduced model [Peherstorfer, 2019]

16

slide-17
SLIDE 17

Variable Transformations & Lifting

The physical governing equations reveal variable transformations and manipulations that expose polynomial structure

𝜖 𝜖𝑢 𝜍 𝜍𝑣 𝐹 + 𝜖 𝜖𝑦 𝜍𝑣 𝜍𝑣2 + 𝑞 𝐹 + 𝑞 𝑣 = 0 𝐹 = 𝑞 𝛿 − 1 + 1 2 𝜍𝑣2 𝜖 𝜖𝑢 𝜍 𝑣 𝑞 + 𝜍 𝜖𝑣 𝜖𝑦 + 𝑣 𝜖𝜍 𝜖𝑦 𝑣 𝜖𝑣 𝜖𝑦 + 1 𝜍 𝜖𝑞 𝜖𝑦 𝛿𝑞 𝜖𝑣 𝜖𝑦 + 𝑣 𝜖𝑞 𝜖𝑦 = 0 𝜖 𝜖𝑢 𝑣 𝑞 𝑟 + 𝑣 𝜖𝑣 𝜖𝑦 + 𝑟 𝜖𝑞 𝜖𝑦 𝛿𝑞 𝜖𝑣 𝜖𝑦 + 𝑣 𝜖𝑞 𝜖𝑦 𝑟 𝜖𝑣 𝜖𝑦 + 𝑣 𝜖𝑟 𝜖𝑦 = 0

slide-18
SLIDE 18

There are multiple ways to write the Euler equations

Different choices of variables leads to different structure in the discretized system

  • Define specific volume: 𝑟 = Τ

1 𝜍

  • Take derivative:

𝜖𝑟 𝜖𝑢 = −1 𝜍2 𝜖𝜍 𝜖𝑢 = −1 𝜍2 −𝜍 𝜖𝑣 𝜖𝑨 − 𝑣 𝜖𝜍 𝜖𝑨

= 𝑟

𝜖𝑣 𝜖𝑨 − 𝑣 𝜖𝑟 𝜖𝑨

𝜖 𝜖𝑢 𝑥 𝑞 𝑟 + 𝑥 𝜖𝑥 𝜖𝑨 + 𝑟 𝜖𝑞 𝜖𝑨 𝛿𝑞 𝜖𝑥 𝜖𝑨 + 𝑥 𝜖𝑞 𝜖𝑨 𝑟 𝜖𝑥 𝜖𝑨 + 𝑥 𝜖𝑟 𝜖𝑨 = 0 specific volume variables

transformed system has quadratic structure

𝜖 𝜖𝑢 𝜍 𝜍𝑥 𝐹 + 𝜖 𝜖𝑨 𝜍𝑥 𝜍𝑥2 + 𝑞 𝐹 + 𝑞 𝑥 = 0 𝐹 = 𝑞 𝛿 − 1 + 1 2 𝜍𝑥2

𝜖 𝜖𝑢 𝜍 𝑥 𝑞 + 𝜍 𝜖𝑥 𝜖𝑨 + 𝑥 𝜖𝜍 𝜖𝑨 𝑥 𝜖𝑥 𝜖𝑨 + 1 𝜍 𝜖𝑞 𝜖𝑨 𝛿𝑞 𝜖𝑥 𝜖𝑨 + 𝑥 𝜖𝑞 𝜖𝑨 = 0

conservative variables mass, momentum, energy primitive variables mass, velocity, pressure

ሶ 𝐲𝑠 = 𝐈𝑠 𝐲𝑠 ⊗ 𝐲𝑠 + 𝐂𝑠𝐯 ሶ 𝐲 = 𝐈 𝐲 ⊗ 𝐲 + 𝐂𝐯

ROM has quadratic structure

18

slide-19
SLIDE 19

Introducing auxiliary variables can expose structure → lifting

  • original state 𝑡 𝑦,𝑢

dimension 𝑒𝑡

  • lifted state 𝑥(𝑦,𝑢)

dimension 𝑒𝑥

  • lifted PDE has

quadratic form

19

[McCormick 1976; Gu 2011]

[Qian, Kramer, Peherstorfer, W. Physica D, 2020]

slide-20
SLIDE 20

Introducing auxiliary variables can expose structure → lifting

Example: Lifting a quartic ODE to quadratic-bilinear form Can either lift to a system of ODEs or to a system of DAEs

20

Consider the quartic system Introduce auxiliary variables: Chain rule: Need additional variable to make auxiliary dynamics quadratic:

QB-ODE QB-DAE

[McCormick 1976; Gu 2011]

slide-21
SLIDE 21
  • riginal equations

cubic lifted equations

Many different forms of nonlinear PDEs can be lifted to polynomial form

[Khodabakhshi, W. In preparation.]

slide-22
SLIDE 22

Solidification of a Pure Material

22

with

DebRoy et al. Progress in Materials Science, 2018

Nonlinear system for 1D solidification

𝑈 𝜚

slide-23
SLIDE 23

Solidification of a Pure Material

23

Chain rule: with Nonlinear system for 1D solidification

𝑈 𝜚

slide-24
SLIDE 24

Solidification of a Pure Material

24

Chain rule: with Nonlinear system for 1D solidification

𝑈 𝜚 𝐿

slide-25
SLIDE 25

Solidification of a Pure Material

25

Chain rule: with Nonlinear system for 1D solidification

𝑈 𝜚 𝐿 𝑞

slide-26
SLIDE 26

Solidification of a Pure Material

26

Chain rule: with Nonlinear system for 1D solidification

𝑈 𝜚 𝐿 𝑞 𝑞′

slide-27
SLIDE 27

Solidification of a Pure Material

27

Chain rule: Nonlinear system for 1D solidification

𝑈 𝜚 𝐿 𝑞 𝑞′ 𝑞′′

slide-28
SLIDE 28

Solidification of a Pure Material

28

Original system:

Quadratic Quadratic Quadratic Cubic Cubic Cubic Cubic Cubic

with lifted variables 𝑈, 𝜚, 𝐿, 𝑞, 𝑞′, 𝑞′′, 𝑛0, 𝑧 with original variables 𝑈, 𝜚

Nonlinear system for 1D solidification

slide-29
SLIDE 29

Lift & Learn

Variable transformations to expose structure + non-intrusive learning that frees us to choose our variables

slide-30
SLIDE 30

Learning a low-dimensional model

Using only snapshot data from the

  • riginal high-fidelity

model (non-intrusive) but using variable transformations to expose and exploit structure

𝐘𝐩𝐬𝐣𝐡 = | | 𝐲(𝑢1) … 𝐲(𝑢𝐿) | | ሶ 𝐘𝐩𝐬𝐣𝐡 = | | ሶ 𝐲(𝑢1) … ሶ 𝐲(𝑢𝐿) | | Lift & Learn [Qian, Kramer, Peherstorfer & W., 2019] 1. Generate full state trajectories (snapshots) (from high-fidelity simulation)

30

slide-31
SLIDE 31

Learning a low-dimensional model

Using only snapshot data from the

  • riginal high-fidelity

model (non-intrusive) but using variable transformations to expose and exploit structure

Lift & Learn [Qian, Kramer, Peherstorfer & W., 2019] 1. Generate full state trajectories (snapshots) (from high-fidelity simulation) 2. Transform snapshot data to get lifted snapshots (analyze the PDEs to expose system polynomial structure) 𝐘𝐩𝐬𝐣𝐡 ⟶ 𝐘 ሶ 𝐘𝐩𝐬𝐣𝐡 ⟶ ሶ 𝐘

31

slide-32
SLIDE 32

Learning a low-dimensional model

Using only snapshot data from the

  • riginal high-fidelity

model (non-intrusive) but using variable transformations to expose and exploit structure

𝐘 = 𝐖 𝚻 𝐗⊤ Lift & Learn [Qian, Kramer, Peherstorfer & W., 2019] 1. Generate full state trajectories (snapshots) (from high-fidelity simulation) 2. Transform snapshot data to get lifted snapshots 3. Compute POD basis from lifted trajectories

32

slide-33
SLIDE 33

Learning a low-dimensional model

Using only snapshot data from the

  • riginal high-fidelity

model (non-intrusive) but using variable transformations to expose and exploit structure

෡ 𝐘 = 𝐖⊤𝐘 Lift & Learn [Qian, Kramer, Peherstorfer & W., 2019] 1. Generate full state trajectories (snapshots) (from high-fidelity simulation) 2. Transform snapshot data to get lifted snapshots 3. Compute POD basis from lifted trajectories 4. Project lifted trajectories onto POD basis, to

  • btain trajectories in low-dimensional POD

coordinate space

33

slide-34
SLIDE 34

Learning a low-dimensional model

Using only snapshot data from the

  • riginal high-fidelity

model (non-intrusive) but using variable transformations to expose and exploit structure

min

෡ 𝐁,෡ 𝐂,෡ 𝐈

෡ 𝐘⊤෡ 𝐁⊤ + ෡ 𝐘 ⊗ ෡ 𝐘

⊤෡

𝐈⊤ + 𝐕⊤෡ 𝐂⊤ − ሶ ෡ 𝐘⊤

Lift & Learn [Qian, Kramer, Peherstorfer & W., 2019] 1. Generate full state trajectories (snapshots) (from high-fidelity simulation) 2. Transform snapshot data to get lifted snapshots 3. Compute POD basis from lifted trajectories 4. Project lifted trajectories onto POD basis, to

  • btain trajectories in low-dimensional POD

coordinate space 5. Solve least squares minimization problem to infer the low-dimensional model

34

slide-35
SLIDE 35

Learning a low-dimensional model

Using only snapshot data from the

  • riginal high-fidelity

model (non-intrusive) but using variable transformations to expose and exploit structure

Lift & Learn [Qian, Kramer, Peherstorfer & W., 2019] 1. Generate full state trajectories (snapshots) (from high-fidelity simulation) 2. Transform snapshot data to get lifted snapshots 3. Compute POD basis from lifted trajectories 4. Project lifted trajectories onto POD basis, to

  • btain trajectories in low-dimensional POD

coordinate space 5. Solve least squares minimization problem to infer the low-dimensional model Under certain conditions, recovers the intrusive POD reduced model → convenience of black-box learning + rigor of projection-based reduction + structure imposed by physics

35

slide-36
SLIDE 36

Additive Manufacturing

Lift & Learn reduced models for a highly nonlinear solidification process 1 Scientific Machine Learning 2 Lift & Learn 3 Conclusions & Outlook

36

slide-37
SLIDE 37

Modeling solidification in additive manufacturing

  • Spatial domain discretized into 1,000 cells
  • Initial conditions
  • Boundary conditions

https://www.bintoa.com/powder-bed-fusion

slide-38
SLIDE 38

Training data

  • 800 snapshots collected over time 𝑢 = 0, 0.02
  • Parameters: ℓ = 1, 𝛽 = 3, 𝜊 = 0.1, 𝛾 = 0.9,

𝑈melt = 1.0, 𝑀 = 0.5, 𝛿 = 2.0, 𝐿0 = 1, 𝐿1 = 0.1

  • Variables used for learning cubic ROMs

𝐲 = 𝑈, 𝜚, 𝐿, 𝑞, 𝑞′, 𝑞′′, 𝑛0, 𝑧

Modeling solidification in additive manufacturing

38

slide-39
SLIDE 39

Lift & Learn reduced model performance

39

  • r = 23 POD

basis functions

  • 16 modes for

differential eqs + 7 modes for algebraic eqs

slide-40
SLIDE 40

Lift & Learn reduced model performance

40

  • r = 32 POD

basis functions

  • 22 modes for

differential eqs + 10 modes for algebraic eqs

slide-41
SLIDE 41

Rocket Engine Combustion

Lift & Learn reduced models for a complex Air Force combustion problem 1 Scientific Machine Learning 2 Lift & Learn 3 Conclusions & Outlook

slide-42
SLIDE 42

Modeling a single injector of a rocket engine combustor

  • Spatial domain (2D) discretized into 38,523 cells
  • Oxidizer input: 0.37

kg s of 42% O2 / 58% H2O

  • Fuel input: 5.0

kg s of CH4

  • Forced by a back pressure boundary condition at exit throat

Injector Element Injector Post Oxidizer Manifold Combustion Chamber Exit Throat

42

slide-43
SLIDE 43

Modeling a single injector of a rocket engine combustor

Training data

  • 1 ms of full state solutions generated using

Air Force GEMS code (~200 hours CPU time)

  • Timestep Δ𝑢 = 10−7s; 10,000 total snapshots
  • Variables used for learning ROMs

𝐲 = 𝐪 𝐯 𝐰 𝟐/𝝇 𝝇𝐙𝐃𝐈𝟓 𝝇𝐙𝐏𝟑 𝝇𝐙𝐃𝐏𝟑 𝝇𝐙𝐈𝟑𝐏 makes many (but not all) terms in governing equations quadratic

  • Snapshot matrix 𝐘 ∈ ℝ308,184 × 10,000

Test data Additional 2 ms of data at four monitor locations (20,000 timesteps)

43

slide-44
SLIDE 44

Performance

  • f learned

quadratic ROM

Pressure time traces at monitor location 1 Basis size 𝑠 = 24

44

Training Test

slide-45
SLIDE 45

45

Performance

  • f learned

quadratic ROM

Pressure time traces at monitor location 1 Basis size 𝑠 = 29

Training Test

slide-46
SLIDE 46

46

True Predicted

𝑠 = 29 POD modes

Relative error

Pressure Temperature

slide-47
SLIDE 47

47

True Normalized absolute error

CH4 O2

Predicted

𝑠 = 29 POD modes

slide-48
SLIDE 48

Conclusions & Outlook

What future for model reduction? 1 Scientific Machine Learning 2 Lift & Learn 3 Conclusions & Outlook

slide-49
SLIDE 49

Scientific Machine Learning

What role for model reduction? reduce the cost of training | foundational shift in ML perspectives

Respect physical constraints Embed domain knowledge Bring interpretability to results Integrate heterogeneous, noisy & incomplete data Get predictions with quantified uncertainties

49

slide-50
SLIDE 50

Scientific Machine Learning

Learning from data through the lens of models is a way to exploit structure in an otherwise intractable problem

Respect physical constraints Embed domain knowledge Bring interpretability to results Integrate heterogeneous, noisy & incomplete data Get predictions with quantified uncertainties

50

slide-51
SLIDE 51

Scientific Machine Learning

What future for model reduction?

Rigor

issuing predictions with certified uncertainty for high-consequence applications

Relevance

towards real-world scientific and engineering applications

Accessibility

accessible algorithms, community software, benchmark problems

Impact & adoption

depend on all of the above

51

slide-52
SLIDE 52

Data-driven decisions

building the mathematical foundations and computational methods to enable design of the next generation of engineered systems

KIWI.ODEN.UTEXAS.EDU