key: cord-0964212-mt2s6u15 authors: O'Brien, Duncan A.; Clements, Christopher F. title: Early warning signal reliability varies with COVID-19 waves date: 2021-12-08 journal: Biol Lett DOI: 10.1098/rsbl.2021.0487 sha: 44070b83b6f4bcd6b40aee74380edb9400ea9c0a doc_id: 964212 cord_uid: mt2s6u15 Early warning signals (EWSs) aim to predict changes in complex systems from phenomenological signals in time series data. These signals have recently been shown to precede the emergence of disease outbreaks, offering hope that policymakers can make predictive rather than reactive management decisions. Here, using a novel, sequential analysis in combination with daily COVID-19 case data across 24 countries, we suggest that composite EWSs consisting of variance, autocorrelation and skewness can predict nonlinear case increases, but that the predictive ability of these tools varies between waves based upon the degree of critical slowing down present. Our work suggests that in highly monitored disease time series such as COVID-19, EWSs offer the opportunity for policymakers to improve the accuracy of urgent intervention decisions but best characterize hypothesized critical transitions. As with many natural systems, the emergence of infectious disease is often sudden and nonlinear, making it difficult for policymakers to identify and appropriately manage threats [1, 2] . Balancing the health risks posed by novel diseases and the possible economic impact of imposing mitigation strategies is therefore a complicated process ultimately dependent on the timing of strategy implementation [3] . The severe acute respiratory syndrome-coronavirus 2 (SARS-CoV-2), which causes the coronavirus disease 2019 (COVID- 19) , exemplifies this challenge. There has been widespread criticism, in response to the harm the pandemic has inflicted, of the speed and severity of the national strategies to the virus threat [4, 5] . To date, governments have imposed a spectrum of clinical (e.g. intensive care unit construction), non-pharmaceutical (e.g. large-scale lockdowns) and, most recently, vaccination-based strategies, with the timing of implementation dramatically influencing the case curve between legislative regions [6] . The optimum moment of action is unclear, however, with suggestions that, due to periods of cryptic transmission [7, 8] , strong nonpharmaceutical interventions (NPIs) two weeks earlier than performed may have halved cumulative deaths [9, 10] . Identifying this cryptic window would therefore improve strategy decisions involving possible NPIs based upon the relevant COVID-19 situation. Unfortunately, the causes of disease emergence and re-emergence often appear idiosyncratic [11] , requiring the use of context-specific models [12, 13] or risk assessments limited to initial emergence only [14] . These methods are powerful tools and have become keystones during the COVID-19 pandemic response, but are restricted by data availability [15, 16] and potential for the lack of transparency [17] . Due to these difficulties, there have been suggestions to consider disease emergence as critical transitions [18] where a forcing pressure, such as host movement or pathogen evolution, drives the system towards a threshold. If considered in this manner, then a suite of alternative methods based upon the concept of critical slowing down (CSD) becomes applicable in the identification of transitions in disease and, potentially, COVID-19 dynamics. CSD represents the compromised ability of a system to recover from perturbation as it approaches a threshold at which a small perturbation in state triggers a positive feedback loop and system shift [19] . From this phenomenon, various mechanism-independent and summary statistic indicators have been identified across a range of simulated [20, 21] and empirical [22, 23] studies. In disease systems, CSD was established as tracking a transcritical transition in the effective reproductive number, R eff , [24] or number of secondary infections an infectious individual causes. Below one, secondary infection is unlikely whereas above one, transmission is common and an outbreak occurs. The period where R eff increases towards one is represented by a region of 'stuttering' transmission [25] during which CSD also increases [24, 26] . 'Early warning signal' (EWS) summary statistics based upon CSD will therefore precede the rapid increase in cases at the beginning of an outbreak [27] . EWSs have been shown to predict the emergence of diseases empirically and in simulations [24, 28, 29] . Variance and autocorrelation increased prior to malaria resurgence in Kenya [28] and before the initial emergence of COVID-19 in seven of the nine countries assessed [30] . In the latter, the exponential increase in cases resulted from the inherently high R eff of the SARS-CoV-2 pathogen (greater than 1) [31] rather than a transcritical transition. CSD is therefore not conceptually anticipated to be present [32] . However, wider research has suggested that CSD-based signals may be identifiable not only before a critical transition, but also prior to strong nonlinearity [20, 33] ; even in the absence of a defined bifurcation, EWSs may detect rapid case increases. This supposition has since been supported by simulated work showing EWSs increase during early stages of exponential and logistic change [34] , implying a circumstance exploitable during disease monitoring to identify both exponential growth and transcritical transitions. For the successive COVID-19 re-emergences, however, NPIs restricting R eff [35] have theoretically introduced a period of stuttering transmission to cause CSD, and EWSs may act as expected. Thus, COVID-19 represents a unique opportunity to test the efficacy of EWSs in multiple sequential outbreaks by assessing the wave-like dynamics expressed in most countries [36] . Here, we test whether EWSs can predict sequential increases in COVID-19 daily cases, developing a novel methodology to detect and subset data into successive waves of infection. Using the suggested framework, we show evidence that EWSs can be identified prior to nonlinear COVID-19 case increases with the second wave best pre-empted, matching the theoretical predictions. Our results provide suggestions on how to use EWSs in a management scenario, where decisions must be made as data are collected, rather than post hoc. Daily COVID-19 case data were collected from the World Health Organization's dashboard (https://covid19.who.int/info/), spanning 30 January 2020 to 9 June 2021. We analysed positive, daily COVID-19 cases rather than cumulative cases as performed by other studies [30] , thus allowing us to attempt the prediction of sequential COVID-19 outbreaks. Case data can be inaccurate from incomplete testing and cryptic cases [35] , but we wanted to explore the viability of EWSs using the most universally collected and interpreted data type. The data were consequently analysed in its raw form with no detrending performed. To assess the increase and decline of COVID-19 cases and define nonlinear regions that can be considered 'waves', generalized additive models (GAMs) were iteratively fitted to daily cases in an 'add-one-in' fashion, using the R [37] package 'mgcv' [38] (see electronic supplementary material 1 for further details. The entire workflow is visualized in the electronic supplementary material 1, figure S1). The time series' inflection points, defined by the significant differing of the GAM smooth's first derivatives from zero, as assessed by 95% pointwise confidence intervals [39] , were used to identify nonlinear regions of case increase/ decrease and wave onset/subsidence. The presence of EWSs was then calculated using the framework suggested by [40] and developed in [23, 41] . Briefly, this approach differs from rolling window EWS methodologies [32, 42] by assessing change in an expanding window via a composite metric consisting of multiple indicators. Here, we focussed on the two most used EWS indicators, variance (represented by the standard deviation, s.d.) and autocorrelation at first lag (acf ) [43] , as well as skewness (skew), following the initial authors [40] . Each indicator was normalized by subtracting its expanding mean from its calculated value at time t before dividing by its expanding standard deviation [23] . A composite metric was then constructed by summing all individual indicator values calculated per t. An EWS was considered present when the composite metric exceeded its expanding mean by 2σ [40] . The 2σ threshold was chosen based upon its equivalency to a 95% confidence interval and repeatedly favourable performance compared to other threshold levels [23, 41] . As the expanding mean is the basis of assessment, a previous wave will often mask the appearance of second (electronic supplementary material 2, figure S2) . Consequently, once a wave subsided, as assessed by GAM first derivatives, the data were cut and the EWS assessment-GAM fitting restarted, truncating the time series from the point of wave end. This resulted in a series of EWS and GAM assessments, each for a specific wave and independent from previous waves. Additionally, the expanding window approach is initially susceptible to false-positive signals due to the short time series length and high variability when few data points are supplied to the algorithm. To mitigate this, a seven-time step burn-in period was introduced to 'train' the signals. Evidence suggests that a persistent signal for two time steps is sufficient to reduce the frequency of false positives [44] and so a 'warning' was acknowledged when signals were detected for two consecutive time steps. From the calculated indicators, we present both the individual indicator strengths over time as well as the difference between the time-of-first-detection and the estimated onset of nonlinearity in the UK and abroad. We also identify the superior indicator or combination of indicators for specifically pre-empting COVID-19 case increase. Using the UK as a case study, GAMs predicted three significantly increasing regions in daily COVID-19 cases. These regions correspond to the onset of Waves 1, 2 and, tentatively, 3 beginning on 9 March 2020, 15 September 2020 and 18 May 2021, respectively. From this prediction, two restarts of the EWS-GAM analysis were performed on 7 July 2020 and 12 April 2021 following the subsidence of each wave. Only 's.d. + skew' and the composite metric exceeded the 2σ threshold at least once during each UK wave ( figure 1 ). Under our definition of a 'warning', Wave 1 was un-detected, whereas Wave 2 was pre-empted by 48 days and indicators lagged Wave 3 by 10 days. Similar results were observed in 24 other countries, with GAMs predicting at least two significantly nonlinear increases in each country's daily COVID-19 cases (excluding Portugal). Nine countries also exhibited a third increase (electronic supplementary material 2, figure S3) and Japan alone exhibited a fourth increase. When warnings were averaged between countries, each sequential wave was more weakly preempted, although the first wave had the highest false-negative rate of all waves across all indicators (electronic supplementary material 2, table S1, μ ± s.e.: Wave 1 = 0.62 ± 0.02, Wave 2 = 0.27 ± 0.01, Wave 3 = 0.22 ± 0.01). The composite metric was the most robust indicator of both emergence and re-emergence (electronic supplementary material 2, table S1; figure 2) with a false negative rate of approximately 0.28 compared to approximately 0.37 for variance, approximately 0.43 for skewness and approximately 0.53 for autocorrelation. The composite's mean detection time did decrease from a 14.6 day pre-emption of COVID-19 emergence to 13.2 days for first re-emergence (Wave 2) and 5.0 day lag for second reemergence (electronic supplementary material 2, table S1). European countries displayed the earliest mean preemption of the first wave when assessed using the composite metric (figure 2; +26.0 ± 2.8 days), but with a high falsenegative rate (0.78) compared to Asia (0.2) which displayed the second earliest mean pre-emption (+19.0 ± 5.7 days). European countries also pre-empted the second wave earliest (+27.2 ± 2.1 days, 0.33 false negative) although no region pre-empted the third wave; other (Africa and the Middle East) exhibited the shortest lag (−0.5 ± 5.3 days, 0.00 false negative). These results show that EWSs based on the theory of CSD are sufficient to predict the emergence and re-emergence of COVID-19 in multiple countries, but that their ability is context dependent. Indicator ability is improved when time series are subset into individual waves unbiasedly estimated using an iterative GAM approach (figure 1; electronic supplementary material 2, figure S2 ) but, when EWSs are detected, they only appear for short periods before disappearing. This weakens the practicality of EWSs as a predictive tool for policymakers, as only a few warnings may appear prior to the nonlinear increase. Nevertheless, the observed degree of pre-emption supports EWSs use for characterizing both exponential growth at emergence and later periods of 'stuttering' transmission. Time series variance consistently predicted nonlinear case increase, implying that the indicator is the most informative for characterizing disease outbreaks. This is congruent with previous disease [28, 45] and ecological [23, 43] findings. The relative weakness of autocorrelation was unexpected considering those studies also identified autocorrelation as a reliable indicator, yet the improvement of the triple composite EWS regardless highlights the benefit of the composite metric approach developed by [40] over individual indicators. Although this study provides evidence for the partial success of EWS indicators during COVID-19 re-/emergence, their application is often hampered by the quality of data available [46] . Epidemiological data can be particularly problematic due to the reporting style of practitioners. Clinical testing effort changes over time [47] and case data can be aggregated into weekly or monthly counts with the exact date of infection of an individual unknown and many cases being cryptic due to a lack of symptoms [35] . While EWSs based upon disease incidence often display unique behaviour compared to the same indicators based upon disease prevalence [29] , this study suggests EWSs can detect changes in daily data via an expanding window and is supported by other studies implementing the alternative rolling window approach [29, 48] . COVID-19 case data from Europe does provide a best-case example for EWS assessment, due to the frequency of testing and defined periods of stationarity enforced by NPIs resulting in improved pre-emption compared to other regions (figure 2), but as many governments alter their approach towards future pandemics [49] , the data quality may become universal. The variable pre-emption between waves reported here is particularly important as, statistically, the lag between transition and disease emergence is not fully understood [27] . In this study, it is likely that second re-emergence is not pre-empted due to the shrinking stationary period between it and the previous wave, which in some circumstances may be only one to two weeks in length (e.g. Argentina, Colombia, India). This supports Dablander and colleagues' suggestion [32] that some 'settling down' of infection rates is required for EWSs to be persistent and pre-emptive, further weakening their generic usage. Similarly, first re-emergence displaying lowest false-negative EWS rates is consistent with critical theory; wave 2 is anticipated to be the only transcritical transition observed in the time series and so is the only wave thought to display CSD. We therefore suggest that while composite EWSs are not universally detectable prior to COVID-19 waves, they may supplement routine trend analysis in the current monitoring toolbox, alongside other possible early indicators (social media activity- [50] , viral shedding in sewerage- [51] ), as indicative of persistent nonlinear case growth rather than solely critical transitions. In conclusion, we suggest that composite EWS indicators may provide useful predictive tools during monitoring, particularly where cases are maintained at low variability for extended periods. When waves rapidly follow one another, CSD-based tools can indicate strong nonlinearity, but these signals are most reliable when R eff is maintained sufficiently low that re-emergence results from a transcritical transition. These results support wider notions that EWSs are best suited as a 'preliminary analysis' indicative of a system at risk and requiring intervention consideration. Although we advocate the use of sequential EWS assessment if used for disease monitoring, it is harder to apply this approach in multi-dimensional systems where a stationary period is likely unidentifiable. Ecosystems, for example, are constantly fluctuating in response to intrinsic or extrinsic drivers [52] , with it unclear the minimum length of time series to definitively identify the system's trend [53] . Nonetheless, if periods of stationarity can be identified, we believe sequential assessment is necessary for EWS usage to prevent bias from historic transitions. Data accessibility. All data are available from the World Health Organization's dashboard (https://covid19.who.int/info/). Code for the generation of all results and figures are available at https://doi. org/10.5281/zenodo.5556901 [54] . Additional supporting information and data are provided in the electronic supplementary material [55] . Emerging virus diseases: can we ever expect the unexpected? Emerging Microbes Infections 1, e46 The challenge of emerging and re-emerging infectious diseases 2020 How will country-based mitigation measures influence the course of the COVID-19 epidemic? The UK government's COVID-19 policy: assessing evidence-informed policy analysis in real time 2020 Trust and the coronavirus pandemic: what are the consequences of and for trust? An early review of the literature The effect of control strategies to reduce social mixing on outcomes of the COVID-19 epidemic in Wuhan, China: a modelling study Cryptic transmission of SARS-CoV-2 in Washington state Substantial undocumented infection facilitates the rapid dissemination of novel coronavirus (SARS-CoV-2) Genetic evidence for the association between COVID-19 epidemic severity and timing of non-pharmaceutical interventions 2020 Global assessment of the relationship between government response measures and COVID-19 deaths. medRxiv Global trends in emerging infectious diseases The characteristics of Middle Eastern respiratory syndrome coronavirus transmission dynamics in South Korea The challenges of modeling and forecasting the spread of COVID-19 2020 Will an outbreak exceed available resources for control? Estimating the risk from invading pathogens using practical definitions of a severe epidemic 2020 Wrong but usefulwhat Covid-19 epidemiologic models can and cannot tell us 2021 COVID-19 and the difficulty of inferring epidemiological parameters from clinical data Transparency assessment of COVID-19 models The statistics of epidemic transitions Early-warning signals for critical transitions Early warning signals also precede noncatastrophic transitions Theory of early warning signals of disease emergence and leading indicators of elimination Early warnings of regime shifts: a whole-ecosystem experiment Including trait-based early warning signals helps predict population collapse Detecting critical slowing down in highdimensional epidemiological systems Inference of R0 and transmission heterogeneity from the size distribution of stuttering chains Forecasting infectious disease emergence subject to seasonal forcing Waiting time to infectious disease emergence 2020 Early warning signals of malaria resurgence in Kericho Prospects for detecting early warning signals in discrete event sequence data: application to epidemiological incidence data Anticipating the novel coronavirus disease (COVID-19) pandemic. Front. Public Health 8, 521 Global convergence of COVID-19 basic reproduction number and estimation from earlytime SIR dynamics Overlapping time scales obscure early warning signals of the second COVID-19 wave. medRxiv Robustness of early warning signals for catastrophic and noncatastrophic transitions Systematically false positives in early warning signal analysis Estimating the effects of nonpharmaceutical interventions on COVID-19 in Europe 2020 Conditions for a second wave of COVID-19 due to interactions between disease dynamics and social processes R: a language and environment for statistical computing Fast stable restricted maximum likelihood and marginal likelihood estimation of semiparametric generalized linear models 2021 gratia: graceful 'ggplot'-based graphics and other functions for GAMs fitted using 'mgcv Early warning signals of extinction in deteriorating environments Body size shifts and early warning signals precede the historic collapse of whale stocks Methods for detecting early warnings of critical transitions in time series illustrated using simulated ecological data Robustness of variance and autocorrelation as indicators of critical slowing down Early warning signals of recovery in complex systems Leading indicators of mosquito-borne disease elimination Factors influencing the detectability of early warning signals of population collapse Testing at scale during the COVID-19 pandemic Anticipating epidemic transitions with imperfect data The relation between length of lockdown, numbers of infected people and deaths of Covid-19, and economic growth of countries: lessons learned to cope with future pandemics similar to Covid-19 and to constrain the deterioration of economic system Prediction of COVID-19 waves using social media and Google search: a case study of the US and Canada. Front. Public Health 9 Making waves: plausible lead time for wastewater based epidemiology as an early warning system for COVID-19 Resilience indicators: prospects and limitations for early warnings of regime shifts When can we trust population trends? A method for quantifying the effects of sampling interval and duration 2021 Early warning signal reliability varies with COVID-19 waves 2021 Early warning signal reliability varies with COVID-19 waves Acknowledgements. We are thankful to the GW4 + FRESH Centre for Doctoral Training in Freshwater Biosciences and Sustainability for their support of this project and to the four anonymous reviewers who greatly improved the quality and scope of work. Authors' contributions. D.A.O. was involved in the conceptualization, methodology, investigation, formal analysis, writing-original draft preparation and visualization. C.F.C. was involved in the methodology, review and editing of the manuscript, and supervision. All authors agree to be held accountable for the content therein and approve the final version of the manuscript.Competing interests. We declare we have no competing interests.