Natural visibility encoding for time series and its application in stock trend prediction

Abstract As a newly developed method, the natural visibility graph (NVG) has attracted great attention. Most of the previous research focuses on exploring the time series using the NVG from the angle of the complex network while few efforts have been paid to the degree sequence of the NVG. Recently, two studies indicate that the degree sequence of the horizontal visibility graph (HVG) represents the local motif information of the time series and utilize it to classify time series. Though the performance of the HVG-based classification algorithm is not satisfying, we’d like to further explore whether the degree sequence of the NVG could be utilized in practical applications. Hence, we propose the concept of natural visibility encoding for the time series to extract the motif information from the time series through the NVG transformation. To obtain the local motif information from the whole time series, a moving window encoding strategy is also developed. The stock trend prediction (STP) problem is selected as the application area and a universal STP framework is proposed based on the natural visibility encoding and the moving window strategy. By conducting three experiments with over twenty baseline algorithms and the ablation study, the validation, effectiveness, and robustness of the proposed framework are proven. The success of the proposed framework suggests that the degree sequence of the NVG transformation could provide useful information for practical usage. We hope our work could inspire further efforts on investigating the degree sequence of the NVG transformation in the dimension of time.

[1]  Kyoung-jae Kim,et al.  Financial time series forecasting using support vector machines , 2003, Neurocomputing.

[2]  Salim Lahmiri,et al.  Wavelet low- and high-frequency components as features for predicting stock prices with backpropagation neural networks , 2014, J. King Saud Univ. Comput. Inf. Sci..

[3]  Yong Deng,et al.  Fast transformation from time series to visibility graphs. , 2015, Chaos.

[4]  Dominique Zosso,et al.  Variational Mode Decomposition , 2014, IEEE Transactions on Signal Processing.

[5]  Athanasios A. Pantelous,et al.  Time Series Analysis of S&P 500 Index: A Horizontal Visibility Graph Approach , 2017 .

[6]  Mao Ye,et al.  A new financial data forecasting model using genetic algorithm and long short-term memory network , 2020, Neurocomputing.

[7]  Kenneth O. Cogger Robust Time Series Analysis—An L1 Approach , 2019 .

[8]  J. C. Nuño,et al.  Universal visibility patterns of unimodal maps. , 2020, Chaos.

[9]  Jürgen Schmidhuber,et al.  Long Short-Term Memory , 1997, Neural Computation.

[10]  Horizontal visibility graphs are uniquely determined by their directed degree sequence , 2019 .

[11]  Hao Hu,et al.  State-Frequency Memory Recurrent Neural Networks , 2017, ICML.

[12]  Jeff Harrison,et al.  Applied Bayesian Forecasting and Time Series Analysis , 1994 .

[13]  Yong Deng,et al.  A novel method for forecasting time series based on fuzzy logic and visibility graph , 2017, Advances in Data Analysis and Classification.

[14]  Lucas Lacasa,et al.  Sequential motif profile of natural visibility graphs. , 2016, Physical review. E.

[15]  Jian Sun,et al.  Deep Residual Learning for Image Recognition , 2015, 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[16]  Ömer Kaan Baykan,et al.  Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul Stock Exchange , 2011, Expert Syst. Appl..

[17]  Geoffrey E. Hinton,et al.  ImageNet classification with deep convolutional neural networks , 2012, Commun. ACM.

[18]  Dejie Yu,et al.  Total variation on horizontal visibility graph and its application to rolling bearing fault diagnosis , 2020 .

[19]  Tianqi Chen,et al.  XGBoost: A Scalable Tree Boosting System , 2016, KDD.

[20]  A. A. Weiss,et al.  Time series analysis of error-correction models , 2001 .

[21]  Yoshua Bengio,et al.  Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation , 2014, EMNLP.

[22]  R. Cairoli,et al.  Corrigendum: Intronless WNT10B-short variant underlies new recurrent allele-specific rearrangement in acute myeloid leukaemia , 2017, Scientific Reports.

[23]  Fuyuan Xiao,et al.  Time Series Forecasting Based on Complex Network Analysis , 2019, IEEE Access.

[24]  Jimmy Ba,et al.  Adam: A Method for Stochastic Optimization , 2014, ICLR.

[25]  Yong Deng,et al.  A Fast Algorithm for Network Forecasting Time Series , 2019, IEEE Access.

[26]  Wai Lam,et al.  News Sensitive Stock Trend Prediction , 2002, PAKDD.

[27]  Geoffrey E. Hinton,et al.  Deep Learning , 2015, Nature.

[28]  R. V. Sachs,et al.  Wavelets in time-series analysis , 1999, Philosophical Transactions of the Royal Society of London. Series A: Mathematical, Physical and Engineering Sciences.

[29]  Robert Jenssen,et al.  Multiplex visibility graphs to investigate recurrent neural network dynamics , 2016, Scientific Reports.

[30]  Tie-Yan Liu,et al.  Listening to Chaotic Whispers: A Deep Learning Framework for News-oriented Stock Trend Prediction , 2017, WSDM.

[31]  Youyong Kong,et al.  A Hierarchical Fused Fuzzy Deep Neural Network for Data Classification , 2017, IEEE Transactions on Fuzzy Systems.

[32]  Lucas Lacasa,et al.  From time series to complex networks: The visibility graph , 2008, Proceedings of the National Academy of Sciences.

[33]  Lucas Lacasa,et al.  Detecting Series Periodicity with Horizontal Visibility Graphs , 2012, Int. J. Bifurc. Chaos.

[34]  C. Granger,et al.  Spectral Analysis of Economic Time Series. (PSME-1) , 1965 .

[35]  Wen-Jie Xie,et al.  Tetradic motif profiles of horizontal visibility graphs , 2018, Commun. Nonlinear Sci. Numer. Simul..

[36]  C. Piermarocchi,et al.  Visibility graph based temporal community detection with applications in biological time series , 2021, Scientific Reports.

[37]  Keegan J. Moore,et al.  Wavelet-bounded empirical mode decomposition for measured time series analysis , 2018 .

[38]  Rangasami L. Kashyap,et al.  Optimal Choice of AR and MA Parts in Autoregressive Moving Average Models , 1982, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[39]  Qi Sun,et al.  Multi-scale Two-way Deep Neural Network for Stock Trend Prediction , 2020, IJCAI.

[40]  Rong Zhang,et al.  Forecasting Construction Cost Index based on visibility graph: A network approach , 2018 .

[41]  Tao Lin,et al.  Hybrid Neural Networks for Learning the Trend in Time Series , 2017, IJCAI.

[42]  A. Ramazani,et al.  Pseudohomogeneous metallic catalyst based on tungstate-decorated amphiphilic carbon quantum dots for selective oxidative scission of alkenes to aldehyde , 2021, Scientific Reports.

[43]  A. Snarskii,et al.  From the time series to the complex networks: The parametric natural visibility graph , 2012, 1208.6365.

[44]  B. Luque,et al.  Horizontal visibility graphs: exact results for random time series. , 2009, Physical review. E, Statistical, nonlinear, and soft matter physics.

[45]  Anirban Bhaduri,et al.  Visibility graph analysis of heart rate time series and bio-marker of congestive heart failure , 2017 .

[46]  Tongfeng Weng,et al.  Visibility graph analysis of Bitcoin price series , 2020 .

[47]  Benjamin Kedem,et al.  Regression models for time series analysis , 2002 .

[48]  L. Lacasa,et al.  Visibility graphs and symbolic dynamics , 2017, Physica D: Nonlinear Phenomena.

[49]  Saman Haratizadeh,et al.  CNNpred: CNN-based stock market prediction using a diverse set of variables , 2019, Expert Syst. Appl..

[50]  Germain Forestier,et al.  Deep learning for time series classification: a review , 2018, Data Mining and Knowledge Discovery.

[51]  Wen-Jie Xie,et al.  Time series classification based on triadic time series motifs , 2019, International Journal of Modern Physics B.

[52]  Zhi-Wei Ni,et al.  Stock trend prediction based on fractal feature selection and support vector machine , 2011, Expert Syst. Appl..

[53]  Wen-Jie Xie,et al.  Triadic time series motifs , 2018, EPL (Europhysics Letters).