Optimized Hybrid CNN-LSTM Model for Predicting Transportation Sector Stock Prices Using Optimizer and Activation Function Tuning
Abstract
Stock price prediction is inherently complex due to nonlinear dynamics and high volatility, particularly in Indonesia’s transportation sector, which experienced significant inflationary pressure and extreme instability during and after the COVID-19 pandemic. These disruptions introduced structural breaks and regime shifts, intensifying non-stationary market behavior and increasing forecasting uncertainty. Such conditions create an urgent need for robust predictive information systems capable of supporting investment decision-making and risk management in highly volatile environments. However, standalone recurrent models such as Long Short-Term Memory (LSTM) often struggle to capture local micro-patterns and long-term dependencies. Moreover, prior studies have rarely implemented systematic hyperparameter optimization, resulting in inconsistent predictive performance across stocks with heterogeneous volatility. In contrast, Convolutional Neural Networks (CNN) extract local patterns and short-term nonlinear features, making them effective for modeling high-frequency fluctuations. This study proposes a systematically optimized hybrid CNN-LSTM model to forecast transportation sector stock prices using daily OHLC data from 2020-2025. The research framework follows the Cross Industry Standard Process for Data Mining (CRISP-DM) methodology, encompassing business understanding, data understanding, data preparation, modeling, evaluation, and deployment. Prior to modeling, preprocessing includes data cleaning, Min-Max normalization, and sliding window transformation to construct supervised learning sequences. CNN is employed to extract localized nonlinear features and reduce noise, while LSTM models long-term temporal dependencies. Model performance is evaluated using MAE, MSE, RMSE, MAPE, and R². Results show that the optimized CNN-LSTM model outperforms the baseline across all stocks. The highest R² of 0.9725 is obtained from one stock, indicating strong performance. In addition, the average R² improves from 0.8736 to 0.9483, an increase of 0.0747 (8.55%). The best results are achieved using ReLU with Adam and Nadam optimizers, demonstrating improved convergence and generalization. These findings highlight the effectiveness of optimized hybrid deep learning models for forecasting in nonlinear and non-stationary financial markets.
Keywords
Full Text:
PDFReferences
J.-P. Rodrigue, “Transport Modes and Globalization,” in International Encyclopedia of Transportation: Volume 1-7, vol. 5, 2021, pp. 38–44. doi: 10.1016/B978-0-08-102671-7.10403-8.
Z. Cao, J. Xu, C. Dong, P. Yu, and T. Bai, “MATCC: A Novel Approach for Robust Stock Price Prediction Incorporating Market Trends and Cross-time Correlations,” in International Conference on Information and Knowledge Management, Proceedings, 2024, pp. 187–196. doi: 10.1145/3627673.3679715.
Z. Yi, L. Zhidong, Z. Yongchao, and L. Zhe, “Microstructure simulation of stock market with meta model in a heterogeneous market environment,” J. Ind. Eng. Eng. Manag., vol. 35, no. 1, pp. 92–103, 2021, doi: 10.13587/j.cnki.jieem.2021.01.009.
A. Melani, “Sektor saham transportasi dan industri tekan IHSG pada 25-28 Maret 2024. Liputan6.,” 2024.
K. Kiruthika, “A Review of Challenges in Deep Learning-Based Stock Market Prediction,” in Lecture Notes in Networks and Systems, 2025, pp. 443–450. doi: 10.1007/978-3-031-92545-0_40.
S. Sirimat, T. Watchalaanun, K. Choochote, and S. Nonthapot, “Impacts of the COVID-19 pandemic on the relationship between the economic factors and stock prices of the transport sector in the stock exchange of Thailand,” Asian Econ. Financ. Rev., vol. 13, no. 5, pp. 293–307, 2023, doi: 10.55493/5002.V13I5.4773.
D. A. Kristiyanti, W. B. N. Pramudya, and S. A. Sanjaya, “How can we predict transportation stock prices using artificial intelligence? Findings from experiments with Long Short-Term Memory based algorithms,” Int. J. Inf. Manag. Data Insights, vol. 4, no. 2, p. 100293, 2024, doi: https://doi.org/10.1016/j.jjimei.2024.100293.
W. Lu, J. Li, Y. Li, A. Sun, and J. Wang, “A CNN-LSTM-Based Model to Forecast Stock Prices,” Complexity, vol. 2020, no. 1, p. 6622927, Jan. 2020, doi: https://doi.org/10.1155/2020/6622927.
F. Kamalov, L. Smail, and I. Gurrib, “Forecasting with deep learning: S&P 500 index,” in Proceedings - 2020 13th International Symposium on Computational Intelligence and Design, ISCID 2020, 2020, pp. 422–425. doi: 10.1109/ISCID51228.2020.00102.
N. N. Marpaung and I. R. D. Pangestuti, “Macroeconomic Factors and Jakarta Stock Exchange: A Comparative Analysis Pre- and Until the COVID-19 Pandemic,” SAGE Open, vol. 14, no. 2, 2024, doi: 10.1177/21582440241247894.
A. Gupta, L. K. Tyagi, and V. Singh Sisodia, “Long Short-Term Memory (LSTM) Networks For Stock Market Prediction,” in 2025 International Conference on Pervasive Computational Technologies, ICPCT 2025, 2025, pp. 565–570. doi: 10.1109/ICPCT64145.2025.10939100.
Y. Wang and T. Zhang, “Research on Deep Learning Feature Extraction Algorithm for Big Data Analysis,” in Proceedings - 2025 5th Asia-Pacific Conference on Communications Technology and Computer Science, ACCTCS 2025, 2025, pp. 1265–1269. doi: 10.1109/ACCTCS66275.2025.00222.
C. Ni, “Comparative Analysis of a Hybrid CNN-LSTM-Attention Model and Traditional Time Series Approaches for Financial Forecasting,” in Proceedings - 2025 International Conference on Computers, Information Processing and Advanced Education, CIPAE 2025, 2025, pp. 774–780. doi: 10.1109/CIPAE66821.2025.00137.
K. Mae and D. A. Kristiyanti, “Grid search vs Bayesian optimization for intensity scoring classification and channel recommendation prediction,” vol. 23, no. 4, pp. 1020–1031, 2025, doi: 10.12928/TELKOMNIKA.v23i4.26341.
P. Vispute, J. Sujata, and N. A. Natraj, “Predicting Stock Prices using Machine Learning Techniques: An Analysis of Historical Market Data,” in 3rd International Conference on Innovative Mechanisms for Industry Applications, ICIMIA 2023 - Proceedings, 2023, pp. 725–733. doi: 10.1109/ICIMIA60377.2023.10426336.
B. Padmaja, E. K. R. Patro, S. S. M. Petla, and T. Vemulapalli, “Harnessing deep learning algorithms for enhanced stock price predictability,” in Artificial Intelligence Technologies for Engineering Applications, 2025, pp. 297–317. doi: 10.1201/9781003565529-20.
W. B. Pramudya and D. A. Kristiyanti, “Comparison Analysis of Activation and Optimizer on Long Short-Term Memory Algorithm for Artificial Intelligence in Transportation Stock Price Prediction,” 2023, http://dx.doi.org/10.2139/ssrn.4537532.
F. Landi, L. Baraldi, M. Cornia, and R. Cucchiara, “Working Memory Connections for LSTM,” Neural Networks, vol. 144, pp. 334–341, 2021, doi: 10.1016/j.neunet.2021.08.030.
L. Liu and Y.-W. Si, “1D convolutional neural networks for chart pattern classification in financial time series,” J. Supercomput., vol. 78, no. 12, pp. 14191–14214, 2022, doi: 10.1007/s11227-022-04431-5.
N. O. Romanov, D. A. Skvortsova, N. A. Filin, B. A. Shvaiko, and A. A. Kuznetsov, “Studying Data Normalization Methods in the Sustainable Development Indicators Analysis,” in International Youth Conference on Radio Electronics, Electrical and Power Engineering, REEPE, 2025. doi: 10.1109/REEPE63962.2025.10970921.
I. Ito, “Convolution Using Discrete Cosine Transforms for Improving Performance of Convolutional Neural Networks,” in European Signal Processing Conference, 2022, pp. 1462–1466. doi: 10.23919/eusipco55093.2022.9909831.
M. M. Rahman et al., “Prospective Methodologies in Hybrid Renewable Energy Systems for Energy Prediction Using Artificial Neural Networks,” Sustainability, Jan. 2021, doi: 10.3390/su1010000.
G. M. Rajeshwari, N. Manasa, K. P. Rajimol, K. Naidu, A. Samal, and N. Garg, “Evaluation of machine and deep learning models for utility mining-based stock market price predictions,” in AIP Conference Proceedings, 2024. doi: 10.1063/5.0239965.
DOI: https://doi.org/10.47738/jads.v7i2.1323
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)