Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.

Get Started Now!

Forecasting Waves with Deep Learning

Forecasting Waves with Deep Learning
Deep LearningMachine Learning

Last updated: 02 December 2026

Forecasting waves with deep learning means training a neural network to predict sea-state variables, mainly significant wave height (Hs), wave period and direction, from past waves and wind. The short version: it now works well enough that ECMWF, a leading weather centre, runs an operational AI wave forecast. According to ECMWF’s implementation page for AIFS Single v2, that upgrade went live on 12 May 2026 and added a new operational wave stream. Even so, AI wave models are best used alongside physics-based models and real observations, not instead of them.

This guide explains the three main ways the technique is used, what the ECMWF stream provides, what data you need, how to build a simple baseline, and where models fail. The code is a sketch that has not been tested here.

What “waves” means and why forecasting them is hard

Here, waves are ocean surface gravity waves. The usual target is significant wave height, a summary of the sea state, plus mean period and direction. Waves are generated by wind, travel as swell for thousands of kilometres, and are reshaped by coastlines and shallow water. A good forecast therefore needs wind information, memory of what the sea already holds, and local geography.

Operational forecasts have traditionally come from spectral wave models such as ECMWF’s ecWAM or WAVEWATCH III. These solve physics-based equations driven by forecast winds. They are skilful but costly to run, and they have known biases. Work on post-processing forecasts with neural networks is partly motivated by such errors.

Three ways deep learning is used

1. Standalone emulators

A network learns to reproduce a wave model or reanalysis on a global grid. OceanCastNet is one example: its arXiv paper, “Ocean Wave Forecasting with Deep Learning as Alternative to Conventional Models” (latest version v4 at the time of writing), predicts Hs, mean period and mean direction. The authors compare it with ECMWF’s ECWAM, reporting that it did better at more buoy stations in their NDBC comparison (24 stations versus 10) and showed similar accuracy in validation against Jason-3 satellite data. It is a preprint’s claim, so look for the peer-reviewed version and independent tests.

2. Bias correction of a physics model

The network takes forecasts from a model such as ECMWF-IFS and learns the error against observations. Zhang and co-authors, in a study titled “A Deep-learning Real-time Bias Correction Method for Significant Wave Height Forecasts in the Western North Pacific”, used a trajectory GRU to correct 0 to 240 hour IFS Hs forecasts. Their abstract says the correction was most effective in spring, with mean absolute error falling by roughly 13% to 46%. That range is a single summary figure from the abstract, not a guarantee for any given lead time or region. This design is often the lowest-risk path, because the physics model supplies structure and the network only fixes residuals.

3. Downscaling and local prediction

A convolutional network can map wind fields to Hs at a specific location. Obakrim, Monbet, Raillard and Ailliot did this for a point in the Bay of Biscay, using WAVEWATCH III hindcast data (including the HOMERE database) as the Hs reference and comparing the CNN with two classical statistical downscaling methods. I did not verify their accuracy numbers, so read the paper before drawing conclusions. Single-buoy LSTM forecasts are a related, simpler option for a port or wind farm.

Flow diagram: reanalysis and wind fields train an emulator and a downscaling model; a physics-model forecast and buoy and satellite data feed bias correction; all three approaches are verified against observations.
Three common ways deep learning is used in ocean wave forecasting.

The current picture: ECMWF’s operational AI wave forecast

ECMWF’s implementation page says AIFS Single v2 was implemented on 12 May 2026. The upgrade introduced a new wave stream, listed on ECMWF’s dataset page as “AIFS Single Wave”. ECMWF describes it as its first operational data-driven wave forecast. According to those pages it provides:

  • Significant wave height, mean wave direction and mean wave period
  • Hs split into period bands, a drag coefficient with waves, and model bathymetry at step 0
  • A 0.25 degree grid, four runs a day (00, 06, 12, 18 UTC)
  • Lead times up to 360 hours (15 days)

On accuracy, the implementation page says Hs forecast performance improves by around 10% compared with the operational IFS wave forecasts. It does not state the metric, lead times or regions for that figure. It also notes some degradation and a negative bias in the Antarctic in summer, linked to smoothing along the sea-ice edge.

ECMWF’s AIFS blog on bringing the surface ocean into the AIFS gives the underlying comparison. It shows the wave component, called AIFS Waves, against the physics-based ecWAM, scored against satellite altimeters for May to August 2024. It reports Hs errors reduced by about 10%. That is a statement about AIFS Waves, not about the wider AIFS Marine prototype. These figures are self-reported by ECMWF.

The same blog describes AIFS Marine, a research prototype that predicts atmosphere, waves, sea ice and surface-ocean fields in one model. ECMWF says its medium-range accuracy typically corresponds to gaining roughly one forecast day against its physics-based systems, for nearly all evaluated marine variables. The stated caveats: a negative sea-surface height bias that grows with lead time, small degradations in near-surface winds, and stress tests that do not prove every forecast will be physically correct.

