# VSHR: A Mathematical Model for the Prediction of Second-Wave COVID-19 Epidemics in Malaysia

Authors: Xiang Yu; Lihua Lu; Jiangfan Guo; Haihuan Qin; Chunlei Ji
Journal: Computational and Mathematical Methods in Medicine
 (2022)

---

## Abstract

Since December 2019, a novel coronavirus (COVID-19) has spread all over the world, causing unpredictable economic losses and public fear. Although vaccines against this virus have been developed and administered for months, many countries still suffer from secondary COVID-19 infections, including the United Kingdom, France, and Malaysia. Observations of COVID-19 infections in the United Kingdom and France and their governance measures showed a certain number of similarities. A further investigation of these countries’ COVID-19 transmission patterns suggested that when a turning point appeared, the values of their stringency indices per population density (PSI) were nearly proportional to their absolute infection rate (AIR). To justify our assumptions, we developed a mathematical model named VSHR to predict the COVID-19 turning point for Malaysia. VSHR was first trained on 30-day infection records prior to the United Kingdom, Germany, France, and Belgium’s known turning points. It was then transferred to Malaysian COVID-19 data to predict this nation’s turning point. Given the estimated AIR parameter values in 5 days, we were now able to locate the turning point’s appearance on June 2nd, 2021. VSHR offered two improvements: (1) gathered countries into groups based on their SI patterns and (2) generated a model to identify the turning point for a target country within 5 days with 90% CI. Our research on COVID-19’s turning point for a country is beneficial for governments and clinical systems against future COVID-19 infections.


---

## Body

## 1. Introduction

Since the day this new virus emerged, COVID-19 has attracted widespread research. Many scientists have attempted to explain its behavior from mathematical and dynamic modeling perspectives [1, 2], while others [3, 4] examined the relationship between government responses and the transmission speed of COVID-19. Reports from China [5] and Italy [6] have proven that effective government measures, such as school closings, travel restrictions, bans on public gatherings, emergency investments in health care facilities, contact tracing, and other interventions, are able to suppress or mitigate the spread of COVID-19. However, there existed no official indicator on these government measures before OxCGRT (the Oxford COVID-19 Government Response Tracker) [7] appeared. OxCGRT introduces 19 indicators into 3 categories: closure and containment, health, and economic support. It then keeps track of biweekly records of governmental measures and normalizes the score in the range 0,100. To date, more than 2,000 research papers have referenced it as an official indicator of governmental measures.Although OxCGRT is frequently cited in COVID-19-related studies, it is seldom utilized in group behavior studies. The designers for OxCGRT indicate that many countries own similar OxCGRT patterns, probably because they took lessons from each other. This gave us an opportunity to observe the OxCGRT charts from countries with similar stringency index values, such as the United Kingdom, France, and Germany. Their similarities suggest that they adopt highly identical governmental measures and expect similar outcomes.Some preliminary studies were carried out before mid-2020, and scientists were trying to find the relationship between government measures and the transmission parameters of COVID-19. In [8], Hale and his team attempted to decipher the mystery between the degree of government stringency and the death rate from COVID-19. In [9], Jayatilleke et al. carefully investigated the stringency index pattern of Sri Lanka and made a one-month prediction of future stringency indices. With this prediction, his team was able to forecast the incoming month’s transmission trend of Sri Lanka. These studies, although innovative and inspiring, lacked data support at that time. The world was in the middle of the first COVID-19 infections, and governmental measures have not yet been validated for their results.Another interesting yet unexplored topic for COVID-19 infection is how to predict the turning point in the future. A turning point is an important date when COVID-19 transmission enters an equilibrium state. This state is treated as a balance between the number of new infections and the number of recoveries, and it can be described mathematically as a point where the accumulated infections reach their maximum speed. In [10], researchers developed a mathematical model called RLIM to locate the turning point in New York, U.S.A., using a revised classical suspected infectious recovery (SIR) model and a 4th-order polynomial estimation to fit infection and recovery records. In [11], a segmented Poisson model was employed to predict COVID-19 outbreaks in Canada, France, Germany, Italy, the UK, and the US. In this article, the authors developed a novel COVID-19 transmission model named VSHR as a variant of the SIR model. This model takes vaccination records into consideration and defines an absolute infection rate δ to describe the transition probability between susceptible state S and total infection state H. In our model, δ plays a critical role, as it also serves as transferable knowledge and can be taught from a group of nations sharing similar SI patterns. Additionally, it is used for turning point prediction when its value drops into the range of other nations’ turning points cluster.Since the absolute infection rateδ is the key in turning point estimation, a method with high precision is required to generate it from current data records. The autoregressive integrated moving average (ARIMA) model is chosen for our simulation data fitting method. In research work [12], scientists applied ARIMA to 145 countries to evaluate its performance. Simulation results from [12] indicated that the relative mean square errors (RMSE) from these countries were proportional to the population per million people. This conclusion strongly supports our assumption that ARIMA is able to provide stable and precise predictions of overpopulation density. The performance indicator in this article is the confidence interval (CI). In research work from [13], simulation results from Romania, Bulgaria, and Brazil prove that CI is an effective means in ARIMA’s output evaluation. In VSHR, an evaluation of 90% CI is implemented to evaluate ARIMA’s data fit quality.In conclusion, VSHR is a model for COVID-19 transmission prediction. An absolute infection rateδ is calculated for a group of countries with similar SI patterns near their turning points’ dates. This knowledge is then transferred to other nations’ turning point predictions. To increase precision, a data fitting method called ARIMA is implemented, with a 90% CI. The main contributions of this approach are as follows:
(1)
Introduced a turning point indicator based on government control measure SI(2)
Developed a mathematical model to locate the turning point of COVID-19(3)
Validated the results with four countries: United Kingdom, France, Germany, and Belgium, successfully predicted the turning point for Malaysia with 90% CIThe rest of this article is organized as follows. Section2 discusses the necessary mathematical modeling, equations, algorithms implemented, and validation parameters. Section 3 describes the simulation settings, software, and scientific packages utilized by the VSHR program. From Section 3.2, the authors analyze the COVID-19 data and simulation results for four European countries, and provides predictions on Malaysia’s infections starting from mid-May, 2021. Section 5 summarizes the work and brings further discussions.


