Stock Market Index Prediction Using Multilayer Perceptron and Long Short Term Memory Networks: A Case Study on BSE Sensex

Similar documents
STOCK MARKET PREDICTION AND ANALYSIS USING MACHINE LEARNING

The Use of Artificial Neural Network for Forecasting of FTSE Bursa Malaysia KLCI Stock Price Index

International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18, ISSN

International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18, ISSN

Application of Deep Learning to Algorithmic Trading

An enhanced artificial neural network for stock price predications

Deep Learning for Time Series Analysis

Two kinds of neural networks, a feed forward multi layer Perceptron (MLP)[1,3] and an Elman recurrent network[5], are used to predict a company's

Artificially Intelligent Forecasting of Stock Market Indexes

Performance analysis of Neural Network Algorithms on Stock Market Forecasting

Stock Trading Following Stock Price Index Movement Classification Using Machine Learning Techniques

Stock Market Prediction using Artificial Neural Networks IME611 - Financial Engineering Indian Institute of Technology, Kanpur (208016), India

Development and Performance Evaluation of Three Novel Prediction Models for Mutual Fund NAV Prediction

Prediction of Stock Closing Price by Hybrid Deep Neural Network

STOCK PRICE PREDICTION: KOHONEN VERSUS BACKPROPAGATION

Stock market price index return forecasting using ANN. Gunter Senyurt, Abdulhamit Subasi

AN ARTIFICIAL NEURAL NETWORK MODELING APPROACH TO PREDICT CRUDE OIL FUTURE. By Dr. PRASANT SARANGI Director (Research) ICSI-CCGRT, Navi Mumbai

Barapatre Omprakash et.al; International Journal of Advance Research, Ideas and Innovations in Technology

Bond Market Prediction using an Ensemble of Neural Networks

Dr. P. O. Asagba Computer Science Department, Faculty of Science, University of Port Harcourt, Port Harcourt, PMB 5323, Choba, Nigeria

Backpropagation and Recurrent Neural Networks in Financial Analysis of Multiple Stock Market Returns

Based on BP Neural Network Stock Prediction

Journal of Internet Banking and Commerce

Recurrent Residual Network

A Novel Prediction Method for Stock Index Applying Grey Theory and Neural Networks

distribution of the best bid and ask prices upon the change in either of them. Architecture Each neural network has 4 layers. The standard neural netw

Novel Approaches to Sentiment Analysis for Stock Prediction

Applications of Neural Networks in Stock Market Prediction

Iran s Stock Market Prediction By Neural Networks and GA

ARTIFICIAL NEURAL NETWORK SYSTEM FOR PREDICTION OF US MARKET INDICES USING MISO AND MIMO APROACHES

An Improved Approach for Business & Market Intelligence using Artificial Neural Network

A Comparative Study of Ensemble-based Forecasting Models for Stock Index Prediction

Application of Innovations Feedback Neural Networks in the Prediction of Ups and Downs Value of Stock Market *

Predicting the stock price companies using artificial neural networks (ANN) method (Case Study: National Iranian Copper Industries Company)

Foreign Exchange Rate Forecasting using Levenberg- Marquardt Learning Algorithm

Role of soft computing techniques in predicting stock market direction

Stock Price Prediction using Recurrent Neural Network (RNN) Algorithm on Time-Series Data

Pattern Recognition by Neural Network Ensemble

Statistical and Machine Learning Approach in Forex Prediction Based on Empirical Data

Forecasting stock market prices

Stock Market Prediction with Various Technical Indicators Using Neural Network Techniques

$tock Forecasting using Machine Learning

Using neural network to approximate macroeconomic forecast models for BRICS nations

Keywords: artificial neural network, backpropagtion algorithm, derived parameter.

Chapter IV. Forecasting Daily and Weekly Stock Returns

OPENING RANGE BREAKOUT STOCK TRADING ALGORITHMIC MODEL

Design and implementation of artificial neural network system for stock market prediction (A case study of first bank of Nigeria PLC Shares)

Predicting Economic Recession using Data Mining Techniques

Stock Price Prediction using Deep Learning

LITERATURE REVIEW. can mimic the brain. A neural network consists of an interconnected nnected group of

A Dynamic Hedging Strategy for Option Transaction Using Artificial Neural Networks

