GithubHelp home page GithubHelp logo

ahmedissa11 / forecasting-of-forex-market-based-on-deep-learning-and-hyperparameters-optimization Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 702 KB

Using Hybrid model based on LSTM we predict the daily closing price of the index based on the historical data available. Using KerasTuner These models were trained, and automatically evaluating different components and design decisions, and their results were measured. Finally, we analyzed and clustered our results in order to know the characteristics of each cluster.

clustering forex-prediction graduation-project hyperparameter-optimization keras-tuner lstm stock-price-prediction time-series

forecasting-of-forex-market-based-on-deep-learning-and-hyperparameters-optimization's Introduction

Forecasting-of-Forex-Market-Based-on-Deep-Learning-and-Hyperparameters-Optimization

ABSTRACT

Time series forecasting has got an important role in today’s economy. We use daily index price data and directly use our own index features as the model inputs. Using Long Short-Term Memory (LSTM) we predict the daily closing price of the index based on the historical data available. Using KerasTuner These models were trained, and automatically evaluating different components and design decisions, and their results were measured. Finally, we analyzed and clustered our results in order to know the characteristics of each cluster.

PROBLEM SPACE

Time series exist in many forms and sizes. small sample size, high noise, non-linearity, and non-stationarity. The noisy features mean an incomplete information gap between the previous index price and its volume with the future price. In this study, we will see if it is possible to create a model using a Long and Short-Term Memory Network that will predict index price with a lower percentage of error. Also, we will see how accurate LSTM prediction is when compared to these models.

AIM OF WORK

Our primary goal is to investigate how well the LSTM algorithm predicts index prices. Therefore, the real question is not about whether they work or not, but rather how well an LSTM model can forecast the index adjusted closing price and determine the error percentage compared to the actual data.

METHODS

  • Hybrid model based on Long-and-Short-Term Memory Network (LSTM).
  • Finding the Optimal Hyperparameters Using KerasTuner.
  • Clustering the 100 model Hyperparameters table using K-Mean Algorithm.

Project Overview

RESULTS

Best Results Cases

In this case we retrieved the optimal combination of hyperparameters from KerasTuner and retrain the model with it. The figure displays the price movement forecast provided by the model for 1400 trading days when repeatedly fed the network with unseen historical data. In comparison to the actual price, we can observe that the forecast is very close. In most cases it is the same and in other cases the difference is a very small fractional number.

Best Result

Evaluation

we will display our model’s accuracy and loss under different conditions and the degree of scalability for the hyperparameters and the architecture itself. We will demonstrate models no. 1 to 10, 50 and 100 in performance order so we can see all aspects of our experiment.

Evaluation Table

Clustering

The mean value is a useful indicator of data distribution; we will determine the average value, stander division, minimum and maximum for each variable and cluster.

HP Table

CONCLUSION

To summarize, a comprehensive automatic system for predicting the index daily closing prices was constructed in this thesis. The decision has been made to use the deep learning technique as well as its different algorithms to develop a solid system that is recognized as a suitable system for different time series data patterns after investigating several techniques to determine the most useful methodology capable of resolving this particular problem. To begin, a predictive model based on real-time series data was developed. The long short-term memory approach was selected and implemented since it is a well-known algorithm for sequence learning methods in many applications. Also, we tuned the model architecture and hyperparameters using KerasTuner. Finally, we cluster the results and know the characteristics for each cluster. In this study, we outperformed previous stock prediction methods from different references.

FUTURE WORK

Financial markets are extremely complicated, and many factors influence index price movement, including macroeconomic events, market noise, investor attitude, and so on. so, when developing a deep learning model, we believe it is unwise to forecast the adjusted closing price purely based on the index historical data only. we believe that we should construct a hybrid model in which we employ sentiment analysis, for example, when trying to forecast the index price's volatility, we found that the prediction error was higher when the index price was volatile. As a solution to make the prediction correct and to be able to predict data patterns and at the same time predict the impact of news on the market, we will take into consideration more than just the history of index prices.

This was a short version from my graduation project. For more details, you can check the demo.

Demo Video : not yet

forecasting-of-forex-market-based-on-deep-learning-and-hyperparameters-optimization's People

Contributors

ahmedissa11 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

surathisin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.