## 2. Methods

In the first part of this section, we will introduce two key factors inside our model: PSI and AIR. After the presentation of these key notations, we propose our mathematical model named VSHR, which contains an infection epidemic dynamics model, and an ARIMA algorithm. In Section2.3, a flow chart of VSHR is provided, and Algorithm 1 is given written in pseudocodes. We hope that readers obtain useful information on how data are processed and how a turning point’s position is found.


### 2.1. The VSHR Notations

We will introduce two notations that are essential in VSHR modeling and simulations: the personal stringency index (PSI) and the absolute infection rate (AIR).


#### 2.1.1. Personal Stringency Index (PSI)

The stringency index is calculated with the policy indicators C1–C8 and H1. The value of the index on any given day is the average of nine subindices pertaining to the individual policy indicators, each taking a value between 0 and 100:(1)SI=19∑j=19Ij.The personal stringency index (PSI) is defined as a dividend between the original value SI and the population densityM:
(2)PSI=MSIIn this paper, PSI is used as an indicator for turning point prediction. For readers who refer to this value in their research, please note that the value of PSI is only numerical and cannot be directly used as an indicator of government policy restriction evaluation, please refer to original SI records in your own research. In our model, PSI is proportional to the absolute infection rate (AIR)δ, as defined in Equation (3) (δ is defined in Equation (4)):
(3)PSIAIR=constant.


#### 2.1.2. Absolute Infection Rate (AIR)

The absolute infection rateδ is calculated as the accumulated number of infections of the given day divided by the total susceptible group in the nation. It is a measurement of total infections in our model, VSHR, depicted by Equations (5) to (8). In the simulation, it is also an indicator of a nation’s COVID-19 transmission trend, as shown in Figure 1. This parameter is calculated with a classical ARIMA method implemented in [12]. According to this value, we can predict the turning point of this target nation with a 90% CI.Figure 1
VSHR simulation outputs: UK (a), France (b), Belgium (c), and Germany (d).


### 2.2. VSHR: Mathematics

As is shown in Figure2, VSHR is inspired by the classical susceptible infection recovery (SIR) model. First, we present the dynamics of our model with equations [4–7]:
(4)dStdt=−δt×St,(5)dHtdt=δt×St−γ×Ht,(6)dVtdt=ρ×St,(7)dRtdt=γ×Ht.Figure 2
VSHR model diagram.Compared with the traditional model, VSHR has made the following modifications:Add a statusV to represent the vaccinated group: citizens in this group are considered immune against COVID-19 infections, so they are removed from the susceptible group (S).Modify statusI into H to represent the accumulated infection cluster: people in Group H are considered the total population identified since the first day of COVID-19 infections within this nation.Use parameterδ as a transition parameter between status S and H. As a critical factor within VSHR, the absolute infection rate is responsible for two important tasks: indicate the turning point for a target nation together with SI and serve as an optimization objective within the algorithm. Readers may consider it a starting point of VSHR as well as a termination criterion.In algorithm implementation, the following assumptions are made:The number of susceptible GroupS on a given day follows Equation (8):
(8)St=M−Ht−1−Vt−1.The number of vaccinated GroupV on a given day is given by Equation (9):
(9)Vt=Vt−1+k.In Equation (8), the number of susceptible groups is calculated as the total population of a target country minus yesterday’s total accumulated infections and total vaccinated citizens. The number of total vaccinations was calculated by Equation (10). Readers may take care, as Equation (9) is only effective in predictions when real vaccine injection records do not exist. Additionally, interpolation was applied when vaccination records were missing or lost. In the simulation, we adopted linear interpolation to fill in missing values of these nations’ vaccination records. For example, in the fourth column in Table 1, the values for Vt from May 26 to June 6 are also generated by the linear interpolation technique using Equation (10). Although vaccination records may not vary in linear formation, we assume that within 10 days, its behavior is approximately linear.Table 1
ARIMA model results (the UK to Malaysia).
CountryARIMApdqUnited Kingdom700Germany400France200Belgium701Malaysia310


### 2.3. ARIMA Model

An ARIMA model assumes that its input is a series of time-dependent data points, and through its execution, the model is able to reveal the statistical and reliable meaning of these values. In our simulation, ARIMA requires three inputs: infection recordsHt, vaccination records Vt, and starting date T0 (readers may refer to Table 2). Then, an ARIMA model is initiated with three parameters (p,d,q), where p is the order of autoregression, d is the degree of difference, and q is the order of the moving average [10]. In our simulation, the fitted data series in Ht is expressed in
(10)Ht=α+∑i=1T0Φi×Ht−i−q.Table 2
VSHR simulation reports (the UK to Malaysia).
CountryTP dateSIPopulation densityUnited Kingdom2021/1/879.6272.898Germany2021/4/2875237.016France2020/11/278.7122.578Belgium2021/3/2762.96375.564Malaysia2021/5/3180.5696.254The predicted data series inHt,p is described in
(11)Ht,p=α+∑i=T0T0+5Φi×Ht−i−q.


