Next Article in Journal
Diverse Variety of Exact Solutions for Nonlinear Gilson–Pickering Equation
Next Article in Special Issue
Crowd Density Estimation in Spatial and Temporal Distortion Environment Using Parallel Multi-Size Receptive Fields and Stack Ensemble Meta-Learning
Previous Article in Journal
Large Mask Image Completion with Conditional GAN
Previous Article in Special Issue
A Novel Driver Abnormal Behavior Recognition and Analysis Strategy and Its Application in a Practical Vehicle
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prediction of COVID-19 Cases Using Constructed Features by Grammatical Evolution

by
Ioannis G. Tsoulos
1,*,
Alexandros T. Tzallas
1 and
Dimitrios Tsalikakis
2
1
Department of Informatics and Telecommunications, University of Ioannina, 47100 Arta, Greece
2
Department of Engineering Informatics and Telecommunications, University of Western Macedonia, 50100 Kozani, Greece
*
Author to whom correspondence should be addressed.
Symmetry 2022, 14(10), 2149; https://doi.org/10.3390/sym14102149
Submission received: 18 September 2022 / Revised: 9 October 2022 / Accepted: 11 October 2022 / Published: 14 October 2022

Abstract

:
A widely used method that constructs features with the incorporation of so-called grammatical evolution is proposed here to predict the COVID-19 cases as well as the mortality rate. The method creates new artificial features from the original ones using a genetic algorithm and is guided by BNF grammar. After the artificial features are generated, the original data set is modified based on these features, an artificial neural network is applied to the modified data, and the results are reported. From the comparative experiments done, it is clear that feature construction has an advantage over other machine-learning methods for predicting pandemic elements.

1. Introduction

The world changed in December 2019, when the first reports emerged of a mysterious infection in China. Subsequently, the WHO (World Health Organization) declared a new global pandemic on 11 March 2020. The name given to the new coronavirus was SARS-CoV-2 (Severe Acute Respiratory Syndrome), and the name given to the corresponding disease was COVID-19. As Andersen mentioned [1], the virus’s origin is natural selection in an animal host before zoonotic transfer or natural selection in humans following zoonotic transfer. At the time of writing, the number of diagnosed cases of COVID-19 is about 650,000,000 and the number of people who have died is over 6,500,000. So, the fatality rate was about 1%, although this rate may be lower since many people have fallen ill without undergoing any diagnostic tests.
Due to the seriousness of the topic, since the beginning of the pandemic until now, a multitude of publications have appeared in the relevant literature on this topic, and many of them use computational techniques to predict the course of the disease. For example, Wang [2] used the patient-information-based algorithm (PIBA), which uses real-time data collected from patients in Wuhan. With this data, he wrote an algorithm to forecast the death rates. Additionally, Tomar and Gupta [3] used long short-term memory (LSTM) to predict the number of COVID-19 cases. Zhang et al. [4] used a Poisson model to analyze the COVID-19 cases in Canada, France, Germany, Italy, the UK, and the USA. Pinter et al. [5] used an ANFIS system and a multilayered perceptron- imperialist competitive algorithm (MLP-ICA) to predict the mortality rate for Hungary. Smith et al. [6] used machine-learning techniques for a dataset made of blood samples taken from COVID-19 patients from a hospital in the region of Wuhan, in order to estimate the mortality rate. Additionally, papers [7,8] used machine-learning techniques to recognize faces behind masks.
The current work utilizes a feature-construction method initially presented in [9] to predict the COVID-19 cases and deaths for a series of randomly selected countries. The method is based on grammatical evolution [10] and creates artificial features from the original ones without a priori knowledge of the structure of the problem. The method has been used with success in a series of scientific fields such as spam identification [11], fetal heart classification [12], epileptic oscillations [13], etc. Additionally, recently a software that implements the feature-construction method using modern programming approaches has been published [14]. In the case of the COVID-19 data, the only feature is the recording time in ascending form, and the output is the number of cases or deaths on that recording. The proposed method creates 1-3 artificial features from the recording time and, subsequently, an artificial neural network [15,16] is trained on the modified data. The experimental results are compared against other methods used to train neural networks, and the proposed technique appears to significantly outperform the others in terms of accuracy. The grammatical evolution utilizes a genetic algorithm [17,18] to produce new features from the old ones.
Additionally, genetic algorithms have been used in a variety of symmetry problems from the relevant literature [19,20,21]. Recently, Krippendorf and Syvaeri used artificial neural networks to detect symmetries in datasets [22], Qiao et al. [23] used deep-learning techniques to predict the energy solutions of the Schrödinger equations using symmetry-adapted atomic orbital features, Xi et al. [24] used deep-learning methods on high-symmetry material space, Selvaratnam et al. [25] used symmetry functions on large chemical spaces through convolutional neural networks, and Wang et al. [26] used symmetry-adapted graph neural networks for constructing molecular dynamics force fields.
Furthermore, a series of recent works has been proposed to model the dynamics of the COVID-19 virus using fractional derivatives [27,28,29] or the work of Huzaifa et al. [30], which was used for another virus, the Ebola virus.
The rest of this article is organized as follows: in Section 2, the main aspects of grammatical evolution and the steps of the proposed technique are outlined in detail; in Section 3, the experimental results are outlined; and finally in Section 4, some conclusions and guidelines for the extension of the proposed technique are listed.

