## Abstract

We present a robust data-driven machine learning analysis of the COVID-19 pandemic from its *early* infection dynamics, specifically infection counts over time. The goal is to extract actionable public health insights. These insights include the infectious force, the rate of a mild infection becoming serious, estimates for asymtomatic infections and predictions of new infections over time. We focus on USA data starting from the first confirmed infection on January 20 2020. Our methods reveal significant asymptomatic (hidden) infection, a lag of about 10 days, and we quantitatively confirm that the infectious force is strong with about a 0.14% transition from mild to serious infection. Our methods are efficient, robust and general, being agnostic to the specific virus and applicable to different populations or cohorts.

## 1 Introduction

As of March 1 2020, there was still much public debate on properties of the COVID-19 pandemic (see the CNN article, Cohen (2020)). For example, is asymptomatic spread of COVID-19 a major driver of the pandemic? There was no clear unimodal view, highlighting the need for robust tools to generate actionable quantitative intelligence on the nature of a pandemic from *early* and minimal data. One approach is scenario analysis. Recently, Chinazzi *et al*. (2020) used the Global Epidemic and Mobility Model (GLEAM) to perform infection scenario analyses on China COVID-19 data, using a networked meta-population model based on transportation hubs. A similar model for the US was reported in Wilson (2020) where the web-app predicted from 150,000 to 1.4 million infected cases by April 30, depending on the intervention level. Such scenario analysis requires user input such as infection sites and contagion-properties. However, a majority of infection sites may be hidden, especially if asymptomatic transmission is significant. Further, the contagion parameters are *unknown* and must be deduced, perhaps using domain expertise.

Data driven approaches are powerful. A long range regression analysis of COVID-19 out to 2025 on US data using immunological, epidemiological and seasonal effects is given in Kissler *et al*. (2020), which predicts recurrent outbreaks. We also follow a data-driven machine learning approach to understand early dynamics of COVID-19 on the first 54 days of US confirmed infection reports (downloadable from the European Center For Disease Control). We address the challenge of real-time data-intelligence from early data. Our approach is simple, requires minimal data or human input and generates actionable insights. For example, is asymptomatic spread significant? Our data-driven analysis says yes, emphatically. We even give quantitative estimates for the number of asymptomatic infections.

Early data is both a curse and a blessing. The curse is that “early” implies not much information, so quantitative models must be simple and robust to be identifiable from the data. The blessing is that early data is a peek at the pandemic as it roams free, unchecked by public health protocols, for to learn the true intentions of the lion, you must follow the beast on the savanna, not in the zoo. As we will see, much can be learned from early data and these insights early in the game, can be crucial to public health governance.

We analyzed daily confirmed COVID-19 cases from January 21 to March 14, the training or model calibration phase, the gray region in Figure 1. A more detailed plot of the model fit to the training data is in Figure 2. Qualitatively we see that the model captures the data, and it does so by setting four parameters:

*β*, **asymptomatic** infectious force governing exponential spread

*γ*, virulence, the fraction of mild cases that become serious later

*k*, lag time for mild infection to become serious (an incubation time)

*M*_{0}, Unconfirmed mild asymptomatic infections at time 0

Calibrating the model to the training data, gives the following information.

The *asymptomatic* infectious force if left unchecked is 30% new cases per day (doubling in about days) and the virulence is *γ* = 0.14% (1 or 2 in a thousand conversions from mild infection to serious). Not all serious cases are fatal. The model output about 5.3 million asymptomatic cases as of 03/14 and a range from 1 to 26 million, a surprisingly high number. Such quantitative early intelligence has significance for public health protocols.

Beyond 03/14 in Figure 1 are the model predictions (blue envelope) and the red circles are the observed infection counts. How do we know the model predictions are honest, in that the red circles were in no way influenced the predictions. We are in a unique position to test the model because it is *time stamped* as version 1 of the preprint Magdon-Ismail (2020). The model has provably not changed since 03/14, and we just added test data as it arrived. The predictions in Figure 1 are in no way forward looking, data snooped or overfitted. We observe that the model and observed counts agree, modulo two “kinks” around 03/24 and 03/30, when the observed infections start falling away from the model. To understand the cause, the lag is important. Aggressive social distancing was implemented on about 03/13 and lockdowns around 03/21. A lag of *k* = 10 means the effects of these protocols will become apparent around 03/23 and 03/31 respectively.

