Abstract
We present different data analytic methodologies that have been applied in order to understand the evolution of the first wave of the Coronavirus disease 2019 in the Republic of Cyprus and the effect of different intervention measures that have been taken by the government. Change point detection has been used in order to estimate the number and locations of changes in the behaviour of the collected data. Count time series methods have been employed to provide short term projections and a number of various compartmental models have been fitted to the data providing with long term projections on the pandemic’s evolution and allowing for the estimation of the effective reproduction number.
Introduction
Coronavirus disease 2019 (COVID19), an infection caused by the novel coronavirus SARSCoV2^{1} that first emerged in Wuhan, China^{2} , by the beginning of February 2021, counts more than 105 million cases and has claimed nearly 2,300,000 lives^{3}. Despite some advances in therapy^{4} and some vaccines receiving conditional approval^{5,6,7}, there are still many gaps in our understanding of the dynamics of the new pandemic disease, of the effect of the interventions different governments have imposed, and of a number of other epidemiological parameters. Epidemic modeling is a fundamental component of epidemiology, especially with regards to infectious diseases. Following the pioneering work of R. Ross, W. Kermack, and McKendrick in early twentieth century^{8}, the discipline has established itself and comprises a major source of information for decision makers. For instance, in the United Kingdom, the Scientific Advisory Group of Emergencies (SAGE) is a major body that collects evidence from multiple sources including inputs from mathematical modeling to advise the British government on its response to the complex COVID19 situation; for more information see https://www.gov.uk/government/collections/scientificevidencesupportingthegovernmentresponsetocoronaviruscovid19.
In the context of the COVID19 pandemic, expert opinions can help decision makers comprehend the status of the pandemic by collecting, analyzing, and interpreting relevant data and developing scientifically sound methods and models. An exact model that would describe perfectly the data is usually not feasible and of limited scope; hence scientists usually aim for models that allow a statistical simulation of synthetic data. At the same time, models can also approximate the dynamics of the disease and discover important patterns in the data. In this way, researchers can study various scenarios and understand the likely consequences of government interventions.
The Republic of Cyprus is an islandstate, located in the Mediterranean in the southeast of Europe. The first (imported) cases of COVID19 appeared in early March 2020 with the first wave peaking in late Marchearly April. The health authorities responded rapidly and rigorously to the COVID19 pandemic by scalingup testing, increasing efforts to trace and isolate contacts of cases, and implementing measures such as closures of educational institutions, and travel and movement restrictions. Lacking a scientific unit specialised in epidemics and other infectious health hazards, a diverse group of experts from various disciplines, including epidemiologists, clinicians, statisticians and data scientists was formed with the aim of trying to understand the evolution of the COVID19 pandemic in Cyprus and of assisting the Cypriot government in informed decision making. This manuscript contains the work of this group, including results from statistical and mathematical models used to understand the epidemiology of the first wave of COVID19 in Cyprus, which spans from the beginning of March till the end of May 2020. Specifically, we proposed a range of different models that captured different aspects of the COVID19 pandemic. The analysis consisted of several methods applied to understand the evolution of pandemics in the long and short run. We used changepoint detection, count time series methods and compartmental models for short and long term projections, respectively. We estimated the effective reproduction number by using three different methods and obtained consistent results across all the used methods. Results were crossvalidated against observed data. Besides providing a comprehensive data analysis, we illustrate the importance of mathematical models to epidemiology.
Cyprus COVID19 surveillance system
The Unit for Surveillance and Control of Communicable Diseases (USCCD) of the Ministry of Health operates COVID19 surveillance. The labbased surveillance system consisted, during the first pandemic wave, of 19 laboratories (7 public and 12 private) that carried out molecular diagnostic testing for SARSCoV2. Sociodemographic, epidemiological, and clinical data of individuals with SARSCoV2 infection were routinely collected from laboratories and clinics, and reported to an electronic platform of the USCCD. A confirmed COVID19 case was a person, symptomatic or asymptomatic, with a respiratory swab (nasopharynx and/or pharynx) positive for SARSCoV2 by a realtime reversetranscription polymerase chain (rRTPCR) assay. Cases were considered imported if they had travel history from an affected area within 14 days of the disease onset. Locallyacquired cases were individuals who tested positive for SARSCoV2 and had the earliest onset date in Cyprus without travel history from affected areas. People with symptomatic COVID19 were considered recovered after the resolution of symptoms and two negative tests for SARSCoV2 at least 24h apart from each other. For asymptomatic cases, the negative tests to document virus clearance were obtained at least 14 days after the initial positive test. A person with a positive test at 14 days was further isolated for one week and finally released at 21 days after the initial diagnosis without further laboratory tests. Testing approaches in the Republic of Cyprus included: (a) targeted testing of suspect cases and their contacts; of repatriates at the airport and during their 14day quarantine; of teachers and students when schools reopened in midMay; of employees in essential services that continued their operation throughout the first pandemic wave (e.g. customer services, public domain, etc); and of healthcare workers in public hospitals, and (b) population screenings following random sampling in the general population of most districts and in two municipalities with increased disease burden. By June 2nd 2020, 120,298 PCR tests had been performed (13,734.2 per 100,000 population). Public health measures were taken in 4 phases: Period 1 (10–14 March, 2020) included closures of educational institutions and cancellation of public gatherings (> 75 persons); Period 2 (15–23 March, 2020) involved closure of entertainment areas (for instance, malls, theatres, etc), allowance of 1 person per 8 square meters in public service areas, and restrictions to international travel (for example, access to the Republic of Cyprus was permitted only for specific persons and after SARSCoV2 testing); Period 3 (24–30 March, 2020) included closure of most retail services; and Period 4 (31 March–3 May) included the suspension of incoming flights with few exceptions (for instance, repatriated Cypriot citizens), stay at home order, and night curfew.
Statistical methods
In this section we introduce the different techniques and models that have been used for the modeling and analysis of the COVID19 infections in Cyprus.
Changepoint analysis and projections
Changepoint detection is an active area of statistical research that has attracted a lot of interest in recent years and plays an essential role in the development of the mathematical sciences. A nonexhaustive list of application areas includes financial econometrics^{9}, credit scoring^{10}, and bioinformatics^{11}. The focus is on the socalled a posteriori changepoint detection, where the aim is to estimate the number and locations of certain changes in the behaviour of a given data sequence. For a review of methods of inference for single and multiple changepoints (especially in the context of time series) under the aposteriori framework, see^{12}. Detecting these changepoints enables data segmentation to homogeneous parts thus leading to a more elaborate modeling approach. Advantages of discovering such segments include interpretation and forecasting. Interpretation naturally associates the detected changepoints to reallife events or/and political decisions. In this way, improved description of the observed process and the impact of any intervention can be communicated. With regards to forecasting, the role of the final segment is quite important as it allows for a more accurate prediction of future values of the data sequence at hand. Methods developed in this context are based on a given model. For the purpose of this paper, we work with the following signalplusnoise model
where \(X_t\) denotes the daily number of COVID19 cases and \(f_t\) is a deterministic signal with structural changes at certain time points. Details about \(f_{t}\) are given below. The sequence \(\epsilon _t\) consists of independent and identically distributed (iid) data with mean zero and variance equal to one and \(\sigma >0\). We denote the number of changepoints by K and their respective locations by \(r_1, r_2, \ldots , r_K\). The locations are unknown and the aim is to estimate them. The daily number of COVID19 cases in the Republic of Cyprus is investigated by using the following two models for \(f_{t}\) of (1):