2. Method Description

The proposed technique is divided into two phases. During the first phase, artificial new features are created from the original ones using grammatical evolution and a genetic algorithm. The new features are evaluated using a radial basis function (RBF) network [31] with H processing units. The RBF network is selected as the evaluator because the training procedure of RBF is much faster than those of artificial neural networks. Subsequently, in the second phase, the original dataset is transformed using the best located features and a genetic algorithm is used to train a neural network on the modified dataset. A schematic representation of the whole process is shown in Figure 1.

2.1. Grammatical Evolution

Grammatical evolution is an evolutionary approach, where the chromosomes are random numbers standing for production rules of a given BNF (Backus–Naur form) grammar [32]. The grammatical evolution was initially used for regression [33,34] and to solve trigonometric identities [35], but it has been applied in a variety of scientific fields, such as the automatic composition of music [36], neural network construction [37,38], automatic constant creation [39], the evolution of video games [40,41], energy-demand estimation [42], combinatorial optimization [43], and cryptography [44]. The BNF grammar is defined as the set G = N , T , S , P where
  • N is the set of the non-terminal symbols, used to produce a series of terminal symbols through production rules.
  • T is the set of terminal symbols of grammar. For example, terminal symbols could be the digits in an arithmetic expression of the operators.
  • S is the starting non-terminal symbol of grammar. The production of a valid expression is initiated from this symbol.
  • P is the set of production rules. Every rule is in the form A a or A a B ,   A , B N ,   a T .
The original grammar is expanded in grammatical evolution, with the addition of a sequence number for each production rule. The chromosomes in grammatical evolution are integer numbers representing sequence numbers of production rules. Subsequently, the production procedure starts from the start symbol of the grammar and produces valid programs by replacing non-terminal symbols with the right hand of the selected production rule. The selection of the rule has two steps:
  • Retrieve the next element from the given chromosome and denote it as V.
  • The next production rule R is calculated by
    R = V   MOD   K
    where K is the total number of production rules for the current non-terminal symbol. In the current work, the extended BNF grammar is illustrated in Figure 2. The non-terminal symbols are enclosed in the symbols < >, and the number N denotes the number of original features. For the COVID-19 case, N is considered as 1. An example of producing a valid expression is shown in the Table 1. The chromosome is x = 9 , 8 , 6 , 4 , 16 , 10 , 17 , 23 , 8 , 14 and N = 3 . The valid expression finally created is f ( x ) = x 2 + cos x 3 .
Considering the above mapping procedure, the steps to produce N f artificial features for a given chromosome g are
  • Divide the chromosome into N f parts. Each part g i ,   i = 1 , , N f will construct a separate feature.
  • A feature t i is constructed for every g i using the grammar given in Figure 2.
  • Construct a mapping function
    FC ( x , g ) = t 1 ( x , g 1 ) , t 2 ( x , g 2 ) , , t N f x , g N f
    with x being the pattern from the original set.

2.2. Feature Creation Step

In this step, a genetic algorithm in conjunction with the mapping procedure of Section 2.1 is used to produce artificial features. The fitness function of the genetic algorithm is the training error of an RBF neural network with H processing units. The steps are as follows:
  • Initialization step
    (a)
    Set iter= 0, the current number of generations.
    (b)
    Consider the set TR = { ( x 1 , y 1 ) , ( x 2 , y 2 ) , , ( x M , y M ) } , the original training set.
    (c)
    Set N c as the number of chromosomes in the genetic population.
    (d)
    Set N f as the number of constructed features.
    (e)
    Initialize randomly in range [ 0 , 255 ] every element of each chromosome.
    (f)
    Set N g as the maximum number of generations.
    (g)
    Set p s [ 0 , 1 ] as the selection rate.
    (h)
    Set p m [ 0 , 1 ] as the mutation rate.
  • Termination check step. If iter >= N g terminate.
  • Calculate the fitness f i of every chromosome g i with the following procedure:
    (a)
    Create N f features using the mapping procedure of Section 2.1.
    (b)
    Construct the mapped training set
    TN = { ( FC ( x 1 , g i ) , y 1 ) , ( FC ( x 2 , g i ) , y 2 ) , , ( FC ( x M , g i ) , y M ) }
    (c)
    Train an RBF neural network C with H processing units on the new set TN and obtain the following training error:
    E i = j = 1 M ( C ( FC ( x j , Z i ) ) y j ) 2
    (d)
    Set f i = E i
  • Genetic Operators
    (a)
    Selection procedure: The chromosomes are sorted according to their fitness. The best p s × N c are copied intact to the next generation. The genetic operations of crossover and mutation are applied to rest of the chromosomes.
    (b)
    Crossover procedure: During this process 1 p s × N c , offspring will be created. For every couple of produced offspring, two parents ( z , w ) are selected using the well-known procedure of tournament selection. For every pair ( z , w ) of parents, two offspring z ˜ and w ˜ are produced through one-point crossover. An example of one-point crossover is shown in Figure 3.
    (c)
    Mutation procedure: For each element of every chromosome, a random number r 0 , 1 is produced. Subsequently, we randomly change the corresponding element if r p m .
  • Set iter = iter + 1 and goto Step 2.

