Predicting stock prices through historical data is a hot research topic. Stock price data is considered to be a typical time series. Recurrent neural network (RNN), long short-term memory (LSTM), and gated recurrent units (GRU) have been commonly employed to handle this type of data. However, most studies focus on the analysis of individual stocks, thus ignoring the correlation between similar stocks in the entire stock market. This paper proposes a clustering method for mining similar stocks, which combines morphological similarity distance (MSD) and kmeans clustering. Subsequently, Hierarchical Temporal Memory (HTM), an online learning model, is used to learn patterns from similar stocks and make predictions at last, denoted as C-HTM. The experiments on the price prediction show that 1) compared with HTM which has not learned similar stock patterns, C-HTM has better prediction accuracy, 2) in terms of short-term prediction, the performance of C-HTM is better than all baseline models.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.