[Paper Review] Stock Price Prediction Using Convolutional Neural Networks on a Multivariate Timeseries
This paper proposes a multivariate convolutional neural network (CNN) model for forecasting the NIFTY 50 index one week ahead using four years of historical data. The CNN model outperforms traditional machine learning methods in predicting actual close prices, achieving stable validation loss and converging training/validation accuracy through walk-forward validation and hyperparameter tuning.
Prediction of future movement of stock prices has been a subject matter of many research work. In this work, we propose a hybrid approach for stock price prediction using machine learning and deep learning-based methods. We select the NIFTY 50 index values of the National Stock Exchange of India, over a period of four years, from January 2015 till December 2019. Based on the NIFTY data during the said period, we build various predictive models using machine learning approaches, and then use those models to predict the Close value of NIFTY 50 for the year 2019, with a forecast horizon of one week. For predicting the NIFTY index movement patterns, we use a number of classification methods, while for forecasting the actual Close values of NIFTY index, various regression models are built. We, then, augment our predictive power of the models by building a deep learning-based regression model using Convolutional Neural Network with a walk-forward validation. The CNN model is fine-tuned for its parameters so that the validation loss stabilizes with increasing number of iterations, and the training and validation accuracies converge. We exploit the power of CNN in forecasting the future NIFTY index values using three approaches which differ in number of variables used in forecasting, number of sub-models used in the overall models and, size of the input data for training the models. Extensive results are presented on various metrics for all classification and regression models. The results clearly indicate that CNN-based multivariate forecasting model is the most effective and accurate in predicting the movement of NIFTY index values with a weekly forecast horizon.
Motivation & Objective
- To develop a hybrid machine learning and deep learning framework for stock price prediction on the NIFTY 50 index.
- To evaluate the effectiveness of convolutional neural networks in forecasting multivariate financial time series with a weekly horizon.
- To compare the performance of various classification and regression models, including traditional ML and deep learning approaches.
- To optimize the CNN model through hyperparameter tuning to minimize validation loss and improve convergence.
- To assess the impact of input variable count, model complexity, and training data size on predictive accuracy.
Proposed method
- The study uses a multivariate time series of NIFTY 50 index data from January 2015 to December 2019, including multiple financial indicators.
- Various machine learning models are trained for classification (directional movement) and regression (actual close price) tasks.
- A deep learning-based regression model is built using a Convolutional Neural Network (CNN) with multiple convolutional and pooling layers.
- The CNN model is trained using walk-forward validation to simulate real-time forecasting and avoid data leakage.
- Hyperparameter tuning is applied to stabilize validation loss and ensure convergence of training and validation accuracy.
- Three distinct CNN configurations are tested, varying the number of input variables, number of sub-models, and input sequence length.
Experimental results
Research questions
- RQ1Can a CNN-based model outperform traditional machine learning models in predicting the NIFTY 50 index's weekly closing price?
- RQ2How does the number of input variables affect the predictive performance of the CNN model?
- RQ3Does model complexity and input sequence length significantly influence forecasting accuracy in multivariate time series?
- RQ4Can walk-forward validation improve the robustness and generalization of deep learning models in financial forecasting?
- RQ5How do training and validation accuracy converge during CNN training, and what hyperparameters stabilize the model?
Key findings
- The CNN-based multivariate forecasting model achieved the highest predictive accuracy among all tested models for forecasting the NIFTY 50 index.
- Validation loss stabilized with increasing training iterations, indicating effective model convergence.
- Training and validation accuracies converged, suggesting the model generalized well without overfitting.
- The model with optimized hyperparameters showed consistent performance across multiple evaluation metrics.
- The use of walk-forward validation enhanced model reliability by simulating real-world forecasting conditions.
- The results demonstrate that CNNs are particularly effective in capturing temporal patterns in multivariate financial time series for short-term index prediction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.