JUCS - Journal of Universal Computer Science 26(9): 1128-1147, doi: 10.3897/jucs.2020.059
Comparative Study of Real Time Machine Learning Models for Stock Prediction through Streaming Data
expand article infoRanjan Kumar Behera, Sushree Das, Santanu Kumar Rath, Sanjay Misra§, Robertas Damasevicius|
‡ National Institute of Technology Rourkela, Rourkela, India§ Covenant University, Ota, Nigeria| Vytautas Magnus University, Kaunas, Lithuania
Open Access
Abstract
Stock prediction is one of the emerging applications in the field of data science which help the companies to make better decision strategy. Machine learning models play a vital role in the field of prediction. In this paper, we have proposed various machine learning models which predicts the stock price from the real-time streaming data. Streaming data has been a potential source for real-time prediction which deals with continuous ow of data having information from various sources like social networking websites, server logs, mobile phone applications, trading oors etc. We have adopted the distributed platform, Spark to analyze the streaming data collected from two different sources as represented in two case studies in this paper. The first case study is based on stock prediction from the historical data collected from Google finance websites through NodeJs and the second one is based on the sentiment analysis of Twitter collected through Twitter API available in Stanford NLP package. Several researches have been made in developing models for stock prediction based on static data. In this work, an effort has been made to develop scalable, fault tolerant models for stock prediction from the real-time streaming data. The Proposed model is based on a distributed architecture known as Lambda architecture. The extensive comparison is made between actual and predicted output for different machine learning models. Support vector regression is found to have better accuracy as compared to other models. The historical data is considered as a ground truth data for validation.
Keywords
Spark Streaming, NodeJS, Twitter API, Lambda Architecture, MLlib