Comparison of the Application of Neural Networks with K-Fold Cross Validation and Sliding Window Validation for Forecasting Covid-19 Recovered Cases


  • Tyas Setiyorini Universitas Nusa Mandiri
(*) Corresponding Author



Covid-19, Forecasting, Neural Network, Sliding Window


The Covid-19 virus first appeared in China resulting in millions of confirmed cases, deaths and recovered cases to date. The spread and increase in the death rate due to Covid-19 is very worrying. Health workers and researchers continue to struggle to improve recovery from Covid-19 cases. There is a need for future forecasting to predict recovery from cases that occur, so that the public or government can understand the spread, take precautions and prepare for action as early as possible. Several previous studies have carried out forecasting the future impact of Covid-19 using Machine Learning methods. Neural Network and Sliding Window are appropriate methods for forecasting time series data. In this research, it has been proven that the application of a Neural Network with a Sliding Window can improve performance which is much better than without using a Sliding Window in forecasting Covid-19 recovery cases in China.


Download data is not yet available.


Agrawal, R. K., Muchahary, F., & Tripathi, M. M. (2019). Ensemble of relevance vector machines and boosted trees for electricity price forecasting. Applied Energy, 250(May), 540–548.

Bergmeir, C., & Benítez, J. M. (2012). On the use of cross-validation for time series predictor evaluation. Information Sciences, 191, 192–213.

Brockmann, D., Hufnagel, L., & Geisel, T. (2006). Data Mining and Knowledge Discovery Handbook. In Springer.

Castillo, O., & Melin, P. (2020). Forecasting of COVID-19 time series for countries in the world based on a hybrid approach combining the fractal dimension and fuzzy logic. Chaos, Solitons and Fractals, 140, 110242.

Chimmula, V. K. R., & Zhang, L. (2020). Time series forecasting of COVID-19 transmission in Canada using LSTM networks. Chaos, Solitons and Fractals, 135.

Das, R. C. (2020). Forecasting incidences of COVID-19 using Box-Jenkins method for the period July 12-Septembert 11, 2020: A study on highly affected countries. Chaos, Solitons and Fractals, 140, 110248.

Dodamani, S. N., Shetty, V. J., & Magadum, R. B. (2015). Short term load forecast based on time series analysis: A case study. Proceedings of IEEE International Conference on Technological Advancements in Power and Energy, TAP Energy 2015, 299–303.

Fanelli, D., & Piazza, F. (2020). Analysis and forecast of COVID-19 spreading in China, Italy and France. Chaos, Solitons and Fractals, 134, 109761.

Ferreira, V. H., & Alves da Silva, A. P. (2007). Toward estimating autonomous neural network-based electric load forecasters. IEEE Transactions on Power Systems, 22(4), 1554–1562.

Fong, S. J., Li, G., Dey, N., Crespo, R. G., & Herrera-Viedma, E. (2020). Composite Monte Carlo decision making under high uncertainty of novel coronavirus epidemic using hybridized deep learning and fuzzy rule induction. Applied Soft Computing Journal, 93(December 2019), 106282.

Han, J., Kamber, M., & Pei, J. (2012). Data Mining Concepts and Techniques. In Data Mining.

Kavadi, D. P., Patan, R., Ramachandran, M., & Gandomi, A. H. (2020). Partial derivative Nonlinear Global Pandemic Machine Learning prediction of COVID 19. Chaos, Solitons and Fractals, 139.

Lee, C. M., & Ko, C. N. (2009). Time series prediction using RBF neural networks with a nonlinear time-varying evolution PSO algorithm. Neurocomputing, 73(1–3), 449–460.

Monnier, S. (2018). Cross-validation tools for time series. Medium.Com.

Mustafa Qamar-ud-Din. (2019). Cross-Validation strategies for Time Series forecasting [Tutorial]. Packt Editorial Staff.

Norwawi, N. (2021). forecasting with multilayer. In Data Science for COVID-19 Volume 1. Elsevier Inc.

Papadopoulos, D. N., Dadras, F., Najafi, B., Haghighat, A., & Rinaldi, F. (2023). Energy & Buildings Handling complete short-term data logging failure in smart buildings : Machine learning based forecasting pipelines with sliding-window training scheme. Energy & Buildings, 301(October), 113694.

Peng, Y., & Nagata, M. H. (2020). An empirical overview of nonlinearity and overfitting in machine learning using COVID-19 data. Chaos, Solitons and Fractals, 139.

Rath, S., Tripathy, A., & Tripathy, A. R. (2020). Prediction of new active cases of coronavirus disease (COVID-19) pandemic using multiple linear regression model. Diabetes and Metabolic Syndrome: Clinical Research and Reviews, 14(5), 1467–1474.

Ribeiro, M. H. D. M., da Silva, R. G., Mariani, V. C., & Coelho, L. dos S. (2020). Short-term forecasting COVID-19 cumulative confirmed cases: Perspectives for Brazil. Chaos, Solitons and Fractals, 135.

Roosa, K., Lee, Y., Luo, R., Kirpich, A., Rothenberg, R., Hyman, J. M., Yan, P., & Chowell, G. (2020). Real-time forecasts of the COVID-19 epidemic in China from February 5 to February 24, 2020. Infectious Disease Modelling, 5, 256–263.

Saba, A. I., & Elsheikh, A. H. (2020). Forecasting the prevalence of COVID-19 outbreak in Egypt using nonlinear autoregressive artificial neural networks. Process Safety and Environmental Protection, 141, 1–8.

Shi, Y., Wang, J., Yang, Y., Wang, Z., Wang, G., Hashimoto, K., Zhang, K., & Liu, H. (2020). Brain , Behavior , & Immunity - Health Knowledge and attitudes of medical staff in Chinese psychiatric hospitals regarding COVID-19. Brain, Behavior, & Immunity - Health, 4(March), 100064.

Shukla, A. (2010). Real Life Applications of Soft Computing. In Real Life Applications of Soft Computing.

WHO. (2021). Coronavirus Disease 2019 ( COVID-19 ) Coronavirus Coronavirus Disease Disease Situation World Health World Health Organization Organization April 28 2021. Covid 19.

Yan, K., Li, W., Ji, Z., Qi, M., & Du, Y. (2019). A Hybrid LSTM Neural Network for Energy Consumption Forecasting of Individual Households. IEEE Access, 7, 157633–157642.

Zhang, X., Ma, R., & Wang, L. (2020). Predicting turning point, duration and attack rate of COVID-19 outbreaks in major Western countries. Chaos, Solitons and Fractals, 135.

Zhen, L., Zhang, L., Yang, T., Zhang, G., Li, Q., & Ouyang, H. (2022). Simultaneous prediction for multiple source–loads based sliding time window and convolutional neural Network. Energy Reports, 8, 6110–6125.




How to Cite

Tyas Setiyorini. (2023). Comparison of the Application of Neural Networks with K-Fold Cross Validation and Sliding Window Validation for Forecasting Covid-19 Recovered Cases. Jurnal Riset Informatika, 6(1), 21–28.