It is essential to evaluate patient outcomes at an early stage when dealing with a pandemic to provide optimal clinical care and resource management. Many methods have been proposed to provide a roadmap against different pandemics, including the recent pandemic disease COVID-19. Due to recurrent epidemic waves of COVID-19, which have been observed in many countries, mathematical modeling and forecasting of COVID-19 are still necessary as long as the world continues to battle against the pandemic. Modeling may aid in determining which interventions to try or predict future growth patterns. In this article, we design a combined approach for analyzing any pandemic in two separate parts. In the first part of the paper, we develop a recurrent SEIRS compartmental model to predict recurrent outbreak patterns of diseases. Due to its time-varying parameters, our model is able to reflect the dynamics of infectious diseases, and to measure the effectiveness of the restrictive measures. We discuss the stable solutions of the corresponding autonomous system with frozen parameters. We focus on the regime shifts and tipping points; then we investigate tipping phenomena due to parameter drifts in our time-varying parameters model that exhibits a bifurcation in the frozen-in case. Furthermore, we propose an optimal numerical design for estimating the system’s parameters. In the second part, we introduce machine learning models to strengthen the methodology of our paper in data analysis, particularly for prediction scenarios. We use MLP, RBF, LSTM, ANFIS, and GRNN for training and evaluation of COVID-19. Then, we compare the results with the recurrent dynamical system in the fitting process and prediction scenario. We also confirm results by implementing our methods on the released data on COVID-19 by WHO for Italy, Germany, Iran, and South Africa between 1/22/2020 and 7/24/2021, when people were engaged with different variants including Alpha, Beta, Gamma, and Delta. The results of this article show that the dynamic model is adequate for long-term analysis and data fitting, as well as obtaining parameters affecting the epidemic. However, it is ineffective in providing a long-term forecast. In contrast machine learning methods effectively provide disease prediction, although they do not provide analysis such as dynamic models. Finally, some metrics, including RMSE, R-Squared, and accuracy, are used to evaluate the machine learning models. These metrics confirm that ANFIS and RBF perform better than other methods in training and testing zones.