key: cord-324230-nu0pn2q8 authors: Ardabili, S. F.; MOSAVI, A.; Ghamisi, P.; Ferdinand, F.; Varkonyi-Koczy, A. R.; Reuter, U.; Rabczuk, T.; Atkinson, P. M. title: COVID-19 Outbreak Prediction with Machine Learning date: 2020-04-22 journal: nan DOI: 10.1101/2020.04.17.20070094 sha: doc_id: 324230 cord_uid: nu0pn2q8 Several outbreak prediction models for COVID-19 are being used by officials around the world to make informed-decisions and enforce relevant control measures. Among the standard models for COVID-19 global pandemic prediction, simple epidemiological and statistical models have received more attention by authorities, and they are popular in the media. Due to a high level of uncertainty and lack of essential data, standard models have shown low accuracy for long-term prediction. Although the literature includes several attempts to address this issue, the essential generalization and robustness abilities of existing models needs to be improved. This paper presents a comparative analysis of machine learning and soft computing models to predict the COVID-19 outbreak. Among a wide range of machine learning models investigated, two models showed promising results (i.e., multi-layered perceptron, MLP, and adaptive network-based fuzzy inference system, ANFIS). Based on the results reported here, and due to the highly complex nature of the COVID-19 outbreak and variation in its behavior from nation-to-nation, this study suggests machine learning as an effective tool to model the outbreak. Access to accurate outbreak prediction models is essential to obtain insights into the likely spread and consequences of infectious diseases. Governments and other legislative bodies rely on insights from prediction models to suggest new policies and to assess the effectiveness of the enforced policies [1] . The novel Coronavirus disease (COVID -19) has been reported to infect more than 2 million people, with more than 132,000 confirmed deaths worldwide. The recent global COVID-19 pandemic has exhibited a nonlinear and complex nature [2] . In addition, the outbreak has differences with other recent outbreaks, which brings into question the ability of standard models to deliver accurate results [3] . Besides the numerous known and unknown variables involved in the spread, the complexity of population-wide behavior in various geopolitical areas and differences in containment strategies had dramatically increased model uncertainty [4] . Consequently, standard epidemiological models face new challenges to deliver more reliable results. To overcome this challenge, many novel models have emerged which introduce several assumptions to modeling (e.g., adding social distancing in the form of curfews, quarantines, etc.) [5] [6] [7] . To elaborate on the effectiveness of enforcing such assumptions understanding standard dynamic epidemiological (e.g., susceptible-infected-recovered, SIR) models is essential [8] . The modeling strategy is formed around the assumption of transmitting the infectious disease through contacts, considering three different classes of well-mixed populations; susceptible to infection (class S), infected (class I), and the removed population (class R is devoted to those who have recovered, developed immunity, been isolated or passed away). It is further assumed that the class I transmits the infection to class S where the number of probable transmissions is proportional to the total number of contacts [9] [10] [11] . The number of individuals in the class S progresses as a time-series, often computed using a basic differential equation as follows: where is the infected population, and is the susceptible population both as fractions. represents the daily reproduction rate of the differential equation, regulating the number of susceptible infectious contacts. The value of in the time-series produced by the differential equation gradually declines. Initially, it is assumed that at the early stage of the outbreak ≈ 1 while the number of individuals in class I is negligible. Thus, the increment becomes linear and the class I eventually can be computed as follows: where regulates the daily rate of new infections by quantifying the number of infected individuals competent in the transmission. Furthermore, the class R, representing individuals excluded from the spread of infection, is computed as follows: Under the unconstrained conditions of the excluded group, Eq. 3, the outbreak exponential growth can be computed as follows: The outbreaks of a wide range of infectious diseases have been modeled using Eq. 4. However, for the COVID-19 outbreak prediction, due to the strict measures enforced by authorities, the susceptibility to infection has been manipulated dramatically. For example, in China, Italy, France, Hungary and Spain the SIR model cannot present promising results, as individuals committed voluntarily to quarantine and limited their social interaction. However, for countries where containment measures were delayed (e.g., United States) the model has shown relative accuracy [12] . Figure. 1 shows the inaccuracy of conventional models applied to the outbreak in Italy by comparing the actual number of confirmed infections and epidemiological model predictions 1 . The SEIR models through considering the significant incubation period during which individuals have been infected showed progress in improving the model accuracy for Varicella and Zika outbreak [13, 14] . SEIR models assume that the incubation period is a random variable and similarly to the SIR model, there would be a disease-free-equilibrium [15, 16] . It is worth mentioning that SEIR model will not work well where the parameters are non-stationary through time [17] . A key cause of non-stationarity is where the social mixing (which determines the contact network) changes through time. Social mixing determines the reproductive number 0 which is the number of susceptible individuals that an infected person will infect. Where 0 is less than 1 the epidemic will die out. Where it is greater than 1 it will spread. 0 for COVID-19 prior to lockdown was estimated as a massive 4 presenting a pandemic. It is expected that lockdown measures should bring 0 down to less than 1. the KEY reason why SEIR models are difficult to fit for COVID-19 is non-stationarity of mixing, caused by nudging (step-by-step) intervention measures. One can calculate that standard epidemiological models can be effective and reliable only if (a) the social interactions are stationary through time (i.e., no changes in interventions or control measures), or (b) there exists a great deal of knowledge of class R with which to compute Eq. 3. Often to acquire information on class R, several novel models included data from social media or call data records (CDR), which showed promising results [18] [19] [20] [21] [22] [23] [24] [25] . However, observation of the behavior of COVID-19 in several countries demonstrates a high degree of uncertainty and complexity [26] . Thus, for epidemiological models to be able to deliver reliable results, they must be adapted to the local situation with an insight into susceptibility to infection [27] . This imposes a huge limit on the generalization ability and robustness of conventional models. Advancing accurate models with a great generalization ability to be scalable to model both the regional and global pandemic is, thus, essential [28] . A further drawback of conventional epidemiological models is the short lead-time. To evaluate the performance of the models, the median success of the outbreak prediction presents useful information. The median prediction factor can be calculated as follows: As the lead-time increases, the accuracy of the model declines. For instance, for the COVID-19 outbreak in Italy, the accuracy of the model for more than 5-days-in-the-future reduces from = 1 for the first five days to = 0.86 for day 6 [12] . Due to the complexity and the large-scale nature of the problem in developing epidemiological models, machine learning (ML) has recently gained attention for building outbreak prediction models. ML approaches aim at developing models with higher generalization ability and greater prediction reliability for longer lead-times [29] [30] [31] [32] [33] . Although ML methods were used in modeling former pandemics (e.g., Ebola, Cholera, swine fever, H1N1 influenza, dengue fever, Zika, oyster norovirus [8, [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] ), there is a gap in the literature for peer-reviewed papers dedicated to COVID-19. Table 1 represents notable ML methods used for outbreak prediction. These ML methods are limited to the basic methods of random forest, neural networks, Bayesian networks, Naïve Bayes, genetic programming and classification and regression tree (CART). Although ML has long been established as a standard tool for modeling natural disasters and weather forecasting [44, 45] , its application in modeling outbreak is still in the early stages. More sophisticated ML methods (e.g., hybrids, ensembles) are yet to be explored. Consequently, the contribution of this paper is to explore the application of ML for modeling the COVID-19 pandemic. This paper aims to investigate the generalization ability of the proposed ML models and the accuracy of the proposed models for different lead-times. The rest of this paper is organized as follows. Section two describes the methods and materials. The results are given in section three. Sections four and five present the discussion and the conclusions, respectively. Data were collected from https://www.worldometers.info/coronavirus/country for five countries, including Italy, Germany, Iran, USA, and China on total cases over 30 days. Figure 2 presents the total case number (cumulative statistic) for the considered countries. Currently, to contain the outbreak, the governments have implemented various measures to reduce transmission through inhibiting people's movements and social activities. Although for advancing the epidemiological models information on changes in social distancing is essential, for modeling with machine learning no assumption is required. As can be seen in Figure 2 , the growth rate in China is greater than that for Italy, Iran, Germany and the USA in the early weeks of the disease. The next step is to find the best model for the estimation of the time-series data. Logistic, Linear, Logarithmic, Quadratic, Cubic, Compound, Power and exponential equations (Table 2 ) are employed to develop the desired model. A, B, C, µ, and L are parameters (constants) that characterize the above-mentioned functions. These constants need to be estimated to develop an accurate estimation model. One of the goals of this study was to model time-series data based on the logistic microbial growth model. For this purpose, the modified equation of logistic regression was used to estimate and predict the prevalence (i.e., I/Population at a given time point) of disease as a function of time. Estimation of the parameters was performed using evolutionary algorithms like GA, particle swarm optimizer, and the grey wolf optimizer. These algorithms are discussed in the following. Evolutionary algorithms (EA) are powerful tools for solving optimization problems through intelligent methods. These algorithms are often inspired by natural processes to search for all possible answers as an optimization problem [46] [47] [48] . In the present study, the frequently used algorithms, (i.e., genetic algorithm (GA), particle swarm optimizer (PSO) and grey wolf optimizer (GWO)) are employed to estimate the parameters by solving a cost function. Genetic Algorithm (GA) GAs are considered a subset of "computational models" inspired by the concept of evolution [49] . These algorithms use "Potential Solutions" or "Candidate Solutions" or "Possible Hypotheses" for a specific problem in a "chromosome-like" data structure. GA maintains vital information stored in these chromosome data structures by applying "Recombination Operators" to chromosome-like data structures [50] [51] [52] [53] . In many cases, GAs are employed as "Function Optimizer" algorithms, which are algorithms used to optimize "Objective Functions." Of course, the range of applications that use the GA to solve problems is very wide [52, 54] . The implementation of the GA usually begins with the production of a population of chromosomes generated randomly and bound up and down by the variables of the problem. In the next step, the generated data structures (chromosomes) are evaluated, and chromosomes that can better display the optimal solution of the problem are more likely to be used to produce new chromosomes. The degree of "goodness" of an answer is usually measured by the population of the current candidate's answers [55] [56] [57] [58] [59] . The main algorithm of a GA process is demonstrated in Figure 3 . In the present study, GA [59] was employed for estimation of the parameters of Eq. 6 to 13. The population number was selected to be 300 and the maximum generation (as iteration number) was determined to be 500 according to different trial and error processes to reduce the cost function value. The cost function was defined as the mean square error between the target and estimated values according to Eq. 14: where, Es refer to estimated values, T refers to the target values and N refers to the number of data. In 1995, Kennedy and Eberhart [60] introduced the PSO as an uncertain search method for optimization purposes. The algorithm was inspired by the mass movement of birds looking for food. A group of birds accidentally looked for food in a space. There is only one piece of food in the search space. Each solution in PSO is called a particle, which is equivalent to a bird in the bird's mass movement algorithm. Each particle has a value that is calculated by a competency function which increases as the particle in the search space approaches the target (food in the bird's movement model). Each particle also has a velocity that guides the motion of the particle. Each particle continues to move in the problem space by tracking the optimal particles in the current state [60] [61] [62] . The PSO method is rooted in Reynolds' work, which is an early simulation of the social behavior of birds. The mass of particles in nature represents collective intelligence. Consider the collective movement of fish in water or birds during migration. All members move in perfect harmony with each other, hunt together if they are to be hunted, and escape from the clutches of a predator by moving another prey if they are to be preyed upon [63] [64] [65] . Particle properties in this algorithm include [65] [66] [67] : • Each particle independently looks for the optimal point. • Each particle moves at the same speed at each step. Each particle remembers its best position in the space. The particles work together to inform each other of the places they are looking for. Each particle is in contact with its neighboring particles. Every particle is aware of the particles that are in the neighborhood. Every particle is known as one of the best particles in its neighborhood. . CC-BY 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. . The PSO implementation steps can be summarized as: the first step establishes and evaluates the primary population. The second step determines the best personal memories and the best collective memories. The third step updates the speed and position. If the conditions for stopping are not met, the cycle will go to the second step. The PSO algorithm is a population-based algorithm [68, 69] . This property makes it less likely to be trapped in a local minimum. This algorithm operates according to possible rules, not definite rules. Therefore, PSO is a random optimization algorithm that can search for unspecified and complex areas. This makes PSO more flexible and durable than conventional methods. PSO deals with nondifferential target functions because the PSO uses the information result (performance index or target function to guide the search in the problem area). The quality of the proposed route response does not depend on the initial population. Starting from anywhere in the search space, the algorithm ultimately converges on the optimal answer. PSO has great flexibility to control the balance between the local and overall search space. This unique PSO property overcomes the problem of improper convergence and increases the search capacity. All of these features make PSO different from the GA and other innovative algorithms [61, 65, 67] . In the present study, PSO was employed for estimation of the parameters of Eq. 6 to 13. The population number was selected to be 1000 and the iteration number was determined to be 500 according to different trial and error processes to reduce the cost function value. The cost function was defined as the mean square error between the target and estimated values according to Eq. 14. One recently developed smart optimization algorithm that has attracted the attention of many researchers is the grey wolf algorithm. Like most other intelligent algorithms, GWO is inspired by nature. The main idea of the grey wolf algorithm is based on the leadership hierarchy in wolf groups and how they hunt [70] . In general, there are four categories of wolves among the herd of grey wolves, alpha, beta, delta and omega. Alpha wolves are at the top of the herd's leadership pyramid, and the rest of the wolves take orders from the alpha group and follow them (usually there is only one wolf as an alpha wolf in each herd). Beta wolves are in the lower tier, but their superiority over Delta and omega wolves allows them to provide advice and help to alpha wolves. Beta wolves are responsible for regulating and orienting the herd based on alpha movement. Delta wolves, which are next in line for the power pyramid in the wolf herd, are usually made up of guards, elderly population, caregivers of damaged wolves, and so on. Omega wolves are also the weakest in the power hierarchy [70] . Eq. 15 to 18 are used to model the hunting tool: where t is represents repetition of the algorithm. and are vectors of the prey site and the vectors represent the locations of the grey wolves. is linearly reduced from 2 to 0 during the repetition. 1 ⃗⃗⃗ and 2 ⃗⃗⃗ are random vectors where each element can take on realizations in the range [0.1]. The GWO algorithm flowchart is shown in Figure 4 . . CC-BY 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. In the present study, GWO [70] was employed for estimation of the parameters of Eq.1 to 8. The population number was selected to be 500 and the iteration number was determined to be 1000 according to different trial and error processes to reduce the cost function value. The cost function was defined as the mean square error between the target and estimated values according to Eq. 14. ML is regarded as a subset of AI. Using ML techniques, the computer learns to use patterns or "training samples" in data (processed information) to predict or make intelligent decisions without overt planning [71, 72] . In other words, ML is the scientific study of algorithms and statistical models used by computer systems that use patterns and inference to perform tasks instead of using explicit instructions [73, 74] . Time-series are data sequences collected over a period of time [75] , which can be used as inputs to ML algorithms. This type of data reflects the changes that a phenomenon has undergone over time. Let X t be a time-series vector, in which xt is the outbreak at time point t and T is the set of all equidistant time points. To train ML methods effectively, we defined two scenarios, listed in Table 3 . . CC-BY 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. . Table 3 , scenario 1 employs data for three weeks to predict the outbreak on day t and scenario 2 employs outbreak data for five days to predict the outbreak for day t. Both of these scenarios were employed for fitting the ML methods. In the present research, two frequently used ML methods, the multi-layered perceptron (MLP) and adaptive network-based fuzzy inference system (ANFIS) are employed for the prediction of the outbreak in the five countries. ANN is an idea inspired by the biological nervous system, which processes information like the brain. The key element of this idea is the new structure of the information processing system [76] [77] [78] . The system is made up of several highly interconnected processing elements called neurons that work together to solve a problem [78, 79] . ANNs, like humans, learn by example. The neural network is set up during a learning process to perform specific tasks, such as identifying patterns and categorizing information. In biological systems, learning is regulated by the synaptic connections between nerves. This method is also used in neural networks [80] . By processing experimental data, ANNs transfer knowledge or a law behind the data to the network structure, which is called learning. Basically, learning ability is the most important feature of such a smart system. A learning system is more flexible and easier to plan, so it can better respond to new issues and changes in processes [81] . In ANNs, with the help of programming knowledge, a data structure is designed that can act like a neuron. This data structure is called a node [82, 83] . In this structure, the network between these nodes is trained by applying an educational algorithm to it. In this memory or neural network, the nodes have two active states (on or off) and one inactive state (off or 0), and each edge (synapse or connection between nodes) has a weight. Positive weights stimulate or activate the next inactive node, and negative weights inactivate or inhibit the next connected node (if active) [78, 84] . In the ANN architecture, for the neural cell c, the input bp enters the cell from the previous cell p. wpc is the weight of the input bp with respect to cell c and ac is the sum of the multiplications of the inputs and their weights [85] : A non-linear function Өc is applied to ac. Accordingly, bc can be calculated as Eq. 20 [85] : Similarly, wcn is the weight of the bcn which is the output of c to n. W is the collection of all the weights of the neural network in a set. For input x and output y, hw(x) is the output of the neural network. The main goal is to learn these weights for reducing the error values between y and hw(x). That is, the goal is to minimize the cost function Q(W), Eq. 21 [85] : In the present research, one of the frequently used types of ANN called the MLP [76] was employed to predict the outbreak. MLP was trained using a dataset related to both scenarios (according to Table 2 ). For the training of the network, 8, 12, and 16 inner neurons were tried to achieve the best response. Results were evaluated by RMSE and correlation coefficient to reduce the cost function value. Figure 5 presents the architecture of the MLP. . CC-BY 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. . An adaptive neuro fuzzy inference system is a type of ANN based on the Takagi-Sugeno fuzzy system [86] . This approach was developed in the early 1990s. Since this system integrates the concepts of neural networks and fuzzy logic, it can take advantage of both capabilities in a unified framework. This technique is one of the most frequently used and robust hybrid ML techniques. It is consistent with a set of fuzzy if-then rules that can be learned to approximate nonlinear functions [87, 88] . Hence, ANFIS was proposed as a universal estimator. An important element of fuzzy systems is the fuzzy partition of the input space [89, 90] . For input k, the fuzzy rules in the input space make a k faces fuzzy cube. Achieving a flexible partition for nonlinear inversion is non-trivial. The idea of this model is to build a neural network whose outputs are a degree of the input that belongs to each class [91] [92] [93] . The membership functions (MFs) of this model can be nonlinear, multidimensional and, thus, different to conventional fuzzy systems [94] [95] [96] . In ANFIS, neural networks are used to increase the efficiency of fuzzy systems. The method used to design neural networks is to employ fuzzy systems or fuzzy-based structures. This model is a kind of division and conquest method. Instead of using one neural network for all the input and output data, several networks are created in this model: • A fuzzy separator to cluster input-output data within multiple classes. • A neural network for each class. Training neural networks with output input data in the corresponding classes. Figure 6 presents a simple architecture for ANFIS. . CC-BY 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. Input n Output Figure 6 . ANFIS architecture In the present study, ANFIS is developed to tackle two scenarios described in table 3. Each input included by two MFs with the Tri. shape; Trap. shape and Gauss. shape MFs. The output MF type was selected to be linear with a hybrid optimizer type. Evaluation was conducted using the root mean square error (RMSE) and correlation coefficient. These statistics compare the target and output values and calculate a score as an index for the performance and accuracy of the developed methods [87, 97] . Table 4 presents the evaluation criteria equations. Where, N is the number of data, P and A are, respectively, the predicted (output) and desired (target) values. Tables 5 to 12 present the results of the accuracy statistics for the logistic, linear, logarithmic, quadratic, cubic, compound, power and exponential equations, respectively. The coefficients of each equation were calculated by the three ML optimizers; GA, PSO and GWO. The table contains country name, model name, population size, number of iterations, processing time, RMSE and correlation coefficient. is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. According to Tables 5 to 12 , GWO provided the highest accuracy (smallest RMSE and largest correlation coefficient) and smallest processing time compared to PSO and GA for fitting the logistic, linear, logarithmic, quadratic, cubic, power, compound, and exponential-based equations for all five countries. It can be suggested that GWO is a sustainable optimizer due to its acceptable processing time compared with PSO and GA. Therefore, GWO was selected as the best optimizer by providing the highest accuracy values compared with PSO and GA. In general, it can be claimed that GWO, by suggesting the best parameter values for the functions presented in Table 2 , increases outbreak prediction accuracy for COVID-19 in comparison with PSO and GA. Therefore, the functions derived by GWO were selected as the best predictors for this research. Tables 13 to 17 present the description and coefficients of the linear, logarithmic, quadratic, cubic, compound, power, exponential and logistic equations estimated by GWO. Tables 13 to 17 also present the RMSE and r-square values for each equation fitted to data for China, Italy, Iran, Germany and USA, respectively. is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020 is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020 As is clear from Tables 13 to 17, in general, the logistic equation followed by the quadratic and cubic equations provided the smallest RMSE and the largest r-square values for the prediction of COVID-19 outbreak. The claim can also be considered from Figure 7 to 11, which presents the capability and trend of each model derived by GWO in the prediction of COVID-19 cases for China, Italy, Iran, Germany, and the USA, respectively. . CC-BY 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. . Figure 11 . Set of models for USA fitted by GWO Figures 7 to 11 illustrate the fit of the models investigated in this paper. The best fit for the prediction of COVID-19 cases was achieved for the logistic model followed by cubic and quadratic models for China (Figure 7) , logistic followed by cubic models for Italy (Figure 8) , cubic followed by logistic and quadratic models for Iran (Figure 9 ), the logistic model for Germany (Figure 10 ), and logistic model for the USA (Figure 11 ). This section presents the results for the training stage of ML methods. MLP and ANFIS were employed as single and hybrid ML methods, respectively. ML methods were trained using two datasets related to scenario 1 and scenario 2. Table 14 presents the results of the training phase. . CC-BY 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. According to Table 18 , the dataset related to scenarios 1 and 2 have different performance values. Accordingly, for Italy, the MLP with 16 neurons provided the highest accuracy for scenario 1 and ANFIS with tri. MF provided the highest accuracy for scenario 2. By considering the average values of the RMSE and correlation coefficient, it can be concluded that scenario 1 is more suitable for modeling outbreak cases in Italy, as it provides a higher accuracy (the smallest RMSE and the largest correlation coefficient) than scenario 2. For the dataset related to China, for both scenarios, MLP with 12 and 16 neurons, respectively for scenarios 1 and 2, provided the highest accuracy compared with the ANFIS model. By considering the average values of RMSE and correlation coefficient, it can be concluded that scenario 2 with a larger average correlation coefficient and smaller average RMSE than scenario 1 is more suitable for modeling the outbreak in China. For the dataset of Iran, MLP with 12 neurons in the hidden layer for scenario 1 and ANFIS with Gaussian MF type for scenario 2 provided the best performance for the prediction of the outbreak. By considering the average values of the RMSE and correlation coefficient, it can be concluded that scenario 1 provided better performance than scenario 2. Also, in general, the MLP has higher prediction accuracy compared with the ANFIS method. In Germany, MLP with 12 neurons in its hidden layer provided the highest accuracy (smallest RMSE and largest correlation coefficient). By considering the average values of the RMSE and correlation coefficient, it can be concluded that scenario 1 is more suitable for the prediction of the outbreak in Germany than scenario 2. In the USA, the MLP with 8 and 12 neurons, respectively, for scenarios 1 and 2, provided higher accuracy (the smallest RMSE and the largest correlation coefficient values) than the ANFIS model. By considering the average values of the RMSE and correlation coefficient values, it can be concluded that scenario 1 is more suitable than scenario 2, and MLP is more suitable than ANFIS for outbreak prediction. Figures 12 to 16 present the model fits for Italy, China, Iran, Germany, and the USA, respectively. By comparing Figure 12 to 16 with Figures 7 to 11 , it can be concluded that the MLP and the logistic model fitted by GWO provided a better fit than the other models. In addition, the ML methods provided better performance compared with other models. . CC-BY 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted April 22, 2020. . . CC-BY 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. (which was not certified by peer review) The copyright holder for this preprint this version posted April 22, 2020. . The parameters of several simple mathematical models (i.e., logistic, linear, logarithmic, quadratic, cubic, compound, power and exponential) were fitted using GA, PSO, and GWO. The logistic model outperformed other methods and showed promising results on training for 30 days. Extrapolation of the prediction beyond the original observation range of 30-days should not be expected to be realistic considering the new statistics. The fitted models generally showed low accuracy and also weak generalization ability for the five countries. Although the prediction for China was promising, the model was insufficient for extrapolation, as expected. In turn, the logistic GWO outperformed the PSO and GA and the computational cost for GWO was reported as satisfactory. Consequently, for further assessment of the ML models, the logistic model fitted with GWO was used for comparative analysis. In the next step, for introducing the machine learning methods for time-series prediction, two scenarios were proposed. Scenario 1 considered four data samples from the progress of the infection from previous days, as reported in table 3. The sampling for data processing was done weekly for scenario 1. However, scenario 2 was devoted to daily sampling for all previous consecutive days. Providing these two scenarios expanded the scope of this study. Training and test results for the two machine learning models (MLP and ANFIS) were considered for the two scenarios. A detailed investigation was also carried out to explore the most suitable number of neurons. For the MLP, the performances of using 8, 12 and 16 neurons were analyzed throughout the study. For the ANFIS, the membership function (MF) types of Tri, Trap, and Gauss were analyzed throughout the study. The five counties of Italy, China, Iran, Germany, and USA were considered. The performance of both ML models for these countries varied amongst the two different scenarios. Given the observed results, it is not possible to select the most suitable scenario. Therefore, both daily and weekly sampling can be used in machine learning modeling. Comparison between analytical and machine learning models using the deviation from the target value (figures 17 to 21) indicated that the MLP in both scenarios delivered the most accurate results. Extrapolation for long-term prediction of up to 150 days using the ML models was tested. The actual prediction of MLP and ANFIS for the five countries was reported which showed the progression of the outbreak. The global pandemic of the severe acute respiratory syndrome Coronavirus 2 (SARS-CoV-2) has become the primary national security issue of many nations. Advancement of accurate prediction models for the outbreak is essential to provide insights into the spread and consequences of this infectious disease. Due to the high level of uncertainty and lack of crucial data, standard epidemiological models have shown low accuracy for long-term prediction. This paper presents a comparative analysis of ML and soft computing models to predict the COVID-19 outbreak. The results of two ML models (MLP and ANFIS) reported a high generalization ability for long-term prediction. With respect to the results reported in this paper and due to the highly complex nature of the COVID-19 outbreak and differences from nation-to-nation, this study suggests ML as an effective tool to model the outbreak. For the advancement of higher performance models for long-term prediction, future research should be devoted to comparative studies on various ML models for individual countries. Due to the fundamental differences between the outbreak in various countries, advancement of global models with generalization ability would not be feasible. As observed and reported in many studies, it is unlikely that an individual outbreak will be replicated elsewhere [1] . Although the most difficult prediction is to estimate the maximum number of infected patients, estimation of the n(deaths) / n(infecteds) is also essential. The mortality rate is particularly important to accurately estimate the number of patients and the required beds in intensive care units. For future research, modeling the mortality rate would be of the utmost importance for nations to plan for new facilities. COVID-19 and Italy: what next? Lancet Predicting the impacts of epidemic outbreaks on global supply chains: A simulation-based analysis on the coronavirus outbreak (COVID-19/SARS-CoV-2) case The forecasting of dynamical Ross River virus outbreaks A comparative study on predicting influenza outbreaks using different feature spaces: application of influenza-like illness data from Early Warning Alert and Response System in Syria Inter-outbreak stability reflects the size of the susceptible pool and forecasts magnitudes of seasonal epidemics On the predictability of infectious disease outbreaks Real-Time Forecasting of Hand-Foot-and-Mouth Disease Outbreaks using the Integrating Compartment Model and Assimilation Filtering Supervised forecasting of the range expansion of novel non-indigenous organisms: Alien pest organisms and the 2009 H1N1 flu pandemic Testing predictability of disease outbreaks with a simple model of pathogen biogeography Short-term forecasting of bark beetle outbreaks on two economically important conifer tree species Effective containment explains sub-exponential growth in confirmed cases of recent COVID-19 outbreak in Mainland China Evaluation of the effect of varicella outbreak control measures through a discrete time delay SEIR model Research about the optimal strategies for prevention and control of varicella outbreak in a school in a central city of China: Based on an SEIR dynamic model Calibration of a SEIR-SEI epidemic model to describe the Zika virus outbreak in Brazil Fitting the SEIR model of seasonal influenza outbreak to the incidence data for Russian cities Transmission Dynamics of Zika Fever: A SEIR Based Model Real-time prediction of influenza outbreaks in Belgium Forecasted Size of Measles Outbreaks Associated With Vaccination Exemptions for Schoolchildren Simple framework for real-time forecast in a data-limited situation: The Zika virus (ZIKV) outbreaks in Brazil from 2015 to 2016 as an example. Parasites Vectors Predicting social response to infectious disease outbreaks from internet-based news streams Effective network size predicted from simulations of pathogen outbreaks through social networks provides a novel measure of structure-standardized group size Google trends predicts present and future plague cases during the plague outbreak in Madagascar: Infodemiological study Prediction of dengue outbreaks based on disease surveillance, meteorological and socio-economic data Forecasting respiratory infectious outbreaks using ED-based syndromic surveillance for febrile ED visits in a Metropolitan City Early Prediction of the 2019 Novel Coronavirus Outbreak in the Mainland China Based on Simple Mathematical Model Nowcasting and forecasting the potential domestic and international spread of the 2019-nCoV outbreak originating in Wuhan, China: a modelling study Superensemble forecast of respiratory syncytial virus outbreaks at national, regional, and state levels in the United States The Norovirus Epidemiologic Triad: Predictors of Severe Outcomes in US Norovirus Outbreaks Consensus and conflict among ecological forecasts of Zika virus outbreaks in the United States Seasonal difference in temporal transferability of an ecological model: near-term predictions of lemming outbreak abundances A predictive management tool for blackfly outbreaks on the Orange River Predicting antigenic variants of H1N1 influenza virus based on epidemics and pandemics using a stacking model Data mining techniques for predicting dengue outbreak in geospatial domain using weather parameters for Spatiotemporal dengue fever hotspots associated with climatic factors in taiwan including outbreak predictions based on machine-learning Development of artificial intelligence approach to forecasting oyster norovirus outbreaks along Gulf of Mexico coast Development of genetic programming-based model for predicting oyster norovirus outbreak risks Machine learning for dengue outbreak prediction: A performance evaluation of different prominent classifiers Prediction for global African swine fever outbreaks based on a combination of random forest algorithms and meteorological data A machine learning-based approach for predicting the outbreak of cardiovascular diseases in patients on dialysis Artificial intelligence model as predictor for dengue outbreaks Comparative evaluation of time series models for 43 Long-term predictors of dengue outbreaks in Bangladesh: A data mining approach Performance Analysis of Combine Harvester using Hybrid Model of Artificial Neural Networks Particle Swarm Optimization Comparative Analysis of Single and Hybrid Neuro-Fuzzy-Based Models for an Industrial Heating Ventilation and Air Conditioning Control System Evolutionary algorithms in theory and practice: evolution strategies, evolutionary programming, genetic algorithms Multi-objective optimization using evolutionary algorithms Comparison of multiobjective evolutionary algorithms: Empirical results Feature selection based on hybridization of genetic algorithm and particle swarm optimization. IEEE Geoscience and remote sensing letters Comparative Analysis of Single and Hybrid Neuro-Fuzzy-Based Models for an Industrial Heating Ventilation and Air Conditioning Control System Advances in machine learning modeling reviewing hybrid and ensemble methods The parallel genetic algorithm as function optimizer A genetic algorithm tutorial A niched Pareto genetic algorithm for multiobjective optimization A genetic algorithm for flowshop sequencing Development and validation of a genetic algorithm for flexible docking Advances in machine learning modeling reviewing hybrid and ensemble methods A genetic algorithm for function optimization: a Matlab implementation Genetic algorithms and neural networks: Optimizing connections and connectivity Particle swarm optimization Particle swarm optimization. Swarm intelligence Particle swarm optimization Using selection to improve particle swarm optimization Particle swarm optimization with particles having quantum behavior Recent approaches to global optimization problems through particle swarm optimization Analysis of particle swarm optimization algorithm. Computer and information science Particle swarm optimization method in multiobjective problems An efficient method for segmentation of images based on fractional calculus and natural selection Multilevel image segmentation based on fractional-order Darwinian particle swarm optimization Advances in engineering software 72. Ardabili;, S.; Mosavi;, A.; Varkonyi-Koczy;, A. Systematic Review of Deep Learning and Machine Learning Models in Biofuels Research,. Engineering for Sustainable Future Prediction of combine harvester performance using hybrid machine learning modeling and response surface methodology Prediction of combine harvester performance using hybrid machine learning modeling and response surface methodology Time series analysis Modelling Temperature Variation of Mushroom Growing Hall Using Artificial Neural Networks. Engineering for Sustainable Future Prediction of wind speed and wind direction using artificial neural network, support vector regression and adaptive neuro-fuzzy inference system Prediction of output energies for broiler production using linear 79 Artificial neural network modeling of hydrogen-rich syngas production from methane dry reforming over novel Ni/CaFe 2 O 4 catalysts Wavelet neural network applied for prognostication of contact pressure between soil and driving wheel. Information Processing in Agriculture Intelligent modeling of material separation in combine harvester's thresher by ANN Detection of walnut varieties using impact acoustics and artificial neural networks (ANNs) Detection of almond varieties using impact acoustics and artificial neural networks Fundamentals of artificial neural networks Faizollahzadeh_Ardabili; Mahmoudi, A.; Mesri Gundoshmian, T. Modeling and simulation controlling system of HVAC using fuzzy and predictive (radial basis function ,RBF) controllers Prediction of output energy based on different energy inputs on broiler production using application of adaptive neural-fuzzy inference system Deep learning and machine learning in hydrological processes climate change and earth systems a systematic review State of the art survey of deep learning and machine learning models for smart cities and urban sustainability Adaptive neuro-fuzzy inference system for classification of EEG signals using wavelet coefficients A hybrid ANFIS model based on AR and volatility for TAIEX forecasting Adaptive neuro-fuzzy inference system for prediction of water level in reservoir Evaporation estimation using artificial neural networks and adaptive neuro-fuzzy inference system techniques An adaptive neuro-fuzzy inference system (ANFIS) model for wire-EDM Ahlawat, A. Modeling and analysis of significant