Search

Search papers and lessons

Proper Orthogonal Decomposition

Level 4 · 12 min read

Proper orthogonal decomposition finds the spatial patterns that carry most of the energy in a set of snapshots of a field, so a complicated flow can be described by a few modes and a few numbers each.

On this page

  • Colour = topic mix
  • Linear algebra
  • Probability
  • Discrete math
  • Calculus
  • Learning basics
  • Mechanical engineering
  • Sign in to see your progress

TL;DR

Proper orthogonal decomposition (POD) takes many snapshots of a field that changes in space and time, such as the velocity of a flow or the temperature in a plate, and finds the spatial patterns that carry the most energy across all of them. Each snapshot is then rebuilt as an average plus a weighted sum of a few of these patterns, so a big simulation or measurement can be stored and studied with a handful of numbers.

Where you'll see it: reduced-order models of fluid flows, the analysis of turbulent wakes and combustion, and data compression for large simulation results.

Intuition

Start from a question you already know

Suppose you measure the temperature across a metal plate once a second for an hour. You get an hour of pictures, each with thousands of points. Most of those thousands of numbers are not independent: neighbouring points move together, and the plate's behaviour repeats. The question is: what few spatial patterns, each a whole picture, would let you rebuild every picture you recorded, and which of those patterns matters most?

That is exactly the question principal component analysis answers for a table of data points. POD asks it for a field. The "data points" are the snapshots in time, and the "features" are the spatial locations.

The recipe in one picture

flowchart LR
  A["Snapshots of the field at many times"] --> B["Subtract the average snapshot"]
  B --> C["Singular value decomposition"]
  C --> D["Spatial modes with energies"]
  D --> E["Keep the first few modes"]
  E --> F["Each snapshot as average plus a few weighted modes"]

The singular value decomposition does the hard work. Its left vectors are the spatial modes, and the size of each singular value tells you how much energy that mode carries.

Why subtract the average

The average snapshot is the mean flow, the part that does not change from one picture to the next. Without subtracting it, the first mode would mostly point at the mean itself, and the fluctuations you care about would be buried. After subtraction, each mode describes how the field deviates from its average, which is what the decomposition is meant to reveal.

Why "proper"

The word refers to the modes being chosen by the data, not guessed from the physics. They are orthogonal, meaning perpendicular in the sense of an inner product over space (a sum over grid points of the product of two patterns), so each mode adds information the others do not repeat. This is also where the name comes from: the modes are the proper, or natural, orthogonal basis for the snapshots.

0.511.522.500.20.40.60.81number of modes keptfraction of energy
  • cumulative energy
The two-mode example worked out below: the first mode alone carries three quarters of the energy, and the second brings it to all of it.

The math

Take mm snapshots of a field sampled at nn spatial points. Stack them as the columns of an n×mn \times m matrix XX, where column kk is the field at time tkt_k.

Let uˉ\bar{\mathbf{u}} be the average snapshot, uˉ=1m∑k=1muk\bar{\mathbf{u}} = \frac{1}{m}\sum_{k=1}^{m} \mathbf{u}_k. The centred snapshots are yk=uk−uˉ\mathbf{y}_k = \mathbf{u}_k - \bar{\mathbf{u}}, and we collect them as the columns of YY.

Definition: POD modes and energies

Take the singular value decomposition (see Singular Value Decomposition (SVD)) of the centred matrix, Y=ΦΣΨ⊤Y = \Phi \Sigma \Psi^\top. The columns ϕ1,…,ϕn\boldsymbol{\phi}_1, \dots, \boldsymbol{\phi}_n of Φ\Phi are the POD modes. They are orthonormal, so ϕi⊤ϕj\boldsymbol{\phi}_i^\top \boldsymbol{\phi}_j is 11 when i=ji = j and 00 otherwise. The singular values σ1≥σ2≥⋯≥0\sigma_1 \ge \sigma_2 \ge \dots \ge 0 on the diagonal of Σ\Sigma are ordered, and the energy of mode ii is σi2\sigma_i^2.

Each mode is a picture on the spatial grid: a pattern of how the field deviates from its average. Its energy measures how much of the total snapshot variation it accounts for.

Coefficients and the reconstruction

Each snapshot is a weighted sum of the modes. The weight on mode ii for snapshot kk is

