[Paper Review] Convolutional Neural Network(CNN/ConvNet) in Stock Price Movement Prediction
This paper proposes a 1D Convolutional Neural Network (CNN) using TensorFlow's Conv1D to predict stock price movements (up/down) from minute-wise NIFTY 50 price data (2013–2016). Despite achieving high recall (>0.95), the model underperforms on precision (≥0.5) and F1-score (>0.65), indicating difficulty in accurately predicting price declines, likely due to poor capture of downward trends.
With technological advancements and the exponential growth of data, we have been unfolding different capabilities of neural networks in different sectors. In this paper, I have tried to use a specific type of Neural Network known as Convolutional Neural Network(CNN/ConvNet) in the stock market. In other words, I have tried to construct and train a convolutional neural network on past stock prices data and then tried to predict the movement of stock price i.e. whether the stock price would rise or fall, in the coming time.
Motivation & Objective
- To investigate the feasibility of using 1D Convolutional Neural Networks for predicting stock price direction (up or down) from time-series price data.
- To evaluate model performance using standard classification metrics (accuracy, precision, recall, F1-score) on unseen test data.
- To identify limitations in the model’s ability to capture downward price trends despite strong performance in detecting upward movements.
- To explore potential improvements through architectural modifications, feature engineering, or alternative deep learning models.
Proposed method
- Trained a 1D CNN using TensorFlow’s Conv1D layer on minute-level historical stock prices from April 2013 to September 2016.
- Employed max-pooling to reduce dimensionality and retain key features while minimizing parameters.
- Applied dropout and early stopping to mitigate overfitting during training.
- Used fully connected layers after convolutional and pooling layers to produce final predictions.
- Optimized model weights via backpropagation and stochastic gradient descent to minimize loss.
- Evaluated performance using accuracy, precision, recall, and F1-score on a held-out test set.
Experimental results
Research questions
- RQ1Can a 1D CNN effectively learn temporal patterns in stock price time series to predict directional movement?
- RQ2How does the model’s performance vary between predicting price increases and decreases?
- RQ3To what extent do regularization techniques like dropout and early stopping prevent overfitting in this financial time-series setting?
- RQ4What are the limitations of using only a CNN architecture for stock price direction prediction?
- RQ5How do architectural choices (e.g., kernel size, number of layers) impact predictive performance?
Key findings
- The model achieved a recall of over 0.95, indicating strong ability to detect rising stock prices.
- Precision remained above 0.5, suggesting moderate reliability in positive predictions, though not optimal.
- F1-score exceeded 0.65, indicating a balanced but not strong harmonic mean between precision and recall.
- Accuracy on both training and testing sets exceeded 0.5, confirming basic predictive capability.
- The model struggled to predict price declines, as evidenced by low true negative and high false positive rates.
- Overfitting was observed when training for more than 25 epochs without early stopping, with test loss increasing after initial decline.
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.