Abstract
With the development of modern technology, machine learning has become the most popular tool for analyzing financial and numerical data. It has great potential to forecast stock prices. The proper prediction of future stock prices helps investors to increase their chances of earning more profits. As a result, many research papers using machine learning and deep learning in stock price prediction have been conducted. However, most researchers only focus on the past price categories of the stock market without considering other essential types of information, which include the articles about a company and how people talk about a company on social media. Thus, in this paper, we apply machine learning and deep learning methods to predict the future stock market through both numerical data and textual information. The textual information is based on analyzing tweets about the companies. Moreover, we adopt Time2Vec [13] to learn a vector representation of time. We show that our method (StTime-Net) is a more suitable approach for stock movement prediction.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Atkins, A., Niranjan, M., Gerding, E.: Financial news predicts stock market volatility better than close price. J. Finance Data Sci. 4(2), 120–137 (2018)
Black, F., Scholes, M.: The pricing of options and corporate liabilities. In: World Scientific Reference on Contingent Claims Analysis in Corporate Finance: Volume 1: Foundations of CCA and Equity Valuation, pp. 3–21. World Scientific (2019)
Bojanowski, P., Grave, E., Joulin, A., Mikolov, T.: Enriching word vectors with subword information. Trans. Assoc. Comput. Linguist. 5, 135–146 (2017)
Brown, R.G.: Smoothing, Forecasting and Prediction of Discrete Time Series. Courier Corporation (2004)
Chicco, D., Jurman, G.: The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics 21(1), 1–13 (2020). https://doi.org/10.1186/s12864-019-6413-7
Cho, K., et al.: Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078 (2014)
Gers, F.: Long short-term memory in recurrent neural networks. Ph.D. thesis, Verlag nicht ermittelbar (2001)
Ghosh, P., Neufeld, A., Sahoo, J.K.: Forecasting directional movements of stock prices for intraday trading using LSTM and random forests. arXiv preprint arXiv:2004.10178 (2020)
Glorot, X., Bengio, Y.: Understanding the difficulty of training deep feedforward neural networks. In: Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 249–256. JMLR Workshop and Conference Proceedings (2010)
Goetzmann, W.N., Brown, S.J., Gruber, M.J., Elton, E.J.: Modern Portfolio Theory and Investment Analysis, vol. 237. Wiley, Hoboken (2014)
Gupta, R., Chen, M.: Sentiment analysis for stock price prediction. In: 2020 IEEE Conference on Multimedia Information Processing and Retrieval (MIPR), pp. 213–218 (2020). https://doi.org/10.1109/MIPR49039.2020.00051
Kalyani, J., Bharathi, P., Jyothi, P., et al.: Stock trend prediction using news sentiment analysis. arXiv preprint arXiv:1607.01958 (2016)
Kazemi, S.M., et al.: Time2Vec: learning a vector representation of time. arXiv preprint arXiv:1907.05321 (2019)
Kingma, D.P., Ba, J.: Adam: a method for stochastic optimization. arXiv preprint arXiv:1412.6980 (2014)
Li, X., Li, Y., Yang, H., Yang, L., Liu, X.Y.: DP-LSTM: differential privacy-inspired LSTM for stock prediction using financial news. arXiv preprint arXiv:1912.10806 (2019)
Lu, W., Li, J., Li, Y., Sun, A., Wang, J.: A CNN-LSTM-based model to forecast stock prices. Complexity 2020 (2020)
Malkiel, B.G.: A Random Walk Down Wall Street: Including a Life-Cycle Guide to Personal Investing. WW Norton & Company (1999)
Marshal, O.T.: Factors influencing investment decisions in capital market: a study of individual investors in Nigeria. Organ. Mark. Emerg. Econ. 4(1), 141–161 (2013). https://doi.org/10.15388/omee.2013.4.1.14263. https://www.journals.vu.lt/omee/article/view/14263
Moghaddam, A.H., Moghaddam, M.H., Esfandyari, M.: Stock market index prediction using artificial neural network. J. Econ. Finance Adm. Sci. 21(41), 89–93 (2016)
Muhammad, S., Ali, G.: The relationship between fundamental analysis and stock returns based on the panel data analysis; evidence from Karachi stock exchange (KSE). Res. J. Finance Account. 9(3), 84–96 (2018)
Nguyen, T.H., Shirai, K.: Topic modeling based sentiment analysis on social media for stock market prediction. In: Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 1354–1364 (2015)
Pagolu, V.S., Reddy, K.N., Panda, G., Majhi, B.: Sentiment analysis of Twitter data for predicting stock market movements. In: 2016 International Conference on Signal Processing, Communication, Power and Embedded System (SCOPES), pp. 1345–1350. IEEE (2016)
Pennington, J., Socher, R., Manning, C.D.: GloVe: global vectors for word representation. In: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1532–1543 (2014)
Qiu, J., Wang, B., Zhou, C.: Forecasting stock prices with long-short term memory neural network based on attention mechanism. PLoS ONE 15(1), e0227222 (2020)
Ranco, G., Aleksovski, D., Caldarelli, G., Grčar, M., Mozetič, I.: The effects of Twitter sentiment on stock price returns. PLoS ONE 10(9), e0138441 (2015)
Renu, I.R., Christie, P.: Fundamental analysis versus technical analysis-a comparative review. Int. J. Recent Sci. Res. 9(1), 23009–23013 (2018)
Sawhney, R., Agarwal, S., Wadhwa, A., Shah, R.R.: Deep attentive learning for stock movement prediction from social media text and company correlations (2020)
Shen, J., Shafiq, M.O.: Short-term stock market price trend prediction using a comprehensive deep learning system. J. Big Data 7(1), 1–33 (2020). https://doi.org/10.1186/s40537-020-00333-6
Vaswani, A., et al.: Attention is all you need. In: Advances in Neural Information Processing Systems, pp. 5998–6008 (2017)
Xie, B., Passonneau, R., Wu, L., Creamer, G.G.: Semantic frames to predict stock price movement. In: Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics, pp. 873–883 (2013)
Xu, Y., Cohen, S.B.: Stock movement prediction from tweets and historical prices. In: Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1970–1979 (2018)
Zhang, G.P.: Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing 50, 159–175 (2003)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Dang, H., Nguyen, M., Mei, B. (2022). StTime-Net: Combining both Historical and Textual Factors for Stock Movement Prediction. In: Pimenidis, E., Angelov, P., Jayne, C., Papaleonidas, A., Aydin, M. (eds) Artificial Neural Networks and Machine Learning – ICANN 2022. ICANN 2022. Lecture Notes in Computer Science, vol 13532. Springer, Cham. https://doi.org/10.1007/978-3-031-15937-4_23
Download citation
DOI: https://doi.org/10.1007/978-3-031-15937-4_23
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-15936-7
Online ISBN: 978-3-031-15937-4
eBook Packages: Computer ScienceComputer Science (R0)