[Paper Review] Can we integrate spatial verification methods into neural-network loss functions for atmospheric science?
This paper proposes spatially enhanced loss functions (SELFs) that integrate spatial verification methods into neural network training for atmospheric science, using neighborhood or spectral filters (Fourier/wavelet) to enhance common scores like the Brier score. Results show that models trained with spectral SELFs produce significantly better-calibrated probabilistic forecasts than pixelwise losses, especially across diverse convection scales from discrete cells to tropical cyclones.
In the last decade, much work in atmospheric science has focused on spatial verification (SV) methods for gridded prediction, which overcome serious disadvantages of pixelwise verification. However, neural networks (NN) in atmospheric science are almost always trained to optimize pixelwise loss functions, even when ultimately assessed with SV methods. This establishes a disconnect between model verification during vs. after training. To address this issue, we develop spatially enhanced loss functions (SELF) and demonstrate their use for a real-world problem: predicting the occurrence of thunderstorms (henceforth, "convection") with NNs. In each SELF we use either a neighbourhood filter, which highlights convection at scales larger than a threshold, or a spectral filter (employing Fourier or wavelet decomposition), which is more flexible and highlights convection at scales between two thresholds. We use these filters to spatially enhance common verification scores, such as the Brier score. We train each NN with a different SELF and compare their performance at many scales of convection, from discrete storm cells to tropical cyclones. Among our many findings are that (a) for a low (high) risk threshold, the ideal SELF focuses on small (large) scales; (b) models trained with a pixelwise loss function perform surprisingly well; (c) however, models trained with a spectral filter produce much better-calibrated probabilities than a pixelwise model. We provide a general guide to using SELFs, including technical challenges and the final Python code, as well as demonstrating their use for the convection problem. To our knowledge this is the most in-depth guide to SELFs in the geosciences.
Motivation & Objective
- To close the gap between training (pixelwise loss) and evaluation (spatial verification) in atmospheric neural networks.
- To develop spatially enhanced loss functions (SELFs) that incorporate spatial verification principles directly into training.
- To evaluate SELFs on real-world thunderstorm (convection) prediction across multiple spatial scales.
- To provide a practical, open-source guide for implementing SELFs in geoscience applications.
- To demonstrate that SELFs yield better-calibrated probabilistic forecasts than standard pixelwise training.
Proposed method
- Design SELFs by applying neighborhood or spectral filters (Fourier/wavelet) to spatially enhance verification scores like the Brier score.
- Use spatial filters to emphasize convection at specific scales—smaller scales via neighborhood filtering, intermediate to large scales via spectral decomposition.
- Modify standard loss functions by replacing pixelwise comparisons with spatially filtered, scale-aware verification scores.
- Train neural networks using different SELFs and compare performance across a range of convection intensity thresholds and spatial scales.
- Implement and release full Python code for SELFs, including technical considerations for numerical stability and computational efficiency.
- Validate the approach on a real-world convection prediction task using observational and reanalysis data.
Experimental results
Research questions
- RQ1Can spatial verification methods be effectively integrated into neural network loss functions for atmospheric science?
- RQ2How do different spatial filters (neighborhood vs. spectral) affect model performance across varying convection scales?
- RQ3Does training with SELFs lead to better-calibrated probabilistic forecasts compared to standard pixelwise losses?
- RQ4What is the optimal scale focus of SELFs for different risk thresholds in convection prediction?
- RQ5Can SELFs be practically implemented and generalized across geoscientific applications?
Key findings
- For low-risk thresholds, the ideal SELF focuses on small-scale convection, while high-risk thresholds favor larger-scale features.
- Models trained with pixelwise loss functions perform surprisingly well on many metrics, despite the disconnect with spatial verification.
- Spectral-filter-based SELFs produce significantly better-calibrated probabilistic forecasts than pixelwise training, especially at intermediate to large scales.
- The use of spectral filters (Fourier or wavelet) enables more flexible and scale-adaptive spatial enhancement compared to fixed neighborhood filters.
- The proposed SELF framework is generalizable and provides a practical, open-source implementation for geoscientific applications.
- SELFs improve forecast reliability across multiple spatial scales, from discrete storm cells to tropical cyclones, as measured by spatial verification scores.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.