Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can...

54
Using Deep Learning for Long-Term Weather Forecasting Joshua Driscol University of Washington Karen Stengel Montana State University 06/28/2018

Transcript of Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can...

Page 1: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Using Deep Learning for Long-Term Weather Forecasting

Joshua DriscolUniversity of Washington

Karen StengelMontana State University

06/28/2018

Page 2: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Two main time scales for forecasting:

- Weather <= 10 day prediction, or

what is currently happening in the

atmosphere

- Climate is on much longer time

scales, and is how we expect the

atmosphere to behave

- Long-term weather: it would be

useful to have accurate predictions

for a sub/seasonal timescale

Page 3: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Background

Credit: Climate Prediction Center

Page 4: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Background

Hurricane Matthew, 2016:

- Over $2 billion damage

- Ended up hitting Florida

Credit: IBM Weather Company

Page 5: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Not Just Hurricanes

Credit: Environmental Modeling Center (NCEP)

Page 6: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Forecast Skill

Credit: Kirtman et al, 2011

Page 7: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Mapping Uncertainty

Credit: The Royal Society Publishing

Page 8: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Double Pendulum and Chaos

Credit: Wolfram Community

Page 9: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Why do we care about heat events?

June 2018 Average Temperature, Credit: NOAA.gov

Page 10: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Why do we care about heat events?

Credit: NOAA.govJune 2018 Temperature anomalies, Credit: NOAA.gov

Page 11: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Why do we care about heat events?

Credit: IEG Vu

Page 12: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Why do we care about heat events?

Credit: EPA.gov

Page 13: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Background

Previous work

showed correlation

between

anomalously warm

Sea Surface

Temperatures (SST)

and anomalously hot

days in the Eastern

US.Credit: McKinnon et al, 2015

Page 14: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Background

Previous work

showed correlation

between

anomalously warm

Sea Surface

Temperatures (SST)

and anomalously hot

days in the Eastern

US.Credit: McKinnon et al, 2015

Page 15: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

From Correlation to Statistical Value

Raw SST data. June 24, 2010

Page 16: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

From Correlation to Statistical Value

SST anomalies. June 24, 2010

Page 17: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

From Correlation to Statistical Value

SST anomalies. June 24, 2010

Page 18: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

From Correlation to Statistical Value

SST anomalies. June 24, 2010

Page 19: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Input and Output

Credit: McKinnon et. al 2015 [edited for clarity]

Page 20: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Why Neural Networks?

Credit: Fast.ai

Page 21: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Dense Net

● Universal Function

Approximators

● Can really (over)learn

anything with enough

layers and neurons

Credit: Adventures in Machine Learning

Credit: Wikipedia

Page 22: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Confusion matrix for Best Model

Page 23: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Confusion matrix for Best Model

Page 24: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Acknowledgements

Davide del Vento

Negin Sobhani, Dave Stepaniak, Alessandro Fanfarillo

AJ Lauer, Cecilia Banner, Elliot Foust, Jenna Preston

Molly Winslow

UCAR/NCAR

SIParCS, CISL

NOAA ESRL

NSF

Page 25: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Methods Overview

Create images of

SST in Pacific

Page 26: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Methods Overview

Train Neural Network on images on

GPU

Create images of

SST in Pacific

Page 27: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Methods Overview

Train Neural Network on images on

GPU

Create images of

SST in Pacific

Output hot/not hot

Page 28: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Why Use a GPU?Due to differences in architecture, GPUs trained the Networks faster with

more accuracy than the CPUs.

Average ROC scoreSeconds/Epoch

2.6-GHz Intel

XeonE5-2670 CPU0.44 5.48

NVIDIA K80 GPU 0.55 0.89

Average Increase 11% 615%

Page 29: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Basic steps in deep learning

● Forward propagation

○ Pass input values forward through the network

InputHidden

layer1-nOutput

Page 30: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Basic steps in deep learning