### 2.4. VSHR: Algorithm

Given the notations of the PSI, AIR, and ARIMA methods introduced, Section2.3 summarizes the VSHR algorithm’s execution process in Figure 3 to provide an overview of this model. Then, a pseudocode is provided for readers who have intentions to reproduce our experiments.Figure 3
VSHR diagram.


#### 2.4.1. VSHR Algorithm

The flow chart of the VSHR model is shown in Figure1. The inputs for VSHR are as follows: (1) starting date and (2) country name. The databases utilized in VSHR are (1) SI database and (2) COVID-19 infection and vaccination database. These data records are publicly available in our GitHub repository [14]. Then, VSHR calls two subprocesses: PSI calculation and AIR calculation. Both subprocesses return specific PSI value series and AIR value series of the target country starting from the current date. The returned outputs are then compared with historical PSI and AIR values of the target group (UK, France, Germany, and Belgium). If the PSI and AIR values of the target country are within the range of this group, VSHR will initiate turning point estimation. The ARIMA method requests the previous thirty days of infection and vaccination records from the database as a training set and will provide ten-day predictive values with 90% CIs. With these predictive data records, VSHR is able to locate the turning point’s position.


#### 2.4.2. Algorithm: VSHR

The pseudocode to calculate the turning point in VSHR is shown in Algorithm1.Algorithm 1: VSHR algorithm.
T = t0; CN = cn0Function PSI_calc(T, CN)m0 = M(CN)si0 = SI(CN)psi0 = m0/si0RETURN psi0Function AIR_calc(T, CN)Len1 = 30; Len2 = 5If COVID_Vaccine(T) ==0train = COVID_Accumulation(T,T + Len1)test = COVID_Accumulation(T + Len1, T + Len1 + Len2)elsetrain = COVID_Accumulation(T,T + Len1)-COVID_Vaccine(T,T + Len1)test = COVID_Accumulation(T + Len1,T + Len1 + Len2)-COVID_Vaccine(T + Len1, T + Len1 + Len2)Model = ARIMA(px, dx, qx, train)Forecast = Model(test)If Forecast(1) > k ==TRUE thencoef = k-Forecast_data(1)Elsecoef = k-Forecast_data(1)Forecast = Forecast(2:Forecast_length) + coefDiff(j) = MSE(Forecast, test)AIR = Forecast(T,T + Len1 + Len2)/COVID_Accumulation(T, T + Len1 + Len2)RETURN AIRFunction Turning_Point_Calc(T, CN, AIR, PSI)CI =0.9psi_UK = PSI_calc(T_UK, UK) #Same for Belgium, France and Germanypsi_TL = (MAX(psi_UK,...psi_Belgium)-MIN(psi_UK,...psi_Belgium))/2Turning_Point = T; k =1While k < =10If (AIR(T + k)/PSI) - AVG(psi_UK, ... psi_Belgium) < =psi_TLPrint (“Turning Point Found on kth date!”);Turning_Point = Turning_Point + k;Break;Elsek = k +1;For k =1 : 10AIR_upper[T + k] = AIR[T + k] + DeltaAIR_lower[T + k] = AIR[T + k] -DeltaReturn Turning Point, AIR_upper, AIR, AIR_lower


## 2.1. The VSHR Notations

We will introduce two notations that are essential in VSHR modeling and simulations: the personal stringency index (PSI) and the absolute infection rate (AIR).


### 2.1.1. Personal Stringency Index (PSI)

The stringency index is calculated with the policy indicators C1–C8 and H1. The value of the index on any given day is the average of nine subindices pertaining to the individual policy indicators, each taking a value between 0 and 100:(1)SI=19∑j=19Ij.The personal stringency index (PSI) is defined as a dividend between the original value SI and the population densityM:
(2)PSI=MSIIn this paper, PSI is used as an indicator for turning point prediction. For readers who refer to this value in their research, please note that the value of PSI is only numerical and cannot be directly used as an indicator of government policy restriction evaluation, please refer to original SI records in your own research. In our model, PSI is proportional to the absolute infection rate (AIR)δ, as defined in Equation (3) (δ is defined in Equation (4)):
(3)PSIAIR=constant.


### 2.1.2. Absolute Infection Rate (AIR)

The absolute infection rateδ is calculated as the accumulated number of infections of the given day divided by the total susceptible group in the nation. It is a measurement of total infections in our model, VSHR, depicted by Equations (5) to (8). In the simulation, it is also an indicator of a nation’s COVID-19 transmission trend, as shown in Figure 1. This parameter is calculated with a classical ARIMA method implemented in [12]. According to this value, we can predict the turning point of this target nation with a 90% CI.Figure 1
VSHR simulation outputs: UK (a), France (b), Belgium (c), and Germany (d).


## 2.1.1. Personal Stringency Index (PSI)