1.
Continuous, piecewiselinear signals \(f_{t} = \mu _{j,1} + \mu _{j,2}t\), for \(t = r_{j1} + 1, r_{j1}+2, \ldots , r_{j}\) with the additional constraint of \(\mu _{k,1} + \mu _{k,2}r_{k} = \mu _{k+1,1} + \mu _{k+1,2}r_{k}\) for \(k=1,2,\ldots ,K\). The changepoints, \(r_k\), satisfy \(f_{r_k1} + f_{r_k+1}\ne 2f_{r_k}\).

2.
Piecewiseconstant signals \(f_t = \mu _j\) for \(t = r_{j1}+1,r_{j1}+2,\ldots ,r_j\), and \(f_{r_j}\ne f_{r_j+1}.\)
In this work, we are using the IsolateDetect (ID) methodology of Anastasiou and Fryzlewicz (2019)^{13} in order to detect changes based on (1) under the settings of continuous piecewiselinear and piecewiseconstant signals, as described above; see Online Appendix A1 for a description of the method.
Count time series methodology
The analysis of count time series data (like daily incidence data we consider in this work) has attracted considerable attention, see Kedem and Fokianos (2002)^{14} for several references and Fokianos (2015)^{15} for a recent review of this research area. In what follows, we take the point of view of generalized linear modeling as advanced by^{16}. This framework naturally generalizes the traditional ARMA methodology and includes several complicated data generating processes besides count data such as binary and categorical data. In addition, fitting of such models can be carried out by likelihood methods; therefore testing, diagnostics and all type of likelihood arguments are available to the data analyst.
The logarithmic function is the most popular link function for modeling count data. In fact, this choice corresponds to the canonical link of generalized linear models. Suppose that \(\{X_t \}\) denotes a daily incidence time series and assume, that given the past, \(X_{t}\) is conditionally Poisson distributed with mean \(\lambda _{t}\). Define \(\nu _{t} \equiv \log \lambda _{t}\). A loglinear model with feedback for the analysis of count time series^{17} is defined as
In general, the parameters \(d,a_{1},b_{1}\) can be positive or negative but they need to satisfy certain conditions to obtain stability of the model. The inclusion of the hidden process makes the mean of the process to depend on the longterm past values of the observed data. Further discussion on model (2) can be found in Online Appendix A2 which also includes some discussion about interventions. An intervention is an unusual event that has a temporary or a permanent impact on the observed process. Computational methods for discovering interventions, in the context of (2), under a general mixed Poisson framework have been discussed by^{18}. In this work, we will consider additive outliers (AO) defined by
where the notation follows closely that of the section above and I(.) denotes the indicator function. Inclusion of the indicator function shows that at the time point \(r_{k}\), the mean process has a temporary shift whose effect is measured by the parameter \(\gamma _{k}\) but in the logscale. Other type of interventions can be included (see Online Appendix A2) whose effect can be permanent and, in this sense, intervention analysis and changepoint detection methodologies address similar problems but from a different point of view. Model fitting is based on maximum likelihood estimation and its implementation has been described in detail by Liboschik et al. (2017)^{18}.
Compartmental models
Compartmental models in epidemiology, like the SusceptibleInfectiousRecovered (SIR) and SusceptibleExposedInfectiousRecovered (SEIR) models and their modifications, have been used to model infectious diseases since the early 1920’s (see^{19,20} among others). The basic assumptions for these models are the existence of a closed community, i.e. without influx of new susceptibles or mortality due to other causes, with a fixed population, say N, and also that the individuals who recover from the illness are immune and do not become susceptible again. In the basic SEIR model, at any point in time t, each individual is either susceptible (S(t)), exposed (E(t)), infectious (I(t)) or recovered (R(t), including death). Typically, the epidemic starts at time \(t=0\) with a number of infectious individuals, usually thought of as being externally infected, and the rest of the population being susceptible. People progress between the different compartments and this motion is described usually through a system of ordinary differential equations that can be put in a stochastic framework.
A variety of SEIR modifications and extensions exist in the literature, and a multitude of them emerged recently because of the COVID19 epidemic. In this work, we consider four such modifications, based on the models proposed in^{21} and^{22} for the analysis of the COVID19 epidemic in Wuhan and the rest of the Chinese provinces.
Compartmental model 1
Initially, we employ the SEIR model based on the metapopulation model of Li et al. (2020)^{22} but simplified to take into account only a single population. The novelty compared to the standard SEIR model, is that this model takes into account the existence of undocumented/asymptomatic infections, which transmit the virus at a potentially reduced rate. The model tracks the evolution of four state variables at each day t, representing the number of susceptible, exposed, infectedreported and infectedunreported individuals, \(S(t), E(t), I^r(t), I^u(t)\) respectively. The parameters of the model are the transmission rate \(\beta \) (\(\hbox {days}^{1}\)), the relative transmission rate \(\mu \) representing the reduction in transmission for asymptomatic individuals, the average latency/incubation period Z (days), the average infectious period D (days) and the reporting rate \(\alpha \) representing the proportion of infected individuals which are reported. For a graphic description of the model see Figure A4 in the Online Appendix. The time evolution of the system is defined by the following set of differential equations (recall N denotes the population size):
Following Li et al. (2020)^{22}, we use a stochastic version of this model with a delay mechanism. Each term, say U, on the right hand side of (4) is replaced by a Poisson random variable with mean U. At each day, we use the 4th order Runge–Kutta numerical scheme to integrate the resulting equations and obtain the values of the four state variables on the next day. For each new reported infection, we draw a Gamma random variable with mean \(\tau _d\) days, to determine when this infection will be recorded. For the main analysis we use \(\tau _d\)=6 days, as the average reporting delay between the onset of symptoms and the recording of an infection; see also^{22}. Note that the results are robust with respect to the value of the reporting delay. The final output of this model is the number of recorded infections on each day t, \(y=y(t)\).
Compartmental model 2
We also use the metapopulation model of Li et al. (2020)^{22}. Such metapopulation models have been successfully applied to predict epidemic spreading through human mobility networks^{23,24}, by modeling the transmission dynamics in a set of populations, indexed by i, connected through mobility patterns, say \(M_{ij}\). This is implemented by incorporating information on human movement between the five main districts of Cyprus: Nicosia, Limassol, Larnaca, Paphos and Ammochostos. In this case, \(i=1,2,3,4,5\) and \(M_{ij}\) denotes the daily number of people traveling from district i to district j, \(i \ne j\). Such information is based on the 2011 census data obtained from the Cyprus Statistical Service. The time evolution of the four compartmental states in each district i is defined by the following set of differential equations:
where the notation follows the notation given in Compartmental Model 1 Section. In addition to the four state variables, this model also updates at each time step the population of each area i, say \(N_i\), by \(N_i = N_i + \theta \sum _j{M_{ij}}  \theta \sum _j{M_{ji}}\), where the multiplicative factor \(\theta \) is assumed to be greater than 1 to reflect underreporting of human movement. Like Model (4), Model (5) is integrated stochastically using a 4th order RungeKutta (RK4) scheme. Specifically, for each step of the RK4 scheme, each unique term on the righthand side of the four equations is determined using a random sample from a Poisson distribution. The equations describing the evolution of the population in each district i, are solved deterministically, \(i=1,\ldots ,5.\) For more, see the supplement of Li et al. (2020)^{22}.
Compartmental model 3
Further, we consider the metapopulation model of Peng et al. (2020)^{21}. This is a generalisation of the classical SEIR model, consisting of seven states: (S(t), P(t), E(t), I(t), Q(t), R(t), D(t)). At time t, the susceptible cases S(t) will become with a rate \(\zeta \) insusceptible P(t) or with a rate \(\beta \) exposed E(t), that is infected but not yet infectious, i.e. in a latent state. Some of the exposed cases will eventually become infected with a rate \(\gamma \). Infected means they have the capacity of infecting but are not quarantined yet. The introduction of the new quarantined state, Q(t), in the classical SEIR model, formed by the infected cases with a constant rate \(\delta \), allows to consider the effect of preventive measures. Finally, the quarantined cases, are now split to cured cases, R(t), with rate \(\lambda (t)\) and to closed, D(t), with mortality rate \(\kappa (t)\). The model’s parameters are the transmission rate \(\beta \), the protection rate \(\zeta \), the average latent time \(\gamma ^{1}\) (days), the average quarantine time \(\delta ^{1}\) (days) as well as the time dependent cure rate \(\lambda (t)\) and mortality rate \(\kappa (t)\). The relations are characterized by the following system of differential equations:
The total population size is assumed to be constant and equal to \(N=S(t)+P(t)+E(t)+I(t)+Q(t)+R(t)+D(t)\). According to the official reports, the number of quarantined cases, recovered and deaths, due to COVID19, are available. However, the recovered and death cases are directly related to the number of quarantined cases, which plays an important role in the analysis, especially since the numbers of exposed (E) and infectious (I) cases are very hard to determine. The latter two are therefore treated as hidden variables. This implies that we need to estimate the four parameters \(\zeta ,\beta , \gamma ^{1}, \delta ^{1}\) and both the time dependent cure rate \(\lambda (t)\) and mortality rate \(\kappa (t)\). Notice here that while the rest of the parameters are considered fixed during the pandemic, we allow the cure and mortality rate to vary with time. We expect that the former will increase with time, given that social distancing measures have been put in place, while the latter will decrease. Finally, this is an optimization problem, and the methodology we have followed in order to address it can be found in Online Appendix A3.
Compartmental model 4
The last model we consider is a modified version of a solution created by Bettencourt and Ribeiro (2008)^{25} to estimate realtime effective reproduction number \(R_{t}\) (To avoid confusion, the notation \(R_t\) denotes the effective reproduction number but R(t) denotes the number of recovered cases in a given population) using a Bayesian approach on a simple Susceptible  Infected (SI) compartmental model:
We use the Bayes rule to update the beliefs about the true value of \(R_t\) based on our predictions and on how many new cases have been reported each day. Having seen k new cases on day t, the posterior distribution of \(R_t\) is proportional to (denoted by \(\propto \)) the prior beliefs of the value of \(P(R_t)\) times the likelihood of \(R_t\) given that we have recorded k new cases, i.e., \(P(R_t  k) \propto P(R_t) \times L(R_t  k)\). To make this iterative every day that passes by, we use last day’s posterior \(P(R_{t1}  k_{t1})\) to be today’s prior \(P(R_t)\). Therefore in general \(P(R_t  k) \propto \prod _{t=0}^{T}{L(R_t  k_t)}\). However, in the above model the posterior is influenced equally by all previous days. Thus, we propose a modification suggested in^{26} that shortens the memory and incorporates only the last m days of the likelihood function, \(P(R_t  k) \propto \prod _{t=m}^{T}{L(R_t  k_t)}\). The likelihood function is modelled with a Poisson distribution.
Estimation of the effective reproduction number \(R_t\)
Recall the compartmental models discussed in the Compartmental Model 1 and 2 subsections. Then the effective reproduction number is given by
see the supplement of Li et al.^{22}. We estimate \(R_t\) in (8) during consecutive time periods (either weeklong or fortnightlong) for which its value is considered to be constant. To achieve this we estimate the parameters of each model, also assumed to be constant for each time period, using the daily number of diagnoses in the Republic of Cyprus (In order to maintain consistent notation throughout this article, we use the notation \(R_t\), even though in this section the effective reproduction number is considered constant for each time period). To estimate the parameters we employ Bayesian statistics, that is, we postulate prior distributions on the parameters and incorporate the data and the model (through the likelihood) to obtain the posterior distributions on the parameters. The posterior distributions capture our updated beliefs about the parameters after combining the prior with the observed data; see for example^{27}.
For the model defined by (4), we consider the whole area of Cyprus as a single uniform population. For this case, the observations are not sufficiently informative to identify all five parameters of the model. A solution would be to enforce identifiability by postulating strongly informative prior distributions on the parameters. Instead, we choose to make the assumption that the parameters Z, D and \(\mu \) have globally constant values, fixed over time. In particular we set \(D=3.5\) and \(\mu =0.5\) as estimated in^{22} and \(Z=5.1\) which appears to be the globally accepted mean incubation period. We thus only need to infer the reporting rate \(\alpha \) and the transmission rate \(\beta \), which vary both temporally and between different countries because of the amount of testing and the degree of adherence to the social distancing policies. On the other hand, the model defined by (5) is sufficiently informative to infer all six model parameters. All computational methods, prior modelling and assumptions in relation to both compartmental models discussed in Compartmental Model 1 and 2 subsections are given in Online Appendix A4. In addition to the above methods we further consider the method of Corie et al. (2013)^{28} as a benchmark to compare all methodologies for estimating the effective reproduction number.
Results
Descriptive surveillance statistics
By the end of May 2020, 952 cases of COVID19 were diagnosed in the Republic of Cyprus. Of these, 50.2% were male (\(n = 478\)) and the median age was 45 years (IQR: 31–59 years). The setting of potential exposure was available for 807 cases (84.8%). Of these, 17.4% (\(n = 140\)) had history of travel or residence abroad during a 14day period before the onset of symptoms. Locally acquired infections were 667 (82.7%) with 8.6% (\(n = 57\)) related to a healthcare facility in one geographical setting (cluster A) and 12.4% (\(n = 83\)) clustered in another setting (cluster B). The epidemic curve by date of sampling and date of symptom onset is shown in Fig. 1. The number of cases started to decline in April reaching very low levels in late May.
Longterm impact of the COVID19 epidemic on Cyprus
In this section, we investigate the longterm impact of COVID19 to Cyprus. Towards this, we give longterm projections for the daily incidence and death rates. We fit system (6) to COVID19 data that were collected during the period from the 1st of March 2020 till the 31st of May 2020, in Cyprus. We treat all the reported cases without making the distinction between local and imported. The model parameters are estimated using the methodology described in Online Appendix A3. When the model is fitted to data, it can be used to forecast the epidemic. In order to study the evolution of the model as new data are added and the quality of the respective forecasts, we have fitted model (6) in four datasets constructed from the original one using different time periods. Specifically, the four datasets were formed using the daily reported numbers of diagnoses from the beginning of the observation period until and including the 2/4/2020, 17/4/2020, 15/5/2020 and 24/5/202 respectively. The dates were chosen according to the change points detected using the methodology described in Changepoint Analysis and Projection Section.
The fitted model in each case was used in order to predict the pandemic’s evolution until the 30/6/2020. In Fig. 2, we show the number of predicted exposed plus infectious cases (green solid lines) and the number of predicted recovered cases (blue solid lines) for the duration of the prediction period, and compare them to the observed cases which are indicated by circles and triangles. We use circles for data that have been used in the prediction and triangles for the observed data that are used for validation. Visual inspection shows that after a period of about two months during which the model overestimates the number of active cases and underestimates the number of recovered, see Fig. 2 (top), model (6) was able to capture accurately the evolution of the pandemic, Fig. 2 (bottom).
The performance of the predictions can also be evaluated by means of the relative error (RE) which are computed using \(RE=\sqrt{\frac{\sum _{t}(y_tx_t)^2}{\sum _{t} x_t^2 }}\), where \(x_t\) denotes the datum for day t and \(y_t\) the model prediction for the same day. The RE for the recovered cases equals \(0.4\%, 0.2\%, 0.3\%\) and \(0.3\%\) for the four time periods respectively with the corresponding RE for the active cases being high in the beginning \(18\%, 5.8\%\), but then dropping considerably \(0.16\%\) and \(0.1\%\), reflecting the fact the model caught up with the evolution of the pandemic. Overall, system (6) gives adequate predictions especially when data from longer time periods are used.
Figure 3 shows the number of deaths and their respective predictions using subsets of data as described above. In the duration of the first data set, there were no deaths registered and therefore the prediction was identically zero, giving also an RE equal to \(100\%\) see Fig. 3 (top left). As more deaths are registered the model’s ability to predict the correct number of deaths is improving, see Fig. 3.
The recovery rate (\(\lambda (t)\)) is modelled as
The idea is that the recovery rate, as time increases, should converge towards a constant. In Fig. 4 (left), the fitted recovery rate (solid line) is plotted against the observed number of recovered cases (stars).
Finally, Model 3 can be used to estimate the unobserved number of exposed, E(t), and infectious, I(t), cases during the development of the pandemic. The maximum number of exposed cases occurs on the 21st of March 2020 and is estimated to be 173 cases, Fig. 4 (right, blue line), with the maximum of infectious individuals (136) being attained on the 26th of March 2020. We can observe a delay in the transition of exposed to infectious in the order of 5 days, which suggests a 5 day latent time of COVID19.
Changepoint analysis
We first consider the changepoint detection method of the Statistical Methods section for the case of piecewiselinear signal plus noise model. Figure 5 illustrates the results obtained by this analysis on daily incidence data.
This method has detected three important changes. The first change occurs on the 23rd of March, while the last two changes are estimated on the 2nd and 17th of April. The first changepoint, on the 23rd of March, indicates a significant increase in the number of cases, and it is believed to be related to the development of the clusters A and B as mentioned in the Descriptive surveillance statistics section. The second changepoint shows that the upward trend vanishes and a negative slope takes its place leading to a vast decrease in the number of cases. There is a connection of this change point with the Government’s lockdown decrees on the 24th and 31st of March; it shows the almost immediate impact that such decisions can have in fighting the pandemic. The third changepoint indicates stabilisation in the number of the detected cases over the last period. The median for the number of cases in the last segment is equal to 3. Predictions (together with 95% CI.) for the week ahead are also shown in Fig. 5. Note that there will be no more than 8 cases on the 1st of June and no more than 9 cases per day in the period from the 2nd of the month until the 7th. The point estimator is found to be equal to 2 cases per day. The corresponding analysis for the piecewiseconstant signal plus noise model is given in Online Appendix A5. Both models describe adequately the daily number of cases and (a) they provide a justification of the positive impact of the Government’s measures in fighting COVID19, (b) they give a clear view of how contagious the virus is, especially in cases when hubs are developed in the society, and (c) the last homogeneous discovered segment provides better understanding of the current state of the virus in terms of its transmittal.
Count time series analysis
We first fit model (2) without interventions to daily incidence data, considering the time period between the 4th of March and the 31st of May. Maximum likelihood estimation shows that the fitted model is given by
Corresponding standard errors of the regression coefficients are given underneath in parentheses. Note that the sum of the coefficients \(0.547+0.451 \sim 1\) which shows evidence of nonstationarity observed in the data. Exploring further the data by investigating existence of interventions we find two additive outliers on 13th and 26th of March (pvalue after adjusting for all type of interventions is negligible). The resulting model is given by
Note again that the sum \(0.779+211 \sim 1\) which shows that the nonstationarity persists even after including additive outliers (in the logscale). Furthermore, the positive sign of both interventions shows the sudden explosion of the daily number of people infected. The corresponding Bayesian information criterion (BIC) values obtained after fitting this model is equal to 576.643 which improves the BIC of the model without intervention which was equal to 615.766. Figure 6 shows the fit of the model to the data and gives 95% prediction intervals for the week ahead.
Comparing both changepoint analysis (see Fig. 5) and the result obtained by using the above intervention analysis, we observe that both approaches give similar prediction intervals that include future observed incidence data. Indeed, the observed data for the week ahead (01/06/202007/06/2020) were 4,6,1,0,5,5 and 1 cases.
Results for the effective reproduction number
Recall the effective reproduction number \(R_t\) defined by (8). We perform Bayesian analysis using (4) (see Section “Estimation of the effective Reproduction Number \(R_t\)”) separately on two sets of data: the data concerning all COVID19 diagnoses in Cyprus and the data concerning diagnoses from local transmission only; for details regarding prior modelling and computation see Online Appendix A4. We examine six consecutive fortnight periods, for each of which we draw 10,000 steps of the used Markov chain Monte Carlo algorithm (independence sampler), discard the first 2000 steps as burnin and use the remaining ones to approximate the posterior distributions of \(\alpha , \beta \) and hence \(R_t\).
For the data concerning all diagnoses, the first recorded incident was on 07/03/2020, hence, as detailed in Online Appendix A4, we initialize our analysis of the outbreak 3 days earlier, on 04/03/2020. Figure 7 shows the estimated joint posterior distributions of the reporting rate \(\alpha \) and the transmission rate \(\beta \), for the six fortnight periods. In the first period the posterior probability is distributed in a wide range of values, while in the following periods it concentrates on a narrower range of values. In particular, in the first period, \(\beta \) takes with high posterior probability values between 1 and 2, while \(\alpha \) concentrates between 0.5 and 1. This can be attributed on both the data and the postulated priors on \(\alpha \) and \(\beta \). Early in the outbreak, there was a high degree of social interactions, and only a small fraction of the public took protective measures, hence an infected individual could transmit the virus to many people before getting detected and put into isolation; this explains the high values of \(\beta \). Furthermore, there were only a few recorded diagnoses, the virus had not yet spread in the community and due to the effective contact tracing procedures, the reporting rate was high; this can explain the high values of \(\alpha \) (even though the prior on \(\alpha \) at this stage penalizes values far from 0.5). In the next two periods, the introduction of lockdown measures by the government and the adherence of the majority of the public to the advised protective measures, results to lower values of \(\beta \). At the same time, the virus has penetrated certain local communities (cf. hubs A and B in the Descriptive surveillance statistics subsection), and as a result we have lower values of the reporting rate \(\alpha \), initially around 0.5 and in the third and fourth periods between 0.2 and 0.5 (even though the prior on \(\alpha \) at this stage puts higher penalty on small values). In the fourth period, there is a high concentration of the posterior distribution on even lower values of \(\beta \). This is the effect of the continued strict lockdown imposed. Finally in the final two periods, the values of \(\beta \) remain low, with a slight increase compared to the fourth period, which can be attributed to the relaxation of measures by the government on 04/05/2020. The values of the reporting rate \(\alpha \) significantly increase in the last two periods, which can be attributed to the very high number of both targeted and random testing performed.
The considerations in the last paragraph, combined with Eq. (8), explain the results on the effective reproduction number \(R_t\) in Figs. 8 and 9. In Fig. 8 and the top part of Fig. 9, we see that the posterior distribution of \(R_t\), is spread in a wide range of high values between 3–6, with a median of 4.47, while in the next three periods with the introduction of the progressively stricter measures the posterior increasingly concentrates on lower values. In particular in the fourth period, the posterior median is 0.38. In the last two periods, with the relaxation of the lockdown, there is a small increase in the values of \(R_t\), however its posterior distribution still mostly concentrates under 1, with medians around 0.7. The bottom part of Fig. 9, shows the posterior probabilities of the event \(R_t<1\), which steadily increase following the progressively stricter measures imposed, from 0 in the first period to 0.87 in the fourth period, before slightly dropping to around 0.69 and 0.67 with the relaxation of measures in the last two periods, respectively.
For the data concerning only locally transmitted diagnoses, the first recorded incident was on 10/03/2020, hence we initialize our analysis of the outbreak three days earlier, on 07/03/2020. The results of the analysis using data concerning only local transmission diagnoses, are similar to the ones of the analysis using the full data; see Figures A5, A6 and A7 in the Online Appendix.
Next, we consider the estimation model described in^{22} where Cyprus is divided in five subpopulations (Nicosia, Limassol, Larnaca, Paphos, Ammochostos) and the mobility patterns between them are taken into account (as described in Metapopulation compartmental model 2). The effective reproduction number is given by (8). The compartmental model 2 structure was integrated stochastically using a 4th order RungeKutta (RK4) scheme. We use uniform prior distributions on the parameters of the model, with ranges similar to Li et al (2020)^{22} as follows: relative trasmissibility \(0.2\le \mu \le 1\), movement factor \(1\le \theta \le 1.75\); latency period \(3.5\le Z\le 5.5\); infectious period \(3\le D \le 4\). For the infection rate we choose \(0.1\le \beta \le 1.5\) before the lockdown and \(0\le \beta \le 0.8\) after the lockdown and for the reporting rate we choose \(0.3\le \alpha \le 1\). Note that the Ensemble Adjustment Kalman Filter (EAKF, described in Online Appendix A4) is not constrained by the initial priors and can migrate outside these ranges to obtain system solutions. For the initialization purposes we assume that all five districts are potential origins with an undocumented infected and exposed population drawn from a uniform distribution [0, 5] a week before the first documented case. Initial condition does not affect the outcome of the inference. Transmission model 2 does not explicitly represent the process of infection confirmation. Thus, we mapped simulated documented infections to confirmed cases using a separate observational delay model. In this delay model, we account for the time interval between a person transitioning from latent to contagious and observational confirmation of that individual infection through a delay of \(T_d\). We assume that \(T_d\) follows a Gamma distribution \(G(a,\tau _d/a)\) where \(\tau _d=6\) days and \(a=1.85\) as derived by Li et al. (2020)^{22} using data from China. Inference is robust with respect to the choice of \(\tau _d\).
For the inference we use diagnoses from local transmission in Cyprus as were reported by the Ministry of Health. In Fig. 10 we plot the time evolution of the weekly effective reproduction number \(R_t\). While at the beginning of the outbreak the effective reproduction number was close to 2.5, after the lockdown measures, it dropped below 1 and stayed consistently there until the end of May 2020.
We then use the methodology proposed by^{25} and recently modified by^{26} as described in detail in Compartmental Model 4 subsection. For that method we also use the diagnoses from local transmission in Cyprus as were reported by the Ministry of Health. Figure 11 shows the daily median value as well as the 95% credible intervals for the effective reproductive number using that method.
These results should be compared with the methodology of Corie et al. (2013)^{28}—see Fig. 12 which shows weekly estimates of \(R_{t}\) based on weekly time intervals. At the end of May, COVID19 was well contained in Cyprus especially even though the disease initiated with a high value of \(R_{t}\). The government lockdown helped reduce the reproduction number, as the data shows. Comparing the results obtained by all methods presented in this Section, we see no gross discrepancies on concluding that \(R_{t} < 1\) by the end of May, with high probability.
Discussion
The work presented in this report is the result of the efforts of the authors to give guidance to the Cypriot government for controlling the COVID19 infection outbreak. Different models and methods have been applied to the data collected by the Unit for Surveillance and Control of Communicable Diseases of the Cypriot Ministry of Health.
Change point detection has been used in order to estimate the number and locations of changes in the behaviour of data. Three important changes have been detected. The first one indicated a significant increase in the number of cases, that we suspect is related to the formation of two clusters of COVID19 infection cases, while the other two indicate a drop and stabilisation respectively in the numbers of cases that are probably linked to the effectiveness of the Government’s lockdown decrees. A loglinear model with feedback and additive outliers was utilised to examine the existence of interventions resulting in two cases. Both methods were subsequently used to provide with prediction intervals on the number of future numbers of diagnoses with comparable results.
Modifications of the SEIR model have been employed in order to study the longterm impact of the COVID19 to Cyprus. As expected, the fitting improved once enough data were available, with a very good agreement to the observations. Using the fitted Model 3 it was possible to additionally estimate the number of unobserved exposed and infectious cases during the pandemic, with the maximum number of infectious individuals being reached on the 26th of March. Moreover the SEIR based Models 1 and 2 facilitated the estimation and prediction of the effective reproduction number. The estimation was performed in a Bayesian framework during consecutive time periods for which the effective reproduction number was considered constant. We have treated two separate cases: in the first, there was no distinction between the patients while in the second we have considered only those patients resulting from local transmission. Finally, we have estimated the effective reproduction number for a partition of the population according to the five geographic areas of Cyprus.
Methods
All methodology is described in detail in "Results" section.
Data availability
Data and code are available at GitHub (https://github.com/chrisnic12/covid_cyprus).
References
 1.
Coronaviridae Study Group of the International Committee on Taxonomy of Viruses. The species severe acute respiratory syndromerelated coronavirus: classifying 2019ncov and naming it sarscov2. Nat. Microbiol. 5, 536–544 (2020).
 2.
Zhu, N. et al. A novel coronavirus from patients with pneumonia in China, 2019. N. Engl. J. Med. 382, 727–733 (2020).
 3.
World Health Organization. Covid19 weekly epidemiological update (Technical Report, 2021).
 4.
Beigel, J. H. et al. Remdesivir for the treatment of Covid19: preliminary report. N. Engl. J. Med.https://doi.org/10.1056/NEJMoa2007764 (2020).
 5.
Polack, F. P. et al. Safety and efficacy of the bnt162b2 mrna covid19 vaccine. N. Engl. J. Med. 383, 2603–2615 (2020).
 6.
Baden, L. R. et al. Efficacy and safety of the mrna1273 sarscov2 vaccine. N. Engl. J. Med. 384, 403–416 (2020).
 7.
Voysey, M. et al. Safety and efficacy of the chadox1 ncov19 vaccine (azd1222) against sarscov2: an interim analysis of four randomised controlled trials in brazil, south africa, and the uk. Lancet 397, 99–111 (2021).
 8.
Kermack, W. & McKendrick, A. G. A contribution to the mathematical theory of epidemics. Proc. R. Soc. London Ser. A 115, 700–721 (1927).
 9.
Schröder, A. L. & Fryzlewicz, P. Adaptive trend estimation in financial time series via multiscale changepointinduced basis recovery. Stat. Its Interface 6, 449–463 (2013).
 10.
Bolton, R. & Hand, D. Statistical fraud detection: a review. Stat. Sci. 17, 235–255 (2002).
 11.
Olshen, A. B., Venkatraman, E. S., Lucito, R. & Wigler, M. Circular binary segmentation for the analysis of arraybased DNA copy number data. Biostatistics 5, 557–572 (2004).
 12.
Jandhyala, V., Fotopoulos, S., MacNeill, I. & Liu, P. Inference for single and multiple changepoints in time series. J. Time Ser. Anal. 34, 423–446 (2013).
 13.
Anastasiou, A. & Fryzlewicz, P. Detecting multiple generalized changepoints by isolating single ones. https://arxiv.org/pdf/1901.10852.pdf (2019).
 14.
Kedem, B. & Fokianos, K. Regression Models for Time Series Analysis (Wiley, 2002).
 15.
Fokianos, K. Statistical Analysis of Count Time Series Models: A GLM perspective. In Handbook of DiscreteValued Time Series, Handbooks of Modern Statistical Methods (eds Davis, R. et al.) 3–28 (Chapman and Hall, 2015).
 16.
McCullagh, P. & Nelder, J. . A. Generalized Linear Models 2nd edn. (Chapman and Hall, 1989).
 17.
Fokianos, K. & Tjøstheim, D. Loglinear poisson autoregression. J. Multivar. Anal. 102, 563–578 (2011).
 18.
Liboschik, T., Fokianos, K. & Fried, R. tscount: an R package for analysis of count time series following generalized linear models. J. Stat. Softw. 82, 1–51. https://doi.org/10.18637/jss.v082.i05 (2017).
 19.
Keeling, M. J. & Rohani, P. Modeling Infectious Diseases in Humans and Animals (Princeton University Press, 2008).
 20.
Nicolaides, C., Avraam, D., CuetoFelgueroso, L., González, M. C. & Juanes, R. Handhygiene mitigation strategies against global disease spreading through the air transportation network. Risk Anal. 40, 723–740 (2020).
 21.
Peng, L., Yang, W., Zhang, D., Zhuge, C. & L., H. Epidemic analysis of COVID19 in China by dynamical modeling. (2020). arXiv:2002.06563.
 22.
Li, R. et al. Substantial undocumented infection facilitates the rapid dissemination of novel coronavirus (sarscov2). Science 368, 489–493 (2020).
 23.
Bajardi, P. et al. Human mobility networks, travel restrictions, and the global spread of 2009 h1n1 pandemic. PloS ONE 6, e16591 (2011).
 24.
Nicolaides, C., CuetoFelgueroso, L., González, M. C. & Juanes, R. A metric of influential spreading during contagion dynamics through the air transportation network. PloS ONE 7, e40961 (2012).
 25.
Bettencourt, L. M. & Ribeiro, R. M. Real time Bayesian estimation of the epidemic potential of emerging infectious diseases. PLoS ONE 3, e2185 (2008).
 26.
Systrom, K. The metric we need to manage COVID19 rt: The effective reproduction number. Internet]. http://systrom.com/blog/themetricweneedtomanagecovid19 (2020).
 27.