ai(tk)=ϕi⊤yk=σi ψki,a_i(t_k) = \boldsymbol{\phi}_i^\top \mathbf{y}_k = \sigma_i \, \psi_{ki},

where ψki\psi_{ki} is the entry in row kk and column ii of Ψ\Psi. The second form follows from Y=ΦΣΨ⊤Y = \Phi \Sigma \Psi^\top. The coefficient aia_i is a time series: a number for each snapshot.

Keeping the first rr modes gives the approximation

u(tk)≈uˉ+∑i=1rai(tk) ϕi.\mathbf{u}(t_k) \approx \bar{\mathbf{u}} + \sum_{i=1}^{r} a_i(t_k)\, \boldsymbol{\phi}_i.

How much energy is kept

The fraction of snapshot energy kept by the first rr modes is

Er=∑i=1rσi2∑i=1nσi2.E_r = \frac{\sum_{i=1}^{r} \sigma_i^2}{\sum_{i=1}^{n} \sigma_i^2}.

The sum in the denominator equals the total squared size of the centred snapshots, so ErE_r is a fair score for how well rr modes describe the data.

Why POD is the best choice

Among all sets of rr orthonormal spatial patterns, the POD modes give the smallest average error in rebuilding the snapshots. The error left after keeping rr modes is the sum of the squared singular values you dropped, ∑i>rσi2\sum_{i > r} \sigma_i^2. This is the same optimality statement that drives PCA, and it is why a low-rank approximation of the snapshot matrix (see Low-Rank Matrix) is the natural object to study.

The method of snapshots

Often the field has far more points than snapshots: nn might be a million and mm only two hundred. Forming the n×nn \times n covariance is then wasteful. Instead, form the small m×mm \times m matrix Y⊤YY^\top Y. Its eigenvectors ψi\boldsymbol{\psi}_i give the time coefficients, and its eigenvalues are σi2\sigma_i^2. The spatial modes come back as

ϕi=1σiYψi.\boldsymbol{\phi}_i = \frac{1}{\sigma_i} Y \boldsymbol{\psi}_i.

This is the method of snapshots, introduced by Sirovich in 1987. It replaces a huge eigenproblem with a small one.

Viewed as statistics, the matrix 1m−1YY⊤\frac{1}{m-1} Y Y^\top is the covariance of the spatial points across the snapshots. Its eigenvectors are the POD modes and its eigenvalues are σi2/(m−1)\sigma_i^2/(m-1). This is why POD and PCA are the same procedure with the roles of space and sample swapped. For the covariance and its eigenvectors, see Covariance Matrix and Eigenvalues and Eigenvectors.

Worked examples

Example
Example 1: three points, two snapshots (tiny)

Let the field have n=3n = 3 points and m=2m = 2 snapshots. Take u1=(1,0,1)\mathbf{u}_1 = (1, 0, 1) and u2=(0,1,1)\mathbf{u}_2 = (0, 1, 1).

  1. Average snapshot: uˉ=(0.5,0.5,1)\bar{\mathbf{u}} = (0.5, 0.5, 1).
  2. Centred snapshots: y1=(0.5,−0.5,0)\mathbf{y}_1 = (0.5, -0.5, 0) and y2=(−0.5,0.5,0)\mathbf{y}_2 = (-0.5, 0.5, 0). Note y2=−y1\mathbf{y}_2 = -\mathbf{y}_1.
  3. The matrix Y⊤YY^\top Y is (0.5−0.5−0.50.5)\begin{pmatrix} 0.5 & -0.5 \\ -0.5 & 0.5 \end{pmatrix}. Its eigenvalues are 11 and 00, so σ1=1\sigma_1 = 1 and σ2=0\sigma_2 = 0.
  4. Eigenvector for σ12=1\sigma_1^2 = 1: ψ1=12(1,−1)\boldsymbol{\psi}_1 = \frac{1}{\sqrt{2}}(1, -1).
  5. Spatial mode: ϕ1=1σ1Yψ1=12(1,−1,0)\boldsymbol{\phi}_1 = \frac{1}{\sigma_1} Y \boldsymbol{\psi}_1 = \frac{1}{\sqrt{2}}(1, -1, 0).
  6. Energy fraction kept by one mode: E1=1/(1+0)=100E_1 = 1/(1 + 0) = 100 percent.
  7. Coefficients: a1(t1)=ϕ1⊤y1=12(0.5+0.5)≈0.707a_1(t_1) = \boldsymbol{\phi}_1^\top \mathbf{y}_1 = \frac{1}{\sqrt{2}}(0.5 + 0.5) \approx 0.707, and a1(t2)≈−0.707a_1(t_2) \approx -0.707.

Interpretation: the two snapshots differ only by a sign flip of one pattern. One mode, (1,−1,0)/2(1, -1, 0)/\sqrt{2}, rebuilds both exactly, and the coefficient changes sign between the two times.

Example
Example 2: two sensors, three snapshots (standard)

Let n=2n = 2 and m=3m = 3. Take centred snapshots (their average over time is zero) as the columns of Y=(2−1−101−1)Y = \begin{pmatrix} 2 & -1 & -1 \\ 0 & 1 & -1 \end{pmatrix}.

  1. Compute YY⊤Y Y^\top. Its first entry is 22+(−1)2+(−1)2=62^2 + (-1)^2 + (-1)^2 = 6, its off-diagonal is 2⋅0+(−1)(1)+(−1)(−1)=02 \cdot 0 + (-1)(1) + (-1)(-1) = 0, and its second diagonal entry is 02+12+(−1)2=20^2 + 1^2 + (-1)^2 = 2.
  2. So YY⊤=(6002)YY^\top = \begin{pmatrix} 6 & 0 \\ 0 & 2 \end{pmatrix}, with eigenvalues 66 and 22. The singular values are σ1=6≈2.449\sigma_1 = \sqrt{6} \approx 2.449 and σ2=2≈1.414\sigma_2 = \sqrt{2} \approx 1.414.
  3. The modes are ϕ1=(1,0)\boldsymbol{\phi}_1 = (1, 0) and ϕ2=(0,1)\boldsymbol{\phi}_2 = (0, 1), the two sensor directions.
  4. Energy: total 6+2=86 + 2 = 8. Mode 1 carries 6/8=756/8 = 75 percent and mode 2 carries 2525 percent.
  5. Coefficients for mode 1 are a1=ϕ1⊤Y=(2,−1,−1)a_1 = \boldsymbol{\phi}_1^\top Y = (2, -1, -1), and for mode 2 they are a2=(0,1,−1)a_2 = (0, 1, -1). Check: a1a_1 has squared length 4+1+1=6=σ124 + 1 + 1 = 6 = \sigma_1^2.
  6. Keep only mode 1. The error is the discarded energy, σ22=2\sigma_2^2 = 2, which is 2525 percent of the total 88. The rebuilt snapshots are (2,0),(−1,0),(−1,0)(2, 0), (-1, 0), (-1, 0), against the originals (2,0),(−1,1),(−1,−1)(2, 0), (-1, 1), (-1, -1).

Interpretation: the first mode captures the reading of sensor 1, which changes most. The second mode carries the sensor 2 variation that one mode cannot express, and it is the quarter of the energy worth keeping if accuracy matters.

Example
Example 3: wake behind a cylinder (realistic)

This is the classic demonstration in the fluid mechanics literature. Velocity fields are recorded in the wake of a circular cylinder in a steady stream at a moderate Reynolds number (a dimensionless speed measure; here low enough that the wake sheds alternating vortices, the swirling regions of the flow). The singular values below are illustrative numbers chosen for the lesson, not a measurement. Take n=106n = 10^6 grid values per snapshot, m=200m = 200 snapshots, and singular values 10,8,3,1,0.510, 8, 3, 1, 0.5 for the first five modes (the rest negligible).

  1. Subtract the mean flow. What remains is the unsteady part of the wake.
  2. The energies are σi2=100,64,9,1,0.25\sigma_i^2 = 100, 64, 9, 1, 0.25, total 174.25174.25.
  3. Two modes keep (100+64)/174.25=164/174.25≈94.1(100 + 64)/174.25 = 164/174.25 \approx 94.1 percent of the energy. Three modes keep 173/174.25≈99.3173/174.25 \approx 99.3 percent.
  4. With two modes the relative error in rebuilding the snapshots is 10.25/174.25≈0.24\sqrt{10.25/174.25} \approx 0.24, since the dropped energy is 9+1+0.25=10.259 + 1 + 0.25 = 10.25.
  5. Storage: the full data is 106×200=2×10810^6 \times 200 = 2 \times 10^8 numbers. Two modes, their 2×200=4002 \times 200 = 400 coefficients and the mean flow need about 3×1063 \times 10^6 numbers, roughly 1.51.5 percent.
  6. In real wakes, the two leading modes typically look like a cosine and a sine of the same shedding pattern, a quarter cycle apart, and their coefficients oscillate at the shedding frequency. Plotting one coefficient against the other traces a loop.

