1. Home
  2. Explore
  3. Environmental Science
  4. AI for Ocean and Climate Modeling

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

AI for Ocean and Climate Modeling

AI and the Ocean–Climate System: Modeling Across Scales

The ocean and atmosphere are connected parts of a complex climate system. Winds move ocean water; exchanges of heat, freshwater, and momentum affect both the ocean and the atmosphere; and processes occurring at small scales can influence currents spanning entire ocean basins. Climate scientists therefore face a difficult modeling task: represent a huge range of interacting processes while working within limits on computing power and observations.

Artificial intelligence offers two related approaches to this problem. One approach adds machine learning to a physics-based climate model to represent processes the model cannot directly resolve. Another trains a machine-learning model to imitate a much larger portion—or even nearly all—of a climate simulation. Understanding these approaches begins with the scales and roles of the ocean itself.

Why the Ocean Matters to Climate

About 70% of Earth’s surface is ocean. The ocean is also a vast reservoir: the upper three meters contain approximately as much heat as the entire atmosphere, while the upper 50 meters contain approximately as much carbon as the atmosphere. It also stores and exchanges other substances, including oxygen.

The ocean does more than store heat and materials. It transports them. Currents carry heat and carbon over long distances, influencing climate far beyond the places where those materials first entered the water. Large currents, such as the Gulf Stream, can transport properties across ocean basins, while tropical waves also move signals through the Pacific.

This transport occurs across an enormous range of scales. Large currents span thousands of kilometers. Smaller, rotating features called mesoscale eddies are often around 100 kilometers across. These eddies can arise when large currents become unstable. Even smaller turbulent motions can occur at scales of meters and timescales of minutes. Meanwhile, the large-scale transport affected by these motions may unfold over years or decades.

The connection between these scales is crucial. Small-scale turbulence can transfer or dissipate energy and momentum, changing the strength and behavior of much larger currents. A model that captures only the large currents but misses the smaller motions may therefore misrepresent the ocean’s overall transport.

Key idea: Ocean climate depends not only on large currents or small turbulence in isolation, but also on how processes at different scales affect one another.

Think About It: How could turbulence too small to appear directly in a model still change the temperature of a region thousands of kilometers away?

How Climate Models Represent the Earth

A climate model represents the physical system using equations describing processes such as fluid motion and heat transport. These equations are generally too complex to solve exactly for the entire Earth system. Instead, a model divides the ocean, atmosphere, land, and ice into a grid and calculates how conditions change within and between grid cells.

This process is called discretization. The model solves an approximate numerical version of the physical equations at the grid’s resolution. A finer grid can represent smaller structures, but it requires more calculations. Because computing resources are limited, climate models cannot resolve every process that occurs in the real ocean and atmosphere.

For example, a high-resolution ocean simulation may use grid cells roughly 10 kilometers across, while many climate simulations use a coarser horizontal resolution of about 25 kilometers. Even a 10-kilometer grid leaves much smaller phenomena unresolved. Processes such as small-scale turbulence, ocean mixing, and some interactions involving clouds or sea ice may occur below the grid-cell scale.

Researchers use simulations for several connected purposes:

  • Understanding: Simulations help investigate how climate-system processes work, especially where observations are incomplete.
  • Prediction: A model can begin from an estimate of the current state and forecast how the system may evolve over coming weeks or months.
  • Scenario testing: A model can explore “what if” questions, such as how the climate might respond to changing greenhouse-gas levels or how a different past climate condition might have affected the system.

These uses require simulations to be both scientifically useful and computationally practical. A simulation must represent the important physical processes, run fast enough to support many experiments, and behave reliably under conditions beyond the ones used to develop it.

The cost of resolution

Higher resolution is valuable because it represents more of the system’s small-scale structure. But it also makes the simulation more expensive. A quarter-degree coupled climate model—one that includes the ocean, atmosphere, land, and ice—can require more than 5,000 CPU cores and may produce only about 16 simulated years per day. A model that runs at this cost limits how many scenarios, long simulations, or large ensembles scientists can afford.

This creates a trade-off: a model with a very fine grid may capture more detail, but it may be too expensive to run for long periods or across many possible scenarios. A coarser model is cheaper, but it must find another way to account for the processes its grid cannot represent.