Bernardo, J. M. & Smith, A. F. M. Bayesian Theory (John Wiley and Sons, 1994).
 28.
Cori, A., Ferguson, N. M., Fraser, C. & Cauchemez, S. A new framework and software to estimate timevarying reproduction numbers during epidemics. Am. J. Epidemiol. 178, 1505–1512. https://doi.org/10.1093/aje/kwt133 (2013).
 29.
Ferguson, N., Laydon, M., Nedjati Gilani, N. et al. Impact of nonpharmaceutical interventions (NPI)s to reduce COVID–19 mortality and healthcare demand. https://doi.org/10.25561/77482 (2020). Imperial College London (16032020).
Acknowledgements
We thank the Cyprus Ministry of Health for providing us with Data.
Author information
Affiliations
Contributions
S.A., A.A., A.B., T.C., G.H., C.N., G.N. and K.F. designed the study and wrote the manuscript; S.A., A.A., A.B., C.N., G.N. and K.F. analyzed the data and executed the models; E.C. helped with data acquisition. All authors revised the manuscript for important intellectual content and approved the submitted version.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Agapiou, S., Anastasiou, A., Baxevani, A. et al. Modeling the first wave of Covid19 pandemic in the Republic of Cyprus. Sci Rep 11, 7342 (2021). https://doi.org/10.1038/s41598021866063
Received:
Accepted:
Published:
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.