A deep mixture density network for outlier-corrected interpolation of crowd-sourced weather data

Charlie Kirkwood, Theo Economou, Henry Odbert, Nicolas PugeaultarXiv 2022

TL;DR

This paper introduces a novel Bayesian deep learning approach that simultaneously interpolates weather data and identifies/corrects outliers from crowd-sourced sensors. By using a mixture density network, it effectively filters noisy data, leading to more accurate and reliable spatio-temporal weather predictions, crucial for leveraging the growing volume of IoT sensor data.

What Problem Does This Paper Address?

The proliferation of low-cost sensors, often part of the "Internet of Things" (IoT), has led to an explosion of environmental data. While this offers unprecedented opportunities for detailed environmental modeling, it also introduces significant data quality challenges. Many of these crowd-sourced sensors lack official maintenance, making them prone to generating erroneous or outlier data. Traditional methods for handling such data often involve manual checks or separate rule-based filtering, which become unscalable with the sheer volume of data. This paper tackles the problem of reliably interpolating spatio-temporal environmental data (specifically surface air temperature) while automatically detecting and mitigating the impact of these unreliable sensor readings, ensuring that the resulting models are not contaminated by spurious observations.

Methods

The core of the proposed solution is a Bayesian deep neural network that employs a Gaussian-Uniform mixture density network. This architecture is designed with two distinct branches:

  1. Signal Network: This branch learns the parameters (mean and variance) of the "true" signal distribution, which is modeled as a Gaussian. It takes spatial (easting, northing, elevation) and temporal information as input. Convolutional layers are used to extract terrain features from elevation data, enabling terrain-aware interpolation.
  2. Outlier Network: This branch learns the probability that an observation is an outlier. It uses a Uniform distribution to model these outliers, which acts as a "catch-all" for spurious data. This network takes site ID (one-hot encoded) and time as input.

The key innovation is that outlier detection and signal modeling are unified within a single probabilistic model. The network learns to assign a probability to each data point being an outlier. During prediction, the model can then choose to exclusively use the Gaussian (signal) component, effectively providing "outlier-corrected" predictions. The Bayesian aspect allows for the quantification of both aleatoric (inherent data noise) and epistemic (model uncertainty) uncertainties. Monte Carlo Dropout is used as a practical approximation for Bayesian inference.

Datasets

The primary dataset used is from the Met Office's Weather Observation Website (WOW). This dataset comprises surface air temperature observations from approximately 1893 privately run, unofficial weather stations across the British Isles. The study utilizes a continuous 14-day window of data from October 26, 2020, to November 9, 2020.

Additionally, gridded UK elevation data from NASA's Surface Radar Topography Mission (SRTM) is used as auxiliary information. This elevation data is rasterized and used to inform the convolutional layers of the neural network, helping it learn relationships between terrain features and temperature.

Key Insights and Ideas

  • Unified Outlier Detection and Interpolation: The most significant insight is the successful integration of outlier detection directly into the spatio-temporal interpolation model. This avoids the need for separate, potentially brittle, pre-processing steps.
  • Mixture Density for Robustness: The Gaussian-Uniform mixture model elegantly captures the dual nature of the data: a clean signal and a broad distribution of potential outliers. This probabilistic framing allows the model to learn which data points are likely erroneous.
  • Terrain-Aware Interpolation: By using convolutional layers on elevation data, the model learns to incorporate local terrain context (e.g., slopes, valleys) into its temperature predictions, leading to more spatially detailed and accurate interpolations.
  • Quantifiable Uncertainty: The Bayesian framework provides not just point predictions but also well-calibrated estimates of both data noise (aleatoric) and model uncertainty (epistemic), which are crucial for decision-making.
  • Scalability for IoT Data: The approach is designed to handle the increasing volume and density of crowd-sourced data, making it a promising tool for leveraging IoT sensor networks in environmental science.

Key Results

  • Deterministic Performance: The model achieved an R² of 0.90 and an RMSE of 1.15°C on held-out test data, indicating strong predictive accuracy for surface air temperature.
  • Probabilistic Performance: The model demonstrated good probabilistic calibration, with a Continuous Ranked Probability Score (CRPS) of 0.6 and 92.7% of test observations falling within the 95% prediction interval.
  • Qualitative Validation: Visual inspection of predicted maps showed detailed spatio-temporal fields that were free from outlier-induced anomalies, suggesting the outlier filtering was effective.
  • Computational Efficiency: The approach is presented as potentially more computationally cheaper than traditional numerical hindcasting methods.

Limitations and Future Work

  • Under-dispersion in Tails: The authors note a slight under-dispersion in the tails of the predictive distribution, potentially attributable to limitations of using Monte Carlo Dropout for approximate Bayesian inference. This means the model might underestimate extreme variations compared to full Bayesian methods.
  • Future Work: The paper suggests that the model's capabilities could be extended to other environmental variables beyond surface air temperature. Further research into more sophisticated Bayesian inference techniques for deep neural networks is also implied. The authors also highlight the potential for this approach to satisfy the ideals of "models of everywhere" by providing hyper-local predictions.

Summary updated

Abstract

As the costs of sensors and associated IT infrastructure decreases - as exemplified by the Internet of Things - increasing volumes of observational data are becoming available for use by environmental scientists. However, as the number of available observation sites increases, so too does the opportunity for data quality issues to emerge, particularly given that many of these sensors do not have the benefit of official maintenance teams. To realise the value of crowd sourced 'Internet of Things' type observations for environmental modelling, we require approaches that can automate the detection of outliers during the data modelling process so that they do not contaminate the true distribution of the phenomena of interest. To this end, here we present a Bayesian deep learning approach for spatio-temporal modelling of environmental variables with automatic outlier detection. Our approach implements a Gaussian-uniform mixture density network whose dual purposes - modelling the phenomenon of interest, and learning to classify and ignore outliers - are achieved simultaneously, each by specifically designed branches of our neural network. For our example application, we use the Met Office's Weather Observation Website data, an archive of observations from around 1900 privately run and unofficial weather stations across the British Isles. Using data on surface air temperature, we demonstrate how our deep mixture model approach enables the modelling of a highly skilled spatio-temporal temperature distribution without contamination from spurious observations. We hope that adoption of our approach will help unlock the potential of incorporating a wider range of observation sources, including from crowd sourcing, into future environmental models.
BibTeX
@misc{kirkwood2022deep,
  author = {Charlie Kirkwood and Theo Economou and Henry Odbert and Nicolas Pugeault},
  title = {{A deep mixture density network for outlier-corrected interpolation of crowd-sourced weather data}},
  year = {2022},
  eprint = {2201.10544},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.10544},
}
Figure