Hostname: page-component-848d4c4894-x5gtn Total loading time: 0 Render date: 2024-06-10T00:11:00.839Z Has data issue: false hasContentIssue false

Predictions of coronavirus COVID-19 distinct cases in Pakistan through an artificial neural network

Published online by Cambridge University Press:  21 September 2020

Iftikhar Ahmad*
Affiliation:
Department of Mathematics, University of Gujrat, Gujrat, Pakistan
Syed Muhammad Asad
Affiliation:
Department of Mathematics, University of Gujrat, Gujrat, Pakistan
*
Author for correspondence: Iftikhar Ahmad, E-mail: dr.iftikhar@uog.edu.pk
Rights & Permissions [Opens in a new window]

Abstract

This study presents the main motivation to investigate the COVID-19 pandemic, a major threat to the whole world from the day when it first emerged in China city of Wuhan. Predictions on the number of cases of COVID-19 are crucial in order to prevent and control the outbreak. In this research study, an artificial neural network with rectifying linear unit-based technique is implemented to predict the number of deaths, recovered and confirmed cases of COVID-19 in Pakistan by using previous data of 137 days of COVID-19 cases from the day 25 February 2020 when the first two cases were confirmed, until 10 July 2020. The collected data were divided into training and test data which were used to test the efficiency of the proposed technique. Furthermore, future predictions have been made by the proposed technique for the next 7 days while training the model on whole available data.

Type
Original Paper
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
Copyright © The Author(s), 2020. Published by Cambridge University Press

Introduction

A novel coronavirus pandemic known as COVID-19 is an infectious disease which has become a major threat throughout the world since the date it first emerged in November 2019 in China city of Wuhan [Reference Ma1, Reference Singhal2]. Later, the disease spread throughout the world and as of 11 July 2020 more than 12.6 million cases has been confirmed in 213 countries, territories and two international conveyances resulting in 562 039 deaths and 7.3 million recovered people [3]. Initially, COVID-19 causes various degrees of illness affecting the human respiratory system [Reference Rothan and Byrareddy4]. Since there is not enough knowledge about the disease and no vaccine has been discovered until now, the pandemic is worst affecting the whole world economy, people daily life forbidden inside homes, institutions, industries and markets are disturbed because governments took necessary measurements to prevent its spread and decrease the number of affected cases. World Health Organization (WHO) has recommended several precaution measures including the physical distance between people, wearing masks and sanitising the hands to prevent and slow down the spread of the pandemic [5].

COVID-19 in Pakistan

Pakistan has also been affected by this pandemic from the last few months in 2020. On 26 February 2020, Pakistan confirmed its first two cases, one in Karachi and the other one in federal areas of Islamabad; both of them had travelled from Iran [Reference Ali, Shah and Siddiqui6]. On 18 March 2020, the first death in Pakistan was reported in Mardan, Khyber Pakhtunkhwa where the total number of cases was 302 [7]. To prevent the outbreak in the country, the government of Pakistan took several steps. First, a system was established to screen every passenger who had a travel history from most affected countries such as China, Iran, South Korea, etc., [Reference Saqlain8]. Based on the collected data on 10 July 2020, total number of confirmed cases were 246 351 [9]. In order to observe the behaviour of the graph of increasing cases in the country, it is very important to know about the number of increasing cases in the coming days so that essential measurements can be taken. For this purpose, an artificial neural network (ANN) technique has been used in this research.

Artificial neural network

ANN is a biologically inspired computing system in which a connection system is made which learns by different techniques inspired by human learning and predicts future data. This topic was first developed by Warren Mc-Cullock and Walter Pits in 1943 by creating a model for ANN [Reference McCulloch and Pitts10]. ANNs are sometimes more magnificent to make predictions where humans are not, e.g. decision support in cancer, streamflow forecasting, weather forecasting, etc. [Reference Lisboa and Taktak11Reference Baboo and Shereef13]. An ANN is constructed by the connection of units called neurons which can transmit signals to other neurons. An ANN can be made by many neurons working collectively to predict the future. A neuron or group of neurons make a layer and an ANN can have many such layers. A simple ANN can have one input layer which receives the input data and an output layer which gives results or predictions and one may have one or more hidden layers between input and output layers which can be used to transform input data to something which can be used by output layer to predict more accurate results. Data are passed in the form of real numbers to the input layer. Each connection between two neurons has a weight value which is optimised through training.

Once a neuron receives inputs from all the connected neurons in previous layers, accepting neuron adds its bias and applies an activation function and generates an output value. The activation function of a neuron is an actual power of an ANN. Activation functions are selected based on the problem or the one which is found to be more suitable during experiments. Different types of ANN models are trained through different techniques. Some further characteristics of an ANN are as below:

  • ANNs have ability to learn from given data and adjust their weights accordingly in order to predict data which have not observed before.

  • The learned parameters of an ANN are stored in its own network and therefore no databases are needed and hence these are not affected by loss of data.

  • Similar to human, ANNs learn from examples. E.g. an ANN can be used to classify images like cats and dogs. Initially, the ANN is trained on some examples of cats and dogs images and then it could be able to classify those cats and dogs images which were not available during training [Reference Jajodia and Garg14].

  • Unlike human, ANNs can be used to predict information about coming days e.g. ANNs are used widely in weather forecasting [Reference Baboo and Shereef13].

A brief description of supervised and unsupervised learning is discussed in [Reference Walczak15]. In this research study, a supervised ANN has been used. Some of the characteristics of this study are summarised as follows:

  • A novel design of an ANN is implemented to predict the number of deaths, recovered and confirmed cases of COVID-19 in Pakistan by using previous data of 137 days of COVID-19 cases in Pakistan.

  • The data collected were divided into two main groups, one is training and the other is testing data, which are used to test the efficiency of the proposed techniques through a Python (Computer Programming Language CPL) library Tensor flow.

  • The competency of computational numerical solver based on a rectifying linear unit-based technique is used for the dynamical study of the COVID-19 cases in Pakistan in terms of sufficient graphical and numerical representations.

A brief description of supervised and unsupervised learning is discussed in [Reference Walczak15]. For recent studies on algorithms of numerical computing, the reader is referred to [Reference Abu Arqub16Reference Abu Arqub19]. In this research study, a supervised ANN has been used. The rest of the paper is organised as follows: method used in this study is discussed in Section ‘Methodology’; modelling is presented in Section ‘Modelling of ANN’, ‘Simulation and Predictions’ Section presents the simulation and predictions of the proposed model and conclusion and future recommendations are discussed in the last section.

Methodology

In this research study, an ANN is used to make predictions of increasing rate of coronavirus confirmed cases, deaths and number of people who have recovered from this disease. A supervised ANN is used which is trained based on the collected data of past few days. A flowchart to represent the proposed methodology is given in Figure 1. This section is divided into three subsections: first, discussed about the data gathering sources and characteristic of data. Second, feature engineering and data preprocessing is performed to make data well suitable for neural network training and predictions. Third, a brief description on mathematical background of the ANN is discussed.

Fig. 1. Flowchart of the proposed methodology.

Data gathering

The data gathered in this research study have been collected from the repository of Centre for System Science and Engineering (CSSE) at Johns Hopkins University and also supported by ESRI Living Atlas Team and a semi-automated living data stream strategy has been used to update data automatically during whole day with time interval of 15 min [Reference Dong, Du and Gardner20]. The data have provided for the whole world but in this research study, we filtered data for Pakistan only. Also, the data source confirmed that the data are collected from the Ministry of National Health Services Regulation and Coordination, Government of Pakistan official website [9]. We also compared the collected data with the graphs available at the Government of Pakistan official website for COVID-19 statistics and a perfect match was obtained. The data have divided into three different categories with time interval of 24 h (a day). First, it contains the cumulative total number of confirmed cases of coronavirus-infected people increasing daily; second, the total counted deaths due to the virus and third is those who have recovered from the virus and discharged from hospitals. A graph representing the characteristic of data is shown in Figure 2 for all three types of data, i.e. confirmed cases, deaths and recoveries from 25 February 2020 to 10 July 2020. It can be observed that the number of confirmed cases and total number of recoveries are increasing exponentially with 246 351 and 153 134 reported on 10 July 2020 respectively. Also, the total number of deaths is increasing and to 10 July 2020 total number of deaths counted were 5123. It was also observed that the average of confirmed cases, deaths and recoveries was 1798, 37 and 1117 respectively based on the collected data of 137 days.

