Algorithmic financial trading with deep convolutional neural networks: Time series to image conversion approach

Abstract Computational intelligence techniques for financial trading systems have always been quite popular. In the last decade, deep learning models start getting more attention, especially within the image processing community. In this study, we propose a novel algorithmic trading model CNN-TA using a 2-D convolutional neural network based on image processing properties. In order to convert financial time series into 2-D images, 15 different technical indicators each with different parameter selections are utilized. Each indicator instance generates data for a 15 day period. As a result, 15 × 15 sized 2-D images are constructed. Each image is then labeled as Buy, Sell or Hold depending on the hills and valleys of the original time series. The results indicate that when compared with the Buy & Hold Strategy and other common trading systems over a long out-of-sample period, the trained model provides better results for stocks and ETFs.

[1]  Fabian Mörchen,et al.  Extracting interpretable muscle activation patterns with time series knowledge mining , 2005, Int. J. Knowl. Based Intell. Eng. Syst..

[2]  Yi Zheng,et al.  Time Series Classification Using Multi-Channels Deep Convolutional Neural Networks , 2014, WAIM.

[3]  Yue Zhang,et al.  Deep Learning for Event-Driven Stock Prediction , 2015, IJCAI.

[4]  Mohamed Mohandes,et al.  Support vector machines for wind speed prediction , 2004 .

[5]  Nicolas Huck,et al.  Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500 , 2017, Eur. J. Oper. Res..

[6]  An-Sing Chen,et al.  Application of Neural Networks to an Emerging Financial Market: Forecasting and Trading the Taiwan Stock Index , 2001, Comput. Oper. Res..

[7]  C. Arizmendi,et al.  Time series predictions with neural nets: Application to airborne pollen forecasting , 1993 .

[8]  Ahmet Murat Ozbayoglu,et al.  Stock Market Technical Indicator Optimization by Genetic Algorithms , 2010 .

[9]  Bruce J. Vanstone,et al.  Financial time series forecasting with machine learning techniques: a survey , 2010, ESANN.

[10]  Shingo Mabu,et al.  Ensemble learning of rule-based evolutionary algorithm using multi-layer perceptron for supporting decisions in stock trading problems , 2015, Appl. Soft Comput..

[11]  M. Valenzuela-Rendón,et al.  Genetic algorithms and Darwinian approaches in financial applications: A survey , 2015, Expert Syst. Appl..

[12]  Heikki Mannila,et al.  Rule Discovery from Time Series , 1998, KDD.

[13]  Youyong Kong,et al.  Deep Direct Reinforcement Learning for Financial Signal Representation and Trading , 2017, IEEE Transactions on Neural Networks and Learning Systems.

[14]  Paul R. Cohen,et al.  Bayesian Clustering by Dynamics Contents 1 Introduction 1 2 Clustering Markov Chains 2 , 2022 .

[15]  Phil Blunsom,et al.  A Convolutional Neural Network for Modelling Sentences , 2014, ACL.

[16]  Chien-Feng Huang,et al.  A hybrid stock selection model using genetic algorithms and support vector regression , 2012, Appl. Soft Comput..

[17]  Lawrence D. Jackel,et al.  Handwritten Digit Recognition with a Back-Propagation Network , 1989, NIPS.

[18]  Amy Loutfi,et al.  A review of unsupervised feature learning and deep learning for time-series modeling , 2014, Pattern Recognit. Lett..

[19]  Erdogan Dogdu,et al.  An Artificial Neural Network-based Stock Trading System Using Technical Analysis and Big Data Framework , 2017, ACM Southeast Regional Conference.

[20]  Korea,et al.  Malware Images Classification Using Convolutional Neural Network , 2018 .

[21]  Shen Furao,et al.  Forecasting exchange rate using deep belief networks and conjugate gradient method , 2015, Neurocomputing.

[22]  An-Pin Chen,et al.  Financial Time-Series Data Analysis Using Deep Convolutional Neural Networks , 2016, 2016 7th International Conference on Cloud Computing and Big Data (CCBD).

[23]  Peter Tiño,et al.  Financial volatility trading using recurrent neural networks , 2001, IEEE Trans. Neural Networks.

[24]  Michel Ballings,et al.  Evaluating multiple classifiers for stock price direction prediction , 2015, Expert Syst. Appl..

[25]  Harris Drucker,et al.  Learning algorithms for classification: A comparison on handwritten digit recognition , 1995 .

[26]  Martha Pulido,et al.  Particle swarm optimization of ensemble neural networks with fuzzy aggregation for time series prediction of the Mexican Stock Exchange , 2014, Inf. Sci..

[27]  Zhe George Zhang,et al.  Forecasting stock indices with back propagation neural network , 2011, Expert Syst. Appl..

[28]  S. Z. Gürbüz,et al.  Deep convolutional autoencoder for radar-based classification of similar aided and unaided human activities , 2018, IEEE Transactions on Aerospace and Electronic Systems.

[29]  Mohamed M. Mostafa,et al.  Forecasting stock exchange movements using neural networks: Empirical evidence from Kuwait , 2010, Expert Syst. Appl..

[30]  Erdogan Dogdu,et al.  A Deep Neural-Network Based Stock Trading System Based on Evolutionary Optimized Technical Analysis Parameters , 2017 .

[31]  Romain Tavenard,et al.  Data Augmentation for Time Series Classification using Convolutional Neural Networks , 2016 .

[32]  Lijuan Cao,et al.  Support vector machines experts for time series forecasting , 2003, Neurocomputing.

[33]  Chen Wang,et al.  Improved v -Support vector regression model based on variable selection and brain storm optimization for stock price forecasting , 2016, Appl. Soft Comput..

[34]  Ah Chung Tsoi,et al.  Face recognition: a convolutional neural-network approach , 1997, IEEE Trans. Neural Networks.

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

[36]  Eugenio Culurciello,et al.  An Analysis of Deep Neural Network Models for Practical Applications , 2016, ArXiv.

[37]  Ning An,et al.  Using multi-output feedforward neural network with empirical mode decomposition based signal filtering for electricity demand forecasting , 2013 .

[38]  Adriano Lorena Inácio de Oliveira,et al.  Expert Systems With Applications , 2022 .

[39]  Dikai Liu,et al.  Damping in buildings : its neural network model and AR model , 2000 .

[40]  Donghai Guan,et al.  Devising a Context Selection-Based Reasoning Engine for Context-Aware Ubiquitous Computing Middleware , 2007, UIC.

[41]  Thomas Fischer,et al.  Deep learning with long short-term memory networks for financial market predictions , 2017, Eur. J. Oper. Res..

[42]  François Carrez,et al.  A Practical Evaluation of Information Processing and Abstraction Techniques for the Internet of Things , 2015, IEEE Internet of Things Journal.

[43]  Gwilym M. Jenkins,et al.  Time series analysis, forecasting and control , 1971 .

[44]  Dongkyoo Shin,et al.  Research and implementation of the context-aware middleware for controlling home appliances , 2005, 2005 Digest of Technical Papers. International Conference on Consumer Electronics, 2005. ICCE..

[45]  Amir F. Atiya,et al.  An Empirical Comparison of Machine Learning Models for Time Series Forecasting , 2010 .

[46]  Milton S. Boyd,et al.  Designing a neural network for forecasting financial and economic time series , 1996, Neurocomputing.

[47]  Jun Wang,et al.  Forecasting model of global stock index by stochastic time effective neural network , 2008, Expert Syst. Appl..

[48]  Yoon Kim,et al.  Convolutional Neural Networks for Sentence Classification , 2014, EMNLP.

[49]  Tugrul U. Daim,et al.  Using artificial neural network models in stock market index prediction , 2011, Expert Syst. Appl..

[50]  Sheng-Tun Li,et al.  Knowledge discovery with SOM networks in financial investment strategy , 2004, Fourth International Conference on Hybrid Intelligent Systems (HIS'04).

[51]  Tobias Hahn,et al.  Creating trading systems with fundamental variables and neural networks: The Aby case study , 2012, Math. Comput. Simul..

[52]  Fei-Fei Li,et al.  Large-Scale Video Classification with Convolutional Neural Networks , 2014, 2014 IEEE Conference on Computer Vision and Pattern Recognition.

[53]  E. M. Anagnostakis,et al.  Short-term load forecasting based on artificial neural networks parallel implementation , 2002 .

[54]  Byung Ro Moon,et al.  A Hybrid Neurogenetic Approach for Stock Forecasting , 2007, IEEE Transactions on Neural Networks.

[55]  Tim Oates,et al.  Time series classification from scratch with deep neural networks: A strong baseline , 2016, 2017 International Joint Conference on Neural Networks (IJCNN).

[56]  Anastasios Bezerianos,et al.  Radial basis function neural networks for the characterization of heart rate variability dynamics , 1999, Artif. Intell. Medicine.

[57]  Kazuhiro Seki,et al.  Predicting Stock Market Trends by Recurrent Deep Neural Networks , 2014, PRICAI.

[58]  A. C. Liew,et al.  A neural network short-term load forecaster , 1994 .

[59]  Luca Maria Gambardella,et al.  Convolutional Neural Network Committees for Handwritten Character Classification , 2011, 2011 International Conference on Document Analysis and Recognition.

[60]  Tuhin Mukherjee,et al.  Performance evaluation of Neural Network approach in financial prediction: Evidence from Indian Market , 2010, 2010 International Conference on Communication and Computational Intelligence (INCOCCI).

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

[62]  Fatos Xhafa,et al.  Utilizing artificial neural networks and genetic algorithms to build an algo-trading model for intra-day foreign exchange speculation , 2013, Math. Comput. Model..

[63]  Teuvo Kohonen,et al.  The self-organizing map , 1990, Neurocomputing.

[64]  Songqing Yue,et al.  Imbalanced Malware Images Classification: a CNN based Approach , 2017, ArXiv.