betaFeedback

WorksPhysics and Astronomy

From Sea Surface Height to Velocity - A Machine Learning Approach

Abstract

Inferring upper-ocean velocity from altimetric sea surface height (SSH) remains challenging below 50~km, scales now resolved by the Surface Water and Ocean Topography (SWOT) mission. Conventional methods rely on geostrophic or cyclogeostrophic balance. Here, we demonstrate that deep learning can predict the full velocity vector from SSH and environmental data and recover derivative-based diagnostics, including spectral energy flux. We trained a U-Net encoder–decoder on hourly fields from the pre-SWOT Cape Basin extraction of the LLC4320 ocean simulation, with 1.5-km grid spacing (11.811.8–15.8∘15.8^\circE, 4141–45∘45^\circS). Inputs were SSH, sea surface temperature (SST), and wind stress; targets were horizontal velocities at the surface and 50~m, where wind influence is weaker. At 50~m, the best model achieves a speed RMSE of 0.049 m s−10.049\,\mathrm{m\,s^{-1}}, 29% lower than the geostrophic approximation. Predicted relative vorticity has a correlation of 0.93, compared with 0.75 for the geostrophic approximation. The model also recovers divergence with a correlation of 0.66, whereas geostrophic velocity is nondivergent by definition. Tests of training strategies yield four findings: SSH gradients outperform raw SSH as inputs; wind stress is the most useful covariate for total velocity prediction; SST benefits vary seasonally; and including vorticity and divergence in the loss improves accuracy. These results offer a path for transferring high-fidelity simulation physics to SWOT applications, where kilometer-scale SSH snapshots contain superposed balanced and unbalanced signals.

Introduction

Satellite altimetry has transformed physical oceanography by providing global observations of sea surface height (SSH), from which the large-scale and mesoscale surface geostrophic circulation can be estimated. Under hydrostatic and geostrophic balance, the horizontal pressure-gradient force associated with sea-surface dynamic topography η\eta is balanced by the Coriolis acceleration, yielding the familiar diagnostic relation

ug=gfz^×∇η=(−gf∂η∂y,gf∂η∂x)(1)\mathbf{u}_g = \frac{g}{f}\hat{\mathbf{z}} \times\nabla\eta= \left(-\frac{g}{f}\frac{\partial\eta}{\partial y},\frac{g}{f}\frac{\partial\eta}{\partial x}\right) \tag*{(1)}

where ug=(ug,vg)\mathbf{u}_g=(u_g,v_g) is the geostrophic velocity, gg is gravitational acceleration, ff is the Coriolis parameter, and z^\hat{\mathbf{z}} is the local vertical unit vector. This linear relationship has been the basis of many altimetry-derived surface-current products and remains highly effective when the Rossby number Ro=U/(fL)Ro = U/(fL) is small and the flow evolves slowly compared with the local inertial period.

The assumptions behind Eq. (1), however, become increasingly restrictive at the spatial scales now accessible to wide-swath altimetry. The Surface Water and Ocean Topography (SWOT) mission provides two-dimensional SSH observations at unprecedented resolution, exposing sea-level variability at scales where ageostrophic motions, internal waves, and measurement noise are no longer secondary [1]. As the horizontal scale decreases toward O(10O(10–100)100) km, RoRo can approach order one in energetic fronts, eddies, western boundary currents, and equatorial regions. In this regime, nonlinear advection contributes at leading order to the momentum balance, and the mapping from SSH to velocity is no longer a simple local rotation and rescaling of the SSH gradient. The difficulty is particularly acute near the equator, where f→0f \to0 makes Eq. (1) singular and amplifies SSH-gradient errors; consequently, altimetric geostrophic velocities are often masked or treated with special equatorial dynamics, while independent constraints from drifters or other observing systems become essential.

A useful way to see the limitation of geostrophy is to begin with the horizontal momentum equation,

∂u∂t+u⋅∇u+fz^×u=−g∇η+r,(2)\frac{\partial\mathbf{u}}{\partial t} + \mathbf{u} \cdot\nabla\mathbf{u} + f\hat{\mathbf{z}} \times\mathbf{u} = -g\nabla\eta+ \mathbf{r}, \tag*{(2)}

where r\mathbf{r} denotes residual effects such as friction, unresolved vertical structure, and other non-conservative forces. If the tendency and residual terms are neglected but nonlinear advection is retained, Eq. (2) becomes the steady nonlinear balance

u⋅∇u+fz^×u=−g∇η.(3)\mathbf{u} \cdot\nabla\mathbf{u} + f\hat{\mathbf{z}} \times\mathbf{u} = -g\nabla\eta. \tag*{(3)}

Writing the velocity in natural coordinates as u=Vs^\mathbf{u} = V\hat{\mathbf{s}}, with s^\hat{\mathbf{s}} tangent to the streamline and n^\hat{\mathbf{n}} the signed left-normal direction, gives

V∂V∂s=−g∂η∂s,(4)V\frac{\partial V}{\partial s} = -g\frac{\partial\eta}{\partial s}, \tag*{(4)}
κV2+fV=−g∂η∂n,(5)\kappa V^{2} + fV = -g\frac{\partial\eta}{\partial n}, \tag*{(5)}

where VV is speed and κ\kappa is the signed streamline curvature. Eq. (5) is the gradient-wind (cyclogeostrophic) balance among the centripetal acceleration, Coriolis acceleration, and pressure-gradient force; if the flow is locally axisymmetric or slowly varying along streamlines, ∂V/∂s≈0\partial V/\partial s \approx0 and, by Eq. (4), the flow follows SSH contours. The geostrophic relation is recovered when the curvature term κV2\kappa V^{2} is small. In contrast, when RoRo is finite, the curvature term can be comparable to the Coriolis term; when ff is small, the pressure gradient may instead balance the centripetal acceleration in a cyclostrophic limit. Thus, even within balanced dynamics, SSH gradients alone do not uniquely determine the velocity without additional information about streamline geometry, flow direction, and the appropriate dynamical regime.

The problem becomes more underdetermined when unbalanced motions are present. Linear and finite-amplitude internal gravity waves, internal tides, near-inertial motions, and surface-wave-related signals can all project onto SSH at wavelengths that overlap with balanced mesoscale and submesoscale motions [1, 2, 3]. For these motions, the tendency term in Eq. (2) is not a small residual; it is part of the leading-order balance. A single satellite snapshot provides η(x,y,t0)\eta(x,y,t_{0}) but not the temporal tendency, wave phase propagation, vertical-mode structure, or the partition between balanced and unbalanced components. Consequently, two physically different velocity fields can be associated with very similar SSH snapshots. This non-uniqueness cannot be eliminated by a more flexible regression model alone; it can only be regularized through physical assumptions, statistical priors, training data, or additional observations.

Machine learning offers a promising framework for such regularization. Recent studies have used neural networks and related methods to infer surface currents or surface kinematic quantities from satellite-observable variables, reconstruct vorticity, strain, and divergence from SSH snapshots, separate balanced and unbalanced SSH components, or infer SWOT sea-surface velocity from collocated drifter observations [4, 5, 6, 7, 8]. These studies demonstrate that data-driven models can exploit nonlocal spatial structure, learn approximate dynamical closures, and improve upon purely geostrophic estimates in some regimes. However, the success of machine learning does not by itself establish that velocity is identifiable from SSH alone. Model skill may depend on the training distribution, the amplitude of internal waves, latitude, Rossby number, SSH noise, the target definition of velocity, and whether the validation data share the same balance assumptions as the training data.

The present study addresses these questions with a U-Net trained on the LLC4320 global ocean simulation [9, 10]. Our main target is the horizontal velocity at model level 16 (cell center at 52.7 m depth), hereafter (u,v)(u, v); we also train the same configuration for the surface velocity. This paper makes the following contributions:

  1. Training on one period and evaluating on a later, held-out period, with three random seeds per configuration, we show that a standard U-Net is no better than geostrophy, and we identify the training choices that make it generalize: rotation and crop augmentation, predicting the departure from geostrophy, vorticity and divergence penalties, and moderate capacity.

  1. We revisit the questions of input representation (raw SSH versus SSH gradients), auxiliary covariates (SST and wind stress), capacity, and training objective for the final configuration.

  1. We evaluate the physical consistency of the predictions through relative vorticity, horizontal divergence, and the joint distribution of vorticity and strain, and compare them with ff-plane geostrophy.

  1. We compare the spectral kinetic-energy flux of the true, geostrophic, and predicted velocities at 53 m and at the surface, and show that geostrophy misrepresents the cascade of energy across scales whereas the U-Net reproduces it.

The remainder of the paper is organized as follows. Section 2 reviews previous machine-learning approaches. Section 3 describes the data, the training and evaluation periods, the model, and the training setup. Section 4 builds a model that generalizes and presents the ablations. Section 5 examines the joint statistics of vorticity and strain, Section 6 the spectral energy flux, Section 7 discusses the results, and Section 8 concludes.

Previous studies

Estimating ocean velocity from sea surface height is a long-standing diagnostic problem, but the meaning of the target velocity differs substantially across studies. Classical altimetric products typically estimate the geostrophic component of the surface circulation from gradients of dynamic topography. This approach is physically transparent and robust at large scales, but it implicitly assumes small Rossby number, weak time dependence, and a leading-order geostrophic momentum balance. These assumptions become less reliable at smaller spatial scales, in energetic fronts and eddies, in low-latitude regions where ff is small, and in the presence of internal waves, tides, and other unbalanced motions. Recent machine-learning studies have therefore explored whether statistical models can use the spatial structure of SSH, together with other observable variables or learned physical priors, to infer velocity or related dynamical quantities beyond the purely geostrophic approximation.

A useful first step was provided by Sinha and Abernathey [2021], who framed surface-current estimation as a supervised learning problem using satellite-observable variables. Their models were trained on daily surface fields of a global ≈0.1∘\approx0.1^\circ primitive-equation ocean simulation (CESM-POP), with inputs including SSH, sea-surface temperature and salinity, wind stress, and transformed geographical coordinates, and with the model surface velocity as the target. They showed that a neural network can predict surface currents over most of the global ocean with lower error than a geostrophy-plus-Ekman estimate, particularly when given a local stencil of neighboring SSH values from which it can learn spatial gradients. This result is important because it demonstrates that data-driven models can learn more than a pointwise balance approximation; they can exploit spatial gradients, latitude-dependent dynamics, and empirical relationships between wind forcing, temperature structure, and surface currents. At the same time, the study also highlights a key limitation for the present problem. The successful models were not constrained to use SSH alone; they used additional physical predictors and were trained and evaluated in a fully sampled, noise-free model environment. Their errors were largest where the local Rossby number is high, suggesting that the mapping from surface height to total velocity remains difficult precisely in the regimes most relevant to SWOT-scale variability.

A related line of work has focused not on the velocity vector itself, but on surface kinematic quantities that are dynamically informative at the submesoscale. Xiao et al. [2023] used convolutional neural networks to reconstruct surface vorticity, strain, and divergence from snapshots of SSH in submesoscale-permitting simulations, including an idealized channel model and regions of LLC4320. This problem is closely connected to velocity inference because vorticity and strain involve spatial derivatives of the velocity field, and are therefore even more sensitive to small-scale SSH structure and noise than velocity itself. Their results showed that neural networks can recover vorticity and strain with useful skill when balanced dynamics dominate and inertial-gravity-wave amplitudes are relatively weak. They also found that divergence was a surprisingly reliable field to reconstruct, because the network naturally filters the wave-driven divergence, whereas strong internal-wave signals degrade the reconstruction of vorticity and strain. Thus, this work supports the idea that SSH snapshots contain nonlocal information about surface dynamics, but it also reinforces the point that the learned mapping depends on the relative amplitudes of balanced and unbalanced motions in the training distribution. Our work is different from Xiao et al. [2023] by directly predicting velocity vector instead of predicting vorticity/strain/divergence, which are derived quantities of velocity vector.

At the global scale, Martin et al. [2024] showed that a deep-learning SSH mapping system (NeurOST), trained only on real along-track altimetry with SST as an additional input, resolves finer eddy structure than the standard DUACS product. In an observing-system simulation experiment (OSSE) it recovers 50–80% of the surface vorticity variance in the subtropics and western boundary currents, and applied to real observations it reveals a strongly seasonal, spring-peaking kinetic-energy cascade whose seasonality is largely absent in DUACS. Their evaluation of vorticity maps against a conventional product and of vorticity skill in an OSSE motivates the kinematic evaluation we adopt in § 3.11. More recently, Lyu et al. [2024] used a U-Net to decompose instantaneous LLC4320 SSH snapshots from the Agulhas region into balanced and unbalanced components, and showed that input whitening and data augmentation improve the decomposition across the wavenumber spectrum and in SSH gradients, relative to Gaussian filtering; Wang et al. [2026] extended this approach to a probabilistic decomposition that also estimates the uncertainty of the balanced and unbalanced components.

Another closely related problem is the separation of balanced and unbalanced SSH signals. Gao et al. [2024] developed a deep-learning approach to extract balanced motions from a single SSH snapshot, motivated by the fact that wide-swath altimetry provides high spatial resolution but relatively sparse temporal sampling. Their method uses realistic simulation data to learn a decomposition between balanced geostrophic motions and unbalanced wave motions, and was shown to retain gradient and Laplacian information more effectively than simple spatial filtering. This is particularly relevant for SWOT because balanced and unbalanced motions can overlap strongly in wavenumber space; a fixed low-pass or Gaussian filter cannot reliably separate them when their scales are not well separated. Nevertheless, the target of such a model is the balanced component of SSH, not the full instantaneous velocity field. If the desired output is total velocity, then removing unbalanced SSH may improve balanced velocity estimates while also discarding wave-related velocity signals. Conversely, if the desired output is only the balanced velocity, the problem becomes better posed but remains dependent on how “balanced” and “unbalanced” components are defined in the training data. In most cases, the balanced and unbalanced components of an SSH field cannot be separated cleanly at submesoscales even with high-frequency hourly sampling. This is the reason we choose to directly predict velocity vector instead of separating balanced and unbalanced SSH, which we also tried but not reported in this study.

More recently, Zhou et al. [2025] addressed the problem using actual SWOT observations and collocated drifter data to infer sea-surface velocity. This study is an important step because it moves beyond idealized or model-only experiments and directly uses the observational geometry and error characteristics of SWOT. By learning from drifter-constrained velocities, such an approach can potentially correct systematic departures from geostrophy, including those associated with low latitudes or unresolved ageostrophic contributions. However, drifter-supervised learning introduces a different set of assumptions. Drifters sample particular flow regimes and geographical regions unevenly, may include wind-driven and wave-related motions depending on the drifter type and processing, and provide velocities at finite depth and finite temporal resolution rather than an instantaneous Eulerian surface velocity exactly collocated with the SSH measurement. Therefore, success against drifter validation demonstrates practical predictive skill, but it does not by itself prove that SSH alone uniquely determines the target velocity. The global statistics from Zhou et al. [2025] serve as a first demonstration but more regional scrutiny is needed for generality.

Taken together, these studies show that neural networks can learn nonlocal spatial derivatives of SSH, empirical relationships between wind forcing and currents, and statistical priors that are difficult to express as analytic formulas, and that they can improve on geostrophic estimates. Three aspects of this work motivate the present study. First, in submesoscale-permitting simulations, previous studies reconstruct quantities derived from the velocity, such as vorticity, strain, and divergence [5], or the balanced part of SSH [6, 12, 13], rather than the velocity vector itself. We predict the velocity vector directly, both at 53 m depth and at the surface, and derive vorticity, divergence, and strain from it. Because geostrophy already explains most of the velocity variance at 53 m, the network predicts the departure from geostrophy and only has to learn what geostrophy misses (§ 3.5). Second, the studies differ in their inputs, targets, and regions at the same time: some use SSH alone [5, 6, 12], whereas others add SST [11] or SST, sea-surface salinity, wind stress, and geographical coordinates [4]. How much each input contributes to the velocity has therefore not been compared in a single submesoscale-permitting setting. With one region and one network, we compare raw SSH with SSH gradients and add SST and wind stress one at a time, at 53 m and at the surface (§ 4.2 and § 4.5). Third, studies that predict velocity evaluate it mainly by pointwise errors [4, 7], so it is not known whether the predicted velocity has the correct spatial derivatives and transfers kinetic energy across scales as the true flow does. Likewise, altimetric estimates of this cross-scale transfer use geostrophic velocities [14], whose error in the transfer can be measured only where the true velocity is known. We evaluate the vorticity and divergence, the joint distribution of vorticity and strain, and the spectral kinetic-energy flux of the predicted and the geostrophic velocities against the LLC4320 velocity on a period not used for training (§ 4.4, § 5, and § 6).

Methods and Data

Data

We use the pre-SWOT regional extraction of the LLC4320 simulation for the “Cape Basin” region (PO.DAAC product MITgcm_LLC4320_Pre-SWOT_JPL_L4_CapeBasin_v1.0), which covers 11.8–15.8∘^\circE and 41.0–45.0∘^\circS. LLC4320 is a global MITgcm simulation with 1/48∘^\circ nominal horizontal resolution and 90 vertical levels, forced by 6-hourly ERA-Interim atmospheric reanalysis and by a tidal forcing representing the 16 largest tidal constituents [9]. The Cape Basin subset used in this study can be downloaded from https://doi.org/10.5067/PRESW-CBJ10. The region lies southwest of the Agulhas retroflection and contains energetic eddies and sharp SST fronts (Figure 1); in this region the model grid is aligned with longitude and latitude and its spacing is about 1.6–1.7 km in the zonal and 1.6 km in the meridional direction. The regional product provides hourly fields from 13 September 2011 to 15 November 2012 (429 daily files). From each hourly snapshot we use the sea-surface height anomaly η\eta (model variable Eta), the potential temperature of the top model level (0.5 m, hereafter SST, θ\theta), the ocean surface stress (τx\tau_x, τy\tau_y) (oceTAUX, oceTAUY; hereafter wind stress), and the horizontal velocity at model level 16, whose cell center is at 52.7 m depth (hereafter (uu, vv), with uu eastward and vv northward). For the experiments of § 4.5, the target is instead the velocity of the top model level (0.5 m), hereafter the surface velocity.

Snapshot of the fields used in this study

Figure 1. Snapshot of the fields used in this study at 10:00 UTC on 10 April 2012, on the 2 km analysis grid (xx eastward from 11.8°E, yy northward from 45.0°S; latitude on the right). (a) Sea-surface height anomaly minus its domain mean; (b) SST; (c) wind stress (vectors, every 16th grid point) over its magnitude; (d) velocity at 53 m depth (vectors, every 12th grid point) over speed. Contours show η\eta every 0.05 m on all panels (dashed where below the domain mean). Dashed lines in (a) mark the six fixed 128 × 128 km subdomains; validation and test patches are these tiles, whereas training samples are drawn at random positions in the domain (§ 3.6). This snapshot is from the training period.

Each snapshot is interpolated linearly, using a Delaunay triangulation of the model grid points, onto a regular 2 km Cartesian grid whose coordinates are the cumulative model grid spacings; the staggering of velocity and stress on the model’s C-grid (half a model cell, ≈\approx0.8 km) is not accounted for. We tile the regridded domain into non-overlapping 64 ×\times 64 patches (128 ×\times 128 km) and keep only patches that are completely covered by data. This leaves six fixed subdomains, arranged three (south to north) by two (west to east), which together cover 256 km ×\times 384 km (Figure 1). After discarding the first and last 50 hours, 10,196 hourly time steps remain, giving 61,176 patches. The region contains no land, so every pixel is valid.

The inputs and the target have very different frequency content. Because LLC4320 is tidally forced, η\eta at a fixed point is dominated by the semidiurnal tide (88 % of its variance at periods of 11.5–13 h, 11 % at periods longer than two days). The 53 m velocity, in contrast, is dominated by slowly varying flow: 92 % of its variance is at periods longer than two days, 2 % in the semidiurnal band and 1.5 % in the near-inertial band (inertial period 17.5 h). The derived fields differ again: 64 % of the variance of ζ/f\zeta/ f at 53 m is at periods longer than two days, whereas 63 % of the variance of the divergence δ/f\delta/ f is at periods shorter than 13 h, i.e., in internal tides and other internal gravity waves. (These fractions are from frequency spectra at 12 fixed points over the full record.) Speeds at 53 m have a median of 0.22 m/s and a 99th percentile of 0.86 m/s; SST ranges from about 6 to 18∘^\circC (1st–99th percentiles).

Training, Validation, and Test Periods

Hourly fields change slowly (the RMSE of speed between 53 m velocity fields one hour apart is 0.024 m/s), so a random split of patches would place nearly identical samples in training and evaluation and overstate skill by about fivefold (Appendix § 12). We therefore split the record into three consecutive blocks of hours, separated by 48-hour gaps so that no training hour lies within two days of a validation or test hour (Table 1). The training block contains about the first 70 % of the record, the validation block the next 10 %, and the test block the remaining 20 % (Table 1). The validation block is used for early stopping and for choosing between configurations; each trained model is evaluated on the test block once, with the checkpoint selected on the validation block. The final model is chosen by validation score (§ 4.1). The test period (late August to mid-November 2012) covers the same season as the first two months of the training block (mid-September to November 2011), one year later.

BlockPeriodHoursPatches
Training15 September 2011 – 8 July 20127,13742,822
48-hour gap
Validation10 July – 19 August 20129715,826
48-hour gap
Test21 August – 12 November 20121,99211,952

Table 1. Temporal split of the 10,196 hourly time steps. Each hour contributes six 64 ×\times 64 patches.

Normalization. Each input and target channel is standardized with a mean and standard deviation estimated from 4,096 randomly drawn training patches (after augmentation, when rotations are used; § 3.6). No validation or test samples enter these statistics.

Problem Formulation

We formulate SSH-to-velocity inference as a supervised dense prediction problem on fixed-size patches. Each sample is a 64 × 64 grid with CinC_{\mathrm{in}} input channels and two output channels (uu, vv). Let

x∈RCin×H×W,y∈R2×H×W,(6)\mathbf{x} \in\mathbb{R}^{C_{\mathrm{in}} \times H \times W}, \qquad\mathbf{y} \in\mathbb{R}^{2 \times H \times W}, \tag*{(6)}

with H=W=64H = W = 64. The network learns a mapping

fθ:x↦y^,(7)f_{\theta}: \mathbf{x} \mapsto\hat{\mathbf{y}}, \tag*{(7)}

where y^=(u^,v^)\hat{\mathbf{y}} = (\hat{u}, \hat{v}) is the predicted horizontal velocity field.

Inputs

We test two representations of SSH, each combined with optional covariates:

xη∈{η, η+θ, η+τ, η+θ+τ},x∇η∈{∇η, ∇η+θ, ∇η+τ, ∇η+θ+τ},(8)\mathbf{x}_{\eta} \in\{\eta,\ \eta+ \theta,\ \eta+ \boldsymbol{\tau},\ \eta+ \theta+ \boldsymbol{\tau}\}, \qquad\mathbf{x}_{\nabla\eta} \in\{\nabla\eta,\ \nabla\eta+ \theta,\ \nabla\eta+ \boldsymbol{\tau},\ \nabla\eta+ \theta+ \boldsymbol{\tau}\}, \tag*{(8)}

where η\eta is the SSH anomaly, ∇η=(∂η/∂x,∂η/∂y)\nabla\eta= (\partial\eta/\partial x, \partial\eta/\partial y) its horizontal gradient, θ\theta is SST, and τ=(τx,τy)\boldsymbol{\tau} = (\tau_x, \tau_y) is the wind stress. The gradients are computed with centered differences on the 2 km grid, with replicated values beyond the patch edges. All inputs are computed from the (augmented) raw fields of each patch during training.

Target: Velocity or Departure from Geostrophy

The network either predicts the velocity directly or predicts its departure from the ff-plane geostrophic velocity computed from the same SSH,

r=u−ug,ug=gf0z^×∇η,(9)\mathbf{r} = \mathbf{u} - \mathbf{u}_{g}, \qquad\mathbf{u}_{g} = \frac{g}{f_0}\hat{\mathbf{z}} \times\nabla\eta, \tag*{(9)}

in which case the predicted velocity is u^=ug+r^\hat{\mathbf{u}} = \mathbf{u}_{g} + \hat{\mathbf{r}}. Here f0=2Ωsin⁡(−43∘)=−9.95×10−5 s−1f_0 = 2\Omega\sin(-43^\circ) = -9.95 \times10^{-5}\ \mathrm{s}^{-1} is the Coriolis parameter at the mean latitude of the domain (ff varies by less than ±4%\pm4\% across the domain). Geostrophy already explains most of the velocity variance at 53 m (§ 4.4), so the network only has to learn the remainder that is approximately the ageostrophic component.

Data Augmentation

The training data contain only six fixed subdomains, so the network sees relatively few independent flow configurations. We use two label-preserving augmentations.

Rotations. Each training patch is rotated counterclockwise by a random multiple of 90∘90^\circ. Scalar fields (η,θ)(\eta, \theta) are rotated as images; for vector fields (τ,u)(\tau, \mathbf{u}), the components are rotated as well, (u,v)→(−v,u)(u, v) \to(-v, u) for each 90∘90^\circ step. On an ff-plane the equations of motion are invariant under such rotations, and we verified that the rotated velocity remains exactly the geostrophic velocity of the rotated SSH. Reflections are not used: a mirror image reverses the sense of rotation and is equivalent to changing the sign of ff.

Random crops. Instead of the six fixed tiles, each training sample is a 64×6464 \times64 window at a random position within the 192×128192 \times128-cell domain of a random training hour. This exposes the network to many more distinct windows of the same fields. Validation and test patches are always the six fixed tiles.

Network Backbone

We use a U-Net encoder–decoder [15] with skip connections (Figure 2). Each block consists of two 3×33 \times3 convolutions, each followed by batch normalization and a ReLU. Four encoder stages, each followed by 2×22 \times2 max-pooling, lead to a bottleneck at 4×44 \times4; four decoder stages upsample with 2×22 \times2 transposed convolutions and concatenate the encoder features of the same resolution. A final 1×11 \times1 convolution maps to the two output channels.

U-Net encoder–decoder architecture

Figure 2. U-Net encoder–decoder architecture. Blue: encoder stages; green: decoder stages; orange: bottleneck. Each block applies two (3×33 \times3 convolution, batch normalization, ReLU) layers; labels give the number of channels and the spatial size. Encoder stages are followed by 2×22 \times2 max-pooling, decoder stages are preceded by a 2×22 \times2 transposed convolution, and dashed arrows are skip connections (copy and concatenate). CinC_{\mathrm{in}} is the number of input channels (1–5) and B∈{64,128,192}B \in\{64, 128, 192\} the base width.

Model capacity is controlled by the base channel width BB, with channel widths

[B,2B,4B,8B,16B](10)[B, 2B, 4B, 8B, 16B] \tag*{(10)}

from the first encoder stage to the bottleneck. We compare B=64B=64 (3.1×1073.1 \times10^7 parameters), B=128B=128 (1.2×1081.2 \times10^8), and B=192B=192 (2.8×1082.8 \times10^8).

Loss Functions

The base loss is the mean squared error (MSE) or mean absolute error (MAE) between the standardized prediction and target, averaged over all pixels and both components. Optionally, we add penalties on the errors of relative vorticity and horizontal divergence of the predicted velocity,

L=Lbase+wζLbase(ζ^f0sζ,ζf0sζ)+wδLbase(δ^f0sδ,δf0sδ),(11)\mathcal{L} = \mathcal{L}_{\mathrm{base}} + w_{\zeta}\mathcal{L}_{\mathrm{base}}\left(\frac{\hat{\zeta}}{f_0s_{\zeta}}, \frac{\zeta}{f_0s_{\zeta}}\right) + w_{\delta}\mathcal{L}_{\mathrm{base}}\left(\frac{\hat{\delta}}{f_0s_{\delta}}, \frac{\delta}{f_0s_{\delta}}\right), \tag*{(11)}

where ζ\zeta and δ\delta are defined in Eq. (13) and computed from the velocity in physical units, sζs_{\zeta} and sδs_{\delta} are the standard deviations of ζ/f0\zeta/f_0 and δ/f0\delta/f_0 in the training sample used for normalization, so that both penalty terms are of order one, and wζ=wδ=0.5w_{\zeta} = w_{\delta} = 0.5 unless stated otherwise.

Optimization and Training Protocol

All models are trained with AdamW [16] (learning rate 3×10−43 \times10^{-4}, weight decay 10−410^{-4}, batch size 128), with a linear learning-rate warmup over the first two epochs followed by cosine decay over the maximum number of epochs (60, or 100 for the longer runs), gradient-norm clipping at 1.0, and bfloat16 mixed precision. One epoch is 334 batches, equivalent to one pass over the training tiles. After each epoch we compute the RMSE of speed on the validation block; training stops when it has not improved for 10 epochs (20 for the longer runs), and the checkpoint with the lowest value is kept. Every configuration is trained with three random seeds, and we report the mean and sample standard deviation over seeds; the only exception is the random-split comparison in Appendix B, which was trained once.

Evaluation Metrics

We report the RMSE of each velocity component, RMSEu\mathrm{RMSE}_u and RMSEv\mathrm{RMSE}_v, over the test block. Our primary metric is the RMSE of speed,

RMSE speed=1N∑(u^2+v^2−u2+v2)2,(12)\mathrm{RMSE\ speed} = \sqrt{\frac{1}{N}\sum\left(\sqrt{\hat{u}^{2}+\hat{v}^{2}}-\sqrt{u^{2}+v^{2}}\right)^{2}}, \tag*{(12)}

where the sum runs over all NN test pixels. We also report the direction error, the mean absolute angle between predicted and target velocity vectors over pixels with target speed above 0.01 m/s.

Kinematic Evaluation Metrics

Beyond pointwise velocity errors, we evaluate the relative vorticity and horizontal divergence of the predicted fields, computed with centered differences on the 2 km grid (with replicated values beyond the patch edges):

ζ=∂v∂x−∂u∂y,δ=∇⋅u=∂u∂x+∂v∂y.(13)\zeta= \frac{\partial v}{\partial x} - \frac{\partial u}{\partial y}, \qquad\delta= \nabla\cdot\mathbf{u} = \frac{\partial u}{\partial x} + \frac{\partial v}{\partial y}. \tag*{(13)}

Vorticity characterizes the rotational part of the flow; under geostrophic balance ζg=(g/f)∇2η\zeta_g = (g/f) \nabla^2 \eta, so it is directly constrained by SSH curvature. Divergence is ageostrophic: the ff-plane geostrophic flow is non-divergent, so any divergence in a prediction reflects learned ageostrophic structure.

Normalization and sign convention. We normalize both quantities by f0f_0 and keep its sign: because f0<0f_0 < 0, ζ/f>0\zeta/f > 0 denotes cyclonic and ζ/f<0\zeta/f < 0 anticyclonic rotation, so the sign of ζ/f\zeta/f has the same meaning in both hemispheres. Non-negative quantities such as the strain rate are normalized by ∣f∣\lvert f\rvert. We report the RMSE of ζ/f\zeta/f and δ/f\delta/f and the Pearson correlation rr between predicted and true fields over all test pixels.

Geostrophic baseline. As a physical reference we compute the ff-plane geostrophic velocity ug\mathbf{u}_g of Eq. (9) from η\eta on the same patches. This is the geostrophic velocity at the surface; the geostrophic velocity at 53 m differs from it by the thermal-wind shear over the upper 53 m, which the baseline ignores. Its divergence is zero, so its RMSE of δ/f\delta/f equals the standard deviation of the true δ/f\delta/f.

Experiments

We proceed in two steps. First (§ 4.1), starting from a baseline U-Net (B=64B=64; SSH gradients, SST, and wind stress as inputs; velocity as target; MSE loss; no augmentation), we add one training choice at a time and keep those that improve the validation error. Second (§ 4.2), we repeat the input, capacity, and loss ablations around the final configuration. Appendix § 11 lists all experiments.

Results

Toward a Model That Generalizes

Table 2 and Figure 3 show how the test error changes as training choices are added. The baseline U-Net is no better than geostrophy (0.0681 versus 0.0687 m/s), and its validation error is lowest after one to five epochs while the training error keeps decreasing: it starts to memorize the training period almost immediately.

ConfigurationTest RMSE speedVal. RMSE speedDir. errorrζr_{\zeta}rδr_{\delta}
Geostrophic estimate0.06870.076818.4°0.7490
E0Baseline (B=64B=64, no augmentation)0.0681 ± 0.00210.074019.0°0.7560.109
E1E0 + rotations0.0604 ± 0.00180.063216.9°0.8120.169
E2E0 + random crops0.0627 ± 0.00130.066017.5°0.7910.167
E3E0 + rotations + crops0.0562 ± 0.00070.057715.9°0.8610.302
E4E3, departure from geostrophy0.0556 ± 0.00060.054515.1°0.8960.394
R3bE4 + vorticity/divergence penalties0.0516 ± 0.00150.051314.4°0.9210.627
C1R3b with B=128B=1280.0496 ± 0.00070.049614.0°0.9300.661
C3C1, longer training (final model)0.0486 ± 0.00070.049014.0°0.9310.661

Table 2. Test and validation RMSE of speed (m/s; mean ± standard deviation over three seeds), test direction error, and test correlations with the true vorticity and divergence as training choices are added. All U-Nets use SSH gradients, SST, and wind stress. E1–E3 add the augmentations to E0 separately and together; from E4 on, each row adds one choice to the row above it.

Test RMSE of speed as training choices are added

Figure 3. Test RMSE of speed (mean and standard deviation over three seeds) as training choices are added (Table 2). The dashed line is the ff-plane geostrophic estimate.

Augmentation. Rotations reduce the test error by 11 % and random crops by 8 %; together they reduce it by 17 %, to 0.0562 m/s. With both augmentations, the validation error keeps improving for about 20 epochs instead of a few, so augmentation largely removes the early memorization.

Departure from geostrophy. Predicting u−ugu-u_g instead of uu reduces the RMSE of speed only slightly (0.0556 versus 0.0562 m/s) but improves the derived fields clearly: rζr_\zeta increases from 0.861 to 0.896 and rδr_\delta from 0.302 to 0.394. Supplying ugu_g as two additional input channels instead of using it in the target helps less (0.0573 m/s; Appendix § 11).

Vorticity and divergence penalties. Adding the penalties of Eq. (11) reduces the RMSE of speed by a further 7 % (to 0.0516 m/s) and raises rδr_\delta from 0.394 to 0.627, the largest single improvement in divergence.

Capacity and training length. Increasing the base width from 64 to 128 reduces the error by another 4 %; a width of 192 performs the same as 128 (§ 4.2). Training for up to 100 epochs with a patience of 20 gives a further small gain (0.0486 m/s). Doubling the penalty weights, smoothing the SSH before computing ugu_g (Gaussian of 4 or 8 km), or using an MAE base loss did not help (Appendix § 11).

Model selection. Among the round-3 candidates (Appendix § 11), the configuration with B=128B=128 and longer training (C3) and the configuration with B=192B=192 and standard training (C2) have the same mean validation error (0.0490 m/s); we select C3, the smaller of the two. In the later capacity ablation, C3 trained at B=192B=192 reached a mean validation error of 0.0486 m/s (Table 4); this difference is smaller than the spread over seeds (0.0478–0.0492 m/s), and its test error (0.0490 m/s) is not lower than that of C3. Its test RMSE of speed is 0.0486 ±\pm 0.0007 m/s, with RMSEu\mathrm{RMSE}_u = 0.0460 ±\pm 0.0003 m/s and RMSEv\mathrm{RMSE}_v = 0.0464 ±\pm 0.0003 m/s, compared with 0.0645 and 0.0655 m/s for geostrophy. The velocity components in the test block have standard deviations of 0.20 and 0.22 m/s, so the final model explains about 95 % of their variance (Ru2=0.947R_u^2=0.947, Rv2=0.954R_v^2=0.954), compared with 90 % for geostrophy.

Base width (parameters)Test RMSE speedVal. RMSE speedDir. errorrζr_{\zeta}rδr_{\delta}
64 (3.1 × 10710^{7})0.0511 ± 0.00090.051214.4°0.9210.614
128 (1.2 × 10810^{8}, final)0.0486 ± 0.00070.049014.0°0.9310.661
192 (2.8 × 10810^{8})0.0490 ± 0.00200.048613.9°0.9360.686

Table 4. Capacity: metrics (mean ± standard deviation over three seeds) for the final configuration at three base widths, all with longer training (up to 100 epochs, patience 20). The BB=128 row is C3; the BB=64 and BB=192 rows are separate runs and differ from R3b and C2 in Appendix § 11, which use standard training.

Ablations Around the Final Model

Starting from the final configuration (C3), we change one factor at a time and keep all other settings, including the longer training (up to 100 epochs, patience 20), fixed (Table 3–Table 5). These ablation runs are therefore not the same runs as C1 and C2 in Appendix § 11, which use standard training (up to 60 epochs, patience 10).

CovariatesRaw SSH η\etaSSH gradients ∇η\nabla\etaChange
none0.0597 ±\pm 0.0002 (0.0650)<br>0.801 / 0.2490.0551 ±\pm 0.0015 (0.0606)<br>0.868 / 0.417−7.6%-7.6\%
SST0.0592 ±\pm 0.0018 (0.0597)<br>0.830 / 0.3340.0581 ±\pm 0.0020 (0.0562)<br>0.881 / 0.478−1.9%-1.9\%
wind stress0.0487 ±\pm 0.0005 (0.0527)<br>0.892 / 0.6590.0489 ±\pm 0.0005 (0.0521)<br>0.927 / 0.644+0.3%+0.3\%
SST + wind stress0.0510 ±\pm 0.0002 (0.0508)<br>0.901 / 0.6840.0486 ±\pm 0.0007 (0.0490)<br>0.931 / 0.661−4.6%-4.6\%

Table 3. Test RMSE of speed (m/s; mean ±\pm standard deviation over three seeds) for raw SSH and SSH gradients combined with each covariate set (B=128B=128, departure from geostrophy, augmentation, MSE with vorticity/divergence penalties, longer training as in C3; the gradient model with SST and wind stress is C3 itself). The change is that of the gradient model relative to the raw-SSH model. Validation RMSE of speed in parentheses; test correlations rζr_\zeta / rδr_\delta below.

LossTest RMSE speedVal. RMSE speedDir. errorrζr_{\zeta}rδr_{\delta}
MSE0.0533 ± 0.00090.052014.4°0.9180.545
MAE0.0526 ± 0.00090.052014.4°0.9200.562
MAE + penalties0.0512 ± 0.00070.049414.2°0.9340.674
MSE + penalties (final)0.0486 ± 0.00070.049014.0°0.9310.661

Table 5. Training objective: metrics (mean ± standard deviation over three seeds) for the final configuration with four losses, all with longer training (up to 100 epochs, patience 20). The last row is C3.

Input representation. SSH gradients give a clearly lower RMSE of speed than raw SSH without covariates (−7.6%-7.6\%) and with SST and wind stress (−4.6%-4.6\%). With SST alone (−1.9%-1.9\%) and with wind stress alone (+0.3%+0.3\%), the difference is smaller than the spread over seeds, so the two representations perform equally there. In contrast, gradients give a higher vorticity correlation for every covariate set (rζ=0.87r_\zeta=0.87–0.93 versus 0.80–0.90). Their divergence correlation is higher without wind stress (0.42 versus 0.25 and 0.48 versus 0.33) but slightly lower with it (0.64 versus 0.66 and 0.66 versus 0.68). A plausible reason is that geostrophic velocity is set by the SSH gradient rather than by the absolute sea level, and that most of the temporal variability of η\eta is the semidiurnal tide (§ 3.1), which in the open ocean is mainly barotropic, with a length scale much larger than a patch; within a patch it therefore appears mainly as a nearly uniform offset that the gradients remove.

Covariates. Wind stress is the most useful covariate. Added to SSH gradients alone it reduces the test RMSE of speed by 11 % (from 0.0551 to 0.0489 m/s) and raises rζr_\zeta from 0.42 to 0.64; added to raw SSH it reduces the error by 18 %. Wind stress drives Ekman and near-inertial currents in the surface boundary layer; in the model, the KPP boundary-layer depth exceeds 53 m at most of the sampled times in austral winter (May–September) but at fewer than about a third of them in summer (December–March; one day sampled per month), so these currents reach the target depth mainly in winter, and near-inertial motions account for only 1.5 % of the velocity variance at 53 m. The effect of SST depends on the evaluation period. On the validation block (July–August 2012), adding SST reduces the RMSE of speed in all four comparisons of Table 3 (for example from 0.0521 to 0.0490 m/s with gradients and wind stress). On the test block (August–November 2012), its effect is mixed: it changes the error by less than the spread over seeds with gradients and wind stress (0.0489 to 0.0486 m/s) and with raw SSH alone (0.0597 to 0.0592 m/s), and it increases the error with gradients alone (0.0551 to 0.0581 m/s) and with raw SSH and wind stress (0.0487 to 0.0510 m/s). The same pattern appears in the earlier rounds of experiments: without SST, the validation error is higher but the test error lower (R2a versus E4, C5 versus C1; Appendix § 11). Physically, SST marks surface density fronts, and through thermal-wind balance horizontal density gradients set the vertical shear between the surface geostrophic velocity implied by η\eta and the velocity at 53 m; how useful this information is may depend on the seasonal stratification. We keep SST in the final model because the model was selected on the validation block; without SST, the corresponding configuration has a test RMSE of speed of 0.0489 m/s, statistically indistinguishable from the final model.

Capacity. Increasing the base width from 64 to 128 reduces the test RMSE of speed by 5 %; a width of 192 gives no further improvement in RMSE of speed and only slightly higher correlations (Table 4).

Training objective. MSE and MAE perform equally well (0.0533 and 0.0526 m/s, a difference within the spread over seeds). The vorticity and divergence penalties reduce the RMSE of speed by 9 % with MSE and 3 % with MAE, and raise rδr_{\delta} from 0.55 to 0.66 (Table 5).

Example Predictions

Figure 4 shows a representative test patch. The geostrophic estimate reproduces the large-scale pattern of uu and vv but contains small-scale structure that is absent from the 53 m velocity, and the baseline U-Net produces an overly smooth field. The final model reproduces both the large-scale flow and the filaments; its vector error is smaller and spatially more uniform (RMSE of speed 0.038 m/s for this patch, compared with 0.058 m/s for geostrophy and 0.060 m/s for the baseline).

Velocity fields and vector errors on a representative test patch

Figure 4. Velocity on a representative test patch (128 × 128 km; the same patch as in Figure 5). Columns: LLC4320 truth, ff-plane geostrophic estimate, baseline U-Net (E0), and final U-Net (C3). Rows: eastward velocity uu, northward velocity vv (shared color scale per row), and the magnitude of the vector error; the number in each error panel is the RMSE of speed for this patch. The U-Nets shown are the seed-0 runs of each configuration.

Relative vorticity and horizontal divergence on a representative test patch

Figure 5. Relative vorticity ζ/f\zeta/f (top) and horizontal divergence δ/f\delta/f (bottom) on a representative test patch (128 × 128 km; 50 km scale bar in (d)). Left: LLC4320 truth; center: ff-plane geostrophic estimate from SSH, whose divergence is zero by construction; right: final model. f0<0f_0 < 0, so ζ/f>0\zeta/f > 0 (red) is cyclonic. The correlation with the truth for this patch is given in each panel. The patch is the one whose rζr_\zeta for the final model (seed-0 run) equals the test-block median.

Vorticity and Divergence Reconstruction

The geostrophic estimate captures most of the velocity itself (its components correlate with the truth at r=0.93r=0.93 over the full record), but its vorticity is noisy (rζ=0.749r_{\zeta}=0.749, because the second derivatives in ζg=(q/f)∇2η\zeta_g=(q/f)\nabla^2\eta amplify small-scale SSH signals. Part of this is tidal: on a random sample of 300 patches from the full record, computing ζg\zeta_g from η\eta averaged over 25 hours, which removes most of the semidiurnal and diurnal tides, lowers its RMSE from 0.27 to 0.19 and raises its correlation from 0.59 to 0.65. The final model reproduces vorticity far better (rζ=0.931r_{\zeta}=0.931) and recovers a large part of the divergence (rδ=0.661r_{\delta}=0.661), which the geostrophic estimate cannot represent at all. Only about 37 % of the divergence variance at 53 m is at periods longer than 13 h (§ 3.1), whereas the final model reproduces about 44 % of it (rδ2=0.44r_{\delta}^2=0.44), so the network also infers part of the higher-frequency, internal-wave divergence from

ModelRelative vorticity RMSE(ζ/f\zeta/f)rζr_\zetaHorizontal divergence RMSE(δ/f\delta/f)rδr_\delta
Geostrophic estimate0.2080.7490.09010
Baseline U-Net (E0)0.1770.7560.0940.109
E4 (augmentation, departure from geostrophy)0.1190.8960.0820.394
Final model (C3)0.0970.9310.0670.661

Table 6. Vorticity and divergence errors on the test block. RMSEs are of ζ/f\zeta/f and δ/f\delta/f (dimensionless, f0=−9.95×10−5 s−1f_0 = -9.95 \times10^{-5}\ \mathrm{s}^{-1}); for reference, the standard deviations of the true fields in the test block are 0.266 (ζ/f\zeta/f) and 0.090 (δ/f\delta/f). U-Net values are means over three seeds.

the inputs, presumably from the SSH signature of internal tides. Relative to the variability of each field, vorticity is reconstructed better than divergence: the RMSE is 37 % of the standard deviation for ζ/f\zeta/f and 75 % for δ/f\delta/f.

Figure 5 shows the test patch whose correlation rζr_\zeta for the final model equals the median over the test block (0.946; interquartile range 0.905–0.963). The geostrophic vorticity of this patch contains much small-scale noise (rζ=0.78r_\zeta= 0.78), while the final model reproduces the eddies and filaments (rζ=0.95r_\zeta= 0.95) and much of the banded divergence pattern (rδ=0.66r_\delta= 0.66), whose wave-like structure is consistent with internal gravity waves.

Velocity at the Surface

To test the approach for the surface velocity, the quantity most often estimated from altimetry, we trained the baseline and final configurations with the velocity of the top model level (0.5 m) as target, without changing any other setting, together with the final configuration without wind stress and without SST (Table 7).

ModelTest RMSE speedVal. RMSE speedRMSEu_uRMSEv_vDir. errorrζr_\zetarδr_\delta
Geostrophic estimate0.12490.12200.13890.111435.1°0.7620
Baseline U-Net (as E0)0.0718 ± 0.00130.07010.06740.069016.8°0.8070.307
Final U-Net (as C3)0.0511 ± 0.00090.04880.04880.049412.1°0.9730.874
without wind stress0.0803 ± 0.00140.07630.07920.083620.7°0.9070.605
without SST0.0492 ± 0.00060.04870.04820.048912.2°0.9670.841

Table 7. Surface velocity (0.5 m): test and validation RMSE of speed (m/s; mean ± standard deviation over three seeds), test RMSE of each component, direction error, and correlations with the true vorticity and divergence. All U-Nets use the configurations of Section 4.1 without retuning.

Geostrophy is much less accurate at the surface than at 53 m: its RMSE of speed is 0.125 m/s (0.069 m/s at 53 m), its direction error 35°, and it explains only 59 % and 77 % of the variance of uu and vv. The surface velocity contains wind-driven Ekman and near-inertial currents, which are not geostrophic. The baseline U-Net is better than geostrophy at the surface (0.0718 m/s) but again reaches its lowest validation error after two to four epochs. The final configuration reduces the RMSE of speed to 0.0511 ± 0.0009 m/s (RMSEu_u = 0.0488, RMSEv_v = 0.0494 m/s; Ru2R_u^2 = 0.949, Rv2R_v^2 = 0.955), 59 % below geostrophy and close to its error at 53 m. It reproduces the surface vorticity and divergence with rζr_\zeta = 0.973 and rδr_\delta = 0.874, compared with 0.762 and 0 for geostrophy; the RMSE is 23 % of the standard deviation for ζ/f\zeta/f and 49 % for δ/f\delta/f.

Wind stress is essential at the surface: without it, the RMSE of speed increases by 57 % (to 0.0803 m/s), compared with 20 % at 53 m (0.0486 to 0.0581 m/s; Table 3). Without SST, the test error is slightly lower (0.0492 m/s) and the validation error is the same (0.0487 versus 0.0488 m/s), so, as at 53 m, SST does not improve the test skill.

Joint Statistics of Vorticity and Strain

Figure 6 shows the joint probability density function (PDF) of ζ/f\zeta/f and the normalized strain rate σ/∣f∣\sigma/|f| in the test block for the LLC4320 truth and the final model, following Balwada et al. [ [17], who use the same normalization by a constant f0f_0 (ζ/f0\zeta/f_0, σ/∣f0∣\sigma/|f_0|). Here

Joint PDFs of vorticity and normalized strain rate for the truth and final model

Figure 6. Joint PDF of ζ/f\zeta/f and σ/∣f∣\sigma/|f| over all test pixels: (a) LLC4320 truth; (b) final model (seed-0 run). f0<0f_0 < 0, so ζ/f>0\zeta/f > 0 is cyclonic. White contours mark densities of 10−310^{-3}, 10−210^{-2}, 10−110^{-1}, and 1; dotted lines mark σ/∣f∣=∣ζ/f∣\sigma/|f| = |\zeta/f|. The PDF is normalized by the total number of pixels; the plotted range contains 99.9 % of them.

σ=(∂u∂x−∂v∂y)2+(∂u∂y+∂v∂x)2≥0.(14)\sigma= \sqrt{\left(\frac{\partial u}{\partial x} - \frac{\partial v}{\partial y}\right)^2 + \left(\frac{\partial u}{\partial y} + \frac{\partial v}{\partial x}\right)^2} \ge0. \tag*{(14)}

The true distribution (Figure 6a) is skewed toward cyclonic vorticity (skewness of ζ/f=0.35\zeta/f = 0.35) and extends along the lines σ≈∣ζ∣\sigma\approx|\zeta|, with a longer, high-strain tail on the cyclonic side that reaches ζ/f≈1\zeta/f \approx1. A cyclonic skewness and strain-dominated fronts (σ≳∣ζ∣\sigma\gtrsim|\zeta|) are characteristic of submesoscale fronts and filaments [[18, 17]]. The predicted PDF (panel b) reproduces the shape of the distribution, the cyclonic high-strain tail, and the cyclonic skewness, which it slightly overestimates (0.42). It is narrower than the truth: the standard deviation of ζ/f\zeta/f is 0.240 instead of 0.266, and strain rates above 0.5∣f∣0.5|f| occur at 3.7 % of the pixels instead of 5.8 %, consistent with smoothing of the sharpest fronts.

Spectral Energy Flux

Beyond pointwise errors, a velocity estimate should reproduce how kinetic energy is transferred between scales. Scott and Wang [ [14] computed this transfer from altimetric geostrophic velocities and found an inverse cascade toward large scales. We compare the spectral kinetic-energy flux of the true velocity with that of the geostrophic and predicted velocities.

Definition

For a horizontal velocity field u=(u,v)\mathbf{u} = (u, v) on the uniform 2 km grid, let u^(k)\hat{\mathbf{u}}(\mathbf{k}) be its two-dimensional Fourier transform. The kinetic energy at wavenumber k\mathbf{k} is 12∣u^(k)∣2\frac{1}{2}|\hat{\mathbf{u}}(\mathbf{k})|^2, and its rate of change due to horizontal advection is the spectral transfer

T(k)=−Re⁡[u^∗(k)⋅(u⋅∇)u^(k)].(15)T(\mathbf{k}) = -\operatorname{Re}\left[\hat{\mathbf{u}}^{*}(\mathbf{k}) \cdot\widehat{(\mathbf{u}\cdot\nabla)\mathbf{u}}(\mathbf{k})\right]. \tag*{(15)}

Advection only redistributes energy among wavenumbers, so for a periodic, non-divergent flow the transfer sums to zero. The spectral flux through the isotropic wavenumber KK,

Π(K)=∑∣k∣≥KT(k),(16)\Pi(K)=\sum_{\lvert\mathbf{k}\rvert\ge K}T(\mathbf{k}), \tag*{(16)}

is the rate at which energy is transferred from wavenumbers below KK to wavenumbers above KK, that is, from scales larger than the wavelength 2π/K2\pi/K to smaller scales. Π>0\Pi>0 indicates a forward cascade toward small scales and Π<0\Pi<0 an inverse cascade toward large scales. Equation (15) describes the transfer by horizontal advection at a single depth; vertical advection is not included.

Computation

For each hour of the test period, we stitch the six tiles into the 192 × 128-cell (384 km × 256 km) domain. The U-Net is fully convolutional, so we apply it to the whole domain at once; this avoids artificial discontinuities at tile boundaries, and the final model reaches a RMSE of speed of 0.0473 m/s at 53 m and 0.0502 m/s at the surface on the whole domain (mean over seeds). The advection term is computed with centered differences, and both the velocity and the advection term are multiplied by a two-dimensional Tukey window (taper fraction 0.25) before the Fourier transform. Modes are binned in isotropic wavenumber with a bin width of 2π/(256 km)2\pi/(256\ \mathrm{km}), and TT, Π\Pi, and the kinetic-energy spectrum E(K)E(K) are averaged over the 1,992 test hours. Because the domain is open and the flow divergent, the transfer does not sum exactly to zero, and the residual affects the domain-scale wavenumbers. Equation (16) sums from the small-scale end, so Π\Pi at smaller scales does not depend on the domain-scale modes; we show wavelengths up to 85 km. Changing the taper fraction to 0.1 or 0.5 changes the magnitude of Π\Pi, but the ratios of the geostrophic and U-Net extrema to the true extrema change by at most 0.05.

Robustness. For a divergent flow, the advective form of Eq. (15) does not conserve energy exactly. We therefore repeated the analysis on 120 evenly spaced test hours with the skew-symmetric form (u⋅∇)u+12u(∇⋅u)(\mathbf{u}\cdot\nabla)\mathbf{u}+\frac{1}{2}\mathbf{u}(\nabla\cdot\mathbf{u}), which conserves energy for periodic flows of any divergence. The two forms coincide for the non-divergent geostrophic flow. The magnitudes of Π\Pi and the wavelength at which the true flux changes sign depend on the form (20–34 km at 53 m and 22–30 km at the surface). The conclusions below hold for both forms.

Results

Figure 7 and Table 8 summarize the spectra and fluxes. At both depths the true velocity shows a dual cascade: an inverse cascade at large scales and a forward cascade at small scales, which in the advective form changes sign at about 20 km (53 m) and 30 km (surface) and peaks near 10–11 km. In both forms the forward cascade is stronger at the surface than at 53 m.

53 mSurface (0.5 m)
min Π\Pisign changemax Π\Pimin Π\Pisign changemax Π\Pi
LLC4320 (truth)−6.520 km1.77 (10 km)−2.530 km3.92 (11 km)
Geostrophic estimate−8.314 km0.54 (9 km)−8.314 km0.54 (9 km)
Baseline U-Net−3.9 ± 0.427 km0.46 ± 0.17 (18 km)−4.5 ± 1.024 km1.61 ± 0.54 (14 km)
Final U-Net−5.6 ± 0.519 km1.41 ± 0.05 (10 km)−2.2 ± 0.334 km3.75 ± 0.28 (12 km)

Table 8. Spectral flux on the test period, advective form of Eq. (15): largest inverse flux (minimum of Π\Pi, at the 85 km wavelength), wavelength at which Π\Pi changes sign, and largest forward flux (maximum of Π\Pi) with its wavelength. Π\Pi in 10−9 m2 s−310^{-9}\ \mathrm{m}^{2}\ \mathrm{s}^{-3}; U-Net values are means ± standard deviations over three seeds.

Kinetic-energy spectrum and spectral kinetic-energy flux at 53 m and the surface

Figure 7. Kinetic-energy spectrum E(K)E(K) (top) and spectral kinetic-energy flux Π(K)\Pi(K) (bottom) as functions of wavelength 2π/K2\pi/K, averaged over the test period: (a, b) at 53 m; (c, d) at the surface. Π>0\Pi> 0 is a forward cascade toward small scales, Π<0\Pi< 0 an inverse cascade toward large scales. The geostrophic estimate is computed from the same SSH at both depths. Shading: one standard deviation over three seeds.

The geostrophic estimate misrepresents this cascade. Its forward cascade is only 31 % of the true one at 53 m and 14 % at the surface (18 % and 11 % in the skew-symmetric form). Its inverse cascade is at least as strong as the true one (1.0 to 3.4 times as strong, depending on depth and form) and changes sign at a smaller scale (14 km). This happens although its kinetic energy at 10–20 km wavelength is within 15 % of, or at 53 m even 25 % higher than, the true one (Figure 7a, Figure 7c). The ff-plane geostrophic flow is non-divergent and lacks the ageostrophic circulation of fronts and filaments; its flux is consistent with two-dimensional, non-divergent dynamics, in which energy is transferred mainly toward large scales. The baseline U-Net, whose small-scale energy is too low, also underestimates the forward cascade. The final U-Net reproduces the dual cascade at both depths: its forward cascade reaches 80 % (53 m) and 96 % (surface) of the true maximum in the advective form and 77 % and 95 % in the skew-symmetric form, and its sign change lies within 5 km of the true one in both forms.

Discussion

What makes the network generalize. The training region contains only six fixed subdomains and ten months of hourly fields, that is, relatively few independent flow configurations. The two augmentations increase the diversity of the training samples without changing the physics: rotations preserve the ff-plane dynamics, including geostrophic balance, while changing the orientation of the flow and of the wind stress, and random crops present the same fields in many more windows. Predicting the departure from geostrophy leaves the network to learn smaller residuals, and the vorticity and divergence penalties make it attend to the spatial derivatives of the velocity and reduces spatial discontinuous artifacts, which a pointwise loss weights only weakly. The same configuration applies to the surface velocity, where geostrophy is much less accurate because of wind-driven currents. The model performance is further shown in the accurate recreation of the spectral transfer of kinetic energy, where geostrophic approximation fails as expected at small scales by underestimating forward cascade and overestimating inverse cascade.

This work examined the inference of ocean velocity at 53 m depth and at the surface from SSH snapshots and surface covariates with a convolutional encoder–decoder, using hourly LLC4320 fields from the pre-SWOT Cape Basin region. The main findings are as follows.

Generalization. Evaluated on a held-out period, a standard U-Net is no better than geostrophy. Rotation and crop augmentation, predicting the departure from geostrophy, vorticity and divergence penalties, and a base width of 128 reduce the test RMSE of speed to 0.0486 ±\pm 0.0007 m/s (RMSEu_u = 0.046 m/s, RMSEv_v = 0.046 m/s, R2≈0.95R^2 \approx0.95), 29 % below geostrophy.

Inputs and training. SSH gradients are at least as good inputs as raw SSH for the RMSE of speed and better for vorticity; wind stress is the most useful covariate; the effect of SST differs between the validation and test periods; capacity saturates at a base width of 128; and MSE and MAE perform equally, while the vorticity and divergence penalties clearly help.

Surface velocity. Trained for the surface velocity without retuning, the final configuration reaches an RMSE of speed of 0.0511 ± 0.0009 m/s, 59 % below geostrophy (0.125 m/s); wind stress is essential at the surface (57 % higher error without it).

Spectral energy flux. The true flow has an inverse cascade at large scales and a forward cascade at scales below a few tens of kilometers. Geostrophy captures at most a third of the forward cascade, whereas the final U-Net reproduces 77–96 % of it at the correct scales; these conclusions hold for both forms of the nonlinear term.

Kinematic quality. The final model reproduces vorticity with rζ=0.93r_\zeta= 0.93 (0.75 for geostrophy), recovers much of the divergence (rδ=0.66r_\delta= 0.66), which at 53 m is dominated by internal gravity waves and which geostrophy cannot represent, and reproduces the joint distribution of vorticity and strain, including its cyclonic skewness, with somewhat too few high-strain values.

Conclusion

Inferring velocity from sea surface height alone is mathematically underdetermined in the nonlinear regimes revealed by SWOT. Although the conventional formulation does not yield a unique solution, deep neural networks may exploit information embedded in a single SSH snapshot to constrain the velocity field. The mechanisms remain unclear, but spatial patterns and spectral phase relationships among different physical processes may provide information that conventional methods do not fully exploit and that is difficult to discern visually. Our study here, together with previous published work, demonstrates the potential of this approach. Establishing its reliability, however, requires validation against truly independent observations, which is the focus of our ongoing work.

Acknowledgments

This work is supported by NASA (80NSSC26K0212, 80NSSC25K7643) and the Summer Undergraduate Research Fellowships (SURF) at Jet Propulsion Laboratory, California Institution of Technology. Portions of this research were conducted with advanced computing resources provided by Texas A&M High Performance Research Computing (HPRC).

Data and Code Availability

The LLC4320 pre-SWOT Cape Basin data used in this study are publicly available from NASA PO.DAAC (MITgcm_LLC4320_Pre-SWOT_JPL_L4_CapeBasin_v1.0; https://doi.org/10.5067/PRESW-CBJ10). Training code, experiment configurations, and evaluation scripts are available at https://github.com/odsl/ssh2uv.

All Temporal-Split Experiments

Table 9 lists all experiments trained with the temporal split. Unless stated otherwise, they use SSH gradients, SST, and wind stress as inputs, a base width of 64, MSE loss, and a maximum of 60 epochs with a patience of 10.

ConfigurationTest RMSE speedVal. RMSE speedrζr_{\zeta}rδr_{\delta}
E0B=64B=64, no augmentation0.0681±0.00210.0681 \pm0.00210.07400.7560.109
E1E0 + rotations0.0604±0.00180.0604 \pm0.00180.06320.8120.169
E2E0 + random crops0.0627±0.00130.0627 \pm0.00130.06600.7910.167
E3E0 + rotations + crops0.0562±0.00070.0562 \pm0.00070.05770.8610.302
E4E3, residual0.0556±0.00060.0556 \pm0.00060.05450.8960.394
E5E3, ugu_g as additional input0.0573±0.00040.0573 \pm0.00040.05830.8530.290
E6E3, raw SSH instead of gradients0.0617±0.00150.0617 \pm0.00150.06690.8470.218
R1aE4, B=128B=1280.0530±0.00220.0530 \pm0.00220.05200.9130.518
R1bE4, B=192B=1920.0529±0.00040.0529 \pm0.00040.05160.9150.530
R2aE4 without SST0.0520±0.00070.0520 \pm0.00070.05680.8920.434
R2bE4 without wind stress0.0589±0.00050.0589 \pm0.00050.05830.8610.322
R2cE4 with SSH gradients only0.0574±0.00150.0574 \pm0.00150.06230.8320.202
R3aE4, MAE loss0.0556±0.00110.0556 \pm0.00110.05470.8940.391
R3bE4 + pen.0.0516±0.00150.0516 \pm0.00150.05130.9210.627
R4E4, long0.0545±0.00100.0545 \pm0.00100.05430.9050.457
R5aE4, ugu_g from SSH smoothed at 4 km0.0560±0.00110.0560 \pm0.00110.05540.8920.384
R5bE4, ugu_g from SSH smoothed at 8 km0.0556±0.00200.0556 \pm0.00200.05530.8870.370
C1R3b, B=128B=1280.0496±0.00070.0496 \pm0.00070.04960.9300.661
C2R3b, B=192B=1920.0500±0.00080.0500 \pm0.00080.04900.9330.675
C3C1, long (final model)0.0486±0.00070.0486 \pm0.00070.04900.9310.661
C4C1, wζ=wδ=1w_{\zeta}=w_{\delta}=10.0502±0.00080.0502 \pm0.00080.04930.9330.675
C5C1 without SST0.0481±0.00040.0481 \pm0.00040.05280.9170.604
S-E0E0, surface velocity0.0718±0.00130.0718 \pm0.00130.07010.8070.307
S-C3C3, surface velocity0.0511±0.00090.0511 \pm0.00090.04880.9730.874
S-C3aS-C3 without wind stress0.0803±0.00140.0803 \pm0.00140.07630.9070.605
S-C3bS-C3 without SST0.0492±0.00060.0492 \pm0.00060.04870.9670.841

Table 9. All temporal-split experiments: test and validation RMSE of speed (m/s; mean ± standard deviation over three seeds) and test correlations. “Residual”: departure from geostrophy as target; “pen.”: vorticity/divergence penalties (wζ=wδ=0.5w_{\zeta}=w_{\delta}=0.5 unless stated); “long”: up to 100 epochs, patience 20.

The ablations of Section 4.2 (raw SSH and SSH gradients with each covariate set, base widths 64 and 192, and the four losses) are variants of C3 and are reported in Tables 3–5.

Random Versus Temporal Split

For comparison, we trained U-Nets on a random 80/20 split of all 61,176 patches (seed 42; 48,941 training and 12,235 validation patches), with the validation set also used for checkpoint selection. These models use raw SSH or SSH gradients with SST and wind stress, B=192B=192 or 384, an MAE loss (in one variant MSE, in another MAE with vorticity and divergence penalties) with a cosine direction term (weight 0.04), and normalization statistics from 10,000 patches of the full record. In this split, 96 % of the validation patches have a training patch from the same subdomain one hour earlier or later, and the velocity changes little in one hour (RMSE of speed 0.024 m/s, rising to 0.044 m/s after two hours) and 0.087 m/s after six). Predicting each validation patch by linear interpolation in time between the nearest training patches of the same subdomain, without any model, gives an RMSE of speed of 0.0132 m/s, lower than that of the SSH-input (0.0160 m/s) and gradient-input (0.0138 m/s) U-Nets at B=192B=192. The error of the trained models increases by a factor of 1.8–2.0 when the nearest training patch is two hours away instead of one, whereas that of geostrophy does not (Figure 8a). Trained on the temporal split, the gradient-input configuration at B=192B=192 reaches 0.0646 m/s on the test period, 4.7 times its random-split score and close to geostrophy (0.0687 m/s; Figure 8b); its validation loss is lowest after six epochs.

Random versus temporal split

Figure 8. Random versus temporal split. (a) RMSE of speed on the random-split validation set as a function of the time to the nearest training patch of the same subdomain, for three U-Nets trained on the random split (SSH+All: raw SSH, SST, and wind stress, B=192B=192; Grad+All: SSH gradients, SST, and wind stress, B=192B=192; Grad+All-Lg/Phys: the same at B=384B=384 with vorticity and divergence penalties), the ff-plane geostrophic estimate, and an interpolation in time between the neighboring training patches. (b) The Grad+All configuration on the random-split validation set and, trained on the temporal split, on the test period, with geostrophy and the final model (mean and standard deviation over three seeds) on the same test period.

References

  1. [1]Matthew Archer, Jinbo Wang, Patrice Klein, Gerald Dibarboure, and Lee-Lueng Fu. Wide-swath satellite altimetry unveils global submesoscale ocean dynamics. Nature, 640(8059):691–696, 2025. doi:10.1038/s41586-025-08722-8.DOI
  2. [2]Luke Kachelein, Jinbo Wang, Andrew J. Lucas, Audrey Delpech, J. Thomas Farrar, Matthew Archer, Matthias Lankhorst, Babette C. Tchonang, Uwe Send, Scott Stalin, Jeffrey Sevadjian, and Oscar Schofield. Sub-100 km ocean processes revealed by structure functions of swot sea surface height and in situ observing network. Journal of Geophysical Research: Oceans, 130(11):e2025JC022639, 2025. doi:https://doi.org/10.1029/2025JC022639. URL https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2025JC022639.
  3. [3]Xihan Zhang and Björn Callies. Assessing submesoscale sea surface height signals from the swot mission. Journal of Geophysical Research: Oceans, 130(10):e2025JC022879, 2025. doi:https://doi.org/10.1029/2025JC022879. URL https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2025JC022879.
  4. [4]Anirban Sinha and Ryan Abernathey. Estimating ocean surface currents with machine learning. Frontiers in Marine Science, 8:672477, 2021. doi:10.3389/fmars.2021.672477.DOI
  5. [5]Qiyu Xiao, Dhruv Balwada, C. Spencer Jones, Mario Herrero-González, K. Shafer Smith, and Ryan Abernathey. Reconstruction of surface kinematics from sea surface height using neural networks. Journal of Advances in Modeling Earth Systems, 15(10):e2023MS003709, 2023. doi:10.1029/2023MS003709.DOI
  6. [6]Zhanwen Gao, Bertrand Chapron, Chunyong Ma, Ronan Fablet, Quentin Febvre, Wenxia Zhao, and Ge Chen. A deep learning approach to extract balanced motions from sea surface height snapshot. Geophysical Research Letters, 51(7):e2023GL106623, 2024. doi:10.1029/2023GL106623.DOI
  7. [7]Shuyi Zhou, Jihai Dong, Hong Li, Guangjun Xu, and Fanhua Xu. A machine learning-based model infers the sea surface velocity of surface water and ocean topography (SWOT). Geophysical Research Letters, 52(9):e2024GL110731, 2025. doi:10.1029/2024GL110731.DOI
  8. [8]Scott A Martin, Georgy E Manucharyan, and Patrice Klein. Generative data assimilation highlights fronts as key regulators of ocean energy cascade. arXiv preprint arXiv:2608.14955, 2026.arxiv.org/abs/2608.14955
  9. [9]Cesar B. Rocha, Teresa K. Cherskin, Sarah T. Gille, and Dimitris Menemenlis. Mesoscale to submesoscale wavenumber spectra in Drake Passage. Journal of Physical Oceanography, 46(2):601–620, 2016. doi:10.1175/JPO-D-15-0087.1.DOI
  10. [10]Katharina Gallmeier, J. Xavier Prochaska, Peter Cornillon, Dimitris Menemenlis, and Madolyn Kelm. An evaluation of the LLC4320 global-ocean simulation based on the submesoscale structure of modeled sea surface temperature fields. Geoscientific Model Development, 16(23):7143–7170, 2023. doi:10.5194/gmd-16-7143-2023.DOI
  11. [11]Scott A. Martin, Georgy E. Manucharyan, and Patrice Klein. Deep learning improves global satellite observations of ocean eddy dynamics. Geophysical Research Letters, 51(17):e2024GL110059, 2024. doi:10.1029/2024GL110059.DOI
  12. [12]Jingwen Lyu, Yue Wang, Christian Pedersen, Spencer Jones, and Dhruv Balwada. Multi-scale decomposition of sea surface height snapshots using machine learning. arXiv preprint arXiv:2409.17354, 2024.arxiv.org/abs/2409.17354
  13. [13]Yue Wang, Jingwen Lyu, Tatsu Monkman, Spencer Jones, Christian Pedersen, and Dhruv Balwada. A multi-scale probabilistic machine learning model for balanced and unbalanced sea surface height decomposition. Journal of Geophysical Research: Machine Learning and Computation, 3(3):e2025JH001186, 2026. doi:10.1029/2025JH001186.
  14. [14]Robert B. Scott and Faming Wang. Direct evidence of an inverse kinetic energy cascade from satellite altimetry. Journal of Physical Oceanography, 35(9):1650–1666, 2005. doi:10.1175/JPO2771.1.DOI
  15. [15]Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention–MICCAI 2015, pages 234–241. Springer, 2015. doi:10.1007/978-3-319-24574-4_28.DOI
  16. [16]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. arXiv:1711.05101.arxiv.org/abs/1711.05101
  17. [17]Dhruv Balwada, Qiyu Xiao, K. Shafer Smith, Ryan Abernathey, and Alison R. Gray. Vertical fluxes conditioned on vorticity and strain reveal submesoscale ventilation. Journal of Physical Oceanography, 51(9):2883–2901, 2021. doi:10.1175/JPO-D-21-0016.1.DOI
  18. [18]James C. McWilliams. Submesoscale currents in the ocean. Proceedings of the Royal Society A, 472(2189):20160117, 2016. doi:10.1098/rspa.2016.0117.DOI

Paper details

vlnc:W_ngdemgmd
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 0

downloads · 2

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents