Optimizing Hyperparameters for Enhanced LSTM-Based Prediction System Performance

Main Article Content

Priyanka Paygude
Prashant Chavan
Milind Gayakwad
Khushi Gupta
Satyam Joshi
Gopika
Rahul Joshi
Sudhanshu Gonge
Ketan Kotecha

Abstract

This research paper explores the application of deep learning and supervised machine learning algorithms, specifically Long Short-Term Memory (LSTM), for stock market prediction. The study focuses on the closing prices of three companies - Tata Steel, Apple, and Powergrid - using a dataset sourced from Yahoo Finance. Performance evaluation of the LSTM model employed RMSE, MAPE, and accuracy metrics, along with hyperparameter calibration to determine the optimal model parameters. The findings indicate that a single-layer LSTM model outperformed a multilayer LSTM model across all companies and evaluation metrics. Furthermore, a comparison with existing research demonstrated the superiority of the proposed model. The study emphasizes the effectiveness of LSTM models for stock price prediction, underscores the significance of proper hyperparameter tuning for optimal performance, and concludes that a single-layer LSTM model can yield superior results compared to a multilayer model.

Article Details

How to Cite
Paygude, P. ., Chavan, P. ., Gayakwad, M. ., Gupta, K. ., Joshi, S. ., Gopika, G., Joshi, R., Gonge, S., & Kotecha, K. . (2023). Optimizing Hyperparameters for Enhanced LSTM-Based Prediction System Performance . International Journal on Recent and Innovation Trends in Computing and Communication, 11(10s), 203–213. https://doi.org/10.17762/ijritcc.v11i10s.7620
Section
Articles

References

M. Vijh, D. Chandola, V. A. Tikkiwal, and A. Kumar, “Stock Closing Price Prediction using Machine Learning Techniques,” Procedia ComputSci, vol. 167, pp. 599–606, 2020, doi: 10.1016/j.procs.2020.03.326.

X. Ji, J. Wang, and Z. Yan, “A stock price prediction method based on deep learning technology,” International Journal of Crowd Science, vol. 5, no. 1, pp. 55–72, Apr. 2021, doi: 10.1108/IJCS-05-2020-0012.

D. Bhuriya, G. Kaushal, A. Sharma, and U. Singh, “Stock market predication using a linear regression,” in 2017 International conference of Electronics, Communication and Aerospace Technology (ICECA), IEEE, Apr. 2017, pp. 510–513. doi: 10.1109/ICECA.2017.8212716.

A. A. Ariyo, A. O. Adewumi, and C. K. Ayo, “Stock Price Prediction Using the ARIMA Model,” in 2014 UKSim-AMSS 16th International Conference on Computer Modelling and Simulation, IEEE, Mar. 2014, pp. 106–112. doi: 10.1109/UKSim.2014.67.

T. Damrongsakmethee and V.-E. Neagoe, “Stock Market Prediction Using a Deep Learning Approach,” in 2020 12th International Conference on Electronics, Computers and Artificial Intelligence (ECAI), IEEE, Jun. 2020, pp. 1–6. doi: 10.1109/ECAI50035.2020.9223142.

Y. Zhu, “Stock price prediction using the RNN model,” J Phys ConfSer, vol. 1650, p. 032103, Oct. 2020, doi: 10.1088/1742-6596/1650/3/032103.

T. Manojlovic and I. Stajduhar, “Predicting stock market trends using random forests: A sample of the Zagreb stock exchange,” in 2015 38th International Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO), IEEE, May 2015, pp. 1189–1193. doi: 10.1109/MIPRO.2015.7160456.

S. Sarvesh, R. V. Sidharth, V. Vaishnav, J. Thangakumar, and S. Sathyalakshmi, “A Hybrid Model for Stock Price Prediction using Machine Learning Techniques with CNN,” in 2021 5th International Conference on Information Systems and Computer Networks (ISCON), IEEE, Oct. 2021, pp. 1–6. doi: 10.1109/ISCON52037.2021.9702382.

I. Parmaret al., “Stock Market Prediction Using Machine Learning,” in 2018 First International Conference on Secure Cyber Computing and Communication (ICSCCC), IEEE, Dec. 2018, pp. 574–576. doi: 10.1109/ICSCCC.2018.8703332.

H. M, G. E.A., V. K. Menon, and S. K.P., “NSE Stock Market Prediction Using Deep-Learning Models,” Procedia ComputSci, vol. 132, pp. 1351–1362, 2018, doi: 10.1016/j.procs.2018.05.050.

