Abstract
Weather forecasting is undergoing a paradigm shift from traditional Numerical Weather Prediction (NWP) to deep learning (DL) models. However, DL models often struggle with time-discretization errors and physical inconsistencies. We introduce WeatherODE, a novel "sandwich" neural ODE framework that bridges the gap between deep learning and physical laws. By leveraging wave equation theory to estimate atmospheric velocity from dense spatial data and employing a hybrid CNN-ViT architecture, WeatherODE achieves a 40% reduction in error over state-of-the-art models while enabling flexible, continuous-time predictions.
Introduction
Modern weather forecasting faces a critical challenge: balancing the computational expense of NWP with the efficiency of DL. Current DL models encounter two major hurdles: time-discretization error and physical inconsistency. Most models are trained on fixed intervals (e.g., 6 hours), failing to capture the continuous nature of the atmosphere, which often leads to "jumpy" or inaccurate velocity estimates. Furthermore, purely data-driven models frequently ignore underlying fluid dynamics. WeatherODE addresses these issues by observing that while temporal data in datasets like ERA5 is sparse (1-hour intervals), spatial data is nearly 100 times denser. By utilizing this spatial density, WeatherODE mitigates the temporal "blurriness" inherent in current models.
Methodology
WeatherODE utilizes a physics-driven Ordinary Differential Equation (ODE) solved in a "sandwich" structure designed to maintain both local precision and global stability:
- The Velocity Model (Top Layer): Instead of calculating velocity as a simple temporal change ($\Delta u / \Delta t$), the model uses Wave Equation Theory to derive initial velocity from precise spatial gradients ($\nabla u$). This part employs a CNN for fast convergence on local features.
- The Advection ODE (Middle Layer): This core component uses a Vision Transformer (ViT) to solve the advection equation. ViTs are chosen for their ability to capture global context and their slower convergence, which prevents the ODE solver from becoming unstable during training.
- The Source Model (Bottom Layer): Weather involves energy gain and loss; this "source term" is modeled as a time-dependent process using a 3D CNN to capture evolving local energy patterns.
The model is trained using Multi-Task Learning, providing supervision at every intermediate time step to ensure continuous accuracy throughout the forecast period.
Experimental Setup
The researchers evaluated WeatherODE using the ERA5 dataset from WeatherBench at a 5.625° resolution (32 × 64 grid points). The dataset includes 48 variables, such as geopotential and temperature. Data from 1979–2015 was used for training, with 2017–2018 reserved for testing.
Results and Discussion
WeatherODE demonstrates a significant leap in performance over existing physics-informed models like ClimODE and general DL models like ClimaX. Key results include:
- Global and Regional Accuracy: Outperformed state-of-the-art approaches by over 40.0% in Root Mean Square Error (RMSE) globally and 31.8% regionally.
- Numerical Stability: Unlike previous neural ODEs that often crashed (producing "NaN" values) when time steps were too large, WeatherODE remained stable across all tested lead times.
- Continuous Inference: As an ODE-based model, it can provide predictions at any arbitrary point in time (e.g., 7.5 hours) without requiring separate models for different intervals.
Conclusion
WeatherODE provides a robust framework for continuous-time weather forecasting by grounding deep learning in physical wave theory. By prioritizing spatial derivatives over coarse temporal ones, the model achieves superior accuracy and stability. Future work will focus on scaling these physics-driven benefits to high-resolution, kilometer-scale forecasting and refining the physical assumptions for extreme localized weather events.
Summary updated