Research Technical

Mermaid-GSK vs DIA

How our forecast computes the energy waves trade with each other, and why we stopped approximating it the 1985 way.

THE SHORT ANSWER Waves trade energy with each other in groups of four, and that trade is what turns a short, choppy wind sea into longer waves. The exact calculation is far too slow for a forecast, so operational models since 1985 have used the Discrete Interaction Approximation (DIA): one hand-picked shape of four-wave group, scaled up by a tuned number. Our forecast uses Mermaid-GSK instead. It keeps 64 matched pairs of the exact calculation’s own interaction patterns and weights them so the result stays as close as possible to the exact answer. Measured against the exact calculation it is nearly indistinguishable; it is also several times more expensive than an efficient DIA. It has run in the daily forecast since 28 October 2026, and in its current version (v2) since 21 November 2026.

What nonlinear transfer does

In a wave spectrum, energy doesn't sit still. Waves of different frequencies and directions interact — most of the time they simply pass through each other, but under specific conditions known as resonant four-wave interactions they "lock in" and exchange energy. This is the four-wave coupling first worked out by Klaus Hasselmann in 1962 [Hasselmann, 1962], and it is the main way a young wind sea grows into longer-period waves.

The resonance conditions — two equations that must both hold

For four waves to exchange energy, they have to maintain a strict balance between the pair that gives energy up and the pair that receives it. Written as equations:

ω₁ + ω₂ = ω₃ + ω₄    (frequency balance)
k₁ + k₂ = k₃ + k₄    (wavenumber balance — vector equation, so direction too)

Important subtlety: the frequencies don't have to be identical, they just have to sum to the same total. Think of it like making change for a dollar. You don't need four quarters — you could use two quarters, four dimes and two nickels. As long as the total comes out right, the exchange is valid. So two medium-frequency waves can interact and produce one higher-frequency (shorter) wave plus one lower-frequency (longer) wave, provided both balance equations are satisfied.

The Hasselmann locus — a figure-eight in k-space

The two balance equations together are surprisingly restrictive. For a given pair of parent waves (k₁, k₂), the set of (k₃, k₄) pairs that satisfy BOTH conditions at once traces out a characteristic figure-eight shape in wavenumber space, known as the Hasselmann locus. Every point on the locus corresponds to one valid resonant quadruplet.

The Hasselmann locus — every (k₃, k₄) pair that can exchange energy with (k₁, k₂) kₓ k_y k₁ k₂ (k₁+k₂)/2 k₃ k₄ What this diagram says • Blue arrows = the two "parent" waves,   k₁ and k₂, that already carry energy. • Amber figure-eight = the locus of all   (k₃, k₄) pairs that satisfy   BOTH balance conditions at once. • Green dots = one specific resonant   quadruplet. They sit symmetrically   across the midpoint of k₁+k₂. • Every point on the locus is a valid   energy-exchange channel. Millions   of quadruplets operate in parallel. k₁ + k₂ = k₃ + k₄ AND ω₁ + ω₂ = ω₃ + ω₄ both must hold simultaneously — wavenumber balance AND frequency balance

The locus is narrow — most arbitrarily-chosen (k₃, k₄) pairs do NOT land on it and therefore cannot exchange energy with (k₁, k₂). But the ocean's wave spectrum is continuous: every bin is a parent, every bin is a receiver, and millions of quadruplets operate in parallel at every instant. The net effect is a well-defined redistribution pattern across the whole spectrum.

What the coupling actually does to a growing sea

Hasselmann coupling has three visible consequences:

  1. Downshift (the "red shift"). In a growing sea, the net flow of energy is from higher frequencies (short choppy waves) to lower frequencies (long powerful waves). Mathematically the nonlinear transfer term S_nl has its strongest negative lobe near the spectral peak and a strong positive lobe just below the peak — energy piles up at longer periods as the sea matures. This is a large part of why a young wind sea becomes longer-period sea as it develops.
  2. Directional spreading. The transfer does not only move energy between periods; it moves it between directions. In our exact calculations it drains the spectral peak and throws energy into two lobes roughly 45° either side of the main direction, plus a ring just below the peak frequency. That pattern (the "butterfly") is one of the things a cheap approximation most easily gets wrong.
  3. Shape locking. Left to itself, the transfer pushes a wind sea toward a characteristic self-similar shape that is the same, relative to its peak, across a wide range of sea states [Badulin et al., 2005].

Why it's called "nonlinear"