K. Ullah and M. Qasim, “Google Stock Prices Prediction Using Deep Learning,” in 2020 IEEE 10th International Conference on System Engineering and Technology (ICSET), IEEE, Nov. 2020, pp. 108–113. doi: 10.1109/ICSET51301.2020.9265146.

X. Weng, X. Lin, and S. Zhao, “Stock Price Prediction Based On Lstm And Bert,” in 2022 International Conference on Machine Learning and Cybernetics (ICMLC), IEEE, Sep. 2022, pp. 12–17. doi: 10.1109/ICMLC56445.2022.9941293.

H. G. T. Thu, T. N. Thanh, and T. Le Quy, “A Neighborhood Deep Neural Network Model using Sliding Window for Stock Price Prediction,” in 2021 IEEE International Conference on Big Data and Smart Computing (BigComp), IEEE, Jan. 2021, pp. 69–74. doi: 10.1109/BigComp51126.2021.00022.

J. M.-T. Wu, Z. Li, G. Srivastava, J. Frnda, V. G. Diaz, and J. C.-W. Lin, “A CNN-based Stock Price Trend Prediction with Futures and Historical Price,” in 2020 International Conference on Pervasive Artificial Intelligence (ICPAI), IEEE, Dec. 2020, pp. 134–139. doi: 10.1109/ICPAI51961.2020.00032.

R. Kumar, C. M. Sharma, V. M. Chariar, S. Hooda, and R. Beri, “Emotion Analysis of News and Social Media Text for Stock Price Prediction using SVM-LSTM-GRU Composite Model,” in 2022 International Conference on Computational Intelligence and Sustainable Engineering Solutions (CISES), IEEE, May 2022, pp. 329–333. doi: 10.1109/CISES54857.2022.9844375.

L. Setiawan, N. F. Muntasir, S. Fahreza, and A. Sholahuddin, “Prediction of Stock Price Data of PT. Ramayana Lestari SentosaTbk. using Long Short Term Memory Model,” in 2021 International Conference on Artificial Intelligence and Big Data Analytics, IEEE, Oct. 2021, pp. 226–230. doi: 10.1109/ICAIBDA53487.2021.9689702.

J. Chen, J. Du, Z. Xue, and F. Kou, “Prediction of Financial Big Data Stock Trends Based on Attention Mechanism,” in 2020 IEEE International Conference on Knowledge Graph (ICKG), IEEE, Aug. 2020, pp. 152–156. doi: 10.1109/ICBK50248.2020.00031.

S. Mootha, S. Sridhar, R. Seetharaman, and S. Chitrakala, “Stock Price Prediction using Bi-Directional LSTM based Sequence to Sequence Modeling and Multitask Learning,” in 2020 11th IEEE Annual Ubiquitous Computing, Electronics & Mobile Communication Conference (UEMCON), IEEE, Oct. 2020, pp. 0078–0086. doi: 10.1109/UEMCON51285.2020.9298066.

M. K. Ho, H. Darman, and S. Musa, “Stock Price Prediction Using ARIMA, Neural Network and LSTM Models,” J Phys ConfSer, vol. 1988, no. 1, p. 012041, Jul. 2021, doi: 10.1088/1742-6596/1988/1/012041.

Y. Zhu, “Stock price prediction using the RNN model,” J Phys ConfSer, vol. 1650, p. 032103, Oct. 2020, doi: 10.1088/1742-6596/1650/3/032103.

Md. A. Istiake Sunny, M. M. S. Maswood, and A. G. Alharbi, “Deep Learning-Based Stock Price Prediction Using LSTM and Bi-Directional LSTM Model,” in 2020 2nd Novel Intelligent and Leading Emerging Sciences Conference (NILES), IEEE, Oct. 2020, pp. 87–92. doi: 10.1109/NILES50944.2020.9257950.

T. Gao, Y. Chai, and Y. Liu, “Applying long short term momory neural networks for predicting stock closing price,” in 2017 8th IEEE International Conference on Software Engineering and Service Science (ICSESS), IEEE, Nov. 2017, pp. 575–578. doi: 10.1109/ICSESS.2017.8342981.

“‘Yahoo’s financial, “Financial Stock Prices,” 2023. https://finance.yahoo.com/.’”

C. Chou, J. Park, and E. Chou, “Predicting Stock Closing Price After COVID-19 Based on Sentiment Analysis and LSTM,” in 2021 IEEE 5th Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), IEEE, Mar. 2021, pp. 2752–2756. doi: 10.1109/IAEAC50856.2021.9390845.

Y. Zhao and Z. Chen, “Forecasting stock price movement: new evidence from a novel hybrid deep learning model,” Journal of Asian Business and Economic Studies, vol. 29, no. 2, pp. 91–104, May 2022, doi: 10.1108/JABES-05-2021-0061.