Fig. 2. Cases recorded in Pakistan from 25 February 2020 to 10 July 2020.

Data preprocessing

Once we have collected data, next step is preprocessing of data. Data preprocessing is an important part of machine learning to obtain better results. For this whole section, a Python (Computer Programming Language CPL) library Scikit-Learn is used [Reference Pedregosa21]. As we can observe that the input of data is just dates in which cases were recorded while output is the amount of cases. Any machine-learning algorithms use numeric values for processing. Therefore, data featuring was performed and date values were transformed to integer values for the number of days from 1 to 137. After data featuring, a simple problem for the prediction of cases can be written as

(1)$$y_i = a_ix + b_i\comma \;\,\,\,\,\,{\rm for}\,i = 1\comma \;2\comma \;3\comma \;$$

where ai and bi are coefficients or weights to be adjusted, x is the input value (number of days) and yi represent confirmed cases, deaths and recovered people. Although equation (1) is an equation of straight line, from Figure 2, it can be observed that the graph is not a linear. Therefore, to overcome this issue, the data preprocessing for the polynomial regression model technique is used and the equation was transformed into following polynomial equation:

(2)$$y_i = \left({\sum\limits_{\,j = 0}^n {a_{\lsqb {i\comma j} \rsqb }x^j} } \right) + b_i\comma \;\,\,$$

where n is the degree of polynomial which can adjust by experiments. In this research study, it is observed that n = 6 predicting better results with good accuracy along actual case curves. Based on this concept input data with one input value is transformed into six input values as follows while skipping constant value:

(3)$${x}^{\prime} = \lpar x\comma \;x^2\comma \;\ldots \comma \;x^6\rpar \comma \;$$

where x is the resulting vector for each input value x. For training and validation of the ANN, both the input and output data are split into train and test sets with the ratio of test size of 0.05 and without shuffling the data. Later, for predictions in the coming days, the model will be trained on whole data. After the transformation of input data of 137 samples into polynomial problem data, it can be observed that the input data values range between the interval [1, 3 138 428 376 721] which is a very large input value. The ANN is good to make predictions with standardised data which was centred around 0 and have variance in the same order. A data scaling was performed on input data as follows:

(4)$$z = \displaystyle{{\lpar {x}^{\prime}-u\rpar } \over s}\comma \;$$

where u is the mean and s is the standard deviation of all samples of respective input values. After completing data preprocessing, next step is to design an ANN model which could predict better results.

Modelling of ANN

In this section, a brief discussion on the modelling of proposed ANN is given. For whole work of this section, TensorFlow 2.0 is used which is an interface for expressing, implementing and deployment of machine-learning models on heterogeneous systems and it is available with Python CPL [Reference Abadi22]. The proposed model has designed with three layers, input, output and hidden layers. The input layer has six neurons as data were transformed into (6 × No. of Samples) size as discussed in Section ‘Data preprocessing’ and in equation (3). Output layer has three neurons: one is predicting total number of confirmed cases, second is predicting deaths and third predicting total number of recovered people. Hidden layer has 200 neurons and in the hidden layer nodes a rectifying linear activation function is used. A graphical representation of the proposed ANN is shown in Figure 3 with six neurons in the input layer, 200 neurons in hidden layer while three neurons in the output layer where hidden and output layer are deeply connected with the previous layer. A mathematical formulation for proposed ANN is given as

