Recurrent Neural Network With Gate Recurrent Unit For Stock Price Prediction

Afif Ilham Caniago, Wilis Kaswidjanti, Juwairiah Juwairiah

Abstract


Stock price prediction is a solution to reduce the risk of loss from investing in stocks go public. Although stock prices can be analyzed by stock experts, this analysis is analytical bias. Recurrent Neural Network (RNN) is a machine learning algorithm that can predict a time series data, non-linear data and non-stationary. However, RNNs have a vanishing gradient problem when dealing with long memory dependencies. The Gate Recurrent Unit (GRU) has the ability to handle long memory dependency data. In this study, researchers will evaluate the parameters of the RNN-GRU architecture that affect predictions with MAE, RMSE, DA, and MAPE as benchmarks. The architectural parameters tested are the number of units/neurons, hidden layers (Shallow and Stacked) and input data (Chartist and TA). The best number of units/neurons is not the same in all predicted cases. The best architecture of RNN-GRU is Stacked. The best input data is TA. Stock price predictions with RNN-GRU have different performance depending on how far the model predicts and the company's liquidity. The error value in this study (MAE, RMSE, MAPE) constantly increases as the label range increases. In this study, there are six data on stock prices with different companies. Liquid companies have a lower error value than non-liquid companies.


Keywords


stock exchange; RNN ; GRU; Shallow, Stacked, Tecnical analysis, Chartist

Full Text:

PDF

References


Althelaya, K.A., El-Alfy, E.S.M. and Mohammed, S., 2018. Stock Market Forecast Using Multivariate Analysis with Bidirectional and Stacked (LSTM, GRU). 21st Saudi Computer Society National Computer Conference, NCC 2018, pp.1–7.

Chen, J.X., Jiang, D.M. and Zhang, Y.N., 2019. A Hierarchical Bidirectional GRU Model With Attention for EEG-Based Emotion Classification. IEEE Access, 7, pp.118530–118540.

Chung, J., Gulcehre, C., Cho, K. and Bengio, Y., 2014. Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. [online] pp.1–9. Available at: .

Faurina, R., 2019. Klasifikasi Pergerakan Harga Saham Jangka Pendek Menggunakan Principal Component Analysis dan Jaringan Long Short Term Memory : Studi Kasus Pada Saham Bursa Efek Indonesia. S2. Universitas Gajah Mada

Fu, R., Zhang, Z. and Li, L., 2016. Using LSTM and GRU Neural Network Methods for Traffic Flow Prediction. 31st Youth Academic Annual Conference of Chinese Association of Automation Wuhan, pp.324–328.

Guresen, E., Kayakutlu, G. and Daim, T.U., 2011. Using artificial neural network models in stock market index prediction. Expert Systems with Applications, [online] 38(8), pp.10389–10397. Available at: .

Id, T.A.R., Abbas, D.K. and Turel, Y.K., 2019. A multi hidden recurrent neural network with a modified grey wolf optimizer. PLOS ONE, [online] pp.1–23. Available at: .

Imandoust, S.B. and Bolandraftar, M., 2014. Forecasting the direction of stock market index movement using three data mining techniques: the case of Tehran Stock Exchange. Journal of Engineering Research and Applications www.ijera.com, [online] 4(6), pp.106–117. Available at: .

Kara, Y., Acar Boyacioglu, M. and Baykan, Ö.K., 2011. Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul Stock Exchange. Expert Systems with Applications, [online] 38(5), pp.5311–5319. Available at: .

Khoolish, N, T.(2019). Gated Recurrent Unit – Recurrent Neural Network Untuk Peramalan Nilai Tukar Mata Uang Rupiah Terhadap Dolar Amerika. S1. Universitas Gajah Mada

Kui, lin L., Chun, jiw Z. and Jian, min X., 2017. Short term traffic flow prediction Using methodology based on arima and RBF-ANN. IEEE, p.634.

Kumar, S., Hussain, L., Banarjee, S. and Reza, M., 2018. Energy Load Forecasting using Deep Learning Approach-LSTM and GRU in Spark Cluster. Proceedings of 5th International Conference on Emerging Applications of Information Technology, EAIT 2018, pp.1–4.

Ma, T., Antoniou, C. and Toledo, T., 2020. Hybrid machine learning algorithm and statistical time series model for network-wide traffic forecast. Transportation Research Part C: Emerging Technologies, [online] 111(December 2019), pp.352–372. Available at: .

Ratnayaka, R.M.K.T., Seneviratne, D.M.K.N., Jianguo, W. and Arumawadu, H.I., 2015. A hybrid statistical approach for stock market forecasting based on Artificial Neural Network and ARIMA time series models. 2015 International Conference on Behavioral, Economic and Socio-Cultural Computing, BESC 2015, (Besc), pp.54–60.

Sugiartawan, P., Pulungan, R. and Sari, A.K., 2017. Prediction by a Hybrid of Wavelet Transform and Long-Short-Term-Memory Neural Network. International Journal of Advanced Computer Science and Applications, Vol. 8, No.2 (June), pp.326–332.

Struye, J. and Latré, S., 2020. Hierarchical temporal memory and recurrent neural networks for time series prediction: An empirical validation and reduction to multilayer perceptrons. Neurocomputing, [online] 396(xxxx), pp.291–301. Available at: .

Tambunan, A. P., 2007. Menilai Harga Wajar Saham. Jakarta: Penerbit PT Elek Media Komputindo

Wang, J., Yan, J., Li, C., Gao, R.X. and Zhao, R., 2019. Deep heterogeneous GRU model for predictive analytics in smart manufacturing: Application to tool wear prediction. Computers in Industry, [online] 111, pp.1–14. Available at: .

Wira, D., 2014. Analisis Fundamenal Saham Edisi Kedua. Jakarta: Penerbit Exceed Books

Zhang, D. and Kabuka, M.R., 2018. Combining weather condition data to predict traffic flow: A GRU-based deep learning approach. IET Intelligent Transport Systems, 12(7), pp.578–585.




DOI: https://doi.org/10.31315/telematika.v18i3.6650

DOI (PDF): https://doi.org/10.31315/telematika.v18i3.6650.g4250

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Copyright of :
TELEMATIKA: Jurnal Informatika dan Teknologi Informasi
ISSN 1829-667X (print); ISSN 2460-9021 (online)


Dipublikasi oleh
Jurusan Teknik Informatika, UPN Veteran Yogyakarta
Jl. Babarsari 2 Yogyakarta 55281 (Kampus Unit II)
Telp: +62 274 485786
email: [email protected]

 

Jurnal Telematika sudah diindeks oleh beberapa lembaga berikut:
 

 

 

 

 

Status Kunjungan Jurnal Telematika