Predict and estimate the current stock prices by using Adaptive Neuro-Fuzzy Inference System

  • Ying Bai Johnson C. Smith University, Charlotte, NC 28216, USA
  • Dali Wang Christopher Newport University, Newport News, VA 23606, USA
Article ID: 2485
Keywords: ANFIS algorithm; estimate and predict current stock prices; AI applications in financial implementations; Google stock dataset; prediction accuracy

Abstract

To correctly and accurately predict and estimate the stock prices to get the maximum profit is a challenging task, and it is critically important to all financial institutions under the current fluctuation situation. In this study, we try to use a popular AI method, Adaptive Neuro Fuzzy Inference System (ANFIS), to easily and correctly predict and estimate the current and future possible stock prices. Combining with some appropriate pre-data-processing techniques, the current stock prices could be accurately and quickly estimated via those models. A normalization preprocess for training and testing data was used to improve the prediction accuracy, which is our contribution and a plus to this method. In this research, an ANFIS algorithm is designed and built to help decision-makers working in the financial institutions to easily and conveniently predict the current stock prices. The minimum training and checking RMSE values for the ANFIS model can be 0.103842 and 0.0651076. The calculation of accuracy was carried out using the RMSE calculation. The experiments conducted found that the smallest RMSE calculation result was 0.103842 with training data. Other issuers can use this method because it can predict stock prices quite well.

References

[1]Chen CT, Chiang LK, Huang YC, Huang SH. Forecasting Interaction of Exchange Rates Between Fiat Currencies and Cryptocurrencies Based on Deep Relation Networks. In: Proceedings of the 2019 IEEE International Conference on Agents (ICA); 18–21 October 2019; Jinan, China. pp. 69–72.

[2]Moghaddam AH, Moghaddam MH, Esfandyari M. Stock market index prediction using artificial neural network (Spanish). Journal of Economics, Finance and Administrative Science. 2016; 21(41): 89–93.

[3]Biswal. Stock Price Prediction Using Machine Learning: An Easy Guide. 2023, a lecture with MS PPT.

[4]Guo Y. Stock Price Prediction Based on LSTM Neural Network: The Effectiveness of News Sentiment Analysis. In: Proceedings of the 2020 2nd International Conference on Economic Management and Model Engineering (ICEMME); 20–22 November 2020; Chongqing, China. pp. 1018–1024.

[5]Lamba V, Hooda S, Solanki V, et al. Comparative Analysis of Artificial Neural Networks for Predicting Nifty 50 value in The Indian Stock Market. In: Proceedings of the 2021 5th International Conference on Information Systems and Computer Networks (ISCON); 22–23 October 2021; Mathura, India. pp. 1–5.

[6]Thu HGT, Thanh TN, Quy TL. A Neighborhood Deep Neural Network Model using Sliding Window for Stock Price Prediction. In: Proceedings of the 2021 IEEE International Conference on Big Data and Smart Computing (BigComp); 17–20 January 2021; Jeju Island, Korea (South). pp. 69–74.

[7]Singh A, Bhardwaj G, Srivastava AP, et al. Application of Neural Network to Technical Analysis of Stock Market Prediction. In: Proceedings of the 2022 3rd International Conference on Intelligent Engineering and Management (ICIEM); 27–29 April 2022; London, United Kingdom. pp. 302–306.

[8]Chong LS, Lim KM, Lee CP. Stock Market Prediction using Ensemble of Deep Neural Networks. In: Proceedings of the 2020 IEEE 2nd International Conference on Artificial Intelligence in Engineering and Technology (IICAIET); 26–27 September 2020; Kota Kinabalu, Malaysia. pp. 1–5.

[9]Yu L. Economic and Financial Data Analysis System Based on Deep Learning and Neural Network Algorithm. In: Proceedings of the 2022 International Conference on Knowledge Engineering and Communication Systems (ICKES); 28–29 December 2022; Chickballapur, India. pp. 1–5.

[10]Polepally V, Nandini Reddy NS, Sindhuja M, et al. A Deep Learning Approach for Prediction of Stock Price Based on Neural Network Models: LSTM and GRU. In: Proceedings of the 2021 12th International Conference on Computing Communication and Networking Technologies (ICCCNT); 6–8 July 2021; Kharagpur, India. pp. 1–4.

[11]Pardeshi YK, Kale PP. Technical Analysis Indicators in Stock Market Using Machine Learning: A Comparative Analysis. In: Proceedings of the 2021 12th International Conference on Computing Communication and Networking Technologies (ICCCNT); 6–8 July 2021; Kharagpur, India. pp. 1–6.

[12]Singh HJ, Ghosh K, Sharma S. A Novel Multivariate Recurrent Neural Network based Analysis Model for Predicting Stock Prices. In: Proceedings of the 2022 2nd International Conference on Innovative Sustainable Computational Technologies (CISCT); 23–24 December 2022; Dehradun, India. pp. 1–6.