Stock price development forecasting using neural networks

CHAPTER 3 MA-FILTER BASED HYBRID ARIMA-ANN MODEL

Neuro-Genetic System for DAX Index Prediction

Providing a Model to Predict Future Cash Flow Using Neural Networks on the Pharmaceutical and Chemical Industries of Tehran Stock Market

HKUST CSE FYP , TEAM RO4 OPTIMAL INVESTMENT STRATEGY USING SCALABLE MACHINE LEARNING AND DATA ANALYTICS FOR SMALL-CAP STOCKS

Keywords Time series prediction, MSM30 prediction, Artificial Neural Networks, Single Layer Linear Counterpropagation network.

Deep Learning for Forecasting Stock Returns in the Cross-Section

ABSTRACT 1. INTRODUCTION

A Big Data Framework for the Prediction of Equity Variations for the Indian Stock Market

Stock Price Prediction using combination of LSTM Neural Networks, ARIMA and Sentiment Analysis

International Journal of Computer Science Trends and Technology (IJCST) Volume 5 Issue 2, Mar Apr 2017

Cognitive Pattern Analysis Employing Neural Networks: Evidence from the Australian Capital Markets

A multiple model of perceptron neural network with sample selection through chicken swarm algorithm for financial forecasting

PREDICTION OF CLOSING PRICES ON THE STOCK EXCHANGE WITH THE USE OF ARTIFICIAL NEURAL NETWORKS

k-layer neural networks: High capacity scoring functions + tips on how to train them

International Journal of Computer Communication and Information System ( IJCCIS) Vol2. No1. ISSN: July Dec 2010

Foreign Exchange Forecasting via Machine Learning

Valencia. Keywords: Conditional volatility, backpropagation neural network, GARCH in Mean MSC 2000: 91G10, 91G70

Keywords: artificial neural network, backpropagtion algorithm, capital asset pricing model

Evaluate the Ability of Artificial Neural Network to Predict the Stock Price of Non-Metallic Mineral Products Industry in Tehran's Stock Exchange

Segmentation and Scattering of Fatigue Time Series Data by Kurtosis and Root Mean Square

A.K.Singh. Keywords Ariticial neural network, backpropogation, soft computing, forecasting

REGRESSION, THEIL S AND MLP FORECASTING MODELS OF STOCK INDEX

Stock Market Prediction System

COGNITIVE LEARNING OF INTELLIGENCE SYSTEMS USING NEURAL NETWORKS: EVIDENCE FROM THE AUSTRALIAN CAPITAL MARKETS

Alternate Models for Forecasting Hedge Fund Returns

Forecasting stock market return using ANFIS: the case of Tehran Stock Exchange

STOCK MARKET TRENDS PREDICTION USING NEURAL NETWORK BASED HYBRID MODEL

ZONE WISE ANALYSIS OF CAVITATION IN PRESSURE DROP DEVICES OF PROTOTYPE FAST BREEDER REACTOR BY KURTOSIS BASED RECURRENT NETWORK

Using artificial neural networks for forecasting per share earnings

On stock return prediction with LSTM networks

Academic Research Review. Algorithmic Trading using Neural Networks

Credit Card Default Predictive Modeling

Prediction Using Back Propagation and k- Nearest Neighbor (k-nn) Algorithm

Stock Market Forecasting Using Artificial Neural Networks

International Journal of Research in Engineering Technology - Volume 2 Issue 5, July - August 2017

An Intelligent Forex Monitoring System

Stock Market Predictor and Analyser using Sentimental Analysis and Machine Learning Algorithms

Prediction of Future Stock Close Price using Proposed Hybrid ANN Model of Functional Link Fuzzy Logic Neural Model

Forecasting Currency Exchange Rates via Feedforward Backpropagation Neural Network

Stock Market Indices Prediction with Various Neural Network Models

VOL. 2, NO. 6, July 2012 ISSN ARPN Journal of Science and Technology All rights reserved.

arxiv: v1 [q-fin.cp] 19 Mar 2018

COMPARING NEURAL NETWORK AND REGRESSION MODELS IN ASSET PRICING MODEL WITH HETEROGENEOUS BELIEFS

Neural Network Prediction of Stock Price Trend Based on RS with Entropy Discretization

