Comparative Analysis of Hyperparameter Optimization Methods for LSTM in Cryptocurrency Price Prediction: An Application to TRX–USD

Authors

  • Dasril Aldo Informatics Engineering Study Program, Telkom University, Purwokerto 53147, Jawa Tengah, Indonesia
  • Muhammad Raafi'u Firmansyah Informatics Engineering Study Program, Telkom University, Purwokerto 53147, Jawa Tengah, Indonesia
  • Muhammad Afrizal Amrustian Department of Information and Computer Science, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia

DOI:

https://doi.org/10.52436/1.jutif.2026.7.3.5355

Keywords:

Cryptocurrency Prediction, TRX/USD, Long Short-Term Memory (LSTM), Hyperparameter Optimization, Genetic Algorithm (GA)

Abstract

The rapid growth of cryptocurrencies increases the demand for accurate forecasting models to support investment decisions and automated trading systems. This study analyzes and compares the performance of several hyperparameter optimization methods applied to a Long Short-Term Memory (LSTM) model for predicting the price of TRX–USD. The dataset consists of 2,096 daily historical records obtained from the Binance platform, including open, high, low, close, volume, and percentage change, with the closing price selected as the forecasting target. A baseline LSTM model was evaluated against six optimization techniques: Grid Search, Random Search, Bayesian Optimization (Hyperopt), Optuna, Particle Swarm Optimization (PSO), and Genetic Algorithm (GA). Experimental results show that GA provides the best performance with an R² score of 0.88, MAE of 0.0123, RMSE of 0.0189, and a validation loss of 0.069. In contrast, Random Search yields the lowest performance, achieving an R² of only 0.2979. These findings highlight significant performance gaps among optimization strategies and demonstrate the superiority of metaheuristic-based approaches over conventional tuning methods. This research contributes to the advancement of computational intelligence by providing empirical evidence on the effectiveness of hyperparameter optimization techniques for deep learning–based time series forecasting, particularly in high-volatility financial environments. 

Downloads

Download data is not yet available.

References

D. L. John, S. Binnewies, and B. Stantic, “Cryptocurrency Price Prediction Algorithms: A Survey and Future Directions,” Forecasting, 2024, doi: 10.3390/forecast6030034.

R. Abraham, “A Formulation of Investor Sentiment of Cryptocurrencies and Cryptocurrency Futures and Options,” Theoretical Economics Letters, 2024, doi: 10.4236/tel.2024.142032.

M. G. Ghouri and M. Ashraf, “The Prediction of Cryptocurrency Prices Using Neural Architectures and Sentiment Analysis,” VFAST Transactions on Software Engineering, 2022, doi: 10.21015/vtse.v10i4.1155.

J. M. Low, Z. J. Tan, T. Y. Tang, and N. M. Salleh, “Deep Learning and Sentiment Analysis-Based Cryptocurrency Price Prediction,” pp. 40–51, 2023, doi: 10.1007/978-981-99-7339-2_4.

I. G. Kabo, G. N. Obunadike, and N. A. Samaila, “Sentiment-Driven and Economic Indicators for Bitcoin Price Forecasting: A Hybrid Time Series Model,” Journal of Science Research and Reviews, 2025, doi: 10.70882/josrar.2025.v2i1.34.

C.-C. Hsu, P.-H. Lu, J.-S. Chu, and Y.-N. Chang, “Sentiment-Driven LSTM Analysis of Bitcoin Price: Uncovering Insights from Tweets and Macroeconomics Data,” 2024 IEEE 48th Annual Computers, Software, and Applications Conference (COMPSAC), pp. 285–290, 2024, doi: 10.1109/COMPSAC61105.2024.00047.

D. R. Sanjaya, B. Surarso, and T. Tarno, “Stock Price Forecasting on Time Series Data Using the Long Short-Term Memory (LSTM) Model,” International Journal of Current Science Research and Review, 2024, doi: 10.47191/ijcsrr/v7-i12-26.

D. David, W. Praveenraj, M. Pandey, and M. Victor, “Time Series Forecasting of Stock Market Volatility Using LSTM Networks,” 2023 4th International Conference on Computation, Automation and Knowledge Management (ICCAKM), pp. 1–8, 2023, doi: 10.1109/ICCAKM58659.2023.10449596.

Z. Xu, X. Zhang, and Z. Zhou, “Cryptocurrency Portfolio Optimisation Based on LSTM Time Series Forecasting,” Applied and Computational Engineering, 2025, doi: 10.54254/2755-2721/2025.22255.

N. Shakhovska, V. Shymanskyi, and M. Prymachenko, “FractalNet-LSTM Model for Time Series Forecasting,” Computers, Materials & Continua, 2025, doi: 10.32604/cmc.2025.062675.

T. Hao, G. Song, and H. Du, “APSO-TA-LSTM: a long and short term memory model combining time attention and adaptive particle swarm optimization for stock forecasting,” International Journal of General Systems, vol. 52, pp. 876–893, 2023, doi: 10.1080/03081079.2023.2222888.

K. Gajamannage, Y. Park, and D. Jayathilake, “Real-time forecasting of time series in financial markets using sequentially trained dual-LSTMs,” Expert Syst. Appl., vol. 223, 2023, doi: 10.1016/j.eswa.2023.119879.

P. H. Vuong, T. T. Dat, T. K. Mai, P. H. Uyen, and P. Bao, “Stock-Price Forecasting Based on XGBoost and LSTM,” Comput. Syst. Sci. Eng., vol. 40, pp. 237–246, 2022, doi: 10.32604/csse.2022.017685.

N. Hafidi, Z. Khoudi, M. Nachaoui, and S. Lyaqini, “Cryptocurrency Price Prediction with Genetic Algorithm-based Hyperparameter Optimization,” Statistics, Optimization & Information Computing, 2025, doi: 10.19139/soic-2310-5070-2035.

J.-H. Kim and H. Sung, “Understanding Bitcoin Price Prediction Trends under Various Hyperparameter Configurations,” Comput., vol. 11, 2022, doi: 10.3390/computers11110167.

I. sibel Kervanci and F. Akay, “LSTM Hyperparameters optimization with Hparam parameters for Bitcoin Price Prediction,” Sakarya University Journal of Computer and Information Sciences, vol. 6, no. 1, pp. 1–9, Apr. 2023, doi: 10.35377/saucis...1172027.

H. Shamshad, F. Ullah, S. A. A. Shah, M. Faheem, and B. Shamshad, “OPTICALS: A Novel Framework for Optimizing Predictive Trading Indicators in Cryptocurrency Using Advanced Learning Simulations,” IEEE Access, vol. 13, pp. 61078–61090, 2025, doi: 10.1109/ACCESS.2025.3556881.

Y. Rimal, N. Sharma, and A. Alsadoon, “The accuracy of machine learning models relies on hyperparameter tuning: student result classification using random forest, randomized search, grid search, bayesian, genetic, and optuna algorithms,” Multim. Tools Appl., vol. 83, pp. 74349–74364, 2024, doi: 10.1007/s11042-024-18426-2.

R. Muzayanah, D. A. A. Pertiwi, M. Ali, and M. A. Muslim, “Comparison of gridsearchcv and bayesian hyperparameter optimization in random forest algorithm for diabetes prediction,” Journal of Soft Computing Exploration, 2024, doi: 10.52465/joscex.v5i1.308.

A. A. S. Hameed and C. Ravi, “Bitcoin price prediction using optimized multiplicative long short term memory with attention mechanism using modified cuckoo search optimization,” Concurrency and Computation: Practice and Experience, vol. 34, 2022, doi: 10.1002/cpe.7384.

D. Tiwari, B. Bhati, B. Nagpal, A. Al-Rasheed, M. Getahun, and B. O. Soufiene, “A swarm-optimization based fusion model of sentiment analysis for cryptocurrency price prediction,” Scientific Reports, vol. 15, 2025, doi: 10.1038/s41598-025-92563-y.

P. Pravin, J. Zhi, M. Tan, and Z. Wu, “Performance evaluation of various hyperparameter tuning strategies for forecasting uncertain parameters used in solving stochastic optimization problems,” 2022 IEEE International Symposium on Advanced Control of Industrial Processes (AdCONIP), pp. 301–306, 2022, doi: 10.1109/AdCONIP55568.2022.9894224.