The methods are general and can be applied to different cohorts. In Section 3.2 we do a cross-sectional country-based study. Our contributions are

A methodology for quickly and robustly machine learning simple epidemiological models given coarse aggregated infection counts.

Building a simple model with lag for learning from early pandemic dynamics.

Application of the methodology within the context of COVID-19 to USA data. Our methods reveal significant asymptomatic (hidden) infection, a lag of about 10 days, and we quantitatively confirm that the infectious force is strong with about a 0.14% transition from mild to serious infection.

Cross-sectional analysis of the pandemic dynamics across several countries.

To our knowledge, the

*only*tested predictions for COVID-19 due to our time-stamping of the predictions. Our results demonstrate the effectiveness of simple robust models for predicting pandemic dynamics from*early*data.

## 2 Model and Method

Our model is simple and robust. The majority of disease models aggregate individuals according to disease status, such as SI, SIR, SIS, Kermack and McKendrick (1927); Bailey (1957); Anderson and May (1992). We use a similar model by considering a mild infected state which can transition to a serious state. Early data allows us to make simplifying assumptions. In the early phase, when public health protocols have not kicked in, a confirmed infection is self-reported. That is, *you* decide to get tested. Why? Because the condition became serious. This is important. A confirmed case is a transition from mild infection to serious. This is not true later when, for example, public health protocols may institute randomized testing. At time *t* let there be *C*(*t*) confirmed cases and correspondingly *M* (*t*) mild unreported asymptomatic infections. The new confirmed cases at time *t* correspond to mild infections at some earlier time *t* − *k* which have now transitioned to serious and hence got self-reported. Let a fraction *γ* of those mild cases transitioned to serious,

Another advantage of early dynamics is that we may approximate the growth from each infection as independent and exponential, according to the infectious force of the disease. So,

Here, the second term is the loss of mild cases that transitioned to serious, the third term is the remaining cases that don’t transition to serious recovering at some later time *r* and the fourth term accounts for new infections from confirmed cases. We will further simplify and assume that confirmed cases are fully quarantined and so *α* = 0 and recovery to a non-infectious state occurs late enough to not factor into early dynamics. Our simplified model is:

We set *t* = 1 at the first confirmed infection (Jan 21 in USA). Given *k, M*_{0}, we get an approximate fit to the data by using a perturbation analysis to solve for *γ, β* that fit two points *S*(*τ* ) and *S*(*T* ):
where,
and *r* = *T* − *k, s* = *τ* − *k, κ* = (*S*(*T* ) − *S*(1))/(*S*(*τ* ) − *S*(1)) and *ρ* = *κ* − 1 (for details see the appendix). From this solution as a starting point, we can further optimize *γ, β* using a gradient descent which minimizes an error-measure that captures how well the parameters *β, γ, k, M*_{0} reproduce the observed dynamics in Figure 2, see for example Abu-Mostafa *et al*. (2012). We used a combination of root-mean-squared-error and root-mean-squared-percentage-error between observed dynamics and model predictions. By optimizing over *k, M*_{0}, we obtain an optimal fit to the training data (Figure 2) using model parameters:

The asymptomatic infectious force, *β*, is very high, and corresponds to a doubling time of 2.6 days. The virulence at 0.14% seems comparable to a standard flu, though the virus may be affecting certain demographics much more severely than a flu. The incubation period of 10 days seems in line with physician observations. The data analysis predicts that when the first confirmed case appeared, there were 4 other infections in the USA. The parameters *β*^{∗}, *γ*^{∗} and are new knowledge, gained with relative ease by calibrating a simple robust model to the early dynamics. But, these optimal parameters are not the whole story, especially when it comes to prediction.

