JUITA : Jurnal Informatika
JUITA Vol. 14 Issue 3, November 2026

Performance Comparison of LSTM and NHITS for Forecasting the Indonesian Rupiah–US Dollar Exchange Rate

Deswita Nur Alpharofi (IPB University)
Akbar Rizki (IPB University)
La Ode Abdul Rahman (IPB University)



Article Info

Publish Date
09 Nov 2026

Abstract

The exchange rate of the rupiah against the US dollar plays a crucial role in Indonesia’s economy. Exchange rates fluctuate nonlinearly according to market prices, creating challenges for accurate forecasting. Various machine learning methods address these challenges, including Long Short-Term Memory (LSTM) and Neural Hierarchical Interpolation Time Series (NHITS). Therefore, this study compared the performance of LSTM and NHITS models in forecasting the exchange rate of the rupiah against the US dollar. Daily data from January 2, 2017, to January 30, 2026, from Yahoo Finance were used. The analysis included data exploration, preprocessing, LSTM modelling, NHITS modelling, performance comparison, and forecasting. The results indicated that NHITS produced slightly better forecasting results than LSTM under the evaluation setting used in this study, with Mean Absolute Percentage Error (MAPE), Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and Pearson correlation values of 1.12%, 87.39, 233.11, and 0.85, respectively, along with shorter computation time. Meanwhile, LSTM produced MAPE, MAE, RMSE, and Pearson correlation values of 1.24%, 211.38, 238.93, and 0.80, respectively. The forecasts showed that the NHITS model better captured actual data changes, while the LSTM model produced smoother patterns with smaller fluctuations than those observed in actual data.

Copyrights © 2026






Journal Info

Abbrev

JUITA

Publisher

Subject

Computer Science & IT

Description

UITA: Jurnal Informatika is a science journal and informatics field application that presents articles on thoughts and research of the latest developments. JUITA is a journal peer reviewed and open access. JUITA is published by the Informatics Engineering Study Program, Universitas Muhammadiyah ...