(5)$$\hat{y}_{\lsqb {\,p\comma k} \rsqb } = \sum\limits_{\,j = 1}^{200} {w_{\lsqb {\,j\comma k} \rsqb }^{\lpar 2\rpar } } h_j + b_k^{\lpar 3\rpar } \comma \;\,\,\,\,{\rm for}\,\,k = 1\comma \;2\comma \;3\comma \;$$

where p represents the number of samples from dataset fed into the network, j is the number of neurons in the hidden layer and k is the number of neurons in the output layer. $\hat{y}_{\lsqb {i\comma 1} \rsqb }\comma \;\,\,\hat{y}_{\lsqb {i\comma 2} \rsqb }$ and $\hat{y}_{\lsqb {i\comma 3} \rsqb }$ are the predicted values of the confirmed cases, deaths and recoveries against each ith input. Sum of 200 represents 200 hidden layer neurons, w are weights and b are biases. Superscripts of w and b represent the number of hidden layers e.g. $w_{\lcub {j\comma k} \rcub }^{\lpar 2\rpar }$ are weights of the second layer between each jth hidden layer neuron and kth output layer neuron. hj is the output of each jth hidden layer and defined as

(6)$$h_j = f\left({\sum\limits_{i = 1}^6 {w_{\lcub {i\comma j} \rcub }^{\lpar 1\rpar } } x_i^p + b_j^{\lpar 2\rpar } } \right)\comma \;$$

where $x_i^p$ is input value of ith input neuron of sample p. f is an activation function of hidden neurons and as mentioned earlier a rectified linear unit (ReLU) activation is used in this ANN model, which is a piecewise function and return positive value i.e. 0 if input value is negative and can be defined as

(7)$$f\lpar x\rpar = x^ + { = } \max \lpar 0\comma \;x\rpar .$$

The ReLU activation function was first introduced by Hahnloser et al. in 2000 and a brief discussion and mathematical justification of this activation function can be found in their studies [Reference Hahnloser23, Reference Hahnloser and Seung24]. Also, it was observed that, in the proposed ANN model 2003 are trainable parameters where 1400 are between the input and hidden layers and 603 between the hidden and output layers. After completing the design of the ANN model, next step was to train the model. The pseudo-code of the proposed scheme is shown in Figure 4. For the training of the ANN model, an Adam optimiser was used which is a stochastic gradient descent method for first-order gradient-based optimisations. This optimisation algorithm is well suitable for those problems which are large in terms of data or parameters or both of them. This optimisation algorithm is an extension of stochastic gradient descent algorithm, and it takes benefits from the Adaptive Gradient Algorithm (AdaGrad) and Root Mean Square Propagation (RMSprop).

Fig. 3. Graphical representation of the proposed ANN.

Fig. 4. Pseudo-code of methodology.

The Adam algorithm makes use of exponentially weighted average and the decay rate is controlled by beta 1. It also calculates the average of the second moment of gradient and parameter for this decay rate is beta 2. Many authors have proposed their research studies on improvement and performance of Adam algorithm and is widely used by scientists in the field of ANN [Reference Loshchilov and Hutter25Reference Bock, Goppold and Weiß28]. This optimisation algorithm was introduced by Diederik P. Kingma and Jimmy Lei Ba in 2014 and complete details can be found in [Reference Kingma and Ba29]. In the proposed ANN, objective function was mean square error (MSE) between the predicted and actual values which were optimised through Adam. The mathematical notation of the performance metrics through MSE is given as below:

(8)$${\rm MSE} = \displaystyle{1 \over N}\sum\limits_{\,p = 1}^N {\sum\limits_{k = 1}^3 {{\lpar y_{\lcub {\,p\comma k} \rcub }-{\hat{y}}_{\lcub {\,p\comma k} \rcub }\rpar }^2} } \comma \;$$

