Optimization of LSTM Model for Rainfall Prediction in Ambon City: Comparison of Mean Imputation and Interpolation in Time Series Data Prediction
Authors:
Open Access
- 8 April 2025
- journal article
- Published by Universitas Pattimura in Tensor: Pure and Applied Mathematics Journal
- Vol. 6 (1) , 49-56
Abstract
Rainfall prediction is an essential aspect of meteorology, agriculture, and disaster management, particularly in regions like Ambon, where rainfall patterns significantly impact daily life. However, one of the major challenges in developing an accurate predictive model is handling missing values in the dataset. This study aims to optimize the Long Short-Term Memory (LSTM) model for rainfall prediction in Ambon by comparing two missing value handling techniques: mean imputation and interpolation. The dataset used in this study consists of daily rainfall data from 2021 to 2024, with approximately 26.89% missing values. Two experimental scenarios were conducted: the first using mean imputation to fill in missing values with the average rainfall, and the second using linear interpolation. Both scenarios utilized the same LSTM architecture to evaluate their impact on model performance. The evaluation metrics used in this study include Root Mean Square Error (RMSE) and R-squared (R²). The results show that the interpolation-based model achieved a lower RMSE and a slightly higher R² value than the mean imputation-based model, indicating better predictive performance. However, both models struggled to capture extreme values, necessitating further improvements. To address this limitation, a more complex LSTM architecture was implemented in the subsequent experiments, incorporating additional layers and optimized hyperparameters. The findings suggest that choosing an appropriate missing value handling method significantly influences the predictive accuracy of LSTM models for rainfall forecasting. This research contributes to the development of more reliable weather prediction models, which can aid in agricultural planning, flood risk assessment, and climate change adaptation in Ambon.Keywords
This publication has 5 references indexed in Scilit:
- PENANGANAN MISSING VALUES DAN PREDIKSI DATA TIMBUNAN SAMPAH BERBASIS MACHINE LEARNINGRabit : Jurnal Teknologi dan Sistem Informasi Univrab, 2024
- Inverse Feature Learning: Feature Learning Based on Representation Learning of ErrorIEEE Access, 2020
- Characteristics of Air Pollution and Their Relationship with Meteorological Parameters: Northern Versus Southern Cities of ChinaAtmosphere, 2020
- Camera Model Identification Using Convolutional Neural Networks2018
- Comparison of Linear Interpolation Method and Mean Method to Replace the Missing Values in Environmental Data SetMaterials Science Forum, 2014