Research Article Design and Explanation of the Credit Ratings of Customers Model Using Neural Networks

A Review of Artificial Neural Network Applications in Control. Chart Pattern Recognition

PREDICTION OF THE INDIAN STOCK INDEX USING NEURAL NETWORKS

Saudi Arabia Stock Market Prediction Using Neural Network

Transcription:

Stock Market Index Prediction Using Multilayer Perceptron and Long Short Term Memory Networks: A Case Study on BSE Sensex R. Arjun Raj # # Research Scholar, APJ Abdul Kalam Technological University, College of Engineering, Trivandru, Kerala, India Abstract- Stock market index is a statistical measure that quantifies the changes in a portfolio of stocks which represents a portion of the overall stock market. Prediction of stock market has been a challenging task and of great interest for scholars as the very fact that stock market is a highly volatile in its behaviour. Prediction of stock market is substantial in finance and is gathering more attention, due to the verity that if the direction of the market is predicted successfully the investors may be effectively guided. Deep Learning technique is a subfield of machine learning which is concerned with algorithms necessitated by the function and structure of the brain called artificial neural networks. The most popular techniques are Multilayer Perceptron Networks, Restricted Boltzmann Machines, Convolutional Neural Networks and Long Short-Term Memory Recurrent Neural Networks. This work focuses on the task of predicting the stock market Index. The objective of the project work is to develop and compare the performances of Multilayer Perceptron (MLP) and Long Short-Term Memory (LSTM) Networks in forecasting stock market indices. Recent ten years historical data of Bombay Stock Exchange (BSE) Sensex from the Indian Stock market has been chosen for the experimental evaluation. The Adam Optimizer is used for the training of deep neural networks. Root mean square (RMSE) is used to compare the performance of the prediction models. As seen from the results, the prediction is fairly accurate in both cases and MLP has outperformed LSTM model, in predicting stock market indices. Neural networks have proved to be a good technique, to forecast a chaotic time series data like stock market index. Keywords: Stock market index, Deep Learning, Multilayer Perceptron, Long Short-Term Memory Networks, Neural networks. T I. INTRODUCTION he task of prediction of stock market is very challenging and of great interest for researchers as the very fact that stock market is a highly volatile in its behaviour. Prediction of stock market is substantial in finance and it is drawing more attention, due to the fact that the investors may be better guided if the direction and trend of the stock market is predicted successfully. An index in stock market is a statistical measure which reflects the changes in a portfolio of stocks which represents a portion of the overall market. A stock market index is the total value obtained by the combination of different stocks or several other investment instruments altogether. It expresses the total values with respect to a base value from a specific period. Knowledge of Index values assist the investors track changes in market values over longer periods of time. Stock Market indices reflect an overall stock market and trace the market s changes over time. Investors can track the changes in the value index over time.they can also utilize it as a benchmark against which to make comparison of the returns from the portfolio. Stock market indices evaluate the value and merits of groups of different stocks. As the stock market being chaotic, nonlinear, and dynamic in nature it is very difficult to understand because of its volatility, hence it is of great importance for the investors to know its behaviour which would help for their effective investment in it. Artificial Neural Network (ANN) has the capability to identify the chaotic and nonlinear inter relation within the input data set without a priori presumption of knowledge of correlation between the input data and the output. Hence Artificial Neural Networks suits better than other models in forecasting the stock market returns [1]. Many research work attempts have been conducted on stock market field to extract and identify some useful patterns and forecast their variations and movements. The values in Stock market in itself is a continuously evolving framework and is highly non-linear, perplexing, dynamicin nature.in this project, Multilayer Perceptron and Deep Recurrent Neural Network using LSTM (Long-Short Term Memory) has been proposed for the reliable prediction results. 1) Problem definition: Multilayer Perceptron and Recurrent neural networks (RNN) are a very powerful technique for analysing and processing the sequential data such as sound, time series data or data written natural language. Long Short- Term Memory (LSTM) model is one of the most booming and successful recurrent neural networks architectures. Only limited works have been carried out for the prediction of Indian Stock Market indices using Deep learning models such as Multilayer Perceptron (MLP) and Long Short-Term Memory (LSTM) Networks. The stock market indices are highly volatile, chaotic and fluctuating, fluctuations affect the investor s calculations and www.rsisinternational.org Page 46

