# Numerical Simulation to Predict COVID-19 Cases in Punjab

Authors: Vanshika Aggarwal; Geeta Arora; Homan Emadifar; Faraidun K. Hamasalh; Masoumeh Khademi
Journal: Computational and Mathematical Methods in Medicine
 (2022)

---

## Abstract

Coronavirus disease 2019 is a novel disease caused by a newly identified virus, Severe Acute Respiratory Syndrome Coronavirus 2 (SARS-CoV-2). India recorded its first case of COVID-19 on 30 January 2020. This work is an attempt to calculate the number of COVID-19 cases in Punjab by solving a partial differential equation using the modified cubic B-spline function and differential quadrature method. The real data of COVID-19 cases and Google Community Mobility Reports of Punjab districts were used to verify the numerical simulation of the model. The Google mobility data reflect the changes in social behavior in real time and therefore are an important factor in analyzing the spread of COVID-19 and the corresponding precautionary measures. To investigate the cross-border transmission of COVID-19 between the 23 districts of Punjab with an analysis of human activities as a factor, the 23 districts were divided into five regions. This paper is aimed at demonstrating the predictive ability of the model.


---

## Body

## 1. Introduction

SARS-CoV-2 was recognized as a new disease known as coronavirus disease 2019 (COVID-19) and was declared a pandemic by the WHO on March 11, 2020. In India, three cities in Kerala reported the first incident of COVID on January 30. The country was placed under total lockdown on March 25, 2020, which lasted until May 31, 2020. After that, the towns began to reopen gradually. Both infection rates and new and active patients began to decline in September. By January 2021, the number of daily cases had decreased to less than 15,000 from more than 90,000 in mid-September. The second wave, which began in March 2021, was far more devastating than the first. Regions of the country suffered shortages of vaccines, oxygen cylinders, hospital beds, and other medical supplies. By the end of April, India had surpassed the rest of the world in terms of new and active cases. On January 16, 2021, India began its vaccination program with the AstraZeneca vaccine (Covishield) and the indigenous Covaxin. Sputnik V and the Moderna vaccine were later licensed for emergency use as well. According to the CoWIN portal, India reached 100 crore (1 billion) vaccination doses on October 21, 2021, at 9:47 am [1].A spatiotemporal PDE model is used in this work to forecast COVID-19 cases in Punjab, India. The model utilized the combined impact of the transboundary spread throughout Punjab regions with the impact of social distance effects. Many spatiotemporal models, such as [2–5], use PDEs to define infectious illnesses. This work is an attempt to predict COVID-19 cases using real-world data collected from the Google Community Mobility Reports. As locations provide real-time information about changes of population in their social behavior, mobility trends derived from location history are crucial to study COVID-19 spread and prevention.There are some limitations with Google mobility data due to the dynamic nature of mobility patterns. One of the major reasons is that cell phones may not accurately reflect population mobility, especially in suburban areas where people are not using GPS technology [6].This manuscript is divided into ten sections. Section1 briefly explains the problem. In Section 2, the data are explained using the PDE model in Section 3. Sections 4 and 4 briefly explain the differential quadrature method and the B-spline functions, with more details in Section 6. Sections 7 and 8 contain the prediction method and parameter estimation. Results are presented in Section 9, followed by concluding remarks in Section 10.


## 2. Description of the Data

In this work, the model is applied for the period July 1, 2020, to August 15, 2020. During this time, India was under unlock phases 2 and 3 when few places were reopened in a phased manner.There are twenty-three districts in Punjab. Malerkotla is the 23rd district of Punjab. The district was carved out of Sangrur district on 14 May 2021, but here, it has been taken as a part of Sangrur district as the data for Malerkotla district was not available separately. The twenty-two districts have been grouped into five regions as follows (Figure 1):Figure 1
Punjab region-wise map.(i) Region 1. Pathankot, Gurdaspur, Amritsar, Tarn Taran, and Kapurthala.(ii) Region 2. Hoshiarpur, Jalandhar, Shahid Bhagat Singh Nagar, and Rupnagar.(iii) Region 3. Sahibzada Ajit Singh Nagar (Mohali), Patiala, Fatehgarh Sahib, and Ludhiana.(iv) Region 4. Sangrur, Barnala, Mansa, and Bathinda.(v) Region 5. Moga, Faridkot, Firozpur, Sri Muktsar Sahib, and Fazilka.By summarizing the new COVID-19 cases from all districts in a region, the daily new cases of that region are calculated. Two time series of Google mobility reports have been created. The first category includes activities such as grocery stores and pharmacies, retail and recreational activities, workplaces and parks, and transit stops that are thought to increase COVID-19 cases; the second category of activities focuses on residential activities (activities at home) that may help prevent COVID-19 epidemics. The daily changes of each region are calculated by aggregating the changes of all counties within a region.


## 3. The PDE Model

The considered PDE model can be categorized as an internal/local process within each region and an external/global process. In the local process, people can become infected by social interactions with infected individuals within a region but can take steps to prevent COVID-19 from spreading, while in the global process, it is possible to become infected through social interactions with those who have been infected outside of a particular region. The considered five regions are embedded in a Euclidean space and mapped on thex-axis, with coordinates for the five regions [7]. The close arrangement of regions ensures a continuous model to study the spread of COVID-19 in the regions.LetCx,t denote the COVID-19 cases in the Punjab region x at a particular time t. The model is defined as follows:
(1)∂Cx,t∂t=∂∂xdx∂Cx,t∂x+rtlxax,t−14Cx,t−chx,t−14Cx,tk+Cx,t,Cx,t=ψx,1<x<5,∂C1,t∂x=∂C5,t∂x=0,t>1,where
(i)
The term∂/∂xdx∂Cx,t/∂x refers to the spread of COVID-19 cases across different regions of Punjab, where dx represents the rate at which COVID-19 spreads across different regions. This term has been commonly used in epidemiology [3, 8] to describe the geographical spread of infectious diseases. In this case, dx is assumed to be constant, which means that dx≡d>0(ii)
rtlxax,t−14Cx,t denotes new cases in a region x at time t, which is implemented frequently to discuss the growth of germs, cancers, and information over time [8]
(a)
The functionrt>0 represents the growth rate in COVID-19 cases at time t for all Punjab regions. Here, rt is assumed to increase with time t as the number of COVID-19 cases increases. Among the choices for representing the pattern, rt=gb1+b2t and gu=1/1+exp−u have been chosen with the parameters b1 and b2, which are to be determined from COVID-19(b)
The spatial diversity of COVID-19 is described by the location functionlx, which exhibits various infection rates in the five Punjab regions. The function lx can be created by using cubic spline interpolation in MATLAB. The gathered COVID-19 data is used to determine lx(c)
ax,t−14 represents data taken from Google mobility reports for retail and recreation, groceries and pharmacies, parks and transit stations, and workplaces, all of which are expected to increase the number of COVID-19 cases. Because the effect of the activities may take up to two weeks, the PDE model time t is shortened by 14 days to account for the COVID-19 incubation period(iii)
The functionchx,t−14Cx,t/k+Cx,t shows a reduced rate of COVID-19 cases due to high precaution measures to limit contact. The Michaelis-Menten function was used to limit the impact of household activities on the spread of COVID-19
(a)
hx,t−14 describes the data of residential activities that help to prevent COVID-19 outbreaks, collected by Google mobility data, where t−14 is the incubation period(b)
Here,c denotes the maximum reduction rate for each region with the effect of government actions and personal precautions(c)
k is the number of COVID-19 cases where the reduction rate is 1/2cax,t−14 and hx,t−14 are obtained using Google mobility data, while the other constants d, k, and c and parameters of rt and lx are evaluated by the data of COVID-19 casesCx,1=ψx is the initial function that describes the beginning states of COVID-19 in each region of Punjab and can be created by using cubic spline interpolation in MATLAB from the collected data of COVID-19 casesTo solve the PDE model, the boundary conditions are considered of Neumann type [8] given as
(2)∂C∂xt,1=∂C∂xt,5=0,t>1.For simplicity, cases imported from neighboring states are counted as local Punjab cases, assuming that no COVID-19 spreads across the border whenx=1 and 5.Many mathematical models have been used to discuss the mathematics intervention in the study of the spread of infectious diseases [9–11]. The classic models, namely, the susceptible, infectious, and recovered (SIR) model [12] and the susceptible, exposed, infectious, and recovered (SEIR) model [13], are the models generally used to study the spread and after-effects of COVID-19. Other proposed models are based on differential equations and statistical models [14, 15]. The present PDE model adopted in the study is based on the community model [7]. This model includes the impacts of personal precautions such as wearing face masks and maintaining social distance on COVID-19 cases at the district level. To the best of our knowledge, this work is the first attempt to apply PDE models on COVID-19 prediction with the Google Community Mobility Reports in Punjab, India.