S. Mootha, S. Sridhar, R. Seetharaman, and S. Chitrakala, “Stock Price Prediction using Bi-Directional LSTM based Sequence to Sequence Modeling and Multitask Learning,” in 2020 11th IEEE Annual Ubiquitous Computing, Electronics & Mobile Communication Conference (UEMCON), IEEE, Oct. 2020, pp. 0078–0086. doi: 10.1109/UEMCON51285.2020.9298066.

Beldar, Kavita K., M. D. Gayakwad, and M. K. Beldar. 2016. “Optimizing Analytical Queries on Probabilistic Databases with Unmerged Duplicates Using MapReduce.” Int. J. Innov. Res. Comput. Commun. Eng 4: 9651–59.

Beldar, Kavita K., M. D. Gayakwad, Debnath Bhattacharyya, and Hye-Jin Kim. 2016a. “Query Evaluation on Probabilistic Databases Using Indexing and MapReduce.” International Journal of Database Theory and Application 9 (10): 363–78.

Beldar, Kavita K., M. D. Gayakwad, Debnath Bhattacharyya, and Tai-Hoon Kim. 2016b. “A Comparative Analysis on Contingence Structured Data Methodologies.” International Journal of Software Engineering and Its Applications 10 (5): 13–22.

Beldar, Miss Menka K., M. D. Gayakwad, and Miss Kavita K. Beldar. 2018. “Altruistic Content Voting System Using Crowdsourcing.” International Journal of Scientific Research and Review 7 (5): 477–86.

Beldar, Miss Menka K., M. D. Gayakwad, Miss Kavita K. Beldar, and M. K. Beldar. 2018. “Survey on Classification of Online Reviews Based on Social Networking.” IJFRCSCE 4 (3): 55.

Boukhari, Mahamat Adam, Prof MilnidGayakwad, and Prof DrSuhasPatil. 2019. “Survey on Inappropriate Content Detection in Online Social Media.” International Journal of Innovative Research in Science, Engineering and Technology 8 (9): 9297–9302.

Gayakwad, M. D., and B. D. Phulpagar. 2013. “Research Article Review on Various Searching Methodologies and Comparative Analysis for Re-Ranking the Searched Results.” International Journal of Recent Scientific Research 4: 1817–20.

Gayakwad, Milind. 2011. “VLAN Implementation Using Ip over ATM.” Journal of Engineering Research and Studies 2 (4): 186–92.

V. Vamsi Krishna, G. Gopinath. (2023). Effectiveness of ICT-Based Intelligent System Using Cloud Computing for Research Programme During Covid-19 Pandemic. International Journal of Intelligent Systems and Applications in Engineering, 11(4s), 418–427. Retrieved from https://ijisae.org/index.php/IJISAE/article/view/2688

Gayakwad, Milind, and SuhasPatil. 2020. “Content Modelling for Unbiased Information Analysis.” Libr. Philos. Pract, 1–17.

“Analysis of Methodologies to Model the Content for Conveying the Correct Information.” In 2021 International Conference on Computing, Communication and Green Engineering (CCGE), 1–4. IEEE.

2021b. “Assessment of Source, Medium, and Intercommunication for Assessing the Credibility of Content.” In 2021 International Conference on Smart Generation Computing, Communication and Networking (SMART GENCON), 1–5. IEEE.

Gayakwad, Milind, SuhasPatil, Rahul Joshi, SudhanshuGonge, and Sandeep DwarkanathPande. 2022a. “Credibility Evaluation of User-Generated Content Using Novel Multinomial 37]38. Classification Technique.” International Journal on Recent and Innovation Trends in Computing and Communication 10 (2s): 151–57.

Gayakwad, Milind, SuhasPatil, Amol Kadam, Shashank Joshi, KetanKotecha, Rahul Joshi, Sharnil Pandya, et al. 2022. “Credibility Analysis of User-Designed Content Using Machine Learning Techniques.” Applied System Innovation 5 (2): 43.

Harane, Swati T., GajananBhole, and Milind Gayakwad. 2017. “SECURE SEARCH OVER ENCRYPTED DATA TECHNIQUES: SURVEY.” International Journal of Advanced Research in Computer Science 8 (7).

KavitaShevale, GajananBhole, Milind Gayakwad. 2017. “Literature Review on Probabilistic Threshold Query on Uncertain Data.” International Journal of Current Research and Review 9 (6): 52482–84.

Mahamat Adam Boukhari, Milind Gayakwad. 2019. “An Experimental Technique on Fake News Detection in Online Social Media.” International Journal of Innovative Technology and Exploring Engineering (IJITEE) 8 (8S3): 526–30.

