Domain Generalization Strategy to Train Classifiers Robust to Spatial-Temporal Shift

Minseok Seo, Doyi Kim, Seungheon Shin, Eunbin Kim, Sewoong Ahn, Yeji ChoiarXiv 2022 · DOI

TL;DR

This paper tackles the challenge of making deep learning weather prediction models robust to spatial-temporal shifts, a major hurdle for real-world deployment. They propose a novel training strategy combining carefully selected geometric augmentations, a geometric augmentation ensemble, and a spatial-temporal smooth loss, achieving state-of-the-art performance on the W4C'22 Transfer dataset.

What Problem Does This Paper Address?

Deep learning models have shown immense promise in weather forecasting, often outperforming traditional Numerical Weather Prediction (NWP) models in terms of computational cost and speed. However, a critical limitation is their vulnerability to "spatial-temporal shifts." This means that models trained on data from one region or time period often perform poorly when applied to new, unseen regions or different timeframes. This is particularly problematic for weather forecasting, where meteorological phenomena are inherently dynamic and geographically diverse. Existing models tend to overfit to local patterns and seasonality, making them brittle when faced with data distributions that differ from their training set. The W4C'22 Transfer dataset was specifically designed to highlight this challenge, featuring training and testing sets from distinct geographical regions.

Methods

The authors propose a three-pronged approach to enhance the domain generalization capabilities of weather forecasting models:

  • Augmentation Policy for Weather Forecasting: They analyze existing augmentation techniques and identify that many common computer vision augmentations (like random color jittering) are not suitable for weather data, which relies on physical values. Instead, they propose a specific policy for geometric augmentation, focusing on transformations (rotations and flips) that maintain at least one direction of movement consistent with the original image's optical flow. This is based on the observation that real-world weather patterns rarely exhibit completely opposite movement directions across consecutive frames within a region.
  • Geometric Augmentation Ensemble: To further combat overfitting to regional characteristics, they introduce a geometric augmentation ensemble. This method effectively creates an ensemble of models by applying various geometric augmentations (including no augmentation) to the input data and averaging their predictions. This technique aims to achieve the benefits of ensemble methods with a single model.
  • Spatial-Temporal Smooth Loss: Recognizing that standard cross-entropy loss functions don't explicitly account for spatial and temporal dependencies, they propose a novel loss function. This "spatial-temporal smooth loss" encourages the model to produce predictions that are consistent both spatially (neighboring pixels should have similar predictions) and temporally (predictions at consecutive time steps should be smooth). This is achieved by adding terms that penalize large differences in predictions across space and time.

Datasets

The primary dataset used in this research is the W4C'22 Transfer dataset. This dataset consists of satellite and radar ground truth data collected from 7 regions in Europe across 2019 and 2020. Crucially, the training dataset includes regions R15, R34, R76, R04, R05, R06, and R07, while the test dataset comprises regions R08, R09, and R10, which are not present in the training set. This setup is designed to specifically evaluate the model's ability to generalize to unseen geographical locations (spatial shift) and potentially different time periods (temporal shift).

Key Insights and Ideas

  • Weather data augmentation needs to be physically grounded: Unlike general image recognition, photometric augmentations are not directly applicable to weather data. Geometric augmentations must be carefully chosen to reflect realistic physical movement patterns.
  • Ensembling can be achieved with a single model: The geometric augmentation ensemble provides a computationally efficient way to leverage the benefits of ensemble methods for improved robustness.
  • Explicitly enforcing spatio-temporal consistency is crucial: Standard loss functions overlook the inherent continuity of weather phenomena, leading to brittle predictions. The proposed smooth loss directly addresses this gap.
  • Regionality matters: The research highlights that different regions exhibit distinct weather patterns, and models need to be robust to these variations. The proposed methods aim to mitigate overfitting to specific regional characteristics.

Key Results

The paper reports achieving 1st place performance on the W4C'22 Transfer dataset. Specifically, their proposed method, which combines all three strategies (augmentation policy, geometric augmentation ensemble, and spatial-temporal smooth loss), achieved the highest mean Intersection over Union (mIoU) score. For instance, the SIANet model, when augmented with these techniques, achieved a top performance of 27.1 mIoU on the leaderboard. Ablation studies (Table 2) demonstrate that each component (STL, AP, GAE) contributes positively to performance, with a complementary relationship between them.

Limitations and Future Work

The authors acknowledge that in the 2020 dataset, their proposed method showed a lower performance improvement compared to the baseline. They empirically found that training loss varies by year and region, suggesting that more sophisticated loss regularization methods might be beneficial. They also note that the accuracy tendency of regions can vary based on the weights (α and β) assigned to the spatial and temporal smooth loss components. While they observed trade-off relationships between different region groups, they did not utilize ensemble methods during the challenge due to the domain generalization setting. For future work, they plan to study loss regularization methods and analyze spatial-temporal correlations according to regional characteristics to further improve performance. They also aim to develop models that can better predict newly generated or developing rain clouds, as observed in qualitative results where the model struggled in such scenarios.

Summary updated

BibTeX
@misc{seo2022domain,
  author = {Minseok Seo and Doyi Kim and Seungheon Shin and Eunbin Kim and Sewoong Ahn and Yeji Choi},
  title = {{Domain Generalization Strategy to Train Classifiers Robust to Spatial-Temporal Shift}},
  year = {2022},
  eprint = {2212.02968},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.02968},
}
Figure