belief. Hence finding out more productive methods of stock market index forecasting is necessary for stock market investors so that they can make more informed and accurate investment decisions. 2) Objectives of the work: The present work focuses on predicting the future values of Bombay Stock Exchange Sensex. The objectives of the project work are to develop and compare the performances of Multilayer Perceptron (MLP) and Long Short-Term Memory (LSTM) Networks in forecasting stock indices. 3) Research Methodology: Initially performed literature survey to identify the various prediction models suitable for forecasting stock market indices, model parameters, deep learning models. Then collected data and analysed it. And developed deep learning models for stock market index prediction. The models considered in this study are Multilayer Perceptron (MLP) and Long Short Term Memory (LSTM) Networks. After that, the perfect combination of model parameters for the better prediction accuracy by parameter tuning was examined. The proposed models weretrained and validated. Finally, compared the prediction accuracy of different variants of MLP and LSTM models based on the performance measure RMSE. A. Literature Review Several models have been utilized by analysts to predict the stock market values by using Artificial Neural Networks (ANN). The financial time series models which are represented by financial concepts and theories forms the essence for predicting a series of data in the present century. Still, these concepts cannot be directly applied to forecast the market values which are having external impact. The enhancement of multilayer concept aids Artificial Neural Networks to be selected as a forecasting technique apart from other methods[2]. Deep neural network is a machine-learning paradigm for modelling complex nonlinear mappings between inputs and outputs, and the internal parameters are updated iteratively to make the given inputs fit with target outputs. The multilayer perceptron model is one of the important and commonly used prediction techniques. MLP is believed to have the capability to approximate arbitrary functions[2]. Regression analysis is a diagnostic and analytical process and it is utilized in examining the interrelation among the features and variables.non-linear models include techniques like ARCH, GARCH, TAR, Deep learning algorithms. These include multilayer perceptron (MLP), Long Short Term Memory (LSTM), Recursive Neural Networks (RNN), CNN (Convolutional Neural Network) etc[3]. Long Short Term Memory (LSTM) is a outstanding variant of RNN and it introduced by Hochreiter and Schmidhuber[4]. The scrutiny of time dependent data become more effective with the introduction of Long Short Term Memory networks. These kind of models have the ability of retaining previous information. Kai et al. through their work explained the power of Long Short Term Memory Networks in sequence learning for stock market prediction in China and it is understood from the results that normalization was very useful for enhancing accuracy [5]. Kaustubh et al. made a comparative analysis between Multilayer Perceptron (MLP) model and Long Short- Term Memory (LSTM) model leveraging the power of technical analysis and found that Feed Forwards Multilayer Perceptron perform superior to Long Short-Term Memory, at predicting the short - term prices of a stock.artificial Neural networks have demonstrated to be a good technique, to predict a chaotic and volatile framework like Stock Market[6]. Mahanta et al. have selected Radial Basis Functional Network (RBFN), Multilayer Perceptron model (MLP) and an optimized Radial Basis Functional neural network for predicting the closing prices of Sensex and Nifty using 11 technical indicators. The proposed model optimized RBFgives better result as compare to MLP and RBF[7]. Yoshua gave the practical guide with recommendations for some of the most commonly used hyper-parameters, in particular in the context of learning algorithms based on back propagated gradient and gradient-based optimization The study also described the parameters used to effectively train and debug large-scale and often deep multi-layer neural networks models [8]. Diederik and Jimmy introduced Adam, an algorithm for first-order gradient-based optimization of stochastic objective functions based on adaptive estimates of lower-order moments. It is demonstrated that Adam works well in practice and compares favourably to other stochastic optimization methods [9]. Bing et al. (2017) modelled a deep neural network ensemble to predict Chinese stock market index based on the input indices of recent days. A set of component networks are trained by historical data for this task, where Backpropagation and Adam algorithm are used to train each network [10]. From the literature review it is understood that the multilayer perceptron is one of the most commonly used neural network topologies.long Short Term Memory networks are a kind of models that have the ability of retaining previous information. Regression analysis is an analytical process which is used in determining the relationships between the variables. The Adam is widely-used in the training of deep neural networks. There has been limited study in the prediction of Indian Stock Market indices using Deep Learning Techniques. Hence, in this project work, multi-layer Perceptron and Long Short Term Memory Networks are used for predicting the closing price of Indian stock market index. The models shall be trained using Adam optimizer and mean square error as loss function. B. Deep Learning Models www.rsisinternational.org Page 47