The transfer rate does not scale in proportion to wave amplitude: it scales with the cube of the wave action density. Small waves couple weakly; big waves couple far more than proportionally. That is why it matters most in energetic seas.

Formally, the Boltzmann integral for surface gravity waves is:

dn₁/dt = ∫∫∫ G(k₁, k₂, k₃, k₄) · [n₃n₄(n₁ + n₂) − n₁n₂(n₃ + n₄)] dk₂ dk₃ dk₄
          only where:  ω₁ + ω₂ = ω₃ + ω₄   AND   k₁ + k₂ = k₃ + k₄

Here n is the wave action density (a wave component’s energy divided by its frequency, the quantity wave models carry because, unlike energy, it is conserved when waves meet currents), and G is a coupling coefficient that says how strongly each group of four interacts. The rate is written for wave 1; the full transfer at every point of the spectrum is this sum over all its partners. The products of three n’s are where the nonlinearity lives.

For the mathematically inclined: the two balance conditions enter as delta functions, which collapse the integral onto the Hasselmann locus shown above.

The exact calculation, and why nobody runs it in a forecast

Computing the full integral means adding up every group of four that satisfies both balance equations. The method we use as the exact reference is the one usually called WRT (Webb–Resio–Tracy), based on Webb’s formulation [Webb, 1978]. On our model’s table of 25 wave periods by 24 directions there are 1,469,064 such groups. On a GPU the exact calculation takes about 1.7 seconds per 1,000 ocean cells per time step. Our Atlantic grid has tens of thousands of ocean cells and takes a step every few minutes, so an 8-day forecast with the exact calculation is out of reach for a daily run.

The DIA: one shape, a big multiplier

The Discrete Interaction Approximation [Hasselmann et al., 1985] replaces the full network with a single representative four-wave shape, slides it across the table, and multiplies the result by a large tuned constant to make up for everything it leaves out. It is fast, which is why it became the usual choice in operational wave models.

It is also known to be approximate. On our own grid, scored against the exact calculation with a pattern-match score where 1 is a perfect match:

MethodMatch to exact, typicalMatch on the hardest tenthGPU time per 1,000 cells
Our older DIA code0.760.5526.6 ms
WW3’s DIA (our port)0.820.643.3 ms
Mermaid-GSK, 64 patterns (v1)0.9980.99423.0 ms
Exact (WRT)111,745 ms

Measured by us in October 2026 on spectra from model runs the fit never saw. These are scores on our grid with our metric; other studies use other grids and other measures, so numbers from different papers should not be compared directly.

The gap is not only in the total. In the “butterfly” pattern described above, the exact calculation moves energy into two side lobes about 45° either side of the main direction. The DIA we used to run misses those side lobes almost entirely (pattern scores 0.45 and 0.54 on two test spectra, against 0.987 and 0.994 for Mermaid-GSK).

As our wave-models explainer covers, operational models compensate for the DIA’s errors partly through how their other source terms are tuned [Cavaleri et al., 2007]. That makes it hard to swap in a better transfer without retuning everything else, which is exactly what we had to do.

The idea behind Mermaid-GSK

The 1.47 million groups are not 1.47 million different things. Describe each group by where its four waves sit relative to each other, and the same pattern turns up again and again at different places on the table. Moving a pattern to longer waves changes only its strength, by a fixed scaling rule; rotating it changes nothing. On our table there are 11,871 distinct patterns, which we call configurations.

Seen this way, the DIA is one configuration with a large multiplier. So “make a better DIA” becomes a question with a measurable answer: which few configurations, with which multipliers, come closest to the exact calculation? Mermaid-GSK answers it by computer:

  1. Take a bank of tens of thousands of real buoy spectra and model spectra, each with the exact answer already computed.
  2. Pick configurations one at a time, each round adding the one that most reduces the remaining mismatch with the exact answer, and refit all the multipliers together.
  3. Stop at 64 (version 1) or 64 mirror-image pairs (version 2).
  4. Score only on spectra from stations and model runs the fit never saw.

The name: Gold (our nickname for the exact calculation) Subset, K configurations. Each kept configuration is applied everywhere it fits on the table, so “64 configurations” is tens of thousands of individual four-wave groups per cell (38,640 in v1, 92,832 in v2), not 64. That works because the transfer is concentrated: in v1’s analysis the top 64 configurations carried about 75% of what the exact calculation moves and the top 500 about 99%; a kept configuration with its multiplier also stands in for neighbours that behave alike.

Is this “machine learning”?