where N is the total number of samples in the training dataset. A parameter setting for optimisation of ANN is given in Table 1 which influence the performance of ANN. A well setting of parameters was obtained through experiments and literature. The learning rate mentioned in Table 1 is the rate at which weights will be updated during training. The small learning rate computational cost is less and in this study the mentioned rate was supposed to be best for the proposed model. The parameter iterations/epochs are the number of runs of ANN during training. As more epochs will be, then model will take more time and may not reduce loss further or reduce at much slower rate and chances of model overfitting. Therefore, the 4000 epochs were considered to be best for the model training and optimisation. Remaining parameters were selected as default and change in parameters may worsen the model performance.

Table 1. Parameter setting for the optimisation of ANN

Simulations and predictions

In this section, we will discuss about proposed model evaluation and predictions to demonstrate the model performance and efficiency. Two different kinds of ANN evaluations are carried out during the whole process. First, the ANN is trained and optimised to test the efficiency of ANN and later it has been used to predict the number of reported cases in coming days in Pakistan. Numerical calculations are executed on a PC with specifications of 2.4 GHz CPU and its memory capacity is 1.5 G.

ANN evaluation on train-test data

In this section, the train-test split datasets as described in Section ‘Data gathering’ were used. The test data size was 0.05 (i.e. 5% of total data). Out of 137 total days, first 130 days data were used to train the model while next 7 days were used to test the efficiency and performance of proposed ANN to make predictions. As described in the ANN parameters and choice of the algorithm in Table 1, the convergence rate of the proposed ANN on the training dataset is shown in Figure 5 which represents the curve describing the loss function convergence rate at each iteration. It can observe that the loss function value started from 2.7 × 109 and converged to 5.2 × 105 in 4000 iterations (epochs). In Figure 6, the curve fitting or data fitting on actual cases is shown for all three categories i.e. confirmed cases, deaths and recoveries. It can be observed that the model is well fitted with training data and the difference between predicted results by ANN and actual results are shown in Figure 7 which represents the difference between the number of actual cases and the cases predicted by the ANN. It is observed that the error is between −1000 and 1000 up to date 09 June 2020 while there are some days on which error rise up to 4000. The calculated mean absolute error (MAE) for training data was 284. As the error graph lies between −4000 and 4000 while the output value is more than 246 351, so it can be observed that this is a good fit for making predictions of ANN. To test the efficiency and performance of the proposed ANN, trained ANN with its trained parameters was evaluated on test dataset. The graph of results predicted by the ANN and actual cases is shown in Figure 8 while the error graph representing the difference between actual and predicted cases is shown in Figure 9.

Fig. 5. Convergence rate of loss function of ANN on train dataset.

Fig. 6. Curve fitting by ANN on training dataset.

Fig. 7. Error graph between Predicted and Actual data by ANN on training dataset.

Fig. 8. Curve fitting by trained ANN on test dataset.

Fig. 9. Error graph between predicted and actual data by trained ANN on test dataset.

ANN to make predictions

In this section, whole data are used to train the proposed ANN model. The model is trained on 137 days data. The curve fitting is better than the previously trained model as the whole is used to train the model with an MAE of 335. The data are generated for the next 7 days based on previously generated input data. In Figure 10, the curve fitting on whole data is shown for all three categories. It can be observed that the model is well fitted with data and difference between predicted results by ANN and actual results is shown in Figure 11. Figure 12 represents the graph for cases of coronavirus pandemic up to 17 July 2020 i.e. including next 7 days’ predictions. The predicted case values are given in Table 2.

Fig. 10. Curve fitting by trained ANN on whole data.

Fig. 11. Error graph between predicted and actual data by trained ANN on whole data.

Fig. 12. Making predictions with trained ANN for next 7 days.

Table 2. Predictions of coronavirus cases between 11 July 2020 and 17 July 2020

It can be observed that, based on previous data of coronavirus cases the trained ANN model predicting that on 17 July 2020, the number of confirmed cases will reach 293 875, deaths 5880 and recoveries 203 334. It is observed that the confirmed cases will increase by approximately 47 524 with more 50 200 recovered people while 84 661 remaining active cases.

Conclusion and recommendations