## 4. Differential Quadrature Method

The differential quadrature method is a technique for approximating the derivatives of a function as a linear summation of function at the discrete knot points in the domain [16]. It was developed by the late Richard Bellman and his associates in the early 1970s. The following summation
(3)uxxi=∑j=1naijuxj,i=1,2,⋯,n,is used to approximate the derivatives of function ux at any nodal point xi of the partition. Here, aij are constant coefficients known as weighting coefficients which can be obtained in many ways.The present work is intended to implement the B-spline basis functions of the third degree with modification in DQM to determine the weighting coefficients.The idea of using the spline-based differential quadrature method to determine weighting coefficients was proposed by Bellman et al. [16], which was researched and improved by Quan and Chang [17, 18]. DQM has been implemented with various basis functions including the sinc functions, spline functions, and Lagrange interpolation polynomials [17, 18]. A lot of work has been reported in the literature for the advancement in the methodology for the selection of the grid points [19–21]. The Cubic B-spline has also shown accurate results for solving various PDEs using the DQM approach [22–26]. Third-order B-splines have advantages in terms of computational simplicity, numerical stability, and interpolated curve smoothness. Since both DQM and cubic B-spline functions have proven to be very effective, we chose to use this approach.


## 5. B-Spline

A spline of ordern is a piecewise polynomial function of degree n−1 in a variable x.The values ofx where the pieces of the polynomial meet are known as knots, denoted as x0,x1,x2,⋯,xn, and sorted into nondecreasing order.The third-degree B-spline called as the cubic B-spline basis function is given by the formula defined below withh as the knot span with the uniformly distributed knots, i.e., h=xi+1−xi.
(4)Bi,3x=1h3x−xi−23,x∈xi−2,xi−1,x−xi−23−4x−xi−13,x∈xi−1,xi,xi+2−x3−4xi+1−x3,x∈xi,xi+1,xi+2−x3,x∈xi−2,xi−1,0,otherwise.From the definition, the values ofBix and its first and second derivatives at the nodal points can be tabulated.The cubic B-spline basis functions are further implemented in the modified form to make the system diagonally dominant, defined as follows:(5)M1x=B1x+2B0x,M2x=B2x−B0x,Mix=Bix,fori=3,⋯,m−2,Mm−1x=Bm−1x−Bm+1x,Mmx=Bmx+2Bm+1x.Therefore,M1,M2,⋯,Mm now form a basis over the region.


## 6. Description of the Method

The first-order derivative approximation is given by(6)Mp′xi=∑j=1maijMpxj,fori=1,2,⋯,m;p=1,2,⋯,m.Now, for the first knot pointx1, that is, i=1,
(7)Mp′x1=∑j=1ma1jMpxj,forp=1,2,⋯,m.Forp=1,
(8)M1′x1=a11M1x1+a12M1x2+a13M1x3+⋯+a1mM1xm,B1′x1+2B′0x1=a11B1x1+2B0x1+a12B1x2+2B0x2+a13B1x3+2B0x3+⋯,0+−3h2=6a11+1a12+0a13+0a14+⋯,−3h2=6a11+1a12+0+0+⋯.Similarly,p=2,3,4,⋯,m provides equations in m variables. Thus, a system of m nonhomogenous equations in m variables is obtained with the matrix representation of the equations as follows:
(9)61004100441⋱⋱⋱14100140016a11a12a13⋮a1m−1a1m=−6h6h0⋮00.The “Thomas algorithm” is used to solve the above tridiagonal system of equations. The solution of which provides the coefficientsa11,a12,⋯,a1m.Following the same process fromi=2 to i=m−1, the value of coefficients ai1,ai2,⋯,aim is calculated. Hence, the weighing coefficients aij for i=1,2,⋯,m and j=1,2,⋯,m have been evaluated. Using these coefficients, the weighing coefficients bij for i=1,2,⋯,m and j=1,2,⋯,m are calculated by
(10)bij=2aijaij−1xi−xj,fori≠j,bii=−∑j=1,j≠imbij.


## 7. Prediction Method

The implementation of the proposed scheme (DQM and modified cubic B-spline) turns the function derivative∂/∂xdx∂Cx,t/∂x into a linear sum of function values at discrete points, which is further solved by the R-K approach using MATLAB. The values of the model parameters are to be determined by the collected data of COVID-19 cases in the five regions. In this work, the COVID-19 cases have been predicted one day ahead.In order to predict COVID-19 cases, the parameters have first been trained and then the PDE is solved for prediction. The following algorithm explains the prediction procedure [7]:
(i)
The data of the number of COVID-19 cases has been collected for the period July 1, 2020, to August 15, 2020. So there are a total of 46 days in this period(ii)
The historical COVID-19 data for days 1-7 has been used to train the parameters for each region(iii)
The fourth-order Runge-Kutta method is used in MATLAB to numerically solve the equation for prediction for day 8(iv)
The collected data for days 2-8 is used to train the parameters and predict for day 9. This process is repeated till day 46 is predicted from the data collected for days 39-45(v)
The actual COVID-19 data for days 8-46 are then compared to the predicted data to check the accuracy


## 8. Estimated Parameters

The following are the values of the parameters used for the prediction of COVID-19 cases on the 8th, 9th, and 10th days:
(i)
lx represents the different infection rates of the five regions of Punjab. The daily infection rate is 7 days moving average of new cases per 100,000 residents(ii)
Asrt is the growth rate for all Punjab regions, therefore, b1 and b2 have only one value for each prediction step. Table 1 shows the value of li for regions 1-5, respectively, and the constants b1 and b2(iii)
ax,t−14 is a collection of data for retail and recreation, groceries and pharmacies, parks, transit stations, and workplaces from Google mobility data. The daily changes for each region were calculated by aggregating the changes of all counties within a region. The negative values of ax,t−14 reflect the decrease in mobility during this period compared to the baseline period(iv)
Thehx,t−14 entry represents the daily changes in residential activities of each region, which were calculated by aggregating the changes of all counties within a region. The positive values of hx,t−14 reflect an increase in time spent at home during this period compared to the baseline period(v)
d>0 depicts how fast the infection spreads across different regions of Punjab. This has been calculated through the fminbnd function in MATLAB. Table 2 represents the value of ax,t−14, hx,t−14, and d>0 for the five regions(vi)
The calculated values ofc and k are shown in Table 3Table 1
Values oflx and b1 and b2 for each region.
Dayl1l2l3l4l5b1b280.000240.000360.000750.0002040.00016-1.129898555223840.48617932864790.000230.0004560.000710.0002070.000170.231237461552890.223507765687100.000260.0004890.000790.000220.0001630.055905037044540.182044663455Table 2
Values ofax,t−14, hx,t−14, and d for each region.
Daya1a2a3a4a5h1h2h3h4h5d8-7.55-5.33-7.51-5.07-6.520.360.370.40.280.351.000062422946669-8.46-5.77-7.67-5.19-6.570.460.380.440.270.391.0000624229466610-8.73-5.7-7.68-5.77-7.890.480.40.440.310.492.50032339920933Table 3
Values ofc and k for each region.
Dayc1c2c3c4c580.866155173250.806272601710.552637051370.913982933980.9125267827290.865988268070.793875031860.664940790480.856661487070.90812006030100.845625208700.796275291870.645606476590.851953192770.90812006030Dayk1k2k3k4k58-1.49844358466-1.54661440808-18.40068405369-0.27581339704-0.549147803839-1.51076173533-1.61352531942-7.56569956492-1.41305273105-0.5784598524210-2.01162262530-1.46907399870-7.84865807934-1.59337848008-0.57845985242


## 9. Prediction Results and Accuracy

Figures2–6 exhibit the predicted and actual COVID-19 cases in the five regions of Punjab from July 8, 2020, to August 15, 2020 (i.e., from day 8 to day 46). From the figures, we can see that for region 1 and region 2, the curve for the predicted and actual values intersects at many points, implying that the predicted value for that day is exactly the same as the actual value. For region 3, the curves do not intersect for more than one point and the predicted data has smaller values compared to the actual data, but both curves follow a similar pattern. For regions 4 and 5, the curves meet at few points and the predicted data has higher values than the actual data for the rest of the points. We can observe that for most of the points, the difference between both data is not huge and can be improved.Figure 2
Region 1.Figure 3
Region 2.Figure 4
Region 3.Figure 5
Region 4.Figure 6
Region 5.To analyze the model accuracy of prediction, the following formula has been used [7]:
(11)1−xreal−xpredictxreal,where xreal represents the actual COVID-19 cases and xpredict represents the predicted COVID-19 cases. The accuracy for days 8, 9, and 10 for each region of Punjab is shown in Table 4.Table 4
Accuracy for regions 1, 2, 3, 4, and 5.
Day1234585.0254%56.4400%5.0254%-157.4534%35.0215%943.472%38.297%14.109%80.424%80.424%1060%59.452%51.058%-17%-342.5%The median of accuracy for regions 1-5 from day 8 to day 46 is 63.79%, 59.45%, 46.22%, 14.55%, and -10.91%, respectively. The accuracy achieved is relatively low, which could be due to certain limitations of this model as it does not include recovered cases. A person who has recovered from COVID-19 has low chances of being infected again, which affects the rate of infection. Google mobility reports also have certain limitations. As Punjab has many rural areas where GPS-enabled smartphones are not widely used, this affects the reliability of Google mobility data.


## 10. Conclusion

This work is an attempt to analyze the effectiveness of a partial differential equation model to predict the number of COVID-19 cases in Punjab, India. For this, 23 districts of Punjab were distributed into 5 groups/regions. The real-time data of COVID-19 as well as the Google mobility reports have been used for the calculation. The differential quadrature method and modified cubic B-spline functions have been used to convert the PDE into an ordinary differential equation, which has been further solved using the fourth-order Runge-Kutta method. All the numerical simulations have been performed using MATLAB. The actual COVID-19 data and the predicted data for regions 1-5 have been compared. From Figures2–6, it can be seen that for many points, the model gives predicted values exactly the same as the actual data. The accuracy of the model for regions 1-5 from day 8 to day 46 is 63.79%, 59.45%, 46.22%, 14.55%, and -10.91%, respectively. The PDE model and the techniques used are found to be effective. A lot of work done has been proposed by researchers to analyze the spread of COVID-19 using an ordinary differential equation model, but a PDE model is rare. Keeping certain limitations of this model into consideration, this work shows the effectiveness of the PDE model, which has been found to be a suitable model which can be further optimized with the additional conditions.



---

*Source: 7546393-2022-07-22.xml*