{'fraction_non_alphanumeric': 0.022510822510822513, 'fraction_numerical': 0.0, 'mean_word_length': 5.181818181818182, '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}}
A Neighborhood Deep Neural Network Model using Sliding Window for Stock Price Prediction

Stock price prediction plays a crucial role in building a trading strategy for investors. The successful forecasting of stocks’ future price will help the investors to increase their profit. However, it is difficult to predict exactly the trend of the stock market due to the complex relationship between stock prices and external factors such as news, global economy, public sentiments, and other sensitive financial information. Hence, historical prices are the main investigation data for researchers since collecting external factors is still a challenge. In this paper, we propose a novel method using the state-of-the-art deep neural network for time series prediction (long short-term memory - LSTM) along with deep concern in historical data of stocks and their nearest neighbors in terms of similarity. Experimental results on four active stocks in the United State and three stocks in the Vietnam stock market show that our model outperforms the competitive methods (vanilla LSTM, convolutional neural network - CNN, random forest, and linear regression).