The proposed technique for analysis of the COVID-19 coronavirus disease is presented and future predictions for the next 7 days are performed. It is observed that the model is well fitted with training data and can help to make predictions for the future. The effect of variable parameters on three different cases infected, deaths and recoveries on daily basis are shown which would help the Government for the future safety of people and to control the spread of pandemic if the same practice remains continues. In the future, a more robust ANN can design by using more input parameters collected from real life which are affecting the spread of coronavirus. Therefore, ANN would help to make decisions for controlling parameters and make more accurate policies and decisions.

Supplementary material

The supplementary material for this article can be found at https://doi.org/10.1017/S0950268820002174.

Acknowledgments

This research was supported by the National Research Program for Universities (NRPU), Higher Education Commission, Pakistan, no. 8103/Punjab/NRPU/R and D/HEC/2017.

Conflict of interest

All authors of this manuscript acknowledged that there is no conflict of interest.

Data availability statement

The whole research study which supports this study is openly available in [Predictions-of-COVID-19-in-Pakistan] at https://doi.org/10.5281/zenodo.4013997.

References

Ma, J (2020) Coronavirus: China's first confirmed COVID-19 case traced back to November 17, South China Morning Post, 13 March 2020. Available at https://www.scmp.com/news/china/society/article/3074991/coronavirus-chinas-first-confirmed-covid-19-case-traced-back.Google Scholar
Singhal, T (2020) A review of coronavirus disease-2019 (COVID-19). The Indian Journal of Pediatrics 87(4), 281286.Google Scholar
Covid-19 Coronavirus Pandemic 2020 (2020) Available at https://www.worldometers.info/coronavirus (Accessed 12 July 2020).Google Scholar
Rothan, HA and Byrareddy, SN (2020) The epidemiology and pathogenesis of coronavirus disease (COVID-19) outbreak. Journal of Autoimmunity 109, 102433.CrossRefGoogle ScholarPubMed
W. H. Organization et al. ., Coronavirus disease 2019 (COVID-19): situation report, 72.Google Scholar
Ali, I, Shah, SA and Siddiqui, N (2020) Pakistan confirms first two cases of coronavirus, govt says ‘no need to panic’. dawn.com, February, 26.Google Scholar
Pakistan confirms first death from coronavirus as number of positive cases rise to 289 (2020) Available at https://www.news18.com/news/world/pakistan-confirms-first-death-from-coronavirus-as-number-of-positive-cases-rise-to-289-2542043.html (Accessed 28 June 2020).Google Scholar
Saqlain, M et al. (2020) Is Pakistan prepared to tackle the coronavirus epidemic? Drugs & Therapy Perspectives 20, 12.Google Scholar
Covid-19 dashboard. Available at http://covid.gov.pk/stats/pakistan (Accessed 11 July 2020).Google Scholar
McCulloch, WS and Pitts, W (1943) A logical calculus of the ideas immanent in nervous activity. The Bulletin of Mathematical Biophysics 5, 115133.CrossRefGoogle Scholar
Lisboa, PJ and Taktak, AF (2006) The use of artificial neural networks in decision support in cancer: a systematic review. Neural Networks 19, 408415.CrossRefGoogle ScholarPubMed
Kişi, Ö (2007) Streamflow forecasting using different artificial neural network algorithms. Journal of Hydrologic Engineering 12, 532539.Google Scholar
Baboo, SS and Shereef, IK (2010) An efficient weather forecasting system using artificial neural network. International Journal of Environmental Science and Development 1, 321.CrossRefGoogle Scholar
Jajodia, T and Garg, P (2019) Image classification–cat and dog images. Image 6(23), 570572.Google Scholar
Walczak, S (2019) Artificial neural networks. In Advanced Methodologies and Technologies in Artificial Intelligence, Computer Simulation, and Human-Computer Interaction. IGI Global, pp. 4053.CrossRefGoogle Scholar
Abu Arqub, O (2019) Numerical algorithm for the solutions of fractional order systems of Dirichlet function types with comparative analysis. Fundamenta Informaticae 166, 111137.CrossRefGoogle Scholar
Arqub, OA and Shawagfeh, N (2019) Application of reproducing kernel algorithm for solving Dirichlet time-fractional diffusion-Gordon types equations in porous media. Journal of Porous Media 22(4), 411434.CrossRefGoogle Scholar
Arqub, OA (2018) Numerical solutions of systems of first-order, two-point BVPs based on the reproducing kernel algorithm. Calcolo 55, 31.Google Scholar
Abu Arqub, O (2019) Application of residual power series method for the solution of time-fractional Schrödinger equations in one-dimensional space. Fundamenta Informaticae 166, 87110.CrossRefGoogle Scholar
Dong, E, Du, H and Gardner, L (2020) An interactive web-based dashboard to track COVID-19 in real time. The Lancet Infectious Diseases 20, 533534.CrossRefGoogle Scholar
Pedregosa, F et al. (2011) Scikit-learn: machine learning in Python. The Journal of Machine Learning Research 12, 28252830.Google Scholar
Abadi, M et al. (2015) TensorFlow: large-scale machine learning on heterogeneous systems. Software available from tensorflow.org. 2015. Available at https://www.tensorflow.org.Google Scholar
Hahnloser, RH et al. (2000) Digital selection and analogue amplification coexist in a cortex-inspired silicon circuit. Nature 405, 947951.CrossRefGoogle Scholar
Hahnloser, RH and Seung, HS (2001) Permitted and forbidden sets in symmetric threshold-linear networks. In Advances in Neural Information Processing Systems, pp. 217223.Google Scholar
Loshchilov, I and Hutter, F (2018) Fixing weight decay regularization in Adam, ICLR 2018 Conference. Vancouver, BC, Canada: Vancouver Convention Center.Google Scholar
Feyzbakhsh, SA and Matsui, M (1999) Adam–Eve-like genetic algorithm: a methodology for optimal design of a simple flexible assembly system. Computers & Industrial Engineering 36, 233258.CrossRefGoogle Scholar
Zhang, Z (2018) Improved Adam optimizer for deep neural networks. In 2018 IEEE/ACM 26th International Symposium on Quality of Service (IWQoS). IEEE, pp. 12.CrossRefGoogle Scholar
Bock, S, Goppold, J and Weiß, M (2018) An improvement of the convergence proof of the Adam-optimizer. arXiv preprint arXiv, 1804.10587.Google Scholar
Kingma, DP and Ba, J (2014) Adam: a method for stochastic optimization. arXiv preprint arXiv, 1412.6980.Google Scholar
Figure 0

Fig. 1. Flowchart of the proposed methodology.

Figure 1

Fig. 2. Cases recorded in Pakistan from 25 February 2020 to 10 July 2020.

Figure 2

Fig. 3. Graphical representation of the proposed ANN.

Figure 3

Fig. 4. Pseudo-code of methodology.

Figure 4

Table 1. Parameter setting for the optimisation of ANN

Figure 5

Fig. 5. Convergence rate of loss function of ANN on train dataset.

Figure 6

Fig. 6. Curve fitting by ANN on training dataset.

Figure 7

Fig. 7. Error graph between Predicted and Actual data by ANN on training dataset.

Figure 8

Fig. 8. Curve fitting by trained ANN on test dataset.

Figure 9

Fig. 9. Error graph between predicted and actual data by trained ANN on test dataset.

Figure 10

Fig. 10. Curve fitting by trained ANN on whole data.

Figure 11

Fig. 11. Error graph between predicted and actual data by trained ANN on whole data.

Figure 12

Fig. 12. Making predictions with trained ANN for next 7 days.

Figure 13

Table 2. Predictions of coronavirus cases between 11 July 2020 and 17 July 2020

Supplementary material: File

Ahmad and Asad supplementary material

Ahmad and Muhammad Asad supplementary material

Download Ahmad and Asad supplementary material(File)
File 1.4 MB