1) Multilayer Perceptron (MLP): MLP consists of a network of densely connected neurons between adjoining layers. One of the peculiarities of Feed Forward Neural Networks is that output of one layer is never fed back to the previous layers. The input which goes to every neuron is the weighted sum of all the outputs from the previous layer of the neural network. The conversion of this input into the output is performed by a continuous and differentiable activation function. The output of one pass is produced after the signals propagate from input to the output layer. The error for the pass is calculated, for regression it is usually root mean squared error or mean squared error. The learning algorithm, generally a kind of gradient descent algorithm, adjusts the weights of the neurons necessary to reduce the error. The data is passed to the model several times to adjust the weights to reduce the errors until the given number of epochs are reached [6] C. Experiment Design 1) Data Collection: The daily close, open, high and low prices of BSE Sensex index were collected for the period from 1 st January, 2008 to 31 st May, 2018. Thus very recent ten years data have been collected. All these data have been collected from the website of Yahoo Finance. Statistical Parameters TABLE 1 Statistical Description of dataset Sensex Dataset Train dataset Test dataset No. of Obs. 2559 1800 759 Min 8160.4 8160.4 22951.83 Max 36283.25 29681.77 36283.25 Mean 21651.965 18512.674 29096.922 Variance 40289044 19459198 10875503. Skewness 0.2737796 0.36582255 0.39159653 Kurtosis -0.6978154 0.602412-1.0244415 Fig. 1 Architecture of Multilayer perceptron[11] 2) Long Short Term Memory (LSTM) Networks: The process followed in the whole algorithm of LSTM is similar to that as of MLP except for the processing of input within every neuron. Unlike normal neurons, the output of every LSTM cell is a result of a multistep process. LSTMs have an additional memory, called cell state, which stores relevant past information to aid in prediction. The information stored in the cell state is modified by structures, called gates, in the following steps. Initially, the forget gate decides whether to eliminate any available information. The input gate and tanh layer would decide which new information has to be stored. Again, the information gets appended and ignored with respect to the previous gates. At last, the activation function is applied to the data and the output is produced[6]. Fig 2: LSTM architecture[12] 2) Data Pre-processing: The data was normalized into the range of [0, 1] by Min Max Scaler, since neural networks are known to be very sensitive to data which is not normalized, which is then inputted into the forecasting model.the dataset was split into two: 70% for train data and remaining 30% for the test data. 3) Tools and Techniques: The execution of the proposed prediction models is carried out using Windows 10 Professional platform. However, it can also be executed on other platforms. It is carried out under the system with specifications of 4GB RAM and 1TB HDD.The softwares used are: MS Excel 2010 for Data Preparation and Python 3.5.2 for developing code for models. The techniques used for the prediction of stock market indices are Multilayer Perceptron (MLP) and Long Short Term Memory (LSTM) Networks. 4) Performance measure and stopping Criteria: The error for convergence is calculated as (MSE) between the target values and the actual outputs. The Root mean Square error is used to report the efficiency of the algorithm on the train dataset and test data set. The stopping criterion for the algorithm is set as the number of iterations (epochs). Here, the epochs is considered as the tuning parameter which is varied as 25, 50 and 100. 5) Architecture of MLP models: Two variants of MLP models are considered. MLP1- Multilayer Perceptron Regression MLP2- Multilayer Perceptron Regression Using the Window Method www.rsisinternational.org Page 48