2.3. Feature Evaluation Step

During this step, the best chromosome g b of the first step is obtained and used to create the modified train set
TN = { ( FC ( x 1 , g b ) , y 1 ) , ( FC ( x 2 , g b ) , y 2 ) , , ( FC ( x M , g b ) , y M ) }
Afterwards, a genetic algorithm is used to train an artificial neural network with H hidden nodes for this dataset. The neural network used here is defined as a function N x , w , where w is the weight vector to be estimated through the genetic algorithm after the minimization of the following training error:
E N x , w = i = 1 M N FC x i , g b , w y i 2
The neural network has a form also used in [45]. If the neural network has one processing level, every output of each hidden node is in the form:
o i ( x ) = σ p i T x + θ i ,
where p i is the weight vector and θ i is considered as the bias for output i . The function σ ( x ) is the well-known sigmoid function given by
σ ( x ) = 1 1 + exp ( x )
For a neural network with H hidden nodes, the final output is given by:
N ( x ) = i = 1 H v i o i ( x ) ,
where v i is the weight for hidden node i. Hence, if we use one weight w for hidden nodes and biases, the following form could be used for the neural network:
N x , w = i = 1 H w ( d + 2 ) i ( d + 1 ) σ j = 1 d x j w ( d + 2 ) i ( d + 1 ) + j + w ( d + 2 ) i
The value d the size of input vector x . Additionally, the total number of parameters of vector w is ( d + 2 ) × H . The genetic algorithm used here is a global optimization technique [17,18] that has been applied with success in many problems such as electromagnetic problems [46], combinatorial problems [47], and the design of water distribution networks [48]. Additionally, it has been used to train artificial networks in some works from the relevant literature [49,50,51]. The steps of the genetic algorithm used in the second step of the proposed method are as follows:
  • Initialization step.
    (a)
    Set as N c , the number of chromosomes that will participate.
    (b)
    Set as N g , the maximum number of allowed generations.
    (c)
    Set as p m , the mutation rate.
    (d)
    Set as p s , the selection rate.
    (e)
    Set ϵ , a small positive number, i.e., ϵ = 10 8 .
    (f)
    Randomly initialize the chromosomes g i ,   i = 1 , , N c . For the case of neural networks, every element of each chromosome is considered as a double precision number. Additionally, the size of each chromosome is ( d + 2 ) × H .
    (g)
    Set iter = 0
  • Check for termination.
    (a)
    Obtain the best fitness
    f * = min i 0 , , N f i
    (b)
    Terminate if iter N g OR f * ϵ
  • Calculate fitness.
    (a)
    For i = 1 , , N c do
    i.
    Create a neural network using the chromosome g i as a parameter vector.
    ii.
    Calculate the fitness value f i = f g i using Equation (4).
    (b)
    EndFor
  • Application of genetic operators.
    (a)
    Selection operation. During selection, the chromosomes are classified according to their fitness. The first p s × N c are copied without changes to the next generation of the population. The rest will be replaced by chromosomes that will be produced at the crossover.
    (b)
    Crossover operation. In the crossover operation, p s × N c chromosomes are produced. For every couple of produced offspring, two parents ( z , w ) are selected using tournament selection. For every pair ( z , w ) of parents, two offspring z ˜ and w ˜ are produced according to the following equations:
    z i ˜ = a i z i + 1 a i w i w i ˜ = a i w i + 1 a i z i
    where a i is a random number with the property a i [ 0.5 , 1.5 ] [52].
    (c)
    Mutation operation. For each element of every chromosome, a random number r 0 , 1 is produced, and the element is altered if r p m .
    (d)
    Set iter = iter + 1.
  • Goto step 2.

3. Experimental Results

The data were freely available from the https://ourworldindata.org/explorers/coronavirus-data-explorer (accessed on 10 September 2022), and were downloaded for the start of the pandemic until 10 September 2022. To enable the machine-learning models to better fit the data, the following fair normalization took place in every dataset.
  • The number of cases was divided by 10 5 .
  • The number of deaths was divided by 10 3 .
The following countries were selected for testing: Algeria, Argentina, Australia, Brazil, Bulgaria, Canada, Germany, Greece, Egypt, and Japan. For every country, two distinct datasets were obtained from the COVID-19 database, one dataset for the number of cases on every day of the pandemic and one dataset for the number of deaths on every day of the pandemic. Every run was executed 30 times for every dataset, and averages were measured. The random-number generator used was the drand48() of the C programming language. The parameters for the proposed method are listed in Table 2. The results for the COVID-19 cases are shown in the Table 3, and the results for the COVID-19 deaths are illustrated in Table 4. The columns in both tables have the following meaning:
  • The column COUNTRY contains the name of the country.
  • The column ADAM stands for the Adam optimization method [53] used to train a neural network with 10 processing nodes. The ADAM method is implemented in OptimLib, and it is available from https://github.com/kthohr/optim (accessed on 10 September 2022).
  • The column MLPPSO represents the results using a neural network trained with the help of Particle Swarm Optimization method [54,55]. The number of PSO particles was set to N c , and the maximum number of allowed iterations was set to N g . The values for thes parameters are shown in the Table 2. Additionally, the BFGS method [56] was applied to the best particle of the swarm when the PSO finished, in order to enhance the results.
  • The column MLPGEN stands for the results obtained by a neural network with ten processing units that was trained using a genetic algorithm [17,18]. The parameters for this algorithm are listed in the Table 2. Additionally, the BFGS was applied to the best chromosome after the termination of the genetic algorithm.
  • The column FC1 stands for the results obtained by the proposed method with one constructed feature N f = 1 .
  • The column FC2 stands for the results obtained by the proposed method with two constructed features N f = 2 .
  • The column FC3 stands for the results obtained by the proposed method with three constructed features N f = 3 .
