Prediction of Temperature and Rainfall in Bangladesh using Long Short Term Memory Recurrent Neural Networks

Mohammad Mahmudur Rahman Khan, Md. Abu Bakr Siddique, Shadman Sakib, Anas Aziz, Ihtyaz Kader Tasawar, Ziad HossainarXiv 2020

TL;DR

This paper tackles the critical challenge of accurately predicting temperature and rainfall in Bangladesh, a region highly susceptible to extreme weather events. By employing a Long Short-Term Memory (LSTM) recurrent neural network on 115 years of historical data, the authors achieve promising results, demonstrating the potential of deep learning for improving weather forecasting and mitigating associated risks.

What Problem Does This Paper Address?

Bangladesh's economy and public health are significantly impacted by weather patterns. Extreme rainfall can lead to devastating floods, causing crop destruction, infrastructure damage, and the spread of water-borne diseases. Conversely, droughts and extreme temperatures can lead to crop failure and health crises. Despite the critical need for accurate weather forecasting, previous studies have often struggled with the non-linear and temporal nature of weather data. Traditional theoretical approaches are computationally intensive, while statistical methods sometimes fall short in capturing complex patterns. This paper aims to bridge this gap by leveraging the power of deep learning, specifically LSTM networks, to provide more accurate and reliable predictions of monthly temperature and rainfall.

Methods

The core of this research lies in the application of a Long Short-Term Memory (LSTM) network. LSTMs are a specialized type of Recurrent Neural Network (RNN) designed to effectively learn from sequential data and overcome the "vanishing gradient" problem that plagues standard RNNs when dealing with long-term dependencies. The authors explain that LSTMs utilize a gating mechanism (input, forget, and output gates) and a cell state to regulate the flow and storage of information over time. This allows them to capture intricate temporal patterns in the weather data.

The paper outlines a standard workflow:

  1. Data Preprocessing: Preparing the raw weather data for the LSTM model.
  2. Model Training: Feeding the historical data into the LSTM network to learn patterns.
  3. Model Testing: Evaluating the trained model's performance on unseen data.
  4. Performance Evaluation: Quantifying the accuracy of the predictions.

The specific LSTM architecture used involves a hidden layer of LSTM memory cells followed by a fully-connected layer to refine the output for prediction. The model was trained using the Adam optimizer with a learning rate of 0.001 and 100 hidden layers.

Datasets

The study utilizes a comprehensive dataset of 115 years of monthly average temperature and rainfall data for Bangladesh, spanning from January 1901 to December 2015. This data was sourced from the Kaggle public domain dataset titled "Bangladesh Weather Dataset." For training, 113 years of data (1901-2013) were used, and the remaining 2 years (2014-2015) were reserved for testing the model's forecasting capabilities.

Key Insights and Ideas

  • LSTM's Superiority for Temporal Weather Data: The paper strongly advocates for LSTMs over traditional RNNs for weather prediction due to their inherent ability to handle long-term dependencies, which are crucial for understanding seasonal weather patterns.
  • Data-Driven Forecasting as a Viable Alternative: The success of the LSTM model highlights the effectiveness of data-driven approaches in tackling complex, non-linear phenomena like weather, offering a practical alternative to computationally demanding theoretical models.
  • The Importance of Historical Data Depth: Utilizing a 115-year dataset is a significant strength, allowing the model to learn from a wide range of historical weather variations and anomalies, leading to more robust predictions.
  • Predictive Analytics for Disaster Mitigation: The research underscores how accurate weather predictions, facilitated by advanced models like LSTM, can be instrumental in implementing preventive measures against natural disasters and their associated socio-economic impacts.

Key Results

The LSTM model demonstrated impressive performance in predicting monthly temperature and rainfall:

  • Temperature Prediction: A mean error of -0.38°C was achieved, indicating high accuracy. The standard deviation of the error was also low at 0.63.
  • Rainfall Prediction: A mean error of -17.64 mm was recorded. While this might seem larger in absolute terms, it's considered low given the wide range of actual rainfall values (0.12 mm to 715.22 mm). The standard deviation of the rainfall error was 145.13 mm.
  • Convergence: The training loss for temperature prediction converged after approximately 25 epochs, while rainfall prediction loss converged after around 40 epochs.

Boxplots and line graphs in the paper visually confirm that the predicted values closely track the actual values for both temperature and rainfall in the test years (2014-2015).

Limitations and Future Work

The authors acknowledge that while their LSTM model shows significant promise, there is always room for improvement. They suggest that in the future, more advanced deep learning models could be explored to further minimize error rates and enhance computational speed. This could involve exploring different LSTM architectures, incorporating additional meteorological features, or employing ensemble methods.

Summary updated

BibTeX
@misc{khan2020prediction,
  author = {Mohammad Mahmudur Rahman Khan and Md. Abu Bakr Siddique and Shadman Sakib and Anas Aziz and Ihtyaz Kader Tasawar and Ziad Hossain},
  title = {{Prediction of Temperature and Rainfall in Bangladesh using Long Short Term Memory Recurrent Neural Networks}},
  year = {2020},
  eprint = {2010.11946},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.11946},
}
Figure