[13]Lin Y, Zhong Q, Huang Q, et al. A new convolutional neural network and long short term memory combined model for stock index prediction. In: Proceedings of the 2021 14th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI); 23–25 October 2021; Shanghai, China. pp. 1–6.

[14]Singh K, Thapliyal MP, Barthwal V. A comparative analysis of stock price prediction techniques. In: Proceedings of the 2022 7th International Conference on Computing, Communication and Security (ICCCS); 3–5 November 2022; Seoul, Korea. pp.1–4.

[15]Roy S, Tanveer S. Stock Price Forcasting using DeepNet. In: Proceedings of the 2023 International Conference on Computational Intelligence, Communication Technology and Networking (CICTN); 20–21 April 2023; Ghaziabad, India. pp. 418–420.

[16]Tarsi M, Douzi S, Marzak A. Predicting stock price using LSTM and Social Media dataset. In: Proceedings of the 2023 3rd International Conference on Innovative Research in Applied Science, Engineering and Technology (IRASET); 18–19 May 2023; Mohammedia, Morocco. pp. 1–4.

[17]Mandee, Agarwal A, Bhatia A, et al. Machine Learning Based Explainable Financial Forecasting. In: Proceedings of the 2022 4th International Conference on Computer Communication and the Internet (ICCCI); 1–3 July 2022; Chiba, Japan. pp. 34–38.

[18]Chinprasatsak K, Niparnan N, Sudsang A. Neural Network for Forecasting High Price and Low Price on Foreign Exchange Market. In: Proceedings of the 2020 17th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON); 24–27 June 2020; Phuket, Thailand. pp. 461–465.

[19]Alamsyah A, Aprillia WH. Comparison of Predictions Foreign Currency Exchange Rates (USD, JPY, EUR, GBP, CHF, CAD) to Rupiah (IDR) using Artificial Neural Network and Long Short-Term Memory. In: Proceedings of the 2020 6th International Conference on Information Technology, Information Systems and Electrical Engineering (ICITISEE); 13–14 December 2022; Yogyakarta, Indonesia. pp. 585–590.

[20]Aggarwal P, Sahani AK. Comparison of Neural Networks for Foreign Exchange Rate Prediction. In: Proceedings of the 2020 IEEE 15th International Conference on Industrial and Information Systems (ICIIS); 26–28 November 2020; RUPNAGAR, India. pp. 415–419.

[21]Bui TA, Pashchenko FF, Pashchenko AF, Kudinov YI. Using Neural Networks to Predict Exchange Rates. In: Proceedings of the 2020 13th International Conference “Management of large-scale system development” (MLSD); 28–30 September 2020; Moscow, Russia. pp. 1–5.

[22]Singh G, Sarangi PK, Rani L, et al. CNN-RNN based Hybrid Machine Learning Model to Predict the Currency Exchange Rate: USD to INR. In: Proceedings of the 2020 2nd International Conference on Advance Computing and Innovative Technologies in Engineering (ICACITE); 28–29 April 2022; Greater Noida, India. pp. 1668–1672.

[23]Sarmas E, Koutsellis T, Ververidis C, et al. Comparison of Machine Learning Classifiers for Exchange Rate Trend Forecasting. In: Proceedings of the 2022 13th International Conference on Information, Intelligence, Systems & Applications (IISA); 18–20 July 2022; Corfu, Greece. pp. 1–7.

[24]Tak ALC, Logeswaran R. Foreign Currency Exchange Market Prediction using Machine Learning Techniques. In: Proceedings of the 2022 IEEE International Conference on Distributed Computing and Electrical Circuits and Electronics (ICDCECE); 23–24 April 2022; Ballari, India. pp. 1–5.

[25]Available online: https://www.kaggle.com/datasets/vaibhavsxn/google-stock-prices-training-and-test-data (accessed on 1 December 2025).

[26]Jang JSR. Self-learning fuzzy controllers based on temporal back propagation. IEEE Transactions on Neural Networks. 1992; 3(5): 714–723. doi: 10.1109/72.159060

[27]https://github.com/aylint/stock-price-anfis?tab=readme-ov-file#generating-the-anfis-models

[28]Imran M, Alsuhaibani SA. A Neuro-Fuzzy Inference Model for Diabetic Retinopathy Classification. In: Hemanth DJ, Gupta D, Balas VE (editors). Intelligent Data Analysis for Biomedical Applications. Academic Press; 2019. pp. 147–172.

[29]Available online: https://www.kaggle.com/datasets/jacksoncrow/stock-market-dataset?resource=download (accessed on 1 December 2025).

Published
2025-04-03
How to Cite
Bai, Y., & Wang, D. (2025). Predict and estimate the current stock prices by using Adaptive Neuro-Fuzzy Inference System. Computing and Artificial Intelligence, 3(2), 2485. https://doi.org/10.59400/cai2485
Section
Article