The stringency index is calculated with the policy indicators C1–C8 and H1. The value of the index on any given day is the average of nine subindices pertaining to the individual policy indicators, each taking a value between 0 and 100:(1)SI=19∑j=19Ij.The personal stringency index (PSI) is defined as a dividend between the original value SI and the population densityM:
(2)PSI=MSIIn this paper, PSI is used as an indicator for turning point prediction. For readers who refer to this value in their research, please note that the value of PSI is only numerical and cannot be directly used as an indicator of government policy restriction evaluation, please refer to original SI records in your own research. In our model, PSI is proportional to the absolute infection rate (AIR)δ, as defined in Equation (3) (δ is defined in Equation (4)):
(3)PSIAIR=constant.


## 2.1.2. Absolute Infection Rate (AIR)

The absolute infection rateδ is calculated as the accumulated number of infections of the given day divided by the total susceptible group in the nation. It is a measurement of total infections in our model, VSHR, depicted by Equations (5) to (8). In the simulation, it is also an indicator of a nation’s COVID-19 transmission trend, as shown in Figure 1. This parameter is calculated with a classical ARIMA method implemented in [12]. According to this value, we can predict the turning point of this target nation with a 90% CI.Figure 1
VSHR simulation outputs: UK (a), France (b), Belgium (c), and Germany (d).


## 2.2. VSHR: Mathematics

As is shown in Figure2, VSHR is inspired by the classical susceptible infection recovery (SIR) model. First, we present the dynamics of our model with equations [4–7]:
(4)dStdt=−δt×St,(5)dHtdt=δt×St−γ×Ht,(6)dVtdt=ρ×St,(7)dRtdt=γ×Ht.Figure 2
VSHR model diagram.Compared with the traditional model, VSHR has made the following modifications:Add a statusV to represent the vaccinated group: citizens in this group are considered immune against COVID-19 infections, so they are removed from the susceptible group (S).Modify statusI into H to represent the accumulated infection cluster: people in Group H are considered the total population identified since the first day of COVID-19 infections within this nation.Use parameterδ as a transition parameter between status S and H. As a critical factor within VSHR, the absolute infection rate is responsible for two important tasks: indicate the turning point for a target nation together with SI and serve as an optimization objective within the algorithm. Readers may consider it a starting point of VSHR as well as a termination criterion.In algorithm implementation, the following assumptions are made:The number of susceptible GroupS on a given day follows Equation (8):
(8)St=M−Ht−1−Vt−1.The number of vaccinated GroupV on a given day is given by Equation (9):
(9)Vt=Vt−1+k.In Equation (8), the number of susceptible groups is calculated as the total population of a target country minus yesterday’s total accumulated infections and total vaccinated citizens. The number of total vaccinations was calculated by Equation (10). Readers may take care, as Equation (9) is only effective in predictions when real vaccine injection records do not exist. Additionally, interpolation was applied when vaccination records were missing or lost. In the simulation, we adopted linear interpolation to fill in missing values of these nations’ vaccination records. For example, in the fourth column in Table 1, the values for Vt from May 26 to June 6 are also generated by the linear interpolation technique using Equation (10). Although vaccination records may not vary in linear formation, we assume that within 10 days, its behavior is approximately linear.Table 1
ARIMA model results (the UK to Malaysia).
CountryARIMApdqUnited Kingdom700Germany400France200Belgium701Malaysia310


## 2.3. ARIMA Model

An ARIMA model assumes that its input is a series of time-dependent data points, and through its execution, the model is able to reveal the statistical and reliable meaning of these values. In our simulation, ARIMA requires three inputs: infection recordsHt, vaccination records Vt, and starting date T0 (readers may refer to Table 2). Then, an ARIMA model is initiated with three parameters (p,d,q), where p is the order of autoregression, d is the degree of difference, and q is the order of the moving average [10]. In our simulation, the fitted data series in Ht is expressed in
(10)Ht=α+∑i=1T0Φi×Ht−i−q.Table 2
VSHR simulation reports (the UK to Malaysia).
CountryTP dateSIPopulation densityUnited Kingdom2021/1/879.6272.898Germany2021/4/2875237.016France2020/11/278.7122.578Belgium2021/3/2762.96375.564Malaysia2021/5/3180.5696.254The predicted data series inHt,p is described in
(11)Ht,p=α+∑i=T0T0+5Φi×Ht−i−q.


## 2.4. VSHR: Algorithm

Given the notations of the PSI, AIR, and ARIMA methods introduced, Section2.3 summarizes the VSHR algorithm’s execution process in Figure 3 to provide an overview of this model. Then, a pseudocode is provided for readers who have intentions to reproduce our experiments.Figure 3
VSHR diagram.


### 2.4.1. VSHR Algorithm

The flow chart of the VSHR model is shown in Figure1. The inputs for VSHR are as follows: (1) starting date and (2) country name. The databases utilized in VSHR are (1) SI database and (2) COVID-19 infection and vaccination database. These data records are publicly available in our GitHub repository [14]. Then, VSHR calls two subprocesses: PSI calculation and AIR calculation. Both subprocesses return specific PSI value series and AIR value series of the target country starting from the current date. The returned outputs are then compared with historical PSI and AIR values of the target group (UK, France, Germany, and Belgium). If the PSI and AIR values of the target country are within the range of this group, VSHR will initiate turning point estimation. The ARIMA method requests the previous thirty days of infection and vaccination records from the database as a training set and will provide ten-day predictive values with 90% CIs. With these predictive data records, VSHR is able to locate the turning point’s position.