I found no ECMWF statement of an operational AI ensemble wave product, and the implementation page does not mention one for AIFS ENS. Check ECMWF’s current documentation for probabilistic wave products rather than assuming they exist.

Separately, ECMWF’s DestinE team trained a wave emulator on more than 40 years of output from its physics-based wave model, and reported lower Hs error than the operational system over most of the globe.

Model comparison

Approach Typical input Strength Main risk
Standalone emulator Reanalysis, winds, past waves Very fast; global Smoothing of extremes; needs large training data
Bias correction Physics forecast plus buoys Uses physics skill; cheap to train Depends on the upstream model; site-specific
Downscaling Winds, bathymetry Local detail Poor transfer to new regions
Single-site LSTM/GRU Buoy history Simple baseline Weak beyond short horizons

Data you will need

  • Training targets: ERA5 wave variables, a wave hindcast, or quality-controlled buoy records.
  • Predictors: 10 m wind components, past Hs, period and direction, and optionally bathymetry or sea-ice cover.
  • Verification: satellite altimeter data and buoys that were not used in training.

Encode direction as sine and cosine, not as 0 to 360, otherwise 359 and 1 degrees look far apart.

A minimal baseline (untested sketch)

This hypothetical example predicts Hs six steps ahead for one buoy from the past 48 hourly values of Hs and wind. The code has not been run here.

import numpy as np
import torch, torch.nn as nn

LOOK, HORIZON = 48, 6

def make_windows(x, y):
    X, Y = [], []
    for i in range(LOOK, len(x) - HORIZON):
        X.append(x[i-LOOK:i])
        Y.append(y[i+HORIZON])
    return np.array(X, dtype="float32"), np.array(Y, dtype="float32")

class WaveLSTM(nn.Module):
    def __init__(self, n_features):
        super().__init__()
        self.lstm = nn.LSTM(n_features, 64, batch_first=True)
        self.head = nn.Linear(64, 1)
    def forward(self, x):
        out, _ = self.lstm(x)
        return self.head(out[:, -1]).squeeze(-1)

# features: [hs, wind_u, wind_v, sin_dir, cos_dir]; target: hs
# split by TIME (train / validation / test), never randomly

Best practices

  • Beat persistence first. Predicting “same as now” is surprisingly strong at short lead times. Report skill relative to it.
  • Split by time. Use whole years or seasons for testing to avoid leakage between neighbouring hours.
  • Compare to the operational model on the same dates and locations, ideally against satellite or buoy observations.
  • Evaluate extremes separately. Report error for storm events, not only average RMSE.
  • Consider uncertainty. A single deterministic curve hides risk, so report error spread or use ensembles where decisions depend on thresholds.

Common mistakes and troubleshooting

  • Great scores, useless forecasts. Usually leakage: random shuffling, or wind inputs from the future that would not exist at forecast time.
  • Underpredicting storms. Losses like MSE favour smooth outputs. Try weighted losses, or a bias-correction design.
  • Skill collapsing at long leads. Autoregressive rollouts accumulate error. Train with multi-step loss, or feed in forecast winds.
  • Coastal failure. Models trained on open ocean ignore shallow-water effects. Add bathymetry and test near the coast.
  • Mismatched units or datums between buoys and reanalysis. Check them before blaming the network.

Hands-on exercise

  1. Pick one buoy with several years of hourly Hs and download ERA5 winds for its location.
  2. Build the persistence baseline and record RMSE at 6, 24 and 72 hours.
  3. Train the LSTM above, holding out the final year for testing.
  4. Plot error against lead time and compare with persistence.
  5. Separately compute error for the top 5% of Hs values. If it is much worse, try a weighted loss.

FAQ

Can deep learning replace physics-based wave models?

Partly. ECMWF’s operational AIFS wave stream is reported to improve Hs by about 10% against its operational IFS wave forecasts. Those models are still trained on physics-model output and reanalysis, so physics remains in the loop, and the figure is ECMWF’s own.

Which architecture is best?

There is no single winner. A 2025 paper in the Journal of Marine Science and Engineering, on correcting ECMWF 15-day Hs forecasts in the Western Atlantic using buoy data, reported that the accuracy of the several deep learning methods it compared was comparable. Data quality and validation usually matter more than architecture.

How much data is enough?

Global emulators use decades of reanalysis. A single-site model can start with a few years of buoy data, but it will capture few extreme storms.

Can I use these forecasts for safety decisions?

Treat research models as decision support. For navigation or coastal safety, rely on official marine forecasts and warnings.

Related reading

Subscribe
Notify of
guest
5 Comments
Oldest
Newest Most Voted
5
0
Would love your thoughts, please comment.x
()
x