● Forward propagation

○ Pass input values forward through the network

● Backward propagation

○ Adjust weights between neurons

○ minimize loss function

InputHidden

layer1-nOutput

∆ weight ∆ weight

Page 31: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Basic steps in deep learning

● Forward propagation

○ Pass input values forward through the network

● Backward propagation

○ Adjust weights between neurons

○ minimize loss function

● Hyperparameter optimization

○ Change values such as learning rate and

momentum (used in Backward propagation)

○ Can help minimize the loss function

Credit: Nvidia

Page 32: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Loss Function

Page 33: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Loss Function

Page 34: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Convolutional network

● Image recognition

● Video Analysis

● Training AI agents to play games

● Facial recgnition

Page 35: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Convolution

Page 36: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Image Recognition Example

https://www.engadget.com/2014/09/08/google-details-object-recognition-tech/

Page 37: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Long Short Term Memory (LSTM) Network

● Time series prediction

● Speech recognition

● Rhythm learning

● Music composition

● Grammar learning

● Handwriting recognition

● Human action recognition

Page 38: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

LSTM layer

...

A0 A1 A2 At

h0 h1 h2 ht

X0 XtX1 X2

ht+2

Xt+2

At+2

Xt+1

At+1

ht+1

Page 39: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

LSTM layer

...

A0 A1 A2 At

h0 h1 h2 ht

X0 XtX1 X2

ht+2

Xt+2

At+2

Xt+1

At+1

ht+1

LSTM layers can manage long-term dependencies.

Page 40: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

LSTM layer

...

A0 A1 A2 At

h0 h1 h2 ht

X0 XtX1 X2

ht+2

Xt+2

At+2

Xt+1

At+1

ht+1

LSTM layers can manage long-term dependencies.

Page 41: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

LSTM example: Image Captioning

https://www.captionbot.ai/

Page 42: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

LSTM example: Image Captioning

https://www.captionbot.ai/

Page 43: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

LSTM example: Image Captioning

https://www.captionbot.ai/

Page 44: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Results

Page 45: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Convolutional Net ROC

Page 46: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

LSTM ROC

Page 47: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Future Work

● Recreate McKinnon’s week long prediction

● Finish optimizing networks for better ROC scores

● Additional architectures

Conclusions

● GPUs were faster at training both Networks than CPUs

● The LSTM network performed better overall than the LeNet network

● The LSTM network predicts better than random chance but is only

significantly better for the 30 day lead time

Page 48: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Acknowledgements

Davide del Vento

Negin Sobhani, Dave Stepaniak, Alessandro Fanfarillo

AJ Lauer, Cecilia Banner, Elliot Foust, Jenna Preston

UCAR/NCAR

SIParCS, CISL

NOAA ESRL

NSF

Page 49: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Papers Cited

● McKinnon et. al 2015. Long-lead predictions of eastern United States hot days from

Pacific sea surface temperatures

● Gao Huang et al. “Snapshot Ensembles: Train 1, get M for free”. In: CoRR

abs/1704.00109 (2017). arXiv: 1704.00109. URL: http://arxiv.org/abs/1704.00109.

● Wojciech et al, 2015. Interactive Systems for Designing Machine Elements and

Assemblies.

● Han et al, 2017. Pre-Trained AlexNet Architecture with Pyramid Pooling and Supervision

for High Spatial Resolution Remote Sensing Image Scene Classification

Page 50: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Questions?

Credit: IBM.com

?

Page 51: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Data Formatting

● NOAA ESRL High

Resolution SST data

● Used Unidata NetCDF

module in Python

● Makes .nc file to a

MFDataset

Page 52: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Pooling

Quick explanation

Page 53: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Development set

Page 54: Using Deep Learning for Long-Term Weather Forecasting · Universal Function Approximators Can really (over)learn anything with enough ... Methods Overview Train Neural Network on

Optimized Hyperparameters