TABLE 2 Parameters used in model MLP1 and MLP2 Parameters MLP1 MLP2 No. of neurons in hidden layer 4, 8, 16, 32, 64, 128 16, 32 No. of hidden layers 1 2 Epochs 25, 50, 100 25,50, 100 Optimizer Adam Adam Loss function Lookback 1 3, 5, 10, 25 Activation Function Relu Relu Batch size 1 1 Dropout 0.10 0.10 5) Architecture of LSTM models: Three variants of stateless LSTMs and two variants of state full LSTM models are considered. LSTM1-LSTM Network for Regression LSTM2- LSTM for Regression Using the Window Method LSTM3- LSTM for Regression with Time Steps LSTM4-LSTM for Regression with Memory Between Batches LSTM5-Stacked LSTM for Regression with Memory Between Batches TABLE 3 Parameters used in model LSTM1, LSTM2 and LSTM3 Parameters LSTM1 LSTM2 LSTM3 No. of neurons in hidden layer 4, 8, 16, 32, 64, 128 4, 8, 16, 32, 64, 128 No. of Hidden Layers 1 1 1 Epochs 25, 50, 100, 25, 50, 100, 25, 50, 100, Optimizer Adam Adam Adam Loss function 32 Look back 1 3, 5,10,25 3, 5, 10, 25 Activation Function tanh tanh tanh Batch size 1 1 1 Dropout 0.10 0.10 0.10 Input shape [n samples, timestep, features] [n, 1, 1] [n, 1, (3,5,10,25] [n, (3, 5, 10, 25), 1] The model parameters such as number of neurons, look back, epochs were varied systematically, one by one to get ideal set of parameters so as to obtain maximum efficiency in the stock index prediction for each of the above models. The lower RMSE values of train and test data and the corresponding parameters obtained for the variants of each of the MLP and LSTM models are tabulated in Table 5. TABLE 4 Parameters used in model LSTM4 and LSTM5 Parameters LSTM4 LSTM5 No. of neurons in hidden layer 32 (32,16) No. of Layers 1 2 Range 25, 50, 100, 25, 50, 100, Epochs 1 1 Optimizer Adams Adams Loss function Look back 3, 5, 10, 25 3, 5, 10, 25 Activation Function tanh tanh Batch size 1 1 Dropout 0.10 0.10 Input shape [n samples, timestep, features] [n, 1, 1] [n, (3, 5, 10, 25), 1] Stateful Parameter True True Return Sequence Parameter - True D. Results and Discussion The prediction precision is evaluated based on Root mean square error (RMSE) value. The best performance measure RMSE values of each of the different variants of multilayer Perceptron (MLP1 and MLP2) models are shown in Table 5. TABLE 5 Comparison of performance measure RMSE for different variants of MLP and LSTM Model Parameter Train dataset Test dataset MLP1 MLP2 LSTM1 LSTM2 LSTM3 LSTM4 LSTM5 (n =16, e=100, (n =[32,16], e=100, lb=10) lb=3) lb=3) lb=10, statefull) (n =[3216], e=100, lb=3, statefull) *Scaled RMSE, # Rescaled RMSE 0.0309 0.0318* 321.142 # 304.080 0.0268 0.0280 270.359 282.831 0.03929 0.05118 395.74785 515.48034 0.04118 0.05203 414.78742 524.05351 0.04567 0.05919 459.9751 596.17113 0.04642 0.05834 467.53204 587.59748 0.08654 0.07337 871.66122 739.01698 0.10785 0.09272 1086.29000 933.90947 www.rsisinternational.org Page 49