Table 2. Experimental parameters.
Table 2. Experimental parameters.
ParameterValue
N c 500
N g 200
H10
p s 0.10
p m 0.05
ϵ 10 8
Table 3. Total test error for the prediction of COVID-19 cases.
Table 3. Total test error for the prediction of COVID-19 cases.
CountryADAMMLPPSOMLPGENFC1FC2FC3
Algeria0.310.080.2860.00250.00060.0002
Argentina178.6021.0369.203.210.810.91
Australia144.4620.3330.961.520.370.34
Brazil198.2681.9475.7911.938.976.50
Bulgaria4.011.292.670.0370.00980.01
Canada27.686.1220.650.330.200.15
Germany274.34135.1592.5025.0525.1114.36
Greece25.0712.089.253.621.602.75
Egypt0.240.130.440.0050.0290.003
Japan271.1195.5675.768.922.151.82
Average112.4137.3737.755.463.922.68
Table 4. Predicted deaths per country.
Table 4. Predicted deaths per country.
CountryADAMPSOGENMLPGENFC1FC2FC3
Algeria0.400.150.660.0090.0020.002
Argentina18.5019.7025.812.031.351.70
Australia1.690.441.000.050.030.03
Brazil416.54282.46230.5252.4216.7516.57
Bulgaria3.802.7616.500.150.100.08
Canada9.124.7818.120.270.150.15
Germany116.5637.0640.493.032.074.17
Greece3.292.972.860.740.080.07
Egypt2.570.798.880.070.030.02
Japan43.1022.0713.740.320.120.13
Average61.5637.3235.865.912.072.29
Additionally, in both tables, an additional row was added to indicate the average error and is denoted by AVERAGE. This extra column is graphically plotted in Figure 4 and Figure 5 for case predictions and deaths prediction, respectively.
From the execution of the above experiments, it is clear in principle that the efficiency of the methods depends to a great extent on the country in question. In some countries, the test error is high, and in others it’s quite low. This is probably due to the different courses of the number of cases and the mortality rate in each country. For example, if one looks at the experimental results for Brazil, one will find that all the methods present a relatively high error. This may be due to the large and abrupt changes that the disease has caused in this country, as shown in Figure 6, which shows the course of deaths in this country and is available from Johns Hopkins University. However, even in this country using the proposed methodology, there was a large reduction in approximation error of 90%.
Moreover, the proposed method has higher accuracy than the other techniques, even if only one artificial feature is created. In fact, in some countries, the test error of the proposed technique is so low that it is almost zero. Using more than one feature appears to drastically reduce the error, although the reduction appears to be more significant between one and two features and less when a third constructed feature is added. Additionally, the Adam method appears to achieve worse results than the PSO and the genetic algorithm methods, and this is expected since this method is a local optimization technique, while the PSO and the genetic algorithms are global optimization methods.
Additional experiments were performed to evaluate the parameters used in the proposed method. Figure 7 shows the average error of the proposed method with two constructed features for all experiment countries. In these experiments, a varying number of chromosomes was used from 100 to 1000. As expected, the proposed method reduces the average error as the number of chromosomes increases. This means, however, that the execution time of the method increases as well as the memory that will be needed to store the computational structures. Therefore, the value of 500 used in the proposed method for the number of chromosomes is a good compromise between the speed and efficiency of the proposed technique.
Regarding the number of generations of the genetic algorithm, similar experiments were carried out with this number between 50 and 400. The results of these experiments are shown in Figure 8. Again, increasing the number of generations seems to reduce the error, although the reduction is not as drastic as it was with the increase in chromosomes. Again, the choice of 200 made for the number of generations in the experiments appears to be a fair compromise.
The Wilcoxon signed-rank test was used to compare the total test error for the prediction of COVID-19 cases in different countries of the proposed method (FC1, FC2, and FC3) with the respective total test error for the ADAM, MLPPSO, and MLPGEN optimization methods. The results obtained through those statistical tests are shown in Figure 9. We also compared the average error in predicting deaths per country of the proposed method (FC1, FC2, and FC3) with the average error for ADAM, MLPPSO, and MLPGEN optimization methods using the Wilcoxon signed-rank test. The results obtained through those statistical tests are shown in Figure 10.

4. Conclusions