The exhaustive search over *k, M*_{0}, fixing *β* and *γ* to the optimal for that specific *k, M*_{0}, produces several equivalent models We show the quality of fit for various (*k, M*_{0}) in Figure 3(a). The deep-blue region contains essentially equivalent models within 0.5% of the optimal fit, our (user defined) error tolerance. The deep-blue region shows the extent to which the model is ill-identified by the data. Indeed, all these deep-blue models equally fit the data which results in a range of predictions. For robustness, we pick the white square in the middle of the deep-blue region, but note here that it is only one of the models which are consistent with the data. In making predictions, we should consider all equivalent models to get a range for the predictions that are all equally consistent with the data. Similarly, in Figure 3(b), we fix *k*^{∗} and to their optimal robust values and show the uncertainty with respect to *β* and *γ* (the deep-blue region). Again, we pick the white square in the middle of the deep-blue region of equivalent models with respect to the data. Hence we arrive at our optimal parameters in Equation (6). By considering all models which are equally consistent with the data, we get the estimates toghether with the ranges in Equation 1. We emphasize that these error-ranges we report have nothing to do with the data, and are simply due to the ill-posedness of the inverse problem to inifer the model from finite data. Several models essentially fit the data equivalently. We do not include in our range the possible measurement errors in the data, although the two are related through the error tolerence used in defining “equivalent” models. More noise in the data would result in more models being treated as equivalent.

## 3 Results

As already mentioned, to get honest estimates, we must consider all models which are equally consistent with the data (deep-blue regions in Figure 3).

### 3.1 COVID-19 in USA

The model in Equation (1) gives the prediction of new infections in the table below. The cumulative predicted infections is the data plotted in Figure 1.

The predictions use the model in (1) and the ranges are obtained by using the space of models equally consistent with the data. March 15 and 16 data arrived at the time of writing and March 17 onward arrived after the time of writing time-stamped version 1 (Magdon-Ismail, 2020). Blue means in the range and red means outside the range.

### 3.2 Cross-Sectional Study By Countries

In the supplementary material we give details of our cross-sectional study across countries. The different countries have different cultures, social networks, mobility, demographics, as well as different times at which the first infection was reported (the “delay”). We calibrated independent models for each country and the resulting model parameters are in Table 1.

We primarily focused on the infectious force *β*, which has significant variability, and we studied how *β* statistically depends on a number of country-specific parameters factors. In the supplementary material, we give details of the study and the quantitative results. Qualitatively, we find:

A larger delay in the virus reaching a country indicates a larger

*β*. The more that has been witnessed, the faster the spread. That seems unusual, but is strongly indicated. We do not have a good explanation for this effect. It could be an artefact of testing procedures not being streamlined, so early adopters of the pandamic presenting as serious were not detected.Population density at the infection site has a strong positive effect but the country’s population density does not.

There is faster spread in countries with more people under the poverty level defined as the percentage of people living on less than $5.50 per day.

Median age has a strong effect. Spread is faster in younger populations. The youth are more mobile and perhaps also more carefree.

Wealth and per-capita income have a slight negative effect. Spread is slower in richer countries, perhaps due to risk-aversion, higher levels of education and less reliance on public transportation. Whatever the cause, it does have an impact, but relatively smaller than the other effects.

## 4 Conclusion

Early dynamics allows us to learn useful properties of the pandemic. Later dynamics may be contaminated by human intervention, which renders the data less useful without a more general model. We learned a lot from the early dynamics of COVID-19. It’s infectious force, virulence, incubation period, unseen infections and predictions of new confirmed cases. All this, albeit within error tolerances, from a simple model and little data. Asymptomatic infection is strong, around 30%, converting to serious at a rate at most 1.2%. There is significant uncertainty in the lag, from 1 up to 13 days, and we estimate 5.3 million asymptomatic infections as of 03/14, the range being from 1 to 26 million. Such information is useful for planning and health-system preparedness. Are our parameters correct? We were in a unique position to *test* our predictions because our model was *time-stamped* as version 1 of the preprint Magdon-Ismail (2020).

A side benefit of the model predictions is as a benchmark against which to evaluate public health interventions. If moving forward, observed new infections are low compared to the data in, it means the interventions are working by most likely reducing *β*. Starting on about March 25, the observed infections starts falling off and we observe a flattening by March 28. The US instuted broad and aggressive social distancing protocols starting on or before March 13 and even stronger lockdown around March 21, which is consistent with the data and the model’s lag of *k* = 10. Without such quantitative targets to compare with, it would be hard to evaluate intervention protocols.

Our approach is simple and works with coarse, aggregated data. But, there are limitations.

The independent evolution of infection sites only applies to early dynamics. Hence, when the model infections increase beyond some point, and the pandemic begins to saturate the population, a more sophisticated network model that captures the dependence between infection sites would be needed Balcan

*et al*. (2009); Hill*et al*. (2010); Salathé and Jones (2010); Keeling and Eames (2005); Chinazzi*et al*. (2020).While we did present an optimal model, it should be taken with a grain of salt because many models are nearly equivalent, resulting in prediction uncertainty.

The model and the interpretation of its parameters will change once public health protocols kick in. The model may have to be re-calibrated (for example if

*β*decreases) and the parameters may have to be reinterpreted (for example*γ*is a virulence only in the self-reporting setting, not for random testing). It is also possible to build a more general model with an early phase*β*_{1}and a latter phase*β*_{2}(after social distancing). But, beware, for a more general sophisticated model looks good*a priori*until it comes time to calibrate it to data, at which point it becomes unidentifiable.The model was learned on USA data. The learned model parameters may not be appropriate for another society. The virulence could be globally invariant, but it could also depend on genetic and demographic factors like age, as well as what “serious” means for the culture - that is when do you get yourself checked. In a high-strung society, you expect high virulence-parameter since the threshold for serious is lower. One certainly expects the infectious force to depend on the underlying social network and interaction patterns between people, which can vary drastically from one society to another and depending on interventions. Hence, one should calibrate the model to country specific data to gain more useful insights.

### The Lag, k, and Public Policy

The lag *k* is important for public policy due to how public policy can be driven by human psychology. The Human tendency is to associate any improvement in outcome to recent actions. However, if there is a lag, one might prematurely reward those recent actions instead of the earlier actions whose effects are actually being seen. Such lags are present in traditional machine learning, for example the delayed reward in reinforcement learning settings. Credit assignment to prior actions in the face of delayed reward is a notoriously difficult task, and this remains so with humans in the loop. Knowledge of the lag helps to assign credit appropriately to prior actions, and the public health setting is no exception.

## Data Availability

All data is publicly available.

## A Fitting The Model

Recall the model,

For fixed *k, M*_{0}, we must perform a gradient descent to optimize *β, γ*. Unfortunately, the dependence on *β* is exponential and hence very sensitive. So if the starting point is not chosen carefully, the optimization gets stuck in a very flat region, and many millions of iterations are needed to converge. Hence it is prudent to choose the starting conditions carefully. To do so, we need to analyze the recursion. First, we observe that the recursion for *M* (*t*) is a standalone *k*-th order recurrence. For 1 ≤ *t* ≤ *k, M* (*t*) = *M*_{0}*β*^{t−1}, hence, we can guess a solution *M* (*t*) = *M*_{0}*β*^{k−1}*ϕ*^{t−k}, for *t* > *k*, which requires

We do a perturbation analysis in *γ →* 0. At *γ* = 0, *ϕ* = *β*, so we set *ϕ* = *β* + *ϵ*, to get
which to first order in *ϥ* is solved by *ϥ* ≈ −*γ*/*β*^{k−1} and so
where *ϕ* = *β*(1 − *γ*/*β*^{k}). Given this approximation, we can solve for *S*(*t*),

Since *ϕ* = *β* + *O*(*γ*), for *t* > 2*k*, we can approximate *S*(*t*) as,

We can independently control two parameters *ϕ* and *γ*. We use this to match the observed *S*(*t*) at two time points. Since the growth is exponential, we match the end time, *S*(*T* ) and some time *τ* in the middle, for example *τ* = 3*T*/4 . Let Δ_{T} = (*S*(*T* ) − *S*(1))/*M*_{0} and Δ_{τ} = (*S*(*τ* ) − *S*(1))/*M*_{0}. Then,

Dividing gives Δ_{T} /Δ_{τ} = (*ϕ*^{T −k} − 1)/(*ϕ*^{τ−k} − 1) ≈ *ϕ*^{T −τ}, because *ϕ* > 1. Let us consider the equation *κ* = (*ϕ*^{r} − 1)/(*ϕ*^{s} − 1), which gives *ϕ*^{r} − *κϕ*^{s} + *κ* − 1 = 0, or more generally *ϕ*^{r} − *κϕ*^{s} + *ρ* = 0, where *r* > *s* > 1 and *κ* > *ρ* ≫ 1. This means *ϕ* > 1. When *ρ* = 0, we have *ϕ* = *κ*, so we do a perturbation analysis with *ϕ*^{r−s} = *κ* + *ϵ*, and our perturbation parameter is *ϵ*. Then, *ϕ*^{r} = (*κ* + *ϵ*)*ϕ*^{s} and plugging into the equation gives

Solving for *ϥ* gives *ϥ* ≈ −*ρ*(*r* − *s*)/((*r* − *s*)*κ*^{s/(r−s)} + *s*), which gives

For our setting, *r* = *T* − *k, s* = *τ* − *k, κ* = Δ_{T} /Δ_{τ} and *ρ* = *κ* − 1. Finally, since *ϕ* is approximate, we may not be able to satisfy both equations in (9), hence we can instead minimize the mean squared error, which gives

We now need to get *β* which satisfies *ϕ* = *β*(1 − *γ*/*β*^{k}). Again, we do a perturbation analysis, omitting the details, to obtain

If one wishes, a fixed point iteration starting at the above will quickly approach a solution to *ϕ* = *β*(1 − *γ*/*β*^{k}).

We show the approximate fit on the US data (Figure 4). We show the optimal fit, the initial fit using the parameters constructed from (12) and (11). The parameters and fit error are

The approximate fit works pretty well, and is certainly good enough to initialize an optimization. Note that to get an even better starting point for the gradient descent optimization, assuming *T, τ* ≥ 2*k*, one could simultaneously solve the three equations

## B Cross-Sectional Country Study

We perform our analysis on early dynamics data available from the ECDC giving infection numbers starting from December 31, 2019 ECDC (2020). We use data for 20 countries selected qualitatively because they appear to have reasonably efficient testing procedures for self-reported cases. We iniclude China data for completeness, even though China dynamics since December 31 are not early dynamics. We show these countries below, together with some demographic data which might determine spread dynamics: Start City; Start and End dates; Delay to first infection in days; Population Density; Median Age (Wikipedia, 2020); Wealth as defined by adjusted net national income per capita (World-Bank, 2017); Average Income (World-Data-Info, 2015); Poverty Level (Wikipedia, Source: World Bank, 2020) defined by living on less than $5.50 per day; Population Density around the first infection site for the country.

From the public health perspective, perhaps the most important parameter is *β*, since actions can be taken to mitigate the spread by reducing *β*, whereas *γ, k* and *M*_{0} are somewhat givens for the country. We show the fits in Table 3. As you can see, there is much variability in *β*.

### B.1 Explaining *β*

We perform a simple statistical analysis to test if *β* can be explained by any of the country parameters in Table 2. We include the delay as a global explanatory variable, which would account for a global increase in vigilence as time passes and awareness of the pandemic increases. One expects *β* to decrease with the delay. A table of correlations of *β* with the various parameters is shown below. For our analysis we use the best case *β*, although similar results follow from the optimal *β*.

As expected, there is a very significant correlation of *β* with delay, but in the opposite direction.

The larger the delay, the larger is

*β*. The more a country has observed, the faster the spread in that country. That seems unusual but seems strongly indicated by the data.Population density at the infection site has a strong positive effect but the country’s population density does not.

There is faster spread in poorer countries.

Median age has a strong effect. Spread is faster in younger countries. The youth are more mobile and perhaps also more carefree.

There is a slight negative effect from wealth and per-capita income. Spread is slower in richer countries. Perhaps this is due to more risk-aversion, perhaps higher levels of education, perhaps less use of public transportation. Whatever the cause, it does have an impact, but relatively smaller than the other effects.

We now use regularized regression to perform a linear model fit to explain *β*. To make the weight magnitudes meaningful, we normalize the data. We use a leave-one-out cross validation to select the optimal regularization parameter (which happens to be 20). The optimal regularized fit with this regularization parameter gives a new feature

The learned weights and the their ranges which yield a cross-validation error within 10% of optimal are shown in the table.

The predictions of *β* using this feature are also shown in Figure 5. A statistical regression model using these data produces the fit:

The statistical regression model also identifies positive weights on delay, population density at the initial site and poverty in that order of significance.

As we observed from the correlations, Delay, Poverty and Population Density at the initial infection site have strong positive weights. Age has a strong negative weight. Wealth and income have weak negative effects, but non-zero. The population density of the country as a whole seems to have no effect, with a weight range that includes 0.

## Acknowledgments

We thank Abhijit Patel, Sibel Adali and Zainab Magdon-Ismail for provoking discussions on this topic.