[Paper Review] Predict Forex Trend via Convolutional Neural Networks
This paper proposes a convolutional neural network (CNN)-based approach to predict foreign exchange (Forex) trend directions by converting time-series currency data into visual images, enabling the model to learn patterns analogous to human chart analysis. The method achieves up to 87% classification accuracy in predicting bullish, bearish, or sideways market movements using price and moving average data visualized as 2D images.
Deep learning is an effective approach to solving image recognition problems. People draw intuitive conclusions from trading charts; this study uses the characteristics of deep learning to train computers in imitating this kind of intuition in the context of trading charts. The three steps involved are as follows: 1. Before training, we pre-process the input data from quantitative data to images. 2. We use a convolutional neural network (CNN), a type of deep learning, to train our trading model. 3. We evaluate the model's performance in terms of the accuracy of classification. A trading model is obtained with this approach to help devise trading strategies. The main application is designed to help clients automatically obtain personalized trading strategies.
Motivation & Objective
- To develop a deep learning model that mimics human visual intuition in interpreting Forex trading charts.
- To overcome limitations of traditional quantitative models by leveraging the pattern recognition strength of CNNs on visualized financial data.
- To evaluate whether CNNs can effectively classify Forex price movements (upward, downward, or sideways trends) when input data is transformed into image form.
- To investigate the impact of different data preprocessing and labeling strategies on CNN performance in financial trend prediction.
Proposed method
- Convert raw Forex time-series data (price, MA5, MA10, MA20) into 2D image representations using min-max scaling and pixel mapping.
- Train a pre-trained AlexNet-based CNN architecture on the image-converted data to classify market trends into three categories: rising, falling, or non-moving.
- Use a geometric Brownian motion (GBM) model to simulate synthetic market data for controlled training and evaluation in a 'small world' environment.
- Apply 1D convolutional layers to extract temporal patterns from the image-converted data, with deeper layers capturing increasingly complex features.
- Implement data augmentation and normalization techniques, including min-max scaling of price and moving average values to standardize input images.
- Evaluate model performance using accuracy, confusion matrices, and training/validation loss curves to detect overfitting and assess generalization.
Experimental results
Research questions
- RQ1Can a CNN effectively learn to classify Forex price trends when time-series data is converted into visual images?
- RQ2How does the choice of data preprocessing and labeling strategy affect the performance of a CNN in predicting market direction?
- RQ3Does the visual clarity of trend patterns in the input images correlate with improved classification accuracy?
- RQ4Can a standard CNN architecture like AlexNet achieve high performance in Forex trend prediction without architectural modifications?
- RQ5To what extent does the model generalize to unseen data, and is overfitting a significant issue in this visual-based approach?
Key findings
- The CNN model achieved a peak classification accuracy of 87% in Experiment 3, which used open, close, and moving average data visualized as images with clear trend patterns.
- The model showed robust generalization, with testing accuracy only slightly lower than training accuracy, indicating minimal overfitting despite complex feature learning.
- Confusion matrices confirmed that each class (bullish, bearish, sideways) was classified with high consistency, and no single class was significantly misclassified.
- Visualization of feature maps from the first two convolutional layers revealed that kernels successfully captured directional trends (e.g., upward or downward slopes) in the input images.
- Experiments with less visually distinct patterns (e.g., in Experiment 1 and 2) yielded lower accuracy, confirming that visual clarity of trends enhances model performance.
- The use of min-max scaling and image-based representation significantly improved model stability and performance compared to raw time-series input.
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.