The model parameters such as number of neurons, look back, epochs were varied systematically, one by one to get ideal set of parameters so as to obtain maximum efficiency in the stock index prediction. Here, model MLP1 was based on simple regression using multilayer perceptron and MLP2 represented Multilayer Perceptron Regression using window method. From the results of parameter tuning experiment, it is observed that, MLP1 model with 16 and 32 neurons with 100 epochs gave better RMSE value than other models. The convergence of loss function was smooth as the number of epochs increased to 100. Similarly, the best performance measure RMSE values obtained for each of the five different variants of Long Short Term Memory (LSTM1, LSTM2, LSTM3, LSTM4 and LSTM5) models are shown in Table 5. It is observed that the LSTM models LSTM1, LSTM2 and LSTM3 performed comparatively better than LSTM4 and LSTM5 models with statefull parameter set True. As seen from the Table 5, which shows the comparison of performance measure for the different variants of MLP and LSTM models, it is seen that the error of the Long Short Term Memory Networks is higher as compared to Multilayer Perceptron. As observed from the results, the prediction is fairly accurate in both cases and Multilayer Perceptron (MLP) has outperformed Long Short Term Memory (LSTM) model, in forecasting stock market index. II. CONCLUSIONS The growing popularity of trading in stock market is encouraging the scholars and financial analysts to explore out new techniques of forecasting using new techniques instead of the existing statistical methods. The art of predicting is not only assisting to the scholars but also to investors, brokers and any enthusiastic person to the stock market. In order to provide a tool for stock indices prediction, it requires a prediction model with good accuracy. Here, focus was on the task of predicting the stock market Index. The objective of the project work is to develop and compare the performances of Multilayer Perceptron and Long Short-Term Memory Networks in forecasting stock market indices. The number of epochs, look back and number of nodes in the hidden layer of the network were considered as the experimental parameters. From the above result, it is observed that the error of the Long Short Term Memory Networks is higher as compared to Multilayer Perceptron. As seen from the results, the prediction is fairly accurate in both cases and Multilayer Perceptron (MLP) has outperformed Long Short Term Memory Networks (LSTM) model, in predicting stock market indices. Neural networks have proved to be a good technique, to forecast a chaotic time series data like stock market index. In this project work, only the previous years closing price of stock has been used as input feature for the prediction of stock market index using Multilayer Perceptron and Long Short Term Memory Networks. As a future scope, with the aim to improve the accuracy of the models, macroeconomic factors and news related data can also be used as input variables. Technical analysis indicators may also be used in the input variables and can be analysed for improvement in the performance of the neural networks considered in this project. ACKNOWLEDGMENT Author is thankful to the faculty at College of Engineering, Trivandrum and the Infinity lab of UST global at Kulathoor Campus for guidance and technical support. REFERENCES [1]. V. Ravi, D. Pradeepkumar, and K. Deb, Financial time series prediction using hybrids of chaos theory, multi-layer perceptron and multi-objective evolutionary algorithms, Swarm and Evolutionary Computation, no. January, pp. 1 14, 2017. [2]. E. Guresen, G. Kayakutlu, and T. U. Daim, Using artificial neural network models in stock market index prediction, Expert Systems with Applications, vol. 38, no. 8, pp. 10389 10397, 2011. [3]. S. Selvin, R. Vinayakumar, E. A. Gopalakrishnan, V. K. Menon, and K. P. Soman, Stock price prediction using LSTM, RNN and CNN-sliding window model, 2017 International Conference on Advances in Computing, Communications and Informatics, ICACCI 2017, vol. 2017 Janua, pp. 1643 1647, 2017. [4]. S. Hochreiter and J. Urgen Schmidhuber, Long Short-Term Memory, Neural Computation, vol. 9, no. 8, pp. 1735 1780, 1997. [5]. K. Wang, C. Yang, and K. Chang, Stock prices forecasting based on wavelet neural networks with PSO, vol. d, 2017. [6]. K. Khare, O. Darekar, P. Gupta, and V. Z. Attar, Short term stock price prediction using deep learning, 2017 2nd IEEE International Conference on Recent Trends in Electronics, Information & Communication Technology (RTEICT), pp. 482 486, 2017. [7]. R. Mahanta, T. N. Pandey, A. K. Jagadev, and S. Dehuri, Optimized Radial Basis Functional neural network for stock index prediction, International Conference on Electrical, Electronics, and Optimization Techniques, ICEEOT 2016, pp. 1252 1257, 2016. [8]. Y. Bengio, Practical recommendations for gradient-based training of deep architectures, Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), vol. 7700 LECTU, pp. 437 478, 2012. [9]. D. P. Kingma and J. Ba, Adam: A Method for Stochastic Optimization, pp. 1 15, 2014. [10]. Y. Bing, J. K. Hao, and S. C. Zhang, Stock Market Prediction Using Artificial Neural Networks, Advanced Engineering Forum, vol. 6 7, no. June, pp. 1055 1060, 2012. [11]. M. P. Naeini, H. Taremian, and H. B. Hashemi, Stock market value prediction using neural networks, Computer Information Systems and Industrial Management Applications (CISIM), 2010 International Conference on, pp. 132 136, 2010. [12]. M. R. Vargas, B. S. L. P. de Lima, and A. G. Evsukoff, Deep learning for stock market prediction from financial news articles, 2017 IEEE International Conference on Computational Intelligence and Virtual Environments for Measurement Systems and Applications (CIVEMSA), pp. 60 65, 2017. www.rsisinternational.org Page 50