In this paper, the use of a feature-construction technique to predict the cases of COVID19 disease and to predict the mortality due to it was presented. The prediction was made on widely available data for 10 randomly selected countries. The proposed method constructs new features from existing ones using grammatical evolution and evaluates them using a radial basis network (RBF). After the evaluation, the best resulting features are used to train an artificial neural network. The results of the proposed methodology were compared with those of other artificial neural network training techniques, and in all cases there was a dramatic reduction in the network’s error for both case-number prediction and mortality prediction. Furthermore, the more artificial features that are created, the lower the neural network error. Future research should include the physical interpretation of the generated features in relation to the nature of the problem. Additionally, future improvements to the method may include:
  • The incorporation of more advanced stopping rules for the genetic algorithms of the two phases.
  • The usage of other machine-learning models instead of the RBF network, to evaluate the constructed features.
  • The usage of parallel techniques to speed up the feature-creation process.
  • The use of a data technique that will also contain the demographic characteristics of each country, in order to establish whether there is a correlation of the rate of cases or mortality with the particular characteristics of some countries.

Author Contributions

I.G.T., A.T.T. and D.T. conceived the idea and methodology and supervised the technical part regarding the software. I.G.T. conducted the experiments, employing several datasets, and provided the comparative experiments. A.T.T. performed the statistical analysis. D.T. and all other authors prepared the manuscript. D.T. and I.G.T. organized the research team and A.T.T. supervised the project. All authors have read and agreed to the published version of the manuscript.

Funding

We acknowledge support of this work from the project “Immersive Virtual, Augmented and Mixed Reality Center of Epirus” (MIS 5047221) which is implemented under the Action “Reinforcement of the Research and Innovation Infrastructure”, funded by the Operational Programme “Competitiveness, Entrepreneurship and Innovation” (NSRF 2014-2020) and co-financed by Greece and the European Union (European Regional Development Fund).

Data Availability Statement

Not applicable.

Acknowledgments