Not in the usual sense. The fit is a one-time calculation of the multipliers, against the exact physics (not against buoys or satellites), and the numbers are then frozen. Nothing is learned while the model runs, and it needs no retraining. Fits on different subsets of the data give multipliers that agree to a few per cent and score the same. The DIA has fitted numbers too; they were set by hand in the 1980s.

Version 2 (in the forecast since 21 November 2026)

Version 2 changed three things, each checked against the exact calculation on stations the fit never saw:

Against the exact calculation, held-out buoy spectrav1v2
Overall error (lower is better)0.2200.037
Energy gained on the long-period side of the peak (1 = exact)0.8360.987
Energy moved toward longer periods (1 = exact)0.8580.995
Interaction entries per cell38,64092,832

In the forecast itself, v2 made the spectrum shape and the directional spread of wind seas closer to the buoys in all four test periods, and wave height at the buoys slightly worse (by 0.3 to 2 cm). The full before-and-after, including what got worse, is in the v136–v137 model note.

Is it new? Mostly not, and we say so

The core idea was published long before us. The RIAM method of Komatsu and Masuda computes the exact transfer [Komatsu & Masuda, 1996], and its simplified operational form, SRIAM, “approximates an infinite resonant quadruplet with 20 optimized resonance configurations” [Tamura et al., 2008]. Mermaid-GSK is a larger, modern version of that idea. What we add is engineering: the configurations come straight from the exact calculation on the model’s own grid, they are chosen automatically, the fit uses tens of thousands of real spectra with held-out testing, and it runs as one batched GPU operation.

Other routes exist. The Generalized Multiple DIA adds more representative shapes [Tolman, 2013]; the two-scale approximation takes an analytical route [Perrie et al., 2022]; and neural networks have been trained to map a spectrum directly to its transfer, from early work on wind seas in deep water [Tolman et al., 2005] to NLML, which runs inside WAVEWATCH III at about 1.04 times the DIA’s cost and, by its authors’ measure, twice the DIA’s accuracy in global wave energy and mean wave parameters [Ikuyajolu et al., 2026].

What it still gets wrong, and what it costs

History: MERMAID v10, v11 and V14 (April – October 2026)

Before Mermaid-GSK, this page described MERMAID, our earlier approach. Its first production versions (v10, then v11, spring 2026) learned target spectral shapes from exact solutions on real NDBC buoy spectra and relaxed the model spectrum toward them; we reported a correlation of about 0.89 with the exact transfer for v10, on our grid and our metric at the time. From June to October 2026 production ran MERMAID V14: random forests trained to imitate the exact calculation, retrained daily, with a DIA-family method filling the gaps where the forests were unsure. It worked, but it was complicated, needed daily retraining, and its transfer in young seas was far weaker than the exact one. Mermaid-GSK replaced it on 28 October 2026.

Nonlinear energy transfer comparison from the published paper: input spectrum, MERMAID v10 output, DIA output
From our published paper [Mody, 2026] (spring 2026, MERMAID v10, now retired): an input spectrum (Hs 3 m, 12 m/s wind), the MERMAID v10 transfer, and the DIA transfer. The DIA is built from a single representative four-wave (quadruplet) configuration.

See what it changed

Each release, with what got better and what did not, is in the model notes.

Read the model notes →

FAQ

What is Mermaid-GSK?

Mermaid-GSK is the part of our wave model that computes how waves trade energy with each other in groups of four. Instead of the single shape the DIA uses, it keeps 64 matched pairs of the exact calculation’s own interaction patterns, with multipliers fitted once so the result stays close to the exact answer. It has run in the daily forecast since 28 October 2026 (version 2 since 21 November 2026).

Is Mermaid-GSK a neural network?

No. It is a short list of exact interaction patterns with fixed multipliers, fitted once against the exact physics. Nothing is learned while the model runs and it needs no retraining. The earlier MERMAID V14 used random forests; Mermaid-GSK replaced them.

Does it conserve energy?

The four-wave transfer itself only moves energy around. Version 2 was fitted so that the net energy and wave action it moves match the exact calculation, which includes the small amount the exact calculation sends out through the short-wave end of the model’s range. A guard in the model also stops the transfer from creating energy in rare cases.

Is it better than the DIA in the forecast, not just on paper?

Mostly, with costs. Against satellites and buoys, the switch to Mermaid-GSK in October 2026 brought swell period closer to the buoys and lowered the wave-height error against satellites in four test periods; version 2 improved the spectrum shape and directional spread at the buoys but made buoy wave height slightly worse. The details are in the model notes.

References