Optimising LSTM and BiLSTM Models for Time Series Forecasting Through Hyperparameter Tuning

Long Short-Term Memory (LSTM) and Bidirectional Long Short-Term Memory (BiLSTM) are the emerging Recurrent Neural Networks (RNN) widely used in time series forecasting.The performance of these neural networks relies on the selection of hyperparameters.A random selection of the hyperparameters may increase the forecasting error.Hence, this study aims to optimise the performance of LSTM and BiLSTM in time series forecasting by tuning one of the essential hyperparameters, the number of hidden neurons.LSTM and BiLSTM with 32, 64, and 128 hidden neurons and various combinations of other hyperparameters are formed in this study through grid searching.The models are evaluated and compared based on the Mean Squared Error (MSE) and Mean Absolute Error (MAE).The results from real data analysis revealed that 128 hidden neurons are the optimum choice of hidden neurons with the lowest error values.This study investigates whether BiLSTM, performs better than LSTM in forecasting.Thus, the performance of these two neural networks in forecasting time series data was compared, and the Wilcoxon-Signed Rank Test was conducted.Results revealed a significant difference in the performance of these two neural networks, and BiLSTM outperformed LSTM in forecasting time series data.Hence, BiLSTM with 128 hidden neurons is encouraged to be chosen over LSTM in time series forecasting.Since these findings have implications for future practice, the combination of model and hyperparameter should be chosen wisely to obtain more accurate predictions in time series forecasting.

Authors

Publication Details

Journal
Jurnal pengukuran kualiti dan analisis/Journal of Quality Measurement and Analysis
Published
2025-09-23
DOI
https://doi.org/10.17576/jqma.2103.2025.12
Citations
1
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
2.11

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimising LSTM and BiLSTM Models for Time Series Forecasting Through Hyperparameter Tuning

Hani Syahida Zulkafli, Nur Haizum Abd Rahman, Qiuxia Yin
1 citations
Jurnal pengukuran kualiti dan analisis/Journal of Quality Measurement and Analysis
Stock Market Forecasting Methods
2.11
article

Optimising LSTM and BiLSTM Models for Time Series Forecasting Through Hyperparameter Tuning

Hani Syahida Zulkafli, Nur Haizum Abd Rahman, Qiuxia Yin
article en
1 citations

Abstract

Long Short-Term Memory (LSTM) and Bidirectional Long Short-Term Memory (BiLSTM) are the emerging Recurrent Neural Networks (RNN) widely used in time series forecasting.The performance of these neural networks relies on the selection of hyperparameters.A random selection of the hyperparameters may increase the forecasting error.Hence, this study aims to optimise the performance of LSTM and BiLSTM in time series forecasting by tuning one of the essential hyperparameters, the number of hidden neurons.LSTM and BiLSTM with 32, 64, and 128 hidden neurons and various combinations of other hyperparameters are formed in this study through grid searching.The models are evaluated and compared based on the Mean Squared Error (MSE) and Mean Absolute Error (MAE).The results from real data analysis revealed that 128 hidden neurons are the optimum choice of hidden neurons with the lowest error values.This study investigates whether BiLSTM, performs better than LSTM in forecasting.Thus, the performance of these two neural networks in forecasting time series data was compared, and the Wilcoxon-Signed Rank Test was conducted.Results revealed a significant difference in the performance of these two neural networks, and BiLSTM outperformed LSTM in forecasting time series data.Hence, BiLSTM with 128 hidden neurons is encouraged to be chosen over LSTM in time series forecasting.Since these findings have implications for future practice, the combination of model and hyperparameter should be chosen wisely to obtain more accurate predictions in time series forecasting.

Jurnal pengukuran kualiti dan analisis/Journal of Quality Measurement and AnalysisVol. 21(3)
Universiti Malaysia Pahang
Openalex Percentile: Top 10%
Stock Market Forecasting Methods
2.11
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Optimising LSTM and BiLSTM Models for Time Series Forecasting Through Hyperparameter Tuning — Hani Syahida Zulkafli, Nur Haizum Abd Rahman, et al. · Jurnal pengukuran kualiti dan analisis/Journal of Quality Measurement and Analysis (2025) | TGRS Research Map | TGRS