Hostname: page-component-89b8bd64d-72crv Total loading time: 0 Render date: 2026-05-12T08:04:59.275Z 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.

Information

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
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