{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,5]],"date-time":"2026-06-05T04:43:14Z","timestamp":1780634594223,"version":"3.54.1"},"reference-count":45,"publisher":"MDPI AG","issue":"6","license":[{"start":{"date-parts":[[2025,6,8]],"date-time":"2025-06-08T00:00:00Z","timestamp":1749340800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Computation"],"abstract":"<jats:p>The integration of machine learning and stock forecasting is attracting increased curiosity owing to its growing significance. This paper presents two main areas of study: predicting pattern trends for the next day and forecasting opening and closing prices using a new method that adds a dynamic hidden layer to artificial neural networks and employs a unique random k-fold cross-validation to enhance prediction accuracy and improve training. To validate the model, we are considering APPLE, GOOGLE, and AMAZON stock data. As a result, low root mean squared error (1.7208) and mean absolute error (0.9892) in both training and validation phases demonstrate the robust predictive performance of the dynamic ANN model. Furthermore, high R-values indicated a strong correlation between the experimental data and proposed model estimates.<\/jats:p>","DOI":"10.3390\/computation13060141","type":"journal-article","created":{"date-parts":[[2025,6,9]],"date-time":"2025-06-09T04:23:02Z","timestamp":1749442982000},"page":"141","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":5,"title":["Sliding Window-Based Randomized K-Fold Dynamic ANN for Next-Day Stock Trend Forecasting"],"prefix":"10.3390","volume":"13","author":[{"ORCID":"https:\/\/orcid.org\/0009-0002-7199-8288","authenticated-orcid":false,"given":"Jaykumar Ishvarbhai","family":"Prajapati","sequence":"first","affiliation":[{"name":"Department of Mathematics, School of Advanced Sciences, Vellore Institute of Technology, Vellore 632014, India"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9945-5969","authenticated-orcid":false,"given":"Raja","family":"Das","sequence":"additional","affiliation":[{"name":"Department of Mathematics, School of Advanced Sciences, Vellore Institute of Technology, Vellore 632014, India"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2025,6,8]]},"reference":[{"key":"ref_1","unstructured":"Bulkowski, T.N. (2021). Encyclopedia of Chart Patterns, John Wiley & Sons."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"334","DOI":"10.1016\/j.fcij.2018.10.003","article-title":"Time Series Forecasting Using Artificial Neural Networks Methodologies: A Systematic Review","volume":"3","author":"Tealab","year":"2018","journal-title":"Future Comput. Inform. J."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"580","DOI":"10.1109\/TNNLS.2018.2846775","article-title":"Neural Network Training with Levenberg\u2013Marquardt and Adaptable Weight Compression","volume":"30","author":"Smith","year":"2018","journal-title":"IEEE Trans. Neural Netw. Learn. Syst."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"2","DOI":"10.1186\/s13677-023-00576-7","article-title":"Time series forecasting model for non-stationary series pattern extraction using deep learning and GARCH modeling","volume":"13","author":"Han","year":"2024","journal-title":"J. Cloud Comput."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"e1519","DOI":"10.1002\/widm.1519","article-title":"Deep learning models for price forecasting of financial time series: A review of recent advancements: 2020\u20132022","volume":"14","author":"Zhang","year":"2024","journal-title":"WIREs Data Min. Knowl. Discov."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"209","DOI":"10.1007\/s10462-024-10851-x","article-title":"Versatile Time-Window Sliding Machine Learning Techniques for Stock Market Forecasting","volume":"57","author":"Zhan","year":"2024","journal-title":"Artif. Intell. Rev."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"29","DOI":"10.1111\/1468-0319.12733","article-title":"A soft landing may be in sight, but expect turbulence","volume":"48","author":"May","year":"2024","journal-title":"Econ. Outlook"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Jahan, I., Sajal, S.Z., and Nygard, K.E. (2019, January 20\u201322). Prediction Model Using Recurrent Neural Networks. Proceedings of the 2019 IEEE International Conference on Electro Information Technology (EIT), Brookings, SD, USA.","DOI":"10.1109\/EIT.2019.8834336"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"57655","DOI":"10.1109\/ACCESS.2018.2873730","article-title":"Predicting Vehicle Sales by Sentiment Analysis of Twitter Data and Stock Market Values","volume":"6","author":"Pai","year":"2018","journal-title":"IEEE Access"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"820","DOI":"10.1016\/j.asoc.2019.03.028","article-title":"A Novel Hybrid Stock Selection Method with Stock Prediction","volume":"80","author":"Yang","year":"2019","journal-title":"Appl. Soft Comput."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"533","DOI":"10.1007\/s11831-018-9257-4","article-title":"Image Segmentation Using Computational Intelligence Techniques: Review","volume":"26","author":"Chouhan","year":"2019","journal-title":"Arch. Comput. Methods Eng."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"614342","DOI":"10.1155\/2014\/614342","article-title":"Comparison of ARIMA and Artificial Neural Networks Models for Stock Price Prediction","volume":"2014","author":"Adebiyi","year":"2014","journal-title":"J. Appl. Math."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1016\/j.eswa.2018.05.011","article-title":"A hybrid volatility forecasting framework integrating GARCH, artificial neural network, technical analysis and principal components analysis","volume":"109","author":"Kristjanpoller","year":"2018","journal-title":"Expert Syst. Appl."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"452","DOI":"10.1007\/s40815-016-0145-5","article-title":"FCPN Approach for Uncertain Nonlinear Dynamical System with Unknown Disturbance","volume":"19","author":"Sakhre","year":"2017","journal-title":"Int. J. Fuzzy Syst."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"2223","DOI":"10.1093\/rfs\/hhaa009","article-title":"Empirical Asset Pricing via Machine Learning","volume":"33","author":"Gu","year":"2020","journal-title":"Rev. Financ. Stud."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"1","DOI":"10.61351\/mf.v1i1.2","article-title":"Forecasting the Equity Premium: Do Deep Neural Network Models Work?","volume":"1","author":"Zhou","year":"2023","journal-title":"Mod. Financ."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"10696","DOI":"10.1016\/j.eswa.2009.02.043","article-title":"Forecasting stock market short-term trends using a neuro-fuzzy based methodology","volume":"36","author":"Atsalakis","year":"2009","journal-title":"Expert Syst. Appl."},{"key":"ref_18","unstructured":"Box, G., Jenkins, G., Reinsel, G., and Ljung, G. (2015). Time Series Analysis: Forecasting and Control, John Wiley & Sons."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"D\u2019Angelo, G., Tipaldi, M., GlieL-Mo, L., and Rampone, S. (2017, January 21\u201323). Spacecraft autonomy modeled via Markov decision process and associative rule-based machine learning. Proceedings of the 4th IEEE International Workshop on Metrology for AeroSpace, MetroAeroSpace 2017\u2014Proceedings, Padua, Italy.","DOI":"10.1109\/MetroAeroSpace.2017.7999589"},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"351","DOI":"10.1007\/s13748-020-00218-y","article-title":"A new approach for the vanishing gradient problem on sigmoid activation","volume":"9","author":"Roodschild","year":"2020","journal-title":"Prog. Artif. Intell."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"1399","DOI":"10.1007\/s13042-018-0834-5","article-title":"A survey on application of machine learning for Internet of Things","volume":"9","author":"Cui","year":"2018","journal-title":"Int. J. Mach. Learn. Cybern."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"291","DOI":"10.1016\/j.eng.2019.08.015","article-title":"Artificial Intelligence in Healthcare: Review and Prediction Case Studies","volume":"6","author":"Rong","year":"2020","journal-title":"Engineering"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Tang, Y., Chau, K.-Y., Li, W., and Wan, T. (2020). Forecasting Economic Recession through Share Price in the Logistics Industry with Artificial Intelligence (AI). Computation, 8.","DOI":"10.3390\/computation8030070"},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"e13105","DOI":"10.1111\/exsy.13105","article-title":"Artificial Neural Networks for Prediction of COVID-19 in India by Using Backpropagation","volume":"40","author":"Manohar","year":"2023","journal-title":"Expert Syst."},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"431","DOI":"10.1137\/0111030","article-title":"An Algorithm for Least-Squares Estimation of Nonlinear Parameters","volume":"11","author":"Marquardt","year":"1963","journal-title":"SIAM J. Appl. Math."},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Golovachev, S. (2011). Forecasting the U.S. Stock Market via Levenberg-Marquardt and Haken Artificial Neural Networks Using ICA&PCA Pre-processing Techniques. Pattern Recognition and Machine Intelligence, Springer.","DOI":"10.1007\/978-3-642-21786-9_57"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Manohar, B., Das, R., Lakshmi, M., Prajapati, J.I., and Reddy, K.M. (2024). Artificial Neural Network-Based Stock Price Prediction Using Levenberg-Marquardt Algorithm. Artificial Intelligence Based Solutions for Industrial Applications, CRC Press.","DOI":"10.1201\/9781003534761-13"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"16","DOI":"10.1186\/s40854-019-0131-7","article-title":"Indian Stock Market Prediction Using Artificial Neural Networks on Tick Data","volume":"5","author":"Selvamuthu","year":"2019","journal-title":"Financ. Innov."},{"key":"ref_29","first-page":"271","article-title":"Stock market prediction, COVID-19 pandemic and neural networks: An SCG algorithm application","volume":"11","author":"Goel","year":"2023","journal-title":"Bus. Perspect. Res."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Zhou, R., Wu, D., Fang, L., Xu, A., and Lou, X. (2018). A Levenberg\u2013Marquardt Backpropagation Neural Network for Predicting Forest Growing Stock Based on the Least-Squares Equation Fitting Parameters. Forests, 9.","DOI":"10.3390\/f9120757"},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"103","DOI":"10.5614\/itbj.ict.res.appl.2013.7.2.1","article-title":"CSLM: Levenberg Marquardt based Back Propagation Algorithm Optimized with Cuckoo Search","volume":"7","author":"Nawi","year":"2013","journal-title":"J. ICT Res. Appl."},{"key":"ref_32","first-page":"114","article-title":"Informational Efficiency of Indian Stock Market: Evidence from High-Frequency Data Using LSTM Model","volume":"516","author":"Tiwari","year":"2019","journal-title":"Phys. A Stat. Mech. Its Appl."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Dey, P., Hossain, E., Hossain, M.I., Chowdhury, M.A., Alam, M.S., Hossain, M.S., and Andersson, K. (2021). Comparative Analysis of Recurrent Neural Networks in Stock Price Prediction for Different Frequency Domains. Algorithms, 14.","DOI":"10.3390\/a14080251"},{"key":"ref_34","first-page":"e915","article-title":"Stock Price Prediction Based on Information Entropy and Artificial Neural Network","volume":"8","author":"Wei","year":"2022","journal-title":"PeerJ Comput. Sci."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"79","DOI":"10.1016\/S0925-2312(00)00300-3","article-title":"A Case Study on Using Neural Networks to Perform Technical Forecasting of Forex","volume":"34","author":"Yao","year":"2000","journal-title":"Neurocomputing"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"5311","DOI":"10.1016\/j.eswa.2010.10.027","article-title":"Predicting Direction of Stock Price Index Movement Using Artificial Neural Networks and Support Vector Machines: The Sample of the Istanbul Stock Exchange","volume":"38","author":"Kara","year":"2011","journal-title":"Expert Syst. Appl."},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Garrido, D.R., and Lorenzo, M.S. (2022). Application of the Sliding Window Method to the Short Range Prediction System for the Correction of Precipitation Forecast Errors. Environ. Sci. Proc., 19.","DOI":"10.3390\/ecas2022-12803"},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Thu, H.G.T., Thanh, T.N., and Le Quy, T. (2021, January 17\u201320). A Neighborhood Deep Neural Network Model Using Sliding Window for Stock Price Prediction. Proceedings of the 2021 IEEE International Conference on Big Data and Smart Computing (BigComp), Jeju Island, Republic of Korea.","DOI":"10.1109\/BigComp51126.2021.00022"},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"14346","DOI":"10.1016\/j.eswa.2011.04.222","article-title":"Forecasting Stock Indices with Back Propagation Neural Network","volume":"38","author":"Wang","year":"2012","journal-title":"Expert Syst. Appl."},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"5932","DOI":"10.1016\/j.eswa.2008.07.006","article-title":"Surveying Stock Market Forecasting Techniques \u2013 Part II: Soft Computing Methods","volume":"36","author":"Atsalakis","year":"2009","journal-title":"Expert Syst. Appl."},{"key":"ref_41","doi-asserted-by":"crossref","first-page":"7046","DOI":"10.1016\/j.eswa.2015.05.013","article-title":"Evaluating Multiple Classifiers for Stock Price Direction Prediction","volume":"42","author":"Ballings","year":"2015","journal-title":"Expert Syst. Appl."},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"654","DOI":"10.1016\/j.ejor.2017.11.054","article-title":"Deep Learning with Long Short-Term Memory Networks for Financial Market Predictions","volume":"270","author":"Fischer","year":"2018","journal-title":"Eur. J. Oper. Res."},{"key":"ref_43","doi-asserted-by":"crossref","unstructured":"Teixeira, D.M., and Barbosa, R.S. (2025). Stock Price Prediction in the Financial Market Using Machine Learning Models. Computation, 13.","DOI":"10.3390\/computation13010003"},{"key":"ref_44","first-page":"67","article-title":"Stock Market\u2019s Price Movement Prediction with LSTM Neural Networks","volume":"84","author":"Nelson","year":"2017","journal-title":"Expert Syst. Appl."},{"key":"ref_45","first-page":"107049","article-title":"Financial Time Series Forecasting Model Based on CEEMDAN and GRU","volume":"101","author":"Cao","year":"2021","journal-title":"Appl. Soft Comput."}],"container-title":["Computation"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2079-3197\/13\/6\/141\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T17:48:33Z","timestamp":1760032113000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2079-3197\/13\/6\/141"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,8]]},"references-count":45,"journal-issue":{"issue":"6","published-online":{"date-parts":[[2025,6]]}},"alternative-id":["computation13060141"],"URL":"https:\/\/doi.org\/10.3390\/computation13060141","relation":{},"ISSN":["2079-3197"],"issn-type":[{"value":"2079-3197","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,8]]}}}