Forecasting Stock Prices of Taiwan Semiconductor Manufacturing Company (TSMC) Using Recurrent Neural Networks: Evaluating Predictive Performance in a Volatile Market

(1) * Lai li-We (National Cheng Kung University, Taiwan, Province of China)
(2) Koundé Moanu (Université Paris-Saclay, France)
*corresponding author

Abstract


Accurate stock price prediction plays a critical role in guiding investment strategies, particularly in dynamic industries such as semiconductors, where price volatility is high. This study investigates the effectiveness of Recurrent Neural Networks (RNN) in predicting the stock prices of Taiwan Semiconductor Manufacturing Company (TSMC), a global leader in the semiconductor sector. Using daily closing price data from January 2020 to January 2023, the RNN model was developed and trained to forecast future stock prices. The data was preprocessed with feature scaling to ensure the stability of model training, and a sliding window approach was applied to capture temporal dependencies. The model's predictive performance was evaluated using Root Mean Squared Error (RMSE) and Mean Absolute Percentage Error (MAPE) as key metrics. The RNN achieved an RMSE of 9.87 and a MAPE of 5.90%, indicating that the model provides reasonable accuracy in forecasting stock prices with a moderate level of deviation from actual values. Visual analysis further demonstrated the model's capacity to capture general trends in the stock price movements, although challenges were noted in predicting highly volatile periods. The study highlights the potential of RNN in financial forecasting while suggesting future improvements, such as incorporating advanced models like Long Short-Term Memory (LSTM) or external factors to enhance predictions during market volatility. These findings offer valuable insights for investors and analysts seeking to leverage machine learning in stock price prediction, particularly in industries characterized by rapid technological advancements and price fluctuations.

   

DOI

https://doi.org/10.33292/ijarlit.v2i2.38
      

Article metrics

10.33292/ijarlit.v2i2.38 Abstract views : 233 | PDF views : 314

   

Cite

   

Full Text

Download

References


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

P. D. Soni, Y. Tewari, and D. Krishnan, “Machine Learning Approaches in Stock Price Prediction: A Systematic Review,” J. Phys., vol. 2161, no. 1, p. 12065, 2022, doi: 10.1088/1742-6596/2161/1/012065.

T. Aamodt, “Predicting Stock Markets with Neural Networks.” 2015.

A. Chintam, G. R. R. Kumar, D. Chandramouli, J. A. Rani, and M. A. Praveen, “Accurate stock prices prediction on Grouped Time Series Data using Recurrent Neural Network Variants,” 2022, pp. 1–6. doi: 10.1109/ICAECT54875.2022.9807842.

Z. Bao, Q. Wei, Q. Wei, T. Zhou, X. Jiang, and T. Watanabe, “Predicting stock high price using forecast error with recurrent neural network,” vol. 6, no. 1, pp. 283–292, 2021, doi: 10.2478/AMNS.2021.2.00009.

A. K. Parida, M. Rout, A. K. Jena, N. Parida, and R. K. Parida, “An Hybrid Stacked LSTM Approach to Forecast the Stock Prices,” 2023, pp. 411–415. doi: 10.1109/ocit59427.2023.10430898.

X. Zheng, “Stock Price Prediction Based on CNN-BiLSTM Utilizing Sentiment Analysis and a Two-layer Attention Mechanism,” Adv. Econ. Manag. Polit. Sci., 2023, doi: 10.54254/2754-1169/47/20230369.

A. P. da Silva et al., “Performance Evaluation of Recurrent Neural Networks for Short-Term Investment Decision in Stock Market,” 2019, pp. 247–261. doi: 10.1007/978-981-15-3852-0_16.

C. Peng, Z. Yin, X. Wei, and A. Zhu, “Stock Price Prediction based on Recurrent Neural Network with Long Short-Term Memory Units,” 2019. doi: 10.1109/ICESI.2019.8863005.

C.-C. Kao and C.-Y. Chianglin, “Applying Three Deep Learning Techniques to Predicting Stock Price,” 2022, pp. 132–136. doi: 10.1109/IEEM55944.2022.9989878.

C. Duan and W. Ke, “Advanced Stock Price Prediction Using LSTM and Informer Models,” Deleted J., vol. 5, no. 1, pp. 141–166, 2024, doi: 10.60087/jaigs.v5i1.183.

“Stock Price Prediction Using Stacked LSTM,” Int. J. Sci. Technol. Eng., vol. 11, no. 5, pp. 3578–3584, 2023, doi: 10.22214/ijraset.2023.51757.

H. Harikrishnan and S. Urolagin, “Prediction of Stock Market Prices of Using Recurrent Neural Network—Long Short-Term Memory,” 2021, pp. 359–368. doi: 10.1007/978-981-15-5243-4_33.

I. S. Shcherbyna, “Improving stock price forecasting based on recurrent neural networks,” Nauk. Zap. Deržavnogo unìversitetu telekomunìkacìj, vol. 4, no. 2, 2023, doi: 10.31673/2518-7678.2023.021313.

J. V Dave, S. Porwal, U. Jain, G. Chandore, and A. Jain, “Comparing different Machine Learning Algorithms in a stock Market Scenario to check which one has the highest efficiency,” 2024, doi: 10.21203/rs.3.rs-4328509/v1.

M. E. Karim and S. Ahmed, “A Deep Learning-Based Approach for Stock Price Prediction Using Bidirectional Gated Recurrent Unit and Bidirectional Long Short Term Memory Model.” 2021. doi: 10.1109/GCAT52182.2021.9587895.

N. Naik and B. R. Mohan, “Study of Stock Return Predictions Using Recurrent Neural Networks with LSTM,” 2019, pp. 453–459. doi: 10.1007/978-3-030-20257-6_39.

Z. Wang, “Stock price prediction using LSTM neural networks: Techniques and applications,” Appl. Comput. Eng., vol. 86, no. 1, pp. 294–300, 2024, doi: 10.54254/2755-2721/86/20241605.

Y. Fu and H. Xiao, “Stock Price Prediction Model based on Dual Attention and TCN,” 2022. doi: 10.5121/csit.2022.122007.

X. Zhang, C. Li, and Y. Morimoto, “A Multi-factor Approach for Stock Price Prediction by using Recurrent Neural Networks,” vol. 8, no. 1. pp. 9–13, 2019. [Online]. Available: http://www.bncss.org/index.php/bncss/article/download/96/100


Refbacks

  • There are currently no refbacks.


View My Stats IJARLIT