We acknowledge support of this work from the project “Immersive Virtual, Augmented and Mixed Reality Center of Epirus” (MIS 5047221) which is implemented under the Action “Reinforcement of the Research and Innovation Infrastructure”, funded by the Operational Programme “Competitiveness, Entrepreneurship and Innovation” (NSRF 2014-2020) and co-financed by Greece and the European Union (European Regional Development Fund).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Andersen, K.G.; Rambaut, A.; Lipkin, W.I.; Holmes, E.C.; Garry, R.F. The proximal origin of sars-cov-2. Nat. Med. 2020, 26, 450–452. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  2. Wang, L.; Li, J.; Guo, S.; Xie, N.; Yao, L.; Cao, Y.; Day, S.W.; Howard, S.C.; Gra, J.C.; Gu, T.; et al. Real-time estimation and prediction of mortality caused by covid-19 with patient information based algorithm. Sci. Total Environ. 2020, 727, 138394. [Google Scholar] [CrossRef] [PubMed]
  3. Tomar, A.; Gupta, N. Prediction for the spread of covid- 19 in india and eectiveness of preventive measures. Sci. Total Environ. 2020, 728, 138762. [Google Scholar] [CrossRef] [PubMed]
  4. Zhang, X.; Ma, R.; Wang, L. Predicting turning point, duration and attack rate of covid-19 outbreaks in major western countries. Chaos Solitons Fractals 2020, 135, 109829. [Google Scholar] [CrossRef] [PubMed]
  5. Pinter, G.; Felde, I.; Mosavi, A.; Ghamisi, P.; Gloaguen, R. COVID-19 pandemic prediction for hungary; a hybrid machine learning approach. Mathematic 2020, 8, 890. [Google Scholar]
  6. Smith, M.; Alvarez, F. Identifying mortality factors from machine learning using shapley values a case of covid19. Expert. Appl. 2021, 176, 114832. [Google Scholar] [CrossRef] [PubMed]
  7. Loey, M.; Manogaran, G.; Taha, M.H.N.; Khalifa, N.E.M. A hybrid deep transfer learning model with machine learning methods for face mask detection in the era of the covid-19 pandemic. Measurement 2021, 167, 108288. [Google Scholar] [CrossRef]
  8. Mundial, I.Q.; Ul Hassan, M.S.; Tiwana, M.I.; Qureshi, W.S.; Alanazi, E. Towards facial recognition problem in COVID-19 pandemic. In Proceedings of the 2020 4rd International Conference on Electrical, Telecommunication and Computer Engineering (ELTICOM), Medan, Indonesia, 3–4 September 2020; pp. 210–214. [Google Scholar]
  9. Gavrilis, D.; Tsoulos, I.G.; Dermatas, E. Selecting and constructing features using grammatical evolution. Pattern Recognit Lett. 2008, 29, 1358–1365. [Google Scholar]
  10. O’Neill, M.; Ryan, C. grammatical evolution. IEEE Trans. Evol. Comput. 2001, 5, 349–358. [Google Scholar] [CrossRef] [Green Version]
  11. Gavrilis, D.; Tsoulos, I.G.; Dermatas, E. Neural recognition and genetic features selection for robust detection of e-mail spam. In Hellenic Conference on Articial Intelligence; Springer: Berlin/Heidelberg, Germany, 2006; pp. 498–501. [Google Scholar]
  12. Georgoulas, G.; Gavrilis, D.; Tsoulos, I.G.; Stylios, C.; Bernardes, J.; Groumpos, P.P. Novel approach for fetal heart rate classication introducing grammatical evolution. Biomed. Signal Process. Control 2007, 2, 69–79. [Google Scholar] [CrossRef]
  13. Smart, O.; Tsoulos, I.G.; Gavrilis, D.; Georgoulas, G. Grammatical evolution for features of epileptic oscillations in clinical intracranial electroencephalograms. Expert Syst. Appl. 2011, 38, 9991–9999. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Tsoulos, I.G. QFC: A Parallel Software Tool for Feature Construction, Based on grammatical evolution. Algorithms 2022, 15, 295. [Google Scholar] [CrossRef]
  15. Bishop, C. Neural Networks for Pattern Recognition; Oxford University Press: Oxford, UK, 1995. [Google Scholar]
  16. Cybenko, G. Approximation by superpositions of a sigmoidal function. Math. Control. Signals Syst. 1989, 2, 303–314. [Google Scholar] [CrossRef]
  17. Goldberg, D. Genetic Algorithms in Search, Optimization and Machine Learning; Addison-Wesley Publishing Company: Reading, MA, USA, 1989. [Google Scholar]
  18. Michaelewicz, Z. Genetic Algorithms + Data Structures = Evolution Programs; Springer: Berlin, Germany, 1996. [Google Scholar]
  19. Ghosh, S.C.; Sinha, B.P.; Das, N. Channel assignment using genetic algorithm based on geometric symmetry. IEEE Trans. Veh. Technol. 2003, 52, 860–875. [Google Scholar] [CrossRef]
  20. Liu, Y.; Zhou, D. An Improved Genetic Algorithm with Initial Population Strategy for Symmetric TSP. Math. Probl. Eng. 2015, 2015, 212794. [Google Scholar]
  21. Han, S.; Barcaro, G.; Fortunelli, A.; Lysgaard, S.; Vegge, T.; Hansen, H.A. Unfolding the structural stability of nanoalloys via symmetry-constrained genetic algorithm and neural network potential. npj Comput. Mater. 2022, 8, 121. [Google Scholar] [CrossRef]
  22. Krippendorf, S.; Syvaeri, M. Detecting symmetries with neural networks. Mach. Learn. Sci. Technol. 2020, 2, 015010. [Google Scholar] [CrossRef]
  23. Qiao, Z.; Welborn, M.; Anandkumar, A.; Manby, F.R.; Miller, T.F., III. OrbNet: Deep learning for quantum chemistry using symmetry-adapted atomic-orbital features. J. Chem. Phys. 2020, 153, 124111. [Google Scholar] [CrossRef]
  24. Xi, B.; Tse, K.F.; Kok, T.F.; Chan, H.M.; Chan, H.M.; Chan, M.K.; Chan, H.Y.; Wong, K.Y.C.; Yuen, S.H.R.; Zhu, J. Machine-Learning-Assisted Acceleration on High-Symmetry Materials Search: Space Group Predictions from Band Structures. J. Phys. Chem. C 2022, 126, 12264–12273. [Google Scholar] [CrossRef]
  25. Selvaratnam, B.; Koodali, R.T.; Miró, P. Application of Symmetry Functions to Large Chemical Spaces Using a Convolutional Neural Network. J. Chem. Inf. Model. 2020, 60, 1928–1935. [Google Scholar] [CrossRef] [PubMed]
  26. Wang, Z.; Wang, C.; Zhao, S.; Du, S.; Xu, Y.; Gu, B.L.; Duan, W. Symmetry-adapted graph neural networks for constructing molecular dynamics force fields. Sci. China Phys. Mech. Astron. 2021, 64, 117211. [Google Scholar] [CrossRef]
  27. Tuan, N.H.; Mohammadi, H.; Rezapour, S. A mathematical model for COVID-19 transmission by using the Caputo fractional derivative. Chaos Solitons Fractals 2020, 140, 110107. [Google Scholar] [CrossRef] [PubMed]
  28. Panwar, V.S.; Uduman, P.S.; Gómez-Aguilar, J.F. Mathematical modeling of coronavirus disease COVID-19 dynamics using CF and ABC non-singular fractional derivatives. Chaos Solitons Fractals 2021, 145, 110757. [Google Scholar] [CrossRef]
  29. Shaikh, A.S.; Shaikh, I.N.; Nisar, K.S. A mathematical model of COVID-19 using fractional derivative: Outbreak in India with dynamics of transmission and control. Adv. Differ. Equ. 2020, 373. [Google Scholar] [CrossRef] [PubMed]
  30. Huzaifa, E.; Khan, A.; Shah, M.; Khan, M. Taylor Series Expansion Method To Compute Approximate Solution for Nonlinear Dynamical System. J. Fract. Calc. Nonlinear Syst. 2022, 3, 20–29. [Google Scholar] [CrossRef]
  31. Park, J.; Sandberg, I.W. Universal Approximation Using Radial-Basis-Function Networks. Neural Comput. 1991, 3, 246–257. [Google Scholar] [CrossRef] [PubMed]
  32. Backus, J.W. The Syntax and Semantics of the Proposed International Algebraic Language of the Zurich ACM-GAMM Conference. In Proceedings of the International Conference on Information Processing, UNESCO, Paris, France, 15–20 June 1959; pp. 125–132. [Google Scholar]
  33. Ryan, C.; Collins, J.; O’Neill, M. grammatical evolution: Evolving programs for an arbitrary language. In Genetic Programming. EuroGP 1998; Lecture Notes in Computer Science; Banzhaf, W., Poli, R., Schoenauer, M., Fogarty, T.C., Eds.; Springer: Berlin/Heidelberg, Germany, 1998; Volume 1391. [Google Scholar]
  34. O’Neill, M.; Ryan, M.C. Evolving Multi-line Compilable C Programs. In Genetic Programming. EuroGP 1999; Lecture Notes in Computer Science; Poli, R., Nordin, P., Langdon, W.B., Fogarty, T.C., Eds.; Springer: Berlin/Heidelberg, Germany, 1999; Volume 1598. [Google Scholar]
  35. Ryan, C.; O’Neill, M.; Collins, J.J. Grammatical evolution: Solving trigonometric identities. In Proceedings of the Mendel, 4th International Mendel Conference on Genetic Algorithms, Optimization Problems, Fuzzy Logic, Neural Networks, Rough Sets, Brno, Czech Republic, 24–26 June 1998. [Google Scholar]
  36. Puente, A.O.; Alfonso, R.S.; Moreno, M.A. Automatic composition of music by means of grammatical evolution. In Proceedings of the 2002 Conference on APL: Array Processing Languages: Lore, Problems, and Applications (APL ′02), Madrid, Spain, 22–25 July 2002; pp. 148–155. [Google Scholar]
  37. De Campos, L.M.L.; de Oliveira, R.C.L.; Roisenberg, M. Optimization of neural networks through grammatical evolution and a genetic algorithm. Expert Syst. Appl. 2016, 56, 368–384. [Google Scholar] [CrossRef]
  38. Soltanian, K.; Ebnenasir, A.; Afsharchi, M. Modular grammatical evolution for the Generation of Artificial Neural Networks. Evol. Comput. 2022, 30, 291–327. [Google Scholar] [CrossRef]
  39. Dempsey, I.; O’ Neill, M.; Brabazon, A. Constant creation in grammatical evolution. Int. J. Innov. Appl. 2007, 1, 23–38. [Google Scholar] [CrossRef]
  40. Galván-López, E.; Swafford, J.M.; O’Neill, M.; Brabazon, A. Evolving a Ms. PacMan Controller Using grammatical evolution. In Applications of Evolutionary Computation. EvoApplications 2010; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2010; Volume 6024. [Google Scholar]
  41. Shaker, N.; Nicolau, M.; Yannakakis, G.N.; Togelius, J.; O’Neill, M. Evolving levels for Super Mario Bros using grammatical evolution. In Proceedings of the 2012 IEEE Conference on Computational Intelligence and Games (CIG), Granada, Spain, 11–14 September 2012; pp. 304–331. [Google Scholar]
  42. Martínez-Rodríguez, D.; Colmenar, J.M.; Hidalgo, J.I.; Villanueva Micó, R.J.; Salcedo-Sanz, S. Particle swarm grammatical evolution for energy demand estimation. Energy Sci. Eng. 2020, 8, 1068–1079. [Google Scholar] [CrossRef]
  43. Sabar, N.R.; Ayob, M.; Kendall, G.; Qu, R. Grammatical Evolution Hyper-Heuristic for Combinatorial Optimization Problems. IEEE Trans Evol. Comput. 2013, 17, 840–861. [Google Scholar] [CrossRef] [Green Version]
  44. Ryan, C.; Kshirsagar, M.G.; Vaidya, G.; Cunningham, A.; Sivaraman, R. Design of a cryptographically secure pseudo random number generator with grammatical evolution. Sci. Rep. 2022, 12, 8602. [Google Scholar] [CrossRef] [PubMed]
  45. Tsoulos, I.G.; Gavrilis, D.; Glavas, E. Neural network construction and training using grammatical evolution. Neurocomputing 2008, 72, 269–277. [Google Scholar] [CrossRef]
  46. Haupt, R.L. An introduction to genetic algorithms for electromagnetics. Antennas Propag. Mag. 1995, 37, 7–15. [Google Scholar] [CrossRef] [Green Version]
  47. Grefenstette, J.J.; Gopal, R.; Rosmaita, B.J.; Van Gucht, D. Genetic Algorithms for the Traveling Salesman Problem. In Proceedings of the 1st International Conference on Genetic Algorithms, Pittsburgh, PA, USA, 24–26 July 1985; pp. 160–168. [Google Scholar]
  48. Savic, D.A.; Walters, G.A. Genetic Algorithms for Least-Cost Design of Water Distribution Networks. J. Water Resources Plan. Manag. 1997, 123, 67–77. [Google Scholar] [CrossRef]
  49. Leung, F.H.F.; Lam, H.K.; Ling, S.H.; Tam, P.K.S. Tuning of the structure and parameters of a neural network using an improved genetic algorithm. IEEE Trans. Neural Netw. 2003, 14, 79–88. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  50. Sedki, A.; Ouazar, D.; El Mazoudi, E. Evolving neural network using real coded genetic algorithm for daily rainfall–runoff forecasting. Expert Syst. Appl. 2009, 36, 4523–4527. [Google Scholar] [CrossRef]
  51. Majdi, A.; Beiki, M. Evolving neural network using a genetic algorithm for predicting the deformation modulus of rock masses. Int. J. Rock Mech. Min. Sci. 2010, 47, 246–253. [Google Scholar] [CrossRef]
  52. Kaelo, P.; Ali, M.M. Integrated crossover rules in real coded genetic algorithms. Eur. J. Oper. 2007, 176, 60–76. [Google Scholar] [CrossRef]
  53. Kingma, D.P.; Ba, J.L. ADAM: A method for stochastic optimization. In Proceedings of the 3rd International Conference on Learning Representations (ICLR 2015), San Diego, CA, USA, 7–9 May 2015; pp. 1–15. [Google Scholar]
  54. Kennedy, J.; Eberhart, R.C. The particle swarm: Social adaptation in information processing systems. In New Ideas in Optimization; Corne, D., Dorigo, M., Glover, F., Eds.; McGraw-Hill: Cambridge, UK, 1999; pp. 11–32. [Google Scholar]
  55. Marini, F.; Walczak, B. Particle swarm optimization (PSO). A tutorial. Chemom. Intell. Lab. Syst. 2015, 149, 153–165. [Google Scholar] [CrossRef]
  56. Powell, M.J.D. A Tolerant Algorithm for Linearly Constrained Optimization Calculations. Math. Program. 1989, 45, 547–566. [Google Scholar] [CrossRef]
