Meridia Insight Tech for Good Frontiers

Teaching AI to Imagine the Weather: A New Way to Predict the Unpredictable

A new AI approach generates complete weather forecasts from sparse observations by learning to create realistic atmospheric trajectories, potentially bypassing

Instead of running a weather model forward in time, a neural network learns what the atmosphere looks like, then

The Science

The atmosphere is a restless system. It churns and swirls across scales from millimeters to thousands of kilometers, from milliseconds to seasons, governed by physics that we understand well enough to write down mathematically but not well enough to predict perfectly. The gap between that understanding and perfect prediction is where weather forecasting lives—and it's a gap with enormous consequences. Every hurricane evacuation, every flight routing, every farmer deciding when to plant depends on narrowing that gap by even a fraction.

Current operational weather prediction rests on a foundation called data assimilation: the process of combining incomplete observations with numerical simulations to produce the best possible estimate of the atmosphere's current state. Think of it as educated guesswork backed by physics. A numerical weather model provides a first guess—what physicists call a "prior"—and then sparse, scattered observations (temperature readings from weather stations, pressure measurements from radiosondes, wind speeds from satellites) are used to correct that guess. The result is an "analysis": a complete picture of the atmosphere that never actually existed as such, because no instrument measured every point simultaneously.

This process works, but it's computationally brutal. Modern systems like the European Centre for Medium-Range Weather Forecasts' Integrated Forecasting System run thousands of processor cores for hours just to produce a single forecast. The models themselves are physical simulations—representations of fluid dynamics, thermodynamics, and radiative transfer—that must be evaluated and re-evaluated, iteration after iteration, to find the atmospheric state consistent with both the physics and the observations.

A team of researchers from Penn State and Purdue universities, led by Dibyajyoti Chakraborty and Romit Maulik, has proposed a fundamentally different approach. In a new paper, they describe using generative machine learning—a class of algorithms that learn to create new samples from learned probability distributions—to perform atmospheric data assimilation in a way that bypasses the iterative numerical simulation entirely. Instead of running a weather model forward in time, they train a neural network to understand what the atmosphere looks like, then use that understanding to infer what the atmosphere must have been doing, given sparse observations.

The core innovation is treating the atmosphere not as a sequence of snapshots but as a video—a continuous, temporally coherent sequence of states spanning eight days. This framing, the researchers argue, is more natural for capturing how weather systems evolve. A hurricane doesn't appear and disappear between frames; it moves, intensifies, and decays across time. By thinking in videos rather than stills, the prior can learn not just what the atmosphere looks like, but how it moves.

They call their approach Latent Video Flow-Matching for Atmospheric Data Assimilation, and it represents one of the most ambitious attempts yet to apply modern generative AI to the foundational problem of weather prediction.

To build their prior, the researchers first needed to compress the atmosphere into something a neural network could handle. The ERA5 reanalysis dataset—essentially a best-guess reconstruction of global weather from 1940 to present, produced by feeding decades of observations through a numerical weather model—contains 69 atmospheric variables at quarter-degree horizontal resolution (roughly 28 kilometers) on 137 vertical levels, updated every hour. An eight-day window of this data would be enormous: billions of numbers representing temperature, pressure, humidity, and wind at every point in the atmosphere, across the entire globe, for 192 consecutive timesteps.

The researchers use a 3D convolutional autoencoder to compress this down. A standard autoencoder learns to compress data into a compact "latent" representation and then reconstruct it; a 3D version does the same but preserves temporal structure, treating time as another dimension alongside space. The compression is substantial: from the original 128×256 grid down to 32×64 in space, and from 32 timesteps to 8 latent frames. The final latent representation has shape 128×8×32×64—still large, but tractable for modern neural networks.

On top of this compressed representation, they train a generative model using a technique called flow-matching. Flow-matching is a relatively recent innovation in generative AI that learns to transform random noise into data samples by learning a "velocity field"—essentially, at each point in the transformation from noise to data, the direction in which samples should move. Unlike the more familiar diffusion models (which learn to denoise), flow-matching learns a direct interpolation path. The researchers use a specific formulation called TrigFlow, which defines this path on a spherical surface in latent space.

The prior is trained on millions of such eight-day windows from ERA5, learning the statistical regularities of atmospheric dynamics: how temperature gradients drive pressure systems, how humidity transports energy, how the jet stream meanders and drives storms. After training, the prior can generate entirely new eight-day atmospheric trajectories that are statistically indistinguishable from the ERA5 data on which it learned.

But generating random trajectories is just the beginning. The real power comes from conditioning—taking the learned prior and asking: given specific observations, what atmospheric states are most consistent with both the prior's knowledge and the data? This is the data assimilation step.

What They Found

The researchers test their approach across several classical data assimilation scenarios, each representing a different way of combining observations with the prior. The results are striking both for what they achieve and for how naturally they emerge from the same underlying model.

The first scenario is super-resolution, or atmospheric reconstruction from coarse observations. Here, the "observations" are deliberately degraded versions of the ERA5 data itself—spatial resolution reduced by a factor of four. The task is to reconstruct the full high-resolution state from these coarse measurements. This tests the prior's ability to fill in fine-scale structure that the observations never captured.

The results show that the posterior samples recover the correct fine-scale features with remarkable fidelity. Comparing the reconstructed fields to the ground-truth ERA5 data, the ensemble mean achieves low RMSE across all variables. Surface temperature (2m temperature, a standard meteorological variable) shows especially tight agreement, as do 10m wind components. The vertical structure in the atmosphere—the temperature and humidity at various pressure levels—is similarly well-reconstructed.

Per-Variable Physical RMSE for Key Atmospheric Variables

Physical RMSE for different atmospheric variables across observed (every 4th) and unobserved frames. Observed frames show lower RMSE as expected.

Per-Variable Physical RMSE for Key Atmospheric Variables
LabelValue
t2m (Surface Temperature)0.25
u10m (10m Zonal Wind)0.35
v10m (10m Meridional Wind)0.38
q1000 (Specific Humidity 1000hPa)0.42
z500 (Geopotential 500hPa)0.28
t850 (Temperature 850hPa)0.32

One of the most compelling results comes from examining the spectral properties of the reconstructions. The atmosphere contains structures at all scales, from global Rossby waves down to convective plumes. A correct reconstruction should recover the appropriate power at each scale. The posterior samples do exactly this: the zonal (east-west) power spectra of the reconstructions match ERA5 across the entire range of wavelengths, from planetary scales down to the smallest resolved features. This suggests the prior has learned not just statistical averages but the full cascade of atmospheric variability.

The uncertainty quantification proves equally important. By drawing multiple samples from the posterior, the researcher can estimate not just the most likely atmospheric state but the range of plausible states. In regions with dense observations, this uncertainty is low—the data tightly constrains the reconstruction. In dynamically active regions—the edges of storm systems, the cores of frontal boundaries—the uncertainty grows, reflecting the chaos inherent in weather prediction. This pattern is physically intuitive: where we have dense data, we know more; where the atmosphere is doing interesting and hard-to-predict things, we know less.

The second scenario tests the model's ability to propagate information through time. In classical data assimilation, different scenarios have different names: "filtering" uses past and current observations to estimate the current state; "smoothing" uses past, current, and future observations to estimate a past state; "fixed-interval reconstruction" reconstructs an entire time window given observations at some timesteps. In most operational systems, these require different algorithms, different computational infrastructure, different tuning.

Chakraborty and Maulik's approach treats all three as variations of the same problem. Because the prior generates a continuous trajectory rather than independent snapshots, information naturally propagates from observed frames to unobserved frames. To switch between filtering, smoothing, and reconstruction, you simply specify which frames are "observed" and let the posterior sampler do the rest. The prior stays fixed; only the observation schedule changes.

The results confirm this works. In smoothing experiments—where future observations are used to refine estimates of past states—the posterior correctly adjusts earlier frames. The eight-day trajectory hangs together: if day six shows a developing storm system, day three shows the conditions that seeded it. The model has learned that atmospheric states don't jump randomly; they evolve according to dynamics that the prior has absorbed.

Perhaps most significantly, the researchers test their approach on real observations from the National Oceanic and Atmospheric Administration. The Integrated Global Radiosonde Archive contains atmospheric profiles from weather balloons released twice daily at stations worldwide—temperature, humidity, and wind measurements that pierce only a tiny fraction of the atmosphere but do so directly, with high vertical resolution. The Integrated Surface Database aggregates surface observations from thousands of stations: temperature, pressure, humidity, wind.

These are not synthetic observations derived from ERA5. They are real measurements from real instruments, subject to all the messiness that implies: instrument biases, data quality issues, gaps in coverage, spatial and temporal sampling patterns that don't align with the model's grid. Assimilating real observations is a harder problem than reconstructing synthetic data, and it's the crucial test for any operational applicability.

The results show that the model successfully integrates these diverse real-world data sources. The posterior reconstructions are consistent with both the prior's learned dynamics and the actual measurements. Different observation types—upper-air profiles from radiosondes, surface data from weather stations—complement each other, with the prior propagating information from sparse observations to fill the gaps.

Computational Cost: Number of Function Evaluations by Sampler Configuration

Number of Function Evaluations (NFE) for different sampler configurations. Higher NFE generally means more computation but potentially better accuracy.

Computational Cost: Number of Function Evaluations by Sampler Configuration
LabelValue
DPS50
+mom0.550
+corr76
+corr+λ076
+corr+λ0+mom76
+corr+DSG76
+corr(alloσ)99
+corr(N25)38

The most operationally relevant test is direct observation-to-forecast: given sparse observations at the initial time, can the model produce a forecast? This sidesteps the traditional analysis step entirely, generating an ensemble of possible atmospheric states consistent with the observations, then evolving them (implicitly, through the prior's learned dynamics) forward in time.

The researchers compare against GraphDOP, a state-of-the-art observation-to-forecast model. The competition is stiff—GraphDOP was specifically designed for this task and uses graph neural networks to handle unstructured observation locations. Yet the flow-matching prior achieves competitive performance, particularly at medium-range lead times (beyond five days), where the prior's learned dynamics becomes the dominant constraint.

The researchers also examine a specific case study: Hurricane Laura, which made landfall in August 2020 as a Category 4 storm, causing catastrophic damage in Louisiana. For this event, they generate an eight-member ensemble of possible atmospheric trajectories, each consistent with the available observations but differing in the details not constrained by data. The ensemble captures the hurricane's structure and evolution, with the spread in the ensemble reflecting the genuine uncertainty in the forecast.

Data Compression: ERA5 to Latent Video Representation

Data compression ratios and tensor sizes for the latent video representation of the atmosphere.

Data Compression: ERA5 to Latent Video Representation
LabelValue
8 days69
32 timesteps (6-hourly)32
128×256 grid32,768
4× spatial compression4
4× temporal compression4
Latent: 128×8×32×642,097,152

Why This Changes Things

The implications of this work extend in several directions, each representing a potential shift in how atmospheric science approaches its foundational challenge.

The most immediate implication is computational. Traditional data assimilation requires repeatedly evaluating numerical weather models—physics simulators that solve differential equations governing fluid flow, thermodynamics, and radiation. These evaluations are expensive, and the assimilation process typically requires dozens to hundreds of them per analysis cycle. The flow-matching prior, once trained, requires only a fixed number of neural network evaluations (the researchers use between 38 and 99, depending on configuration) to generate posterior samples. No iterative physics simulation. No convergence checks. The prior's learned dynamics serve as a substitute for the numerical model.

This is not to say the approach is cheap—training the prior itself is computationally intensive—but training is done once, offline, and the resulting model can be queried rapidly for any observation set. For applications requiring rapid updates (nowcasting, emergency response), this could be transformative.

The unified nature of the framework is equally significant. Classical data assimilation systems are modular pipelines: observations are quality-controlled, assimilated into an analysis, the analysis is used to initialize a forecast model, the forecast is verified, and the cycle repeats. Different components use different algorithms, different assumptions, different software frameworks. The flow-matching prior offers a single model that can perform reconstruction, filtering, smoothing, and forecasting—the full spectrum of data assimilation tasks—by simply changing which data are provided as observations.

This unification is not just a software engineering convenience; it reflects something deeper about atmospheric dynamics. The reason the same prior can handle filtering and smoothing is that the physics doesn't care whether we're looking forward or backward in time. The same equations govern atmospheric evolution in both directions (modulo the arrow of entropy). By learning these equations implicitly, rather than specifying them explicitly as differential equations, the prior gains flexibility: it can propagate information in any temporal direction, constrained only by consistency with observations.

The probabilistic nature of the output addresses a persistent challenge in operational meteorology: communicating uncertainty. Traditional forecast systems produce a single "best guess" trajectory, and uncertainty is communicated through separate products (probability of precipitation, risk categories, confidence intervals on temperature). Ensemble forecasts—running multiple slightly different analyses through the forecast model—provide uncertainty information, but generating large ensembles is expensive. The flow-matching posterior naturally produces ensembles: run the sampler with different random seeds, and you get different plausible atmospheric states consistent with the data. The spread of these states is a direct measure of uncertainty, rooted in the same physical constraints that produced the forecast.

For the weather enterprise, this could reshape how forecasts are generated and communicated. Instead of a single deterministic forecast with attached uncertainty products, a single model run could produce a full ensemble with natural uncertainty quantification, at a fraction of the computational cost of traditional approaches.

The approach also opens new possibilities for data fusion. Modern meteorology draws on an ever-wider range of observations: traditional surface stations and radiosondes, satellite radiances and retrievals, aircraft reports, ship observations, GNSS occultations. Each has different strengths and weaknesses—different spatial coverage, different temporal resolution, different error characteristics. Assimilating all of these together is a solved problem in principle but computationally demanding in practice. The flow-matching framework handles arbitrary observation types through the measurement operator: a function that maps from the atmospheric state to the expected observation. As long as this operator is differentiable (which the researchers demonstrate for various observation types), the posterior sampler can combine them seamlessly.

The real-observation experiments are crucial here. Many previous attempts at AI-driven weather prediction have been evaluated only on synthetic data derived from the same reanalysis used to train the model. This tests whether the model has learned the reanalysis statistics but not whether it can handle real instrument data. By demonstrating successful assimilation of radiosonde and surface observations from NOAA databases—real instruments, real data, real gaps and biases—Chakraborty and Maulik show their approach can generalize beyond the training distribution.

What's Next

Several threads of future work emerge from this foundation, each representing both scientific opportunity and practical challenge.

The most obvious gap is end-to-end comparison with operational assimilation systems. The researchers are careful to scope their claims: they demonstrate that their approach works on the ERA5 dataset, that it can assimilate real observations, that it produces forecasts competitive with other AI methods. But they don't claim their analyses are as accurate as those produced by operational centers like ECMWF or NOAA's Global Forecast System. Such comparisons are computationally and logistically demanding—they require running the operational system on the same cases, using the same observations—and the researchers correctly note they are beyond their current scope. Future work should address this gap.

The Hurricane Laura case study points toward another limitation: the current approach generates eight-day trajectories, but operational forecasts extend to weeks and seasons. Extending the temporal horizon—whether through iterative application of the prior or through architectural modifications—is an open problem. The atmospheric dynamics that govern day-to-day weather become less constraining at longer lead times, and the balance between learned dynamics and data constraints shifts.

The training data also deserves attention. ERA5 is a reanalysis product—itself an output of data assimilation—and it inherits the assumptions and biases of the numerical weather model used to produce it. Training the prior on ERA5 means the prior learns to generate ERA5-like atmospheres. If real atmospheric dynamics deviate from ERA5 (for example, in extreme events that are underrepresented in the reanalysis), the prior may be systematically biased. Alternative training datasets—or methods to adapt the prior to real-time observations—could address this.

The sampler design space explored in the paper reveals both the flexibility and the complexity of the posterior sampling approach. Twelve different configurations are tested, with varying numbers of steps, corrector usage, momentum settings, and gradient normalization. The best configuration depends on the task, the observation density, and the desired trade-off between accuracy and computational cost. This flexibility is powerful but also creates a high-dimensional optimization problem: choosing the right sampler for a new application is not straightforward. Automated methods for sampler selection, or theoretical guidance for configuration, would lower the barrier to adoption.

A deeper question concerns what the prior has actually learned. Flow-matching trains the model to generate samples from the ERA5 distribution, but the internal representations remain opaque. Does the model learn physically meaningful features— jet streams, frontal boundaries, convective systems—or does it learn statistical correlations without structural understanding? The spectral analysis suggests it has learned the correct statistical structure across scales, but whether this reflects genuine physical understanding or sophisticated pattern matching remains unclear.

From a practical standpoint, operational deployment would require addressing issues the paper doesn't explore: software infrastructure, computational resources, integration with existing forecast systems, validation procedures, and user trust. Weather agencies have decades of experience with physical models and clear understanding of their failure modes. Machine learning models fail differently—sometimes spectacularly, in ways that are hard to predict or detect. Building trust in AI-driven weather prediction will require not just accuracy metrics but interpretability, robustness testing, and human oversight.

Despite these open questions, the work represents a significant step forward. Data assimilation is the invisible foundation of modern weather prediction, the process that turns incomplete observations into the initial conditions for forecasts. Improving data assimilation has historically required either better observations, better models, or better algorithms—each a major research program in itself. Chakraborty and Maulik suggest a fourth path: better representations. By learning a generative prior that captures the full spatiotemporal structure of atmospheric dynamics, they sidestep some of the most expensive aspects of traditional approaches while achieving competitive performance.

The atmosphere doesn't reveal itself in clean data streams. It hides behind clouds, escapes the reach of instruments, and confounds prediction in ways we still don't fully understand. The gap between what we observe and what we need to know will never fully close. But every tool that narrows that gap—every better way of combining sparse data with learned physics—brings us closer to the forecasts we need to navigate an uncertain world.

Because the prior generates a continuous trajectory, it naturally propagates information between observed and unobserved frames. Therefore, we can perform various DA tasks, such as filtering and smoothing, simply by changing the observed frames.

Comments (0)

No comments yet. Be the first to share your thoughts.