### 2.4.2. Algorithm: VSHR

The pseudocode to calculate the turning point in VSHR is shown in Algorithm1.Algorithm 1: VSHR algorithm.
T = t0; CN = cn0Function PSI_calc(T, CN)m0 = M(CN)si0 = SI(CN)psi0 = m0/si0RETURN psi0Function AIR_calc(T, CN)Len1 = 30; Len2 = 5If COVID_Vaccine(T) ==0train = COVID_Accumulation(T,T + Len1)test = COVID_Accumulation(T + Len1, T + Len1 + Len2)elsetrain = COVID_Accumulation(T,T + Len1)-COVID_Vaccine(T,T + Len1)test = COVID_Accumulation(T + Len1,T + Len1 + Len2)-COVID_Vaccine(T + Len1, T + Len1 + Len2)Model = ARIMA(px, dx, qx, train)Forecast = Model(test)If Forecast(1) > k ==TRUE thencoef = k-Forecast_data(1)Elsecoef = k-Forecast_data(1)Forecast = Forecast(2:Forecast_length) + coefDiff(j) = MSE(Forecast, test)AIR = Forecast(T,T + Len1 + Len2)/COVID_Accumulation(T, T + Len1 + Len2)RETURN AIRFunction Turning_Point_Calc(T, CN, AIR, PSI)CI =0.9psi_UK = PSI_calc(T_UK, UK) #Same for Belgium, France and Germanypsi_TL = (MAX(psi_UK,...psi_Belgium)-MIN(psi_UK,...psi_Belgium))/2Turning_Point = T; k =1While k < =10If (AIR(T + k)/PSI) - AVG(psi_UK, ... psi_Belgium) < =psi_TLPrint (“Turning Point Found on kth date!”);Turning_Point = Turning_Point + k;Break;Elsek = k +1;For k =1 : 10AIR_upper[T + k] = AIR[T + k] + DeltaAIR_lower[T + k] = AIR[T + k] -DeltaReturn Turning Point, AIR_upper, AIR, AIR_lower


## 2.4.1. VSHR Algorithm

The flow chart of the VSHR model is shown in Figure1. The inputs for VSHR are as follows: (1) starting date and (2) country name. The databases utilized in VSHR are (1) SI database and (2) COVID-19 infection and vaccination database. These data records are publicly available in our GitHub repository [14]. Then, VSHR calls two subprocesses: PSI calculation and AIR calculation. Both subprocesses return specific PSI value series and AIR value series of the target country starting from the current date. The returned outputs are then compared with historical PSI and AIR values of the target group (UK, France, Germany, and Belgium). If the PSI and AIR values of the target country are within the range of this group, VSHR will initiate turning point estimation. The ARIMA method requests the previous thirty days of infection and vaccination records from the database as a training set and will provide ten-day predictive values with 90% CIs. With these predictive data records, VSHR is able to locate the turning point’s position.


## 2.4.2. Algorithm: VSHR

The pseudocode to calculate the turning point in VSHR is shown in Algorithm1.Algorithm 1: VSHR algorithm.
T = t0; CN = cn0Function PSI_calc(T, CN)m0 = M(CN)si0 = SI(CN)psi0 = m0/si0RETURN psi0Function AIR_calc(T, CN)Len1 = 30; Len2 = 5If COVID_Vaccine(T) ==0train = COVID_Accumulation(T,T + Len1)test = COVID_Accumulation(T + Len1, T + Len1 + Len2)elsetrain = COVID_Accumulation(T,T + Len1)-COVID_Vaccine(T,T + Len1)test = COVID_Accumulation(T + Len1,T + Len1 + Len2)-COVID_Vaccine(T + Len1, T + Len1 + Len2)Model = ARIMA(px, dx, qx, train)Forecast = Model(test)If Forecast(1) > k ==TRUE thencoef = k-Forecast_data(1)Elsecoef = k-Forecast_data(1)Forecast = Forecast(2:Forecast_length) + coefDiff(j) = MSE(Forecast, test)AIR = Forecast(T,T + Len1 + Len2)/COVID_Accumulation(T, T + Len1 + Len2)RETURN AIRFunction Turning_Point_Calc(T, CN, AIR, PSI)CI =0.9psi_UK = PSI_calc(T_UK, UK) #Same for Belgium, France and Germanypsi_TL = (MAX(psi_UK,...psi_Belgium)-MIN(psi_UK,...psi_Belgium))/2Turning_Point = T; k =1While k < =10If (AIR(T + k)/PSI) - AVG(psi_UK, ... psi_Belgium) < =psi_TLPrint (“Turning Point Found on kth date!”);Turning_Point = Turning_Point + k;Break;Elsek = k +1;For k =1 : 10AIR_upper[T + k] = AIR[T + k] + DeltaAIR_lower[T + k] = AIR[T + k] -DeltaReturn Turning Point, AIR_upper, AIR, AIR_lower


## 3. Experimental Settings

In this section, the authors present our simulations in the following order: in Section3.1, we introduce the GitHub repository, which contains datasets and codes for implementation. In Section 3.2, we introduce necessary scientific packages and languages utilized in VSHR.


### 3.1. Data Source

