Nancy Kolaski

Home Next Project

ClimateWins Weather Predictions & Climate Change - Machine Learning

ML pic

Logo

Introduction:

ClimateWins is a fictional European nonprofit organization, that is interested in using machine learning to help predict the consequences of climate change around Europe and, potentially, the world. It’s concerned with extreme weather events, especially in the past 10-20 years. Through use of machine learning, it wants to see if weather conditions can be predicted by looking historically at the temperature highs and lows, and if exploring whether conditions can be predicted to the specification of a given day to prevent weather disasters.

This was an CareerFoundry assignment with the project brief outline included here for part 1 and here for part 2.

Objective:

Hypotheses:

1) ClimateWins can help predict climate change around Europe (and potentially, around the world). 2) The weather from ClimateWins locations are located at the top of a mountain and considered mostly ‘unpleasant’ conditions, and will therefore continue to be unpleasant in the future. 3) The weather climate across Europe will gradually increase over time. 4) Supervised & Unsupervised Learning Algorithms are optimal tools in predictive analysis needed for weather forecasting.

The data utilized for this analysis was real world weather data collected between 1800s to 2022 by ‘European Climate Assessment and Data Set Project’, consisting of temperature, wind speed, snow, and global radiation from 18 different weather stations, found at https://www.ecad.eu/.

Tools:

ML pic

Machine Learning Algorithms (supervised and unsupervised):


Insights:

What is optimization & what did it reveal about temperatures over the past 60 years?

Three iterations performed, adjusting step lengths (alpha) in order to get a result as near to 0 as possible.

ML pic

We want to know, is climate increasing?

The chart below shows data over a 60 year span of temperatures in Madrid, Valencia, and Belgrade in the years 1980, 2000, 2018.

weather station comparisons

Let’s take a close look below at Belgrade: 3 iterations performed showing loss of function and loss profile:

Belgrade loss of function

Supervised Machine Learning Algorithms:

KNN (K-Nearest Neighbor) ______________________

weather station comparisons

weather station comparisons

ANN (Artificial Neural Network) ____________________

ANN pic

ANN Example

Decision Tree __________________________

Decision Tree Pic

Decision Tree Example

Unsupervised Machine Learning Algorithms (Deep Learning):

Random Forest __________________________

Random Forest Pic

Dendrogram Single (Madrid & Belgrade 2010) Pic

CNN (Convolutional Neural Network) & RNN (Recurrent Neural Network) _________

CNN & RNN Pic

This CNN Model Confusion Matrix below shows 4 weather classes: 0) cloudy 1) rain 2) sunshine 3) sunrise

Random Forest Pic

GANs(Generative Adversarial Network) ____________________

GAN Pic

Feature bar chart
Feature bar chart (madrid)

SO, we are now looking specifically at Madrid, Ljubljana, & Munchenb (top 3 stations from top bar chart) & focusing on the specific features identified from the bottom chart: maximum temperatures, mean temperatures, and global radiation.

I ran through the GAN and got an image result of the weather prediction. Below is an example of this incorrect weather prediction: incorrect prediction Feature bar chart


Major Insights:

Recommendations:


Back to Top Home Next Project