I. Kervanci, M. Akay, and E. Özceylan, “Bitcoin price prediction using LSTM, GRU and hybrid LSTM-GRU with bayesian optimization, random search, and grid search for the next days,” Journal of Industrial and Management Optimization, 2023, doi: 10.3934/jimo.2023091.

K. G. Kumar, T. S. Kumar, B. M. Reddy, A. C. Sai, and S. R. N. Reddy, “Bitcoin Price Trends: A Neural Network Approach with RNN & LSTM,” 2025 International Conference on Intelligent Computing and Control Systems (ICICCS), pp. 1207–1213, 2025, doi: 10.1109/ICICCS65191.2025.10984756.

B. Yildirim and M. Taskiran, “Optuna Based Optimized Transformer Model Approach in Bitcoin Time Series Analysis,” 2024 26th International Conference on Digital Signal Processing and its Applications (DSPA), pp. 1–6, 2024, doi: 10.1109/DSPA60853.2024.10510091.

D. S. N. Ulum and A. S. Girsang, “Hyperparameter Optimization of Long-Short Term Memory using Symbiotic Organism Search for Stock Prediction,” International Journal of Innovative Research and Scientific Studies, 2022, doi: 10.53894/ijirss.v5i2.415.

I. A. Ibrahim, “Improved Grid Search Algorithm for Optimal LSTM Performance: A Case Study on Australian Electricity Price Forecasting,” 2024 IEEE Power & Energy Society General Meeting (PESGM), pp. 1–5, 2024, doi: 10.1109/PESGM51994.2024.10688849.

S. Syed, A. Iqbal, W. Mehmood, Z. Syed, M. Khan, and G. Pau, “Split-Second Cryptocurrency Forecast Using Prognostic Deep Learning Algorithms: Data Curation by Deephaven,” IEEE Access, vol. 11, pp. 128644–128654, 2023, doi: 10.1109/ACCESS.2023.3331652.

N. Ibrahim, N. Ahmad, N. Amalina Mat Jan, Z. Zainudin, N. Syafidah Jamil, and A. Azlan, “Comparative Analysis of ARIMA and LSTM Approaches for Monthly River Flow Forecasting in Terengganu,” in 2024 5th International Conference on Artificial Intelligence and Data Sciences (AiDAS), Bangkok, Thailand: IEEE, Sept. 2024, pp. 1–6. doi: 10.1109/AiDAS63860.2024.10730554.

N. S. Wen and L. S. Ling, “Evaluation of Cryptocurrency Price Prediction Using LSTM and CNNs Models,” JOIV : International Journal on Informatics Visualization, 2023, doi: 10.30630/joiv.7.3-2.2344.

H. Harbaoui and E. A. Elhadjamor, “Enhancing Stock Price Prediction: LSTM-RNN Fusion Model,” pp. 920–929, 2024, doi: 10.1016/j.procs.2024.09.511.

D. S. N. Ulum and A. S. Girsang, “Hyperparameter Optimization of Long-Short Term Memory using Symbiotic Organism Search for Stock Prediction,” ijirss, vol. 5, no. 2, pp. 121–133, Apr. 2022, doi: 10.53894/ijirss.v5i2.415.

B. Yildirim and M. Taskiran, “Optuna Based Optimized Transformer Model Approach in Bitcoin Time Series Analysis,” in 2024 26th International Conference on Digital Signal Processing and its Applications (DSPA), Moscow, Russian Federation: IEEE, Mar. 2024, pp. 1–6. doi: 10.1109/DSPA60853.2024.10510091.

Additional Files

Published

2026-06-15

How to Cite

[1]
D. . Aldo, M. R. . Firmansyah, and M. A. . Amrustian, “Comparative Analysis of Hyperparameter Optimization Methods for LSTM in Cryptocurrency Price Prediction: An Application to TRX–USD”, J. Tek. Inform. (JUTIF), vol. 7, no. 3, pp. 2340–2349, Jun. 2026.