{'fraction_non_alphanumeric': 0.0255500354861604, 'fraction_numerical': 0.0134847409510291, 'mean_word_length': 5.130434782608695, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Stock Market Prediction with Stacked Autoencoder Based Feature Reduction

In this study, the hourly movement direction of 9 banking stocks traded on Borsa Istanbul was predicted by LongShort Term Memory (LSTM) network. In the prediction process raw stock prices, logarithmic scale stock prices and 11 different technical indicators were used. 1-hour samples of stocks were represented with 63 features with technical indicators computed for 5 different time periods. Class labels indicating the hourly movement direction were assigned based on the hourly closing prices of the stocks. Two different Long-Short Term Memory (LSTM) models were proposed in the prediction process. In the training of the first LSTM model, individual stock features were used, whereas in the second LSTM model, the features of all stocks were given as network inputs. The use of all stock features increased the size of the feature space to 567, and stacked autoencoders were used for dimensionality reduction. According to the experiments, the movement directions of 9 stocks were predicted with an average Macro-Averaged F-Measure rate of 0.573. The use of all stock features increased the prediction performance of the stocks by %0.9-1.9. The performance of both LSTM networks outperformed the Random and Naive benchmarking methods. Keywords—Stock market prediction, Borsa İstanbul, long-short term memory, stacked autoencoders.