The original data sources in our simulation are from [15, 16]. The dataset used in our simulations is stored in five CSV files, each containing one month of accumulated infection data and ten days of prediction data for our target countries. The data records are also shown in Tables 3 and 4. These CSV files are all stored in our GitHub repository [14]. Our software is publicly available on GitHub as well, with all codes and implementations available for research.Table 3
VSHR simulation report on accumulated infections: UK, Belgium, France, and Germany.
(a)UKBelgiumDateHtVtHt,pAIRDateHtVtHt,pAIR01/042721626027041160.04289503/2384277515829969122560.07959401/052782713027712950.04375103/2484909016444979184070.08028501/062845269028305870.04460403/2585460817217199290250.08090801/072898056028970090.04545203/2686073117902119325230.08158801/082966248029664510.04629103/2786606318123089446530.08215201/093026346030359380.04712003/2887075718146429474050.08263601/103081372267797130853480.04793703/2987293618380479525280.08287901/113127647284381531711730.04874003/3087684218698759542990.08330601/123173295306754132349680.04952603/3188245319541929603310.083951(b)FranceGermanyDateHtVtHt,pAIRDateHtVtHt,pAIR10/291329820013565190.02007704/2432912932531903231928400.04221710/301379294014080380.02084004/2533066922560204732183920.04243810/311414364014446050.02138104/2633126532602905632705190.04254211/011460543014928130.02209504/2733385642681199833104990.04293211/021566634016038220.02373804/2833668272792995833347970.04337411/031639235016799940.02486504/2933910392886726933621300.04375211/041593159016316310.02414904/3034053652966397333815020.04399011/051650965016923150.02504805/0134239002999708533646530.04426011/061711917017564170.02599605/0234326763025913733901120.044393Table 4
VSHR simulation report on infections, Malaysia, May 2021.
DateHtVtHt,pAIRDateHt,p (90% CI)Vt,pAIR (90% CI)05/1647011019158244699540.014805/27(543628, 545070)2765624(0.01737, 0.01742)05/1747455619760854743640.014905/28(550536, 553404)2820531(0.01759, 0.01769)05/1847942120526364789640.015105/29(557362, 561813)2875439(0.01782, 0.01796)05/1948549623035804852590.015305/30(564041, 570307)2930346(0.01803, 0.01823)05/2049230223841834921220.015505/31(570591, 578865)2985254(0.01825, 0.01851)05/2149879524447804986270.015706/01(577031, 587478)3040161(0.01845, 0.01879)05/2250511524899885049250.015906/02(583367, 596140)3095069(0.01866, 0.01907)05/2351209125359755118430.016206/03(589602, 604844)3149976(0.01886, 0.01935)05/2451860026309845183220.016406/04(595743, 613585)3204884(0.01906, 0.01963)05/2552588927305365257770.016606/05(601794, 622364)3259791(0.01926, 0.01992)05/2653336727305365332220.016906/06(607760, 631171)3314699(0.01945, 0.02020)


### 3.2. Software Implementation

The programming language inside VSHR is PYTHON version 3.7, and the essential software package used is SCIPY version 1.5.4. Two software modules are inherited from SCIPY: integrate and optimize. VSHR utilizes the integrate function to calculate the MSE and optimize the function to fit the real infection data into a time series.


## 3.1. Data Source

The original data sources in our simulation are from [15, 16]. The dataset used in our simulations is stored in five CSV files, each containing one month of accumulated infection data and ten days of prediction data for our target countries. The data records are also shown in Tables 3 and 4. These CSV files are all stored in our GitHub repository [14]. Our software is publicly available on GitHub as well, with all codes and implementations available for research.Table 3
VSHR simulation report on accumulated infections: UK, Belgium, France, and Germany.
(a)UKBelgiumDateHtVtHt,pAIRDateHtVtHt,pAIR01/042721626027041160.04289503/2384277515829969122560.07959401/052782713027712950.04375103/2484909016444979184070.08028501/062845269028305870.04460403/2585460817217199290250.08090801/072898056028970090.04545203/2686073117902119325230.08158801/082966248029664510.04629103/2786606318123089446530.08215201/093026346030359380.04712003/2887075718146429474050.08263601/103081372267797130853480.04793703/2987293618380479525280.08287901/113127647284381531711730.04874003/3087684218698759542990.08330601/123173295306754132349680.04952603/3188245319541929603310.083951(b)FranceGermanyDateHtVtHt,pAIRDateHtVtHt,pAIR10/291329820013565190.02007704/2432912932531903231928400.04221710/301379294014080380.02084004/2533066922560204732183920.04243810/311414364014446050.02138104/2633126532602905632705190.04254211/011460543014928130.02209504/2733385642681199833104990.04293211/021566634016038220.02373804/2833668272792995833347970.04337411/031639235016799940.02486504/2933910392886726933621300.04375211/041593159016316310.02414904/3034053652966397333815020.04399011/051650965016923150.02504805/0134239002999708533646530.04426011/061711917017564170.02599605/0234326763025913733901120.044393Table 4
VSHR simulation report on infections, Malaysia, May 2021.
DateHtVtHt,pAIRDateHt,p (90% CI)Vt,pAIR (90% CI)05/1647011019158244699540.014805/27(543628, 545070)2765624(0.01737, 0.01742)05/1747455619760854743640.014905/28(550536, 553404)2820531(0.01759, 0.01769)05/1847942120526364789640.015105/29(557362, 561813)2875439(0.01782, 0.01796)05/1948549623035804852590.015305/30(564041, 570307)2930346(0.01803, 0.01823)05/2049230223841834921220.015505/31(570591, 578865)2985254(0.01825, 0.01851)05/2149879524447804986270.015706/01(577031, 587478)3040161(0.01845, 0.01879)05/2250511524899885049250.015906/02(583367, 596140)3095069(0.01866, 0.01907)05/2351209125359755118430.016206/03(589602, 604844)3149976(0.01886, 0.01935)05/2451860026309845183220.016406/04(595743, 613585)3204884(0.01906, 0.01963)05/2552588927305365257770.016606/05(601794, 622364)3259791(0.01926, 0.01992)05/2653336727305365332220.016906/06(607760, 631171)3314699(0.01945, 0.02020)


## 3.2. Software Implementation

The programming language inside VSHR is PYTHON version 3.7, and the essential software package used is SCIPY version 1.5.4. Two software modules are inherited from SCIPY: integrate and optimize. VSHR utilizes the integrate function to calculate the MSE and optimize the function to fit the real infection data into a time series.


## 4. Simulation Results

In this section, simulation results are demonstrated in two parts. Section4.1 first introduces VSHR simulation outputs on four regions whose turning points are already known. Readers may refer to Figure 1 and Table 3 to obtain information on VSHR-simulated values, AIR, and accumulated infections. Then, we publish our predictive values for Malaysia in Figure 4 and Table 4, whose turning point is not yet known. Section 4.2 explains how VSHR locates the turning point of Malaysia based on knowledge from other nations within the same group. The process of how turning points are clustered, when we initiate the predictions and finally lock down Malaysia’s turning point, is fully explored.Figure 4
(a) AIR/PSI values for countries belonging to Group A. (b) AIR/PSI values for Malaysia’s turning point (estimation).


### 4.1. Data Fit for the UK, France, Belgium, and Germany

The simulation outputs in VSHR for the United Kingdom, France, Germany, and Belgium are shown in Figure1. VSHR will read in datasets from these nations according to the initial configurations given in Table 2. After datasets are loaded, the algorithm divides them into training sets and test sets and sets random values for the ARIMA method. ARIMA then sets up a model and calculates the fitted values on train set records. Then, it returns the AIR series for VHSR with a 90% confidence interval.Considering that the ARIMA method does not have the ability to recognize the turning point, a knowledge transfer on VSHR is necessary. For example, on January 8th, United Kingdom’s COVID-19 infections had reached their maximum increasing speed. In VSHR, the actual accumulated infections, Ht, are labeled in the dataset, and the AIR of this date, 0.0463, will be stored for Malaysia’s predictions. This specific value of AIR came from ARIMA’s data fitting outputs before and after five days of this turning point’s date (in the case of the United Kingdom, January 4th to January 12th) (Tables 1 and 2).Table3 provides a better view of data simulation outputs from VSHR because it contains five elements: date, Ht, Ht,p, Vt, and AIR. VSHR loads accumulative infection records into variable Ht, and then, it loads accumulative vaccination records into variable Vt. It then establishes a model with the preset configuration (p,d,q) and optimizes the variance between its outputs Ht,p and the real data records in Ht. When optimization reaches a satisfactory point, VSHR stops execution and prints the final outputs. Based on the output Ht,p and the vaccination record in Vt, the AIR can be calculated using Equation (5).In Table4, simulation reports on the accumulated number of infections for Malaysia from May 16th to June 6th are given. Similar to Table 3, the output values included Ht, Ht,p, Vt, and AIR. In addition, Vt,p was provided from May 27th to June 6th as vaccination predictions. Additionally, the values of Ht,p and AIR during this period were in the form of a range, from the lower limitation to the upper limitation. This is because of the confidence interval set as ninety percent. The simulations were complete before May 27th, so readers may verify the difference based on future Malaysian COVID-19 infection reports.


### 4.2. The Turning Point

To determine the turning point of Malaysia, the study of national AIR/PSI patterns is needed. VSHR needs to read in the global dataset of COVID-19 infections in GitHub [14], extract accumulated infections and accumulated vaccine columns from this dataset, and calculate the AIR values of the target nations. Our simulation was performed prior to Malaysia’s turning point’s occurrence, so we have no information on this date. However, VSHR also calculated the AIR values and PSI values for nations belonging to the same group of Malaysia: the UK, France, Germany, and Belgium. After VSHR performed data analysis on these countries, it returned a series of AIR/PSI values. Compared with our knowledge on turning points’ dates for these nations, VSHR is now able to justify a region where a turning point is most likely to occur. The simulation results are displayed on Figure 4.With the values in Table3 being settled down, we are now able to determine the relationship between PSI and AIR in this group, as shown in Figure 4. Additionally, readers may refer to the third and fourth columns of Table 2 as well as the fifth column in Table 3 to determine their relationships. The AIR for the United Kingdom is in the range of 0.046±0.004, and the PSI of the United Kingdom within January 4th to January 12th is a constant value of 3.4283; thus, within 10 days, the AIR/PSI value for the United Kingdom is 0.0134±0.0011. The same calculation step produces the AIR/PSI value for Germany as 0.0137±0.0001. Thus, we can decide that when a country’s AIR/PSI value approaches 0.0135 and continues to increase; its turning point may appear within 5 days.A further discussion is presented here regarding the speed and steepness of the turning point’s occurrence. From Figure4, readers may observe that the United Kingdom and France’s AIR/PSI curves are quite smooth and regular. For Belgium and Germany, the shapes of their curves are quite irregular and steep. We suspect that the shapes of AIR/PSI curves are affected by geographic factors and seasonal parameters. The United Kingdom and France entered an equilibrium state in Winter, when Christmas was approaching. This reduced residents’ outside activities as well. In the case of Germany and Belgium, their turning points appeared around April 2021, so government measures may be less effective against citizens’ activities.


## 4.1. Data Fit for the UK, France, Belgium, and Germany

The simulation outputs in VSHR for the United Kingdom, France, Germany, and Belgium are shown in Figure1. VSHR will read in datasets from these nations according to the initial configurations given in Table 2. After datasets are loaded, the algorithm divides them into training sets and test sets and sets random values for the ARIMA method. ARIMA then sets up a model and calculates the fitted values on train set records. Then, it returns the AIR series for VHSR with a 90% confidence interval.Considering that the ARIMA method does not have the ability to recognize the turning point, a knowledge transfer on VSHR is necessary. For example, on January 8th, United Kingdom’s COVID-19 infections had reached their maximum increasing speed. In VSHR, the actual accumulated infections, Ht, are labeled in the dataset, and the AIR of this date, 0.0463, will be stored for Malaysia’s predictions. This specific value of AIR came from ARIMA’s data fitting outputs before and after five days of this turning point’s date (in the case of the United Kingdom, January 4th to January 12th) (Tables 1 and 2).Table3 provides a better view of data simulation outputs from VSHR because it contains five elements: date, Ht, Ht,p, Vt, and AIR. VSHR loads accumulative infection records into variable Ht, and then, it loads accumulative vaccination records into variable Vt. It then establishes a model with the preset configuration (p,d,q) and optimizes the variance between its outputs Ht,p and the real data records in Ht. When optimization reaches a satisfactory point, VSHR stops execution and prints the final outputs. Based on the output Ht,p and the vaccination record in Vt, the AIR can be calculated using Equation (5).In Table4, simulation reports on the accumulated number of infections for Malaysia from May 16th to June 6th are given. Similar to Table 3, the output values included Ht, Ht,p, Vt, and AIR. In addition, Vt,p was provided from May 27th to June 6th as vaccination predictions. Additionally, the values of Ht,p and AIR during this period were in the form of a range, from the lower limitation to the upper limitation. This is because of the confidence interval set as ninety percent. The simulations were complete before May 27th, so readers may verify the difference based on future Malaysian COVID-19 infection reports.


## 4.2. The Turning Point

To determine the turning point of Malaysia, the study of national AIR/PSI patterns is needed. VSHR needs to read in the global dataset of COVID-19 infections in GitHub [14], extract accumulated infections and accumulated vaccine columns from this dataset, and calculate the AIR values of the target nations. Our simulation was performed prior to Malaysia’s turning point’s occurrence, so we have no information on this date. However, VSHR also calculated the AIR values and PSI values for nations belonging to the same group of Malaysia: the UK, France, Germany, and Belgium. After VSHR performed data analysis on these countries, it returned a series of AIR/PSI values. Compared with our knowledge on turning points’ dates for these nations, VSHR is now able to justify a region where a turning point is most likely to occur. The simulation results are displayed on Figure 4.With the values in Table3 being settled down, we are now able to determine the relationship between PSI and AIR in this group, as shown in Figure 4. Additionally, readers may refer to the third and fourth columns of Table 2 as well as the fifth column in Table 3 to determine their relationships. The AIR for the United Kingdom is in the range of 0.046±0.004, and the PSI of the United Kingdom within January 4th to January 12th is a constant value of 3.4283; thus, within 10 days, the AIR/PSI value for the United Kingdom is 0.0134±0.0011. The same calculation step produces the AIR/PSI value for Germany as 0.0137±0.0001. Thus, we can decide that when a country’s AIR/PSI value approaches 0.0135 and continues to increase; its turning point may appear within 5 days.A further discussion is presented here regarding the speed and steepness of the turning point’s occurrence. From Figure4, readers may observe that the United Kingdom and France’s AIR/PSI curves are quite smooth and regular. For Belgium and Germany, the shapes of their curves are quite irregular and steep. We suspect that the shapes of AIR/PSI curves are affected by geographic factors and seasonal parameters. The United Kingdom and France entered an equilibrium state in Winter, when Christmas was approaching. This reduced residents’ outside activities as well. In the case of Germany and Belgium, their turning points appeared around April 2021, so government measures may be less effective against citizens’ activities.


## 5. Conclusion and Future Work

This research proposes a method to predict a country’s turning point in COVID-19 infections. This method learns from a group of nations whose turning points are already known, shares similar stringency index patterns, and transfers knowledge to a specific country whose COVID-19 infection has not yet hit a turning point. Based on assumptions that nations within the same group have similar PSI/AIR values on dates near their turning points, a model named VSHR is implemented to assist turning point prediction. In the simulation, VSHR learned from the United Kingdom, Germany, France, and Belgium and successfully estimated the turning point date of Malaysia on June 2nd, 2021.Currently, VSHR’s capability of turning point estimation is limited because its database only contains information from five countries. Once a complete scanning of all 145 regions’ information is complete, VSHR should be able to predict multiple scenarios.The other field of application is to explore the relationship between PSI and ARIMA parameters (p,d,q). Currently, the calculation of PSI values and ARIMA simulations are independent. If PSI can be simulated as a time series by ARIMA, the precision level may increase as well.



---

*Source: 4168619-2022-01-18.xml*