Advances in Economics, Management and Political Sciences
- The Open Access Proceedings Series for Conferences
Series Vol. 47 , 01 December 2023
* Author to whom correspondence should be addressed.
The unforeseen outbreak of the COVID-19 pandemic in early 2020 had a profound impact on the real economy and business sectors, leading to a period of heightened volatility. The stock price of smartphone brands had shown an abnormal trend of fluctuation and hard to be predicted by using the inchoate regression and machine learning models. In this paper, Long Short-Term Memory (LSTM) is adapted to predict the stock price of five top smartphone brands. Spanning the period from 2016 to 2021, the dataset for each brand contains 1258 data points, which are split into two groups, training set including 850 observations and test set including 408 observations after the pandemic in 2020. The model employed two prices as x and the next price as y to be predicted. The structure of the model in this work is composed of 3 layers, with 64 and 5 neurons in the first two LSTM layers respectively and a dense layer for dense equal to 1. The model is based on TensorFlow system with Adaptive Moment Estimation optimizer and Mean Absolute Error as the loss function. For the model checking, Root Mean Standard Error, Mean Absolute Error and R-square score are calculated to evaluate the precision of the prediction. Experimental results indicate that under an unexpected external condition, LSTM is effective in stock price prediction to a certain extent. Further investigations are still needed to improve LSTM applied in the stock market.
machine learning, LSTM model, stock price prediction
1. Ayush, G.K., & Gowda, R. (2020) A Study on Impact of COVID-19 on Digital Marketing. Vidyabharati International Interdisciplinary Research Journal, 225-228, https://www.researchgate.net/publication/346647663
2. Meyer, B.H., Prescott, B. and Sheng, X.S. (2022) The Impact of the COVID-19 Pandemic on Business Expectations. International Journal of Forecasting, 38, 529-544.
3. Fairlie, R., & Fossen, F.M. (2022) The Early Impacts of the COVID-19 Pandemic on Business Sales. Small Bus Econ, 58, 1853-1864.
4. Alam, S. (2021) Reviewing the Global Smartphone Industry Strategic Implication in Response to COVID-19 Situation. International Journal of Interactive Mobile Technologies (jJIM), 15, 169-192.
5. Li, X., Li, M., Yan, P., et al. (2023) Deep learning attention mechanism in medical image analysis: Basics and beyonds. International Journal of Network Dynamics and Intelligence, 93-116.
6. Qiu, Y., Yang, Y., Lin, Z., et al. (2020) Improved denoising autoencoder for maritime image denoising and semantic segmentation of USV. China Communications, 17(3): 46-57.
7. Gunasekaran, K. P., Tiwari, K., Acharya, R. (2023) Deep learning based Auto Tuning for Database Management System. arXiv preprint arXiv:2304.12747.
8. Qiu, M., Song, Y. and Akagi, F. (2016) Application of Artificial Neural Network for the Prediction of Stock Market Returns: The Case of the Japanese Stock Market. Chaos, Solitons and Fractals, 85, 1-7.
9. Patel, J., Shah, S., Thakkar, P. and Kotecha, K. (2015) Predicting Stock and Stock Price Index Movement Using Trend Deterministic Data Preparation and Machine Learning Techniques. Expert Systems with Applications, 42, 259-268.
10. Ahangar, R.G., Yahyazadehfar, M. and Pournaghshband, H. (2010) The Comparison of Methods Artificial Neural Network with Linear Regression Using Specific Variables for Prediction Stock Price in Tehran Stock Exchange. International Journal of Computer Science and Information Security (IJCSIS), 7, 38-46.
11. Nabipour, M., Nayyeri, P. and Jabani, H. (2020) Predicting Stock Market Trends Using Machine Learning and Deep Learning Algorithms Via Continuous and Binary Data; a Comparative Analysis. IEEE Access, 8, 150199-150212.
12. Gharehchopogh, F. S., Bonab, T. H., Khaze, S. R. (2013) A linear regression approach to prediction of stock market trading volume: a case study. International Journal of Managing Value and Supply Chains, 4(3): 25.
13. Nagadia, M. (2021) Stock Price of Top 10 Smartphone Company 2016-2021. Kaggle, https://www.kaggle.com/datasets/meetnagadia/stock-price-of-top-10-smartphone-company-20162021
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Authors who publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See Open Access Instruction).