Maurya, Maruti, and Milind Gayakwad. 2020. “People, Technologies, and Organizations Interactions in a Social Commerce Era.” In Proceeding of the International Conference on Computer Networks, Big Data and IoT (ICCBI-2018), 836–49. Springer International Publishing.

Milind Gayakwad, B. D. Phulpagar. 2013. “Requirement Specific Search.” IJARCSSE 3 (11): 121.

Panicker, Aishwarya, Milind Gayakwad, Sandeep Vanjale, PramodJadhav, Prakash Devale, and SuhasPatil. n.d. “Fake News Detection Using Machine Learning Framework.”

Sharma, Jitin, Prashant C. Chavan, T. B. Patil, Supriya C. Sawant, and Milind Gaykawad. 2022. “A Comparative Analysis of Brain Tumor Classification and Prediction Techniques by Applying MRI Images Encompassing SVM and CNN with Transfer Learning Method.” Journal of Algebraic Statistics 13 (3): 393–405.

Shevale, Kavita, GajananBhole, and Milind Gayakwad. 2017. “Probabilistic Threshold Query on Uncertain Data Using SVM.” Int. J. Adv. Res. Comput. Sci 8: 1967–69.

Singh, Mahendra Kumar, Amol K. Kadam, Milind Gayakwad, PramodJadhav, Vinayak N. Patil, Prasad Kadam, Vinod Patil, and SunitaDhotre. n.d. “No Title].” https://www.researchgate.net/profile/Amol-Kadam-3/publication/363210290_An_Impirical_Approach_for_Underwater_Image_Quality_Enhancement_and_Object_Detection_using_Deep_Learning_An_Impirical_Approach_for_Underwater_Image_Quality_Enhancement_and_Object_Detection_using_Deep_L/links/6311901cacd814437ff7a165/An-Impirical-Approach-for-Underwater-Image-Quality-Enhancement-and-Object-Detection-using-Deep-Learning-An-Impirical-Approach-for-Underwater-Image-Quality-Enhancement-and-Object-Detection-using-Deep-L.pdf.

Mishra, S., P. Paygude, and S. Chaudhary. 2018. “Use of Data Mining in Crop Yield Prediction.” 2018 2nd International. https://ieeexplore.ieee.org/abstract/document/8398908/.

Paygude, Priyanka, Aatmic Tiwari, Bhavya Goel, and Akshat Kabra. 2023. “Comparative Analysis of Stock Prices by Regression Analysis and FB Prophet Models.” In Data Intelligence and Cognitive Informatics, 295–307. Springer Nature Singapore.

Tyagi, Shubham, Rishabh Solanki, Adarsh Tiwari, Rohit Ray, and Priyanka Paygude. 2021. “Analysis of Various Machine Learning Models for Detecting Depression in Twitter Tweets.” Turkish Online Journal of Qualitative Inquiry 12 (7): 6616–25

Paygude, Priyanka, and Aatmic Tiwari. 2021. “Comparative Analysis on Different Generations of Cryptocurrency.” International Journal of Future Generation Communication and Networking 14 (1): 3016–26.

Paygude, Priyanka, and Shashank Joshi. 2020. “Optimization of Test Case Prioritization through Calibration of Genetic Algorithm.” Solid State Technology 63 (1s): 2377–86.

Varshney, Abhishek, Saumya Asthana, Chetan Sharma, Swapnil Patil, Ankur Kashyap, and Priyanka Paygude. 2020. “Study of Solving Knapsack Problem Using Genetic Algorithm.” Solid State Technology, February, 93–99.

Malge, Shrikant, Prof Snehal D. Chaudhary, and Priyanka Paygude. 2017. “Secure and Policy Update Method on Big Data Access in Cloud Storage.” IOSR Journal of Computer Engineering 19 (03): 48–52.

Mishra, S., P. Paygude, and S. Chaudhary. 2018. “Use of Data Mining in Crop Yield Prediction.” 2018 2nd International. https://ieeexplore.ieee.org/abstract/document/8398908/.

Paygude, P., D. S. D. Joshi, and D. M. Joshi. 2020. “Fault Aware Test Case Prioritization in Regression Testing Using Genetic Algorithm.” International Journal of Emerging Trends in. https://scholar.google.ca/scholar?cluster=11372764101768453854&hl=en&as_sdt=0,5&sciodt=0,5.

Paygude, P., and S. D. Joshi. 2020. “Use of Evolutionary Algorithm in Regression Test Case Prioritization: A Review.” Proceeding of the International Conference on. https://link.springer.com/chapter/10.1007/978-3-030-24643-3_6.