Interpretation: a turbulent-looking flow is dominated by one oscillation, which appears as a pair of modes. POD finds the spatial pattern of that oscillation without being told the frequency, and two modes already give a compact, fairly accurate description.

Tradeoffs and failure modes

POD is only as good as the snapshots. The modes describe the flow you recorded, and they may not represent a flow you did not record.

SituationProblemBetter choice
Snapshots cover only one operating conditionModes fail when conditions changeRecord snapshots across the range you need, or use a parameter-aware method
Modes are dominated by a few large eventsRare but important effects are missedWeight the snapshots or add targeted ones
Field is non-stationary in a way that moves the pattern (travelling waves)POD spreads one wave over several modesUse Dynamic Mode Decomposition for oscillations and growth rates
Recovering the governing dynamics, not only a descriptionPOD modes do not give time evolutionPair POD with a Galerkin projection (substitute the truncated mode expansion into the [[partial-differential-equation
Very large gridsFull covariance is too bigUse the method of snapshots

Other failure modes are practical. Modes depend on the choice of inner product, so if you combine fields with different units (say velocity and temperature) or an uneven grid, rescale or weight them before stacking, or the largest-unit field will dominate. Modes are not unique when singular values are equal, so a degenerate pair can rotate within itself. Finally, energy is a statistical measure, not a measure of importance for a given question. A small-energy mode can still control a boundary-layer separation or a resonance.

History

Hotelling introduced principal component analysis for statistics in 1933, and the continuous version, the Karhunen–Loève expansion, followed in the 1940s from work by Karhunen and Loève on random processes. The same mathematics waited for turbulence. In 1967 Lumley proposed the decomposition for turbulence, where it was used to find the large-scale organised motions in turbulent flows. Sirovich's method of snapshots in 1987 made it practical for large computed fields. Berkooz, Holmes and Lumley's 1993 review made it a standard tool across fluid mechanics, and it has since spread to structures, combustion and climate data.

Recap

A field recorded over time is a matrix of snapshots. Subtracting the average and taking the singular value decomposition gives spatial modes ordered by energy. Keeping the first few modes gives the best low-dimensional rebuild in the least-squares sense, and the method of snapshots makes this cheap when there are few snapshots. From here the natural next steps are Dynamic Mode Decomposition, which fits oscillations and growth rates to the same snapshots, and Koopman Operator, which gives the general framework behind both.

Check yourself

QuestionWhat do the POD modes correspond to in the snapshot matrix, and how are they ordered?Show answer

The POD modes are the left singular vectors of the centred snapshot matrix, the columns of Φ\Phi. Each is a spatial pattern on the grid. They are ordered by singular value, so the mode with the largest σi\sigma_i carries the most energy, σi2\sigma_i^2, across the snapshots.

QuestionA decomposition has singular values 3 and 1. What fraction of energy does the first mode keep?Show answer

The energies are σ12=9\sigma_1^2 = 9 and σ22=1\sigma_2^2 = 1, with total 1010. The first mode keeps 9/10=909/10 = 90 percent of the energy, and the second keeps the remaining 1010 percent.

QuestionWhy is the average snapshot subtracted before the decomposition?Show answer

Without subtraction the first mode would mostly describe the mean flow, which is the same in every snapshot and carries no information about variation. Subtracting it means the modes describe how the field deviates from its average, which is the part a reduced model needs to capture.

QuestionYou have a million grid points and 200 snapshots. Which route do you take, and why?Show answer

Use the method of snapshots. Form the 200×200200 \times 200 matrix Y⊤YY^\top Y and solve its eigenproblem. This gives the time coefficients and singular values directly, and the million-point spatial modes come from ϕi=Yψi/σi\boldsymbol{\phi}_i = Y \boldsymbol{\psi}_i / \sigma_i. Forming the million-by-million covariance would be far more expensive for the same result.

Sources