Figure 1. Flowchart of the proposed algorithm.
Figure 1. Flowchart of the proposed algorithm.
Symmetry 14 02149 g001
Figure 2. The grammar of the proposed method.
Figure 2. The grammar of the proposed method.
Symmetry 14 02149 g002
Figure 3. An example of one-point crossover. A randomly selected point is chosen, and the two subparts of the parents are exchanged.
Figure 3. An example of one-point crossover. A randomly selected point is chosen, and the two subparts of the parents are exchanged.
Symmetry 14 02149 g003
Figure 4. Graphical representation of average error for predicting COVID-19 cases.
Figure 4. Graphical representation of average error for predicting COVID-19 cases.
Symmetry 14 02149 g004
Figure 5. Graphical representation of average error for predicting COVID-19 deaths.
Figure 5. Graphical representation of average error for predicting COVID-19 deaths.
Symmetry 14 02149 g005
Figure 6. The daily confirmed deaths for Brazil, available from John Hopkins University.
Figure 6. The daily confirmed deaths for Brazil, available from John Hopkins University.
Symmetry 14 02149 g006
Figure 7. Average test error for COVID-19 cases and deaths for different numbers of chromosomes and two constructed features.
Figure 7. Average test error for COVID-19 cases and deaths for different numbers of chromosomes and two constructed features.
Symmetry 14 02149 g007
Figure 8. Average test error for COVID-19 cases and deaths for different numbers of generations and two constructed features.
Figure 8. Average test error for COVID-19 cases and deaths for different numbers of generations and two constructed features.
Symmetry 14 02149 g008
Figure 9. Box plot comparing the total test error for predicting COVID-19 cases among the optimization methods of different countries.
Figure 9. Box plot comparing the total test error for predicting COVID-19 cases among the optimization methods of different countries.
Symmetry 14 02149 g009
Figure 10. Box plot comparing the average error in predicting deaths per country among the optimization methods.
Figure 10. Box plot comparing the average error in predicting deaths per country among the optimization methods.
Symmetry 14 02149 g010
Table 1. Steps to produce a valid expression from the BNF grammar.
Table 1. Steps to produce a valid expression from the BNF grammar.
StringChromosomeOperation
<expr>9,8,6,4,16,10,17,23,8,14 9 mod   3 = 0
(<expr><op><expr>)8,6,4,16,10,17,23,8,14 8 mod   3 = 2
(<terminal><op><expr>)6,4,16,10,17,23,8,14 6 mod   2 = 0
(<xlist><op><expr>)4,16,10,17,23,8,14 4 mod   3 = 1
(x2<op><expr>)16,10,17,23,8,14 16 mod   4 = 0
(x2+<expr>)10,17,23,8,14 10 mod   3 = 1
(x2+<func>(<expr>))17,23,8,14 17 mod   4 = 1
(x2+cos(<expr>))23,8,14 23 mod   2 = 1
(x2+cos(<terminal>))8,14 8 mod   2 = 0
(x2+cos(<xlist>))14 14 mod   3 = 2
(x2+cos(x3))
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Tsoulos, I.G.; Tzallas, A.T.; Tsalikakis, D. Prediction of COVID-19 Cases Using Constructed Features by Grammatical Evolution. Symmetry 2022, 14, 2149. https://doi.org/10.3390/sym14102149

AMA Style

Tsoulos IG, Tzallas AT, Tsalikakis D. Prediction of COVID-19 Cases Using Constructed Features by Grammatical Evolution. Symmetry. 2022; 14(10):2149. https://doi.org/10.3390/sym14102149

Chicago/Turabian Style

Tsoulos, Ioannis G., Alexandros T. Tzallas, and Dimitrios Tsalikakis. 2022. "Prediction of COVID-19 Cases Using Constructed Features by Grammatical Evolution" Symmetry 14, no. 10: 2149. https://doi.org/10.3390/sym14102149

APA Style

Tsoulos, I. G., Tzallas, A. T., & Tsalikakis, D. (2022). Prediction of COVID-19 Cases Using Constructed Features by Grammatical Evolution. Symmetry, 14(10), 2149. https://doi.org/10.3390/sym14102149

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop