Stock market forecasting with financial micro-blog based on sentiment and time series analysis



During the past few decades, time series analysis has become one popular method for solving stock forecasting problem. However, depending only on stock index series makes the performance of the forecast not good enough, because many external factors which may be involved are not taken into consideration. As a way to deal with it, sentiment analysis on online textual data of stock market can generate a lot of valuable information as a complement which can be named as external indicators. In this paper, a new method which combines the time series of external indicators and the time series of stock index is provided. A special text processing algorithm is proposed to obtain a weighted sentiment time series. In the experiment, we obtain financial micro-blogs from some famous portal websites in China. After that, each micro-blog is segmented and preprocessed, and then the sentiment value is calculated for each day. Finally, an NARX time series model combined with the weighted sentiment series is created to forecast the future value of Shanghai Stock Exchange Composite Index (SSECI). The experiment shows that the new model makes an improvement in terms of the accuracy.

Key words

time series micro-blog sentiment analysis parsing neural network 

CLC number

TP 181 TP 391 

Document code


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. [1]
    PEDRYCZ W, CHEN S M. Time series analysis, modeling and applications [M]. Berlin: Springer-Verlag, 2013.CrossRefMATHGoogle Scholar
  2. [2]
    WANG L, ZOU H F, SU J, et al. An ARIMA-ANN hybrid model for time series forecasting [J]. Systems Research and Behavioral Science, 2013, 30: 244–259.CrossRefGoogle Scholar
  3. [3]
    CORTEZ P, RIO M, ROCHA M, et al. Multi-scale Internet traffic forecasting using neural networks and time series methods [J]. Expert Systems, 2012, 29(2): 143–155.Google Scholar
  4. [4]
    KUMAR D A, MURUGAN S. Performance analysis of Indian stock market index using neural network time series model [C]//Proceedings of the 2013 International Conference on Pattern Recognition, Informatics and Mobile Engineering (PRIME). [s. l.]: IEEE, 2013: 72–78.CrossRefGoogle Scholar
  5. [5]
    O’CONNOR N, MADDEN M G. A neural network approach to predicting stock exchange movements using external factors [J]. Knowledge-Based Systems, 2006, 19(5): 371–378.CrossRefGoogle Scholar
  6. [6]
    SCHUMAKER R P, ZHANG Y L, HUANG C N, et al. Evaluating sentiment in financial news articles [J]. Decision Support Systems, 2012, 53(3): 458–464.CrossRefGoogle Scholar
  7. [7]
    LIANG X, CHEN R C, HE Y, et al. Associating stock prices with web financial information time series based on support vector regression [J]. Neurocomputing, 2013, 115: 142–149.CrossRefGoogle Scholar
  8. [8]
    HAGENAU M, LIEBMANN M, NEUMANN D. Automated news reading: Stock price prediction based on financial news using context-capturing features [J]. Decision Support Systems, 2013, 55: 685–697.CrossRefGoogle Scholar
  9. [9]
    RUIZ E J, HRISTIDIS V, CASTILLO C, et al. Correlating financial time series with micro-blogging activity [C]//Proceedings of the fifth ACM International Conference on Web Search and Data Mining. New York, USA: ACM, 2012: 513–522.CrossRefGoogle Scholar
  10. [10]
    BOLLEN J, MAO H, ZENG X J. Twitter mood predicts the stock market [J]. Journal of Computational Science, 2011, 2(1): 1–8.CrossRefGoogle Scholar
  11. [11]
    LI Q, WANG J, WANG F, et al. The role of social sentiment in stock markets: A view from joint effects of multiple information sources [J]. Multimedia Tools and Applications, 2016. DOI: 10. 1007/s11042-016-3643-4 (published online).Google Scholar
  12. [12]
    ROMANOWSKI A, SKUZA M. Towards predicting stock price moves with aid of sentiment analysis of Twitter social network data and big data processing environment [C]//Advances in Business ICT: New Ideas from Ongoing Research, Studies in Computational Intelligence. [s.l.]: Springer International Publishing, 2017: 105–123.Google Scholar

Copyright information

© Shanghai Jiaotong University and Springer-Verlag Berlin Heidelberg 2017

Authors and Affiliations

  1. 1.Department of Computer Science and TechnologyShanghai University of Finance and EconomicsShanghaiChina

Personalised recommendations