Think About It: Why might a scientist need many moderately fast simulations rather than one extremely detailed simulation?

Unresolved Processes and Parameterizations

Processes smaller than a model’s grid cells are called unresolved processes. The model cannot calculate their details directly, but their combined effects can still influence the resolved, larger-scale flow.

A parameterization is a simplified representation of those unresolved effects. For example, a model may use a mathematical function to approximate how turbulence mixes the ocean or atmosphere and how that mixing affects larger-scale transport. Traditional parameterizations are based on physical reasoning and approximations; they are not necessarily learned directly from data.

A simplified simulation cycle works like this:

  1. The model begins with the current state of the ocean or atmosphere.
  2. Its numerical solver calculates the physical processes represented on the grid.
  3. A parameterization estimates the effects of processes too small to resolve.
  4. External forcing—such as exchanges of heat, freshwater, or momentum—is included.
  5. The model calculates the next state and repeats the process.

The difficulty is that an approximation may not reproduce the missing processes accurately enough. Errors can then accumulate and create model biases: persistent differences between a model’s average behavior and observations.

One example is the Gulf Stream and the North Atlantic. Some climate simulations have been too warm along the Gulf Stream and too cold in parts of the North Atlantic. One contributing issue is that the large-scale transport is too weak. If unresolved turbulence should transfer energy and momentum into a current, but the model’s parameterization does not represent that transfer well, the simulated current may be too weak. Some existing parameterizations can also be too diffusive, spreading out the large-scale flow more than the real physics would.

These errors matter because ocean transport affects climate across large regions. Correcting a local-looking weakness in a current can therefore improve the modeled temperature pattern far from the precise location of the error.

Hybrid Physics–AI Models

A hybrid physics–AI model keeps the physics-based numerical solver but uses machine learning to represent some unresolved processes. Instead of relying entirely on a hand-designed approximation, the model learns a representation of the missing effects from data.

In this approach, the neural network acts as a data-driven parameterization. The numerical model still calculates the resolved dynamics. The network supplies an estimate of how an unresolved process, such as mesoscale turbulence, affects the larger-scale transport.

The data for this work need not come directly from observations. Ocean observations are too limited to diagnose every small-scale process and its effect on large-scale flow. Researchers can instead use high-resolution simulations as a source of training data. They compare what a fine-resolution simulation contains with what a coarser version can represent, then use the difference to learn the missing contribution.

This is an important distinction: the model is learning from simulated data that serve as a kind of reference, not necessarily from direct measurements of every unresolved process. The hope is that observations can later help constrain or refine such models, even when they are not sufficient on their own to train the full representation.

Why ordinary neural-network normalization may not be enough

Machine-learning systems often standardize their inputs and outputs—for example, by centering values around an average and scaling them according to their variability. That can help a network train, but it may not make the learned relationship transfer reliably across different resolutions, depths, or turbulence regimes.

For physical models, the meaning of a value depends partly on the local conditions and the units of the variables involved. Dimensional scaling, inspired by the Buckingham pi theorem, uses those physical dimensions to form more appropriate, locally scaled quantities. In effect, the network learns relationships that are less tied to one particular numerical scale or regime.

The normalization can depend on local state variables that change as the simulation runs. It is calculated during training using simulation data, then the learned parameterization is applied within the climate model using the model’s current local conditions. This is different from choosing one fixed global “normal” value and scaling everything against it.

In the described ocean application, the network receives quantities related to the flow, including stress and vorticity, which help indicate local momentum and energy transport. The goal is to learn how turbulence affects the larger-scale motion.

Building physical constraints into the network

Machine learning does not automatically obey the physical conservation properties required of a useful climate model. One way to address this is to design the network output so that a physical constraint is built into its mathematical form.

In the ocean example, the learned stress is represented with a symmetric tensor, and its divergence is used to produce the effect on the flow. This construction helps impose conservation-related properties, including local conservation. The constraint is not simply left for the network to discover from data; it is part of how the output is defined.

When such a learned parameterization was added to a climate model, its effect was to cool regions that had been too warm along the Gulf Stream and warm regions that had been too cold in the North Atlantic. The temperature bias decreased, consistent with improved large-scale transport.

However, a successful result in one simulation does not remove every challenge. The learned parameterization may become unstable when placed inside a model, and training data may not cover every physical regime or condition. Researchers therefore need to assess not only how well a network matches its training data, but also whether it remains stable and reliable when used in a changing simulation.

Think About It: Why is it useful to build a conservation property into a neural network’s design instead of asking the network to learn that property only from examples?

From Hybrid Models to Full Climate Emulators

A hybrid model replaces only part of a physics-based model: usually the representation of unresolved processes. A climate emulator aims to go further. It learns to imitate the model’s input-to-output behavior, potentially replacing much of the numerical solver itself.

An emulator is trained on data produced by a numerical simulation. Once trained, it receives a model state and predicts a later state, without performing all the original physics calculations in the same way. The purpose is not just to run more cheaply; it is also to enable many more experiments, longer simulations, and larger collections of runs.

A cheaper emulator could help with:

  • Exploring how a process changes across many scenarios.
  • Running long simulations that would otherwise be costly.
  • Generating large ensembles to examine variability or extreme events.
  • Combining simulation results with observations in data-assimilation work.

The speed advantage depends on the particular models and implementation, but an ocean emulator described in the material can produce thousands of simulated years per day on a single GPU. The corresponding physics-based model requires thousands of CPU cores and runs far more slowly. This makes an emulator potentially useful for experiments that would be impractical with the original model.

The ocean emulator’s state and training setup

An ocean model’s main time-stepped state variables include:

  • Sea-surface height, often abbreviated SSH.
  • The horizontal velocity components uuu and vvv.
  • Temperature TTT.
  • Salinity SSS.

These variables evolve according to equations for momentum, heat, and salt transport. Continuity and mass conservation also constrain the system. Other quantities may be inferred from these variables rather than independently advanced in time. For instance, vertical velocity can be inferred using continuity. An equation of state relates pressure, temperature, salinity, and density; it acts as a physical relationship the solution must satisfy rather than as another independently time-stepped variable.

The ocean emulator called Samudra was trained using output from a numerical ocean simulation. The underlying simulation had a much finer grid than the emulator’s training data could practically retain, so the data were reduced. The data were averaged over five-day intervals, placed on a one-degree horizontal grid, and represented with 19 vertical levels. This reduction made the dataset more manageable while preserving important broad patterns.

The emulator uses the current and previous state to predict the next two states. This is called a two-input, two-output prediction. The model is trained to make several predictions recursively, with a loss that accumulates over about four prediction steps—roughly 20 days of simulation. The network’s loss function is based on prediction error for the modeled variables, rather than on a large collection of additional constraints.

The training and validation periods come earlier in the simulation, while later years are held out for testing. This matters because the later test period includes additional ocean warming. A model that performs well only on data it has already seen would not demonstrate that it can generalize to new conditions.

Evaluating an emulator

A useful test is to compare the emulator’s behavior with the original numerical simulation. Time-averaged temperature patterns can look very similar, including the expected structure in which the ocean is warmer near the surface and colder at greater depth. The emulator can also reproduce recognizable patterns of variability, such as warm and cold waves moving through the tropical Pacific.

But similarity in an average does not guarantee a perfect match in every detail. The emulator may make errors at particular locations or times, and some forms of variability may be inaccurate. Researchers therefore examine both average climate and time-varying behavior.

Another important test is long-run stability. An emulator may make a small error at each step that grows after being fed back into the next step. Some versions of the ocean emulator can run stably for hundreds of years under repeated forcing. That is promising, but stability alone is not enough: a stable model should also respond correctly to important changes.

Think About It: Why should a climate emulator be tested both for its average temperature pattern and for its ability to reproduce changing waves and variability?

Coupling Ocean, Atmosphere, and Sea Ice

The ocean does not evolve independently of the atmosphere and sea ice. A complete climate emulator must represent the exchange of heat, momentum, and freshwater among these components.

One strategy is to train a separate emulator for each component first, then connect them and fine-tune them together. The ocean emulator can be trained with atmospheric forcing; the atmospheric emulator can be trained with conditions supplied by the ocean’s surface. After this separate training, the components are coupled.

This approach reflects an important difference between the components. The atmosphere changes on much faster timescales than the ocean. In one setup, the atmospheric emulator advances in six-hour steps, while the ocean advances in five-day steps. The coupling must handle these different clocks carefully. For example, atmospheric fluxes may need to be accumulated over the longer interval between ocean updates while preserving the relevant exchanges.

Training every component as one large system from the beginning can make it difficult for a network to learn the connections correctly. The components have different timescales and spatial structures, so the interactions at their interfaces may be especially challenging. Separate pretraining followed by joint fine-tuning has been more reliable in the described work.

A coupled emulator can reproduce major patterns of climate variability, such as fluctuations associated with El Niño–Southern Oscillation, as well as broad features of global circulation. It still has errors. For example, precipitation can be too weak in some places, and some circulation estimates differ from the original climate model. Even so, the emulator can preserve much of the original model’s variability while running at far lower computational cost.

The Main Challenge: Stability, Trends, and Physical Fidelity

A central challenge is that long-term stability and sensitivity can pull in opposite directions. An emulator that is stable over many centuries may become muted: it may fail to respond strongly enough to a gradual trend or a change in forcing. An emulator that responds more strongly may instead become unstable after a few decades.

This problem appeared in the ocean emulator’s response to long-term warming. The original simulation included a warming trend, and later years were used as a test period. Yet the emulator versions described did not reproduce the trend reliably, even though they could remain stable for very long runs under repeated forcing.

One possible reason is that the network was trained on short windows of about 20 days. Ocean variability over such a short window can be much larger than the gradual warming trend. The network may therefore learn the strong short-term fluctuations while failing to capture the small signal that becomes important over many years.

Another possible reason is loss of local conservation information during data reduction. When many variables and spatial details are compressed, conservation may be preserved only approximately. A physical system with forcing can show a net change related to that forcing; if the emulator does not retain the relevant local relationships accurately, it may not reproduce the long-term response.

The prediction errors can also have an undesirable pattern across scales. A network may introduce small-scale structures into a variable such as temperature, even though temperature is generally smoother than velocity. This can happen when a loss function combines different variables and scales in a way that does not sufficiently distinguish their physical characteristics. Adjusting the loss function and using wider networks has helped with some spatial artifacts, though it has not solved every temporal problem.

These challenges show why a model’s average accuracy is not a complete measure of its quality. A reliable emulator must reproduce relevant short-term variability, long-term trends, physical constraints, and responses to changing conditions—while remaining stable.

Researchers are exploring ways to make emulators more conservative at the grid-cell level, closer to how numerical models enforce local physical balances. They are also investigating how to use observations. Observational data may be too sparse to train a complete ocean model directly, but they could still constrain or refine a model first trained on simulations. Combining simulated and observed data is a promising direction, though it requires methods that can handle differences between the data sources.

The approaches described are deterministic: given the same inputs and learned parameters, the model produces the same prediction. A future direction is to develop probabilistic models that represent a range of plausible outcomes rather than a single forecast.

Comprehensive Review

The ocean strongly shapes climate because it covers most of Earth’s surface, stores vast amounts of heat and carbon, and transports these materials over long distances. That transport depends on interactions across scales, from tiny turbulent motions to currents spanning thousands of kilometers.

A climate model divides the Earth system into grid cells and solves approximate physical equations. Because its grid cannot resolve every process, it uses parameterizations to estimate the effects of smaller-scale physics. Inaccurate parameterizations can contribute to systematic errors, such as currents that transport too little energy and create temperature biases.

Hybrid physics–AI models retain the physical solver but use machine learning to represent selected unresolved processes. They can learn from high-resolution simulations, use physically informed scaling to improve generalization, and incorporate conservation-related constraints by design. Full climate emulators go further by learning to imitate the evolution of model states, making long simulations and large ensembles more affordable.

Neither approach is automatically trustworthy. Emulators must reproduce not only average patterns but also variability, trends, and responses to forcing. They must remain stable without becoming too insensitive, preserve physical relationships despite data reduction, and work across the different timescales of ocean, atmosphere, and sea ice. These requirements explain why successful climate modeling combines physical insight, numerical methods, carefully chosen data, and machine learning rather than relying on any one of them alone.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent