IDEAS home Printed from https://ideas.repec.org/p/arx/papers/1912.07700.html
   My bibliography  Save this paper

A Robust Predictive Model for Stock Price Prediction Using Deep Learning and Natural Language Processing

Author

Listed:
  • Sidra Mehtab
  • Jaydip Sen

Abstract

Prediction of future movement of stock prices has been a subject matter of many research work. There is a gamut of literature of technical analysis of stock prices where the objective is to identify patterns in stock price movements and derive profit from it. Improving the prediction accuracy remains the single most challenge in this area of research. We propose a hybrid approach for stock price movement prediction using machine learning, deep learning, and natural language processing. We select the NIFTY 50 index values of the National Stock Exchange of India, and collect its daily price movement over a period of three years (2015 to 2017). Based on the data of 2015 to 2017, we build various predictive models using machine learning, and then use those models to predict the closing value of NIFTY 50 for the period January 2018 till June 2019 with a prediction horizon of one week. For predicting the price movement patterns, we use a number of classification techniques, while for predicting the actual closing price of the stock, various regression models have been used. We also build a Long and Short-Term Memory - based deep learning network for predicting the closing price of the stocks and compare the prediction accuracies of the machine learning models with the LSTM model. We further augment the predictive model by integrating a sentiment analysis module on twitter data to correlate the public sentiment of stock prices with the market sentiment. This has been done using twitter sentiment and previous week closing values to predict stock price movement for the next week. We tested our proposed scheme using a cross validation method based on Self Organizing Fuzzy Neural Networks and found extremely interesting results.

Suggested Citation

  • Sidra Mehtab & Jaydip Sen, 2019. "A Robust Predictive Model for Stock Price Prediction Using Deep Learning and Natural Language Processing," Papers 1912.07700, arXiv.org.
  • Handle: RePEc:arx:papers:1912.07700
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/1912.07700
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Jaydip SEN & Tamal DATTA CHAUDHURI, 2016. "An Alternative Framework for Time Series Decomposition and Forecastingand its Relevance for Portfolio Choice – A Comparative Study of the Indian Consumer Durable and Small Cap Sectors," Journal of Economics Library, KSP Journals, vol. 3(2), pages 303-326, June.
    2. Jaydip SEN & Tamal DATTA CHAUDHURI, 2017. "A Predictive Analysis of the Indian FMCG Sector using Time Series Decomposition - Based Approach," Journal of Economics Library, KSP Journals, vol. 4(2), pages 206-226, June.
    3. Jaydip Sen & Tamal Datta Chaudhuri, 2016. "Decomposition of Time Series Data of Stock Markets and its Implications for Prediction: An Application for the Indian Auto Sector," Papers 1601.02407, arXiv.org.
    4. Jaydip Sen & Tamal Datta Chaudhuri, 2018. "Understanding the sectors of Indian economy for portfolio choice," International Journal of Business Forecasting and Marketing Intelligence, Inderscience Enterprises Ltd, vol. 4(2), pages 178-222.
    5. Jaydip Sen & Tamal Datta Chaudhuri, 2017. "A Time Series Analysis-Based Forecasting Framework for the Indian Healthcare Sector," Papers 1705.01144, arXiv.org.
    6. repec:bla:jfinan:v:44:y:1989:i:1:p:135-48 is not listed on IDEAS
    7. Fama, Eugene F & French, Kenneth R, 1995. "Size and Book-to-Market Factors in Earnings and Returns," Journal of Finance, American Finance Association, vol. 50(1), pages 131-155, March.
    8. Chui, Andy C. W. & Wei, K. C. John, 1998. "Book-to-market, firm size, and the turn-of-the-year effect: Evidence from Pacific-Basin emerging markets," Pacific-Basin Finance Journal, Elsevier, vol. 6(3-4), pages 275-293, August.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Jaydip Sen & Abhishek Dutta & Sidra Mehtab, 2021. "Stock Portfolio Optimization Using a Deep Learning LSTM Model," Papers 2111.04709, arXiv.org.
    2. Jaydip Sen & Sidra Mehtab & Abhishek Dutta & Saikat Mondal, 2022. "Hierarchical Risk Parity and Minimum Variance Portfolio Design on NIFTY 50 Stocks," Papers 2202.02728, arXiv.org.
    3. Sidra Mehtab & Jaydip Sen, 2020. "A Time Series Analysis-Based Stock Price Prediction Using Machine Learning and Deep Learning Models," Papers 2004.11697, arXiv.org, revised May 2021.
    4. Jaydip Sen & Saikat Mondal & Sidra Mehtab, 2022. "Portfolio Optimization on NIFTY Thematic Sector Stocks Using an LSTM Model," Papers 2202.02723, arXiv.org.
    5. Sidra Mehtab & Jaydip Sen, 2020. "Stock Price Prediction Using Convolutional Neural Networks on a Multivariate Timeseries," Papers 2001.09769, arXiv.org.
    6. Sidra Mehtab & Jaydip Sen & Abhishek Dutta, 2020. "Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models," Papers 2009.10819, arXiv.org.
    7. Tran Phuoc & Pham Thi Kim Anh & Phan Huy Tam & Chien V. Nguyen, 2024. "Applying machine learning algorithms to predict the stock price trend in the stock market – The case of Vietnam," Palgrave Communications, Palgrave Macmillan, vol. 11(1), pages 1-18, December.
    8. Sidra Mehtab & Jaydip Sen, 2020. "Stock Price Prediction Using CNN and LSTM-Based Deep Learning Models," Papers 2010.13891, arXiv.org.
    9. Jaydip Sen & Sidra Mehtab & Abhishek Dutta & Saikat Mondal, 2022. "Precise Stock Price Prediction for Optimized Portfolio Design Using an LSTM Model," Papers 2203.01326, arXiv.org.
    10. Maudud Hassan Uzzal & Robert Ślepaczuk, 2023. "The performance of time series forecasting based on classical and machine learning methods for S&P 500 index," Working Papers 2023-05, Faculty of Economic Sciences, University of Warsaw.
    11. Jaydip Sen, 2022. "Designing Efficient Pair-Trading Strategies Using Cointegration for the Indian Stock Market," Papers 2211.07080, arXiv.org.
    12. Sidra Mehtab & Jaydip Sen & Subhasis Dasgupta, 2020. "Robust Analysis of Stock Price Time Series Using CNN and LSTM-Based Deep Learning Models," Papers 2011.08011, arXiv.org, revised Jan 2021.
    13. Jaydip Sen & Saikat Mondal & Gourab Nath, 2022. "Robust Portfolio Design and Stock Price Prediction Using an Optimized LSTM Model," Papers 2204.01850, arXiv.org.
    14. Jaydip Sen & Abhishek Dutta & Sidra Mehtab, 2021. "Profitability Analysis in Stock Investment Using an LSTM-Based Deep Learning Model," Papers 2104.06259, arXiv.org.
    15. Jaydip Sen & Saikat Mondal & Sidra Mehtab, 2021. "Analysis of Sectoral Profitability of the Indian Stock Market Using an LSTM Regression Model," Papers 2111.04976, arXiv.org.
    16. Jaydip Sen & Abhishek Dutta, 2022. "Design and Analysis of Optimized Portfolios for Selected Sectors of the Indian Stock Market," Papers 2210.03943, arXiv.org.
    17. Saber Talazadeh & Dragan Perakovic, 2024. "SARF: Enhancing Stock Market Prediction with Sentiment-Augmented Random Forest," Papers 2410.07143, arXiv.org.
    18. Jaydip Sen & Ashwin Kumar R S & Geetha Joseph & Kaushik Muthukrishnan & Koushik Tulasi & Praveen Varukolu, 2022. "Precise Stock Price Prediction for Robust Portfolio Design from Selected Sectors of the Indian Stock Market," Papers 2201.05570, arXiv.org.
    19. Jaydip Sen & Rajdeep Sen & Abhishek Dutta, 2021. "Machine Learning in Finance-Emerging Trends and Challenges," Papers 2110.11999, arXiv.org.
    20. Jaydip Sen & Subhasis Dasgupta, 2023. "Portfolio Optimization: A Comparative Study," Papers 2307.05048, arXiv.org.
    21. Jaydip Sen & Abhishek Dutta, 2022. "A Comparative Study of Hierarchical Risk Parity Portfolio and Eigen Portfolio on the NIFTY 50 Stocks," Papers 2210.00984, arXiv.org.
    22. Ananda Chatterjee & Hrisav Bhowmick & Jaydip Sen, 2021. "Stock Price Prediction Using Time Series, Econometric, Machine Learning, and Deep Learning Models," Papers 2111.01137, arXiv.org.
    23. Federico Mecchia & Marcellino Gaudenzi, 2022. "The dynamics of the prices of the companies of the STOXX Europe 600 Index through the logit model and neural network," Papers 2206.09899, arXiv.org.
    24. Jaydip Sen & Sidra Mehtab, 2021. "Design and Analysis of Robust Deep Learning Models for Stock Price Prediction," Papers 2106.09664, arXiv.org.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Sidra Mehtab & Jaydip Sen, 2020. "Stock Price Prediction Using Convolutional Neural Networks on a Multivariate Timeseries," Papers 2001.09769, arXiv.org.
    2. Sidra Mehtab & Jaydip Sen & Abhishek Dutta, 2020. "Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models," Papers 2009.10819, arXiv.org.
    3. Sidra Mehtab & Jaydip Sen, 2020. "A Time Series Analysis-Based Stock Price Prediction Using Machine Learning and Deep Learning Models," Papers 2004.11697, arXiv.org, revised May 2021.
    4. Jaydip Sen & Sidra Mehtab, 2021. "Design and Analysis of Robust Deep Learning Models for Stock Price Prediction," Papers 2106.09664, arXiv.org.
    5. Jaydip Sen & Saikat Mondal & Sidra Mehtab, 2021. "Analysis of Sectoral Profitability of the Indian Stock Market Using an LSTM Regression Model," Papers 2111.04976, arXiv.org.
    6. Ananda Chatterjee & Hrisav Bhowmick & Jaydip Sen, 2021. "Stock Price Prediction Using Time Series, Econometric, Machine Learning, and Deep Learning Models," Papers 2111.01137, arXiv.org.
    7. Jaydip Sen & Arpit Awad & Aaditya Raj & Gourav Ray & Pusparna Chakraborty & Sanket Das & Subhasmita Mishra, 2022. "Stock Performance Evaluation for Portfolio Design from Different Sectors of the Indian Stock Market," Papers 2208.07166, arXiv.org.
    8. Jaydip Sen & Aditya Jaiswal & Anshuman Pathak & Atish Kumar Majee & Kushagra Kumar & Manas Kumar Sarkar & Soubhik Maji, 2023. "A Comparative Analysis of Portfolio Optimization Using Mean-Variance, Hierarchical Risk Parity, and Reinforcement Learning Approaches on the Indian Stock Market," Papers 2305.17523, arXiv.org.
    9. Tasnim Uddin Chowdhury & Md. Shahidul Islam, 2021. "ARIMA Time Series Analysis in Forecasting Daily Stock Price of Chittagong Stock Exchange (CSE)," International Journal of Research and Innovation in Social Science, International Journal of Research and Innovation in Social Science (IJRISS), vol. 5(6), pages 214-233, June.
    10. Jaydip Sen, 2018. "Stock composition of mutual funds and fund style: a time series decomposition approach towards testing for consistency," International Journal of Business Forecasting and Marketing Intelligence, Inderscience Enterprises Ltd, vol. 4(3), pages 235-292.
    11. Jaydip Sen & Arup Dasgupta & Partha Pratim Sengupta & Sayantani Roy Choudhury, 2023. "A Comparative Study of Portfolio Optimization Methods for the Indian Stock Market," Papers 2310.14748, arXiv.org.
    12. Jaydip Sen & Ashwin Kumar R S & Geetha Joseph & Kaushik Muthukrishnan & Koushik Tulasi & Praveen Varukolu, 2022. "Precise Stock Price Prediction for Robust Portfolio Design from Selected Sectors of the Indian Stock Market," Papers 2201.05570, arXiv.org.
    13. Jaydip Sen & Hetvi Waghela & Sneha Rakshit, 2024. "Exploring Sectoral Profitability in the Indian Stock Market Using Deep Learning," Papers 2407.01572, arXiv.org.
    14. Abhiraj Sen & Jaydip Sen, 2023. "Performance Evaluation of Equal-Weight Portfolio and Optimum Risk Portfolio on Indian Stocks," Papers 2309.13696, arXiv.org.
    15. Gomez Biscarri, Javier & Lopez Espinosa, German, 2008. "The influence of differences in accounting standards on empirical pricing models: An application to the Fama-French model," Journal of Multinational Financial Management, Elsevier, vol. 18(4), pages 369-388, October.
    16. Miras, Hassan & Masih, Mansur, 2017. "Stock returns and macroeconomic factors in an emerging economy: Malaysian evidence," MPRA Paper 101229, University Library of Munich, Germany.
    17. Wang, Yuenan & Di Iorio, Amalia, 2007. "The cross section of expected stock returns in the Chinese A-share market," Global Finance Journal, Elsevier, vol. 17(3), pages 335-349, March.
    18. Pheng Bian Ong & Mohamed Hisham Hanifa & Mansor Mohd Isa, 2018. "Do Firm Size and Value Affect Shareholder Returns in Malaysia?," Capital Markets Review, Malaysian Finance Association, vol. 26(2), pages 53-69.
    19. Robert Faff, 2004. "A simple test of the Fama and French model using daily data: Australian evidence," Applied Financial Economics, Taylor & Francis Journals, vol. 14(2), pages 83-92.
    20. Michael E. Drew & Tony Naughton & Madhu Veeraraghavan, 2003. "Asset Pricing in China: Evidence from the Shanghai Stock Exchange," School of Economics and Finance Discussion Papers and Working Papers Series 128, School of Economics and Finance, Queensland University of Technology.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:1912.07700. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.