Next Article in Journal
An Improved Clustering Algorithm for Multi-Density Data
Next Article in Special Issue
A Fractional COVID-19 Model with Efficacy of Vaccination
Previous Article in Journal
Near-Field Seismic Motion: Waves, Deformations and Seismic Moment
Previous Article in Special Issue
Stability Analysis of Delayed COVID-19 Models
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design of Type-3 Fuzzy Systems and Ensemble Neural Networks for COVID-19 Time Series Prediction Using a Firefly Algorithm

1
Tijuana Institute of Technology, TecNM, Tijuana 22414, Mexico
2
School of Engineering, UABC University, Tijuana 22390, Mexico
*
Author to whom correspondence should be addressed.
Axioms 2022, 11(8), 410; https://doi.org/10.3390/axioms11080410
Submission received: 20 July 2022 / Revised: 9 August 2022 / Accepted: 11 August 2022 / Published: 17 August 2022
(This article belongs to the Special Issue Mathematics of the COVID-19)

Abstract

:
In this work, information on COVID-19 confirmed cases is utilized as a dataset to perform time series predictions. We propose the design of ensemble neural networks (ENNs) and type-3 fuzzy inference systems (FISs) for predicting COVID-19 data. The answers for each ENN module are combined using weights provided by the type-3 FIS, in which the ENN is also designed using the firefly algorithm (FA) optimization technique. The proposed method, called ENNT3FL-FA, is applied to the COVID-19 data for confirmed cases from 12 countries. The COVID-19 data have shown to be a complex time series due to unstable behavior in certain periods of time. For example, it is unknown when a new wave will exist and how it will affect each country due to the increase in cases due to many factors. The proposed method seeks mainly to find the number of modules of the ENN and the best possible parameters, such as lower scale and lower lag of the type-3 FIS. Each module of the ENN produces an individual prediction. Each prediction error is an input for the type-3 FIS; moreover, outputs provide a weight for each prediction, and then the final prediction can be calculated. The type-3 fuzzy weighted average (FWA) integration method is compared with the type-2 FWA to verify its ability to predict future confirmed cases by using two data periods. The achieved results show how the proposed method allows better results for the real prediction of 20 future days for most of the countries used in this study, especially when the number of data points increases. In countries such as Germany, India, Italy, Mexico, Poland, Spain, the United Kingdom, and the United States of America, on average, the proposed ENNT3FL-FA achieves a better performance for the prediction of future days for both data points. The proposed method proves to be more stable with complex time series to predict future information such as the one utilized in this study. Intelligence techniques and their combination in the proposed method are recommended for time series with many data points.

1. Introduction

The COVID-19 pandemic has had worldwide effects since its origin. The number of confirmed cases worldwide has increased, especially in the different waves that each country has experienced. Studies regarding this disease and its repercussions have not ceased since it emerged, which has led to various publications focused on who the people at risk of developing severe COVID-19 are [1,2], the consequences seen in people who were infected with this disease, and the prediction of future cases in order to formulate measures to mitigate the increase in cases [3]. The possibility of developing severe COVID-19 depending on whether a person has other illnesses or is a pregnant woman has been studied [4,5], and the use of drugs and their effects have also been widely studied [1,6]. There is a significant number of models that have been successfully applied to the prediction and detection of COVID-19 cases. Among these models are those based on the statistics and neural networks applied to time series and human body images [7,8]. In this work, a combination of three techniques is developed: ensemble neural networks, type-3 fuzzy logic, and a firefly algorithm. Each of these intelligence techniques has been successfully applied in different applications, and now they are combined to predict confirmed COVID-19 cases.
The main contribution of this work consists of a hybrid approach combining neural networks in an ensemble as well as interval type-3 fuzzy systems for achieving the aggregation of the outputs of the ensemble. In addition, the firefly algorithm is utilized to automate the design of the ensemble and the interval type-3 fuzzy system. We have to mention that there is no previous work in the literature combining ensembles of neural networks with interval type-3 fuzzy systems and optimizing them with the firefly algorithm, which is an indication of the novelty of the proposed ENNT3FL-FA. Finally, the application of the hybrid approach for COVID-19 prediction is also important because of the real-world implications of the pandemic.
The structure of this paper is as follows. A literature review is presented in Section 2. Brief descriptions of the techniques applied to develop the proposed method are presented in Section 3. The description of the proposed method is shown in Section 4. The experimental results achieved are explained in Section 5. The statistical tests are presented in Section 6. The conclusions are presented in Section 7.

2. Literature Review

Some of the models used for predicting COVID-19 cases are statistical models. In [8], a global prediction of confirmed and recovered cases was proposed using different models based on statistical methodology. The authors used a model selection criterion, where the results are better than those achieved with the standard Gaussian autoregressive time series model. In [9], a Bose–Einstein (BE)-based statistical model for predictions of 14 days was proposed using COVID-19 confirmed case data from New York and DKI Jakarta (Indonesia). The authors wanted to provide the necessary information to decide on the social restrictions that should be used to contain the pandemic. Statistical models such as the generalized Waring regression model were proposed in [10] to predict confirmed COVID-19 cases in Senegal. The authors concluded that this model could consider other factors that affect the number of COVID-19 cases, achieving better results than other count regression models.
Intelligence techniques have also proven to play an important role in facing the COVID-19 pandemic. In [11], a comparison of three predictive models based on artificial neural networks was proposed to predict 10 days of confirmed COVID-19 cases and deaths, using information from 03/11/2020 to 01/23/2021. The achieved results show the effectiveness of this intelligence technique in predicting COVID-19 cases. A method using recurrent and convolutional neural networks to predict confirmed COVID-19 cases was proposed in [12]. The model was applied to the seven most affected states in India, and the results demonstrated that hybridization with convolutional neural networks has a better performance than other proposed hybridizations. In [13], an improvement to the grey wolf optimizer to accelerate convergence by using gradient information was proposed to predict COVID-19 cases in the United States of America. The authors applied a Gaussian walk and Lévy flight to improve the exploration and exploitation to avoid trapping in local optima. An improvement of a long short-term memory network was proposed in [14], where the authors show the behavior of the proposed method with a chaotic time series of COVID-19. They demonstrated the effectiveness of their proposed method for COVID-19 cases in Vietnam. Ensemble neural networks (ENNs), an improvement of conventional neural networks, are a useful technique applied to predict future information based on a data period learned by the modules of the ENNs [15,16,17,18]. This improvement of conventional neural networks has also been applied to analyze images to detect COVID-19 infections. In [19], an ensemble deep neural network architecture to detect COVID-19 infections from chest computed tomography (CT) images was proposed. The authors proposed different architectures and developed a localhost application to perform a diagnosis automatically. In [20], a hybrid system was proposed, where a deep neural network ensemble using pre-trained models (VGG, Xception, and ResNet) and using a genetic algorithm to combine an ensemble architecture was used to perform the classification of clustered images of lung lobes. In [21], an ensemble deep learning model was also proposed to predict COVID-19 infection using chest X-ray images. The authors applied different deep learning models, which indicated that a final combination of an ensemble model can provide better results than individual models. Most previously mentioned works focused on predicting a few future days only in a specific country or in a global prediction.
In a previous work [22], ensemble neural networks were implemented to predict COVID-19 cases, and the ENN architectures were designed using a firefly algorithm. To obtain a final prediction, a comparison among the average, type-1, and type-2 FWA integration methods was performed. The achieved results showed a better performance using the type-2 FWA. Type-3 fuzzy logic has been applied to complex problems where it is combined with other techniques, such as learning algorithms for optimization techniques [23,24]. In [25], a deep learning model with type-3 fuzzy logic to produce forecasting of renewable energies was proposed. For this reason, in this work, a type-3 FWA is proposed to compare with a type-2 FWA and to predict 20 future days (from 03/30/2022 to 04/18/2022). The proposed method is tested using confirmed cases from 12 countries: Brazil, China, France, Germany, India, Iran, Mexico, Italy, Spain, Poland, the United States of America, and the United Kingdom. Different from the previous literature, the main contribution presented in this work is the use of type-3 fuzzy logic to combine responses produced by ENNs. In addition, the type-3 fuzzy inference systems (FISs), as well as the ENNs, are optimally designed by using a firefly algorithm, which has not been previously presented in the literature.

3. Intelligence Techniques

The intelligence techniques applied to develop the proposed method are briefly described in this section.

3.1. Artificial Neural Networks

Human beings have many abilities that stand out from other living beings. Among these skills, we have the ability to learn and recognize. These tasks are performed by the human brain, which recognizes and learns complex problems. These processes can be defined as follows: Information is collected using the human senses (for example, sight), and this information is sent to previously trained neurons. The neurons react to the information providing activations. The next step consists of recognizing shapes, for example, letters or numbers [26,27]. These processes described are mimicked by a technique used in artificial intelligence called artificial neural networks (ANNs). This technique is based on the biological neural networks which compose the human brain trying to make a decision as a human would. To mimic the human brain, ANNs are mainly composed of layers: input, hidden, and output layers, with interconnected units called neurons. The ANNs can simulate complex problems by adjusting parameters as the weights, which during the learning process, store knowledge [28,29,30]. In Figure 1, the illustration of an ANN is presented where the propagation of the information up to the last layer is performed, because the neurons of each layer (input or hidden) are fully connected to the neurons of the next layer [31,32].
An improvement to an individual ANN is to create an ensemble neural network. Ensemble neural networks (ENNs) are composed of several artificial neural networks that learn the same information, creating individual experts in the same task. Each neural network provides results that can be different from each other [17]. A final result is achieved with the answers provided by the neural networks by combining them using an integration technique. In this work, this kind of ANN is applied to obtain an individual prediction, which is then combined with a unit integration to achieve a final prediction [16,18]. In Figure 2, an example of an ENN with three neural networks (modules) is shown.

3.2. Type-3 Fuzzy Logic

In [33], L.A. Zadeh proposed another useful intelligence technique applied to model complex problems: type-1 fuzzy logic (FL), which has a membership as a crisp number in [0, 1]; thus, an element partially belongs with a membership grade to a set. Type-2 FL is proposed in [34], where an element does not have a crisp number between 0 and 1 as in the type-1 FL. In type-2 FL [35,36,37], the membership function (MF) of an element is defined by a fuzzy set (FS) in [0, 1]. A type-2 FS can be defined as:
à = { ( ( x , u ) ,   µ à ( x , u ) )   |   x X   ,     u     J x   [ 0 ,   1 ] ,   µ à   ( x ,   u ) [ 0 ,   1 ] }
where X represents the domain of the fuzzy variable. In this case, there is a primary and a secondary membership. The first one is defined by J x   [ 0 ,   1 ] , and the second is a type-1 FS defined by µ Ã ( x , u ) . The footprint of uncertainty (FOU) is an uncertainty region. If µ Ã ( x , u ) = 1, u     J x   [ 0 ,   1 ] , there is an interval type-2 MF as in Figure 3, where there is a uniform shading of the FOU with its upper µ ¯ Ã ( x ) and lower µ _ Ã ( x ) MF [38]. An interval type-2 FS is defined as:
à = { ( ( x , u ) , 1 ) | x   X ,       u     J x   [ 0 ,   1 ] }
A type-3 fuzzy set (T3 FS) [39,40], denoted as A ( 3 ) , is represented by a trivariate function, called the MF of A ( 3 ) , in the cartesian product (Equation (3)), where X is the universe for the primary variable of A ( 3 ) , x . The MF of µ A ( 3 ) is denoted by µ A ( 3 ) ( x , u , v ) , and is a type-3 MF of the T3 FS:
µ A ( 3 ) :   X × [ 0 ,   1 ] × [ 0 ,   1 ] [ 0 ,   1 ]
A ( 3 ) = { ( x , u ( x ) , v ( x , u ) ,   µ A ( 3 ) ( x , u , v ) )   | x X ,   u U [ 0 ,   1 ] , v V [ 0 ,   1 ] }
where for secondary variable u its universe is U, and V for tertiary variable v. A Gaussian interval type-3 MF µ ˜ A ( x , u ) = ScaleGaussScaleGaussIT3MF with Gaussian F O U ( A ) has parameters [ σ , m ] for the upper membership function (UMF), and for the lower membership function (LMF), λ (lower scale) and (lower lag), to form the domain of uncertainty D O U = [ µ _ ( x ) , µ ¯ ( x ) ] . This membership function is represented as:
µ ˜ A ( x , u ) =   ScaleGaussScaleGaussIT3MF   ( x , { { [ σ , m ] } ,   λ ,   } )
The vertical cuts A ( x ) ( u ) characterize the F O U ( A ) ; these are an IT2 FS with a Gaussian IT2 MF, µ A ( x ) ( u ) with parameters [ σ u , m ( x ) ] for the UMF, and for LMF, λ (lower scale) and (lower lag). This interval type-3 MF is described as:
u ¯ ( x ) = e x p [ 1 2 ( x m σ ) 2 ]
u _ ( x ) = λ   ·   e x p [ 1 2 ( x m σ * ) 2 ]
where σ * = σ   ln ( ) ln ( ε ) , and ε is an epsilon. If = 0 , σ * = σ . Then, u ¯ ( x ) and u _ ( x ) are the upper and lower DOU. The range, δ ( u ) , and radio, σ u , of the FOU are:
δ ( u ) = u ¯ ( x ) u _ ( x )
σ u = δ ( u ) 2 3 + ε
The mean, m ( x ) , of the IT3 MF µ ˜ ( x , u ) is defined by Equation (10):
m ( x ) = e x p [ 1 2 ( x m ρ ) 2 ]
where ρ = ( σ + σ * ) / 2 . Then, the vertical cuts with the IT2 MF, µ A ( x ) ( u ) = [   µ _ A ( x ) ( u ) , µ ¯ A ( x ) ( u ) ] , are described for Equations (11) and (12):
µ ¯ A ( x ) ( u ) = e x p [ 1 2 ( u u ( x ) σ u ) 2 ]
µ _ A ( x ) ( u ) = λ   ·   e x p [ 1 2 ( u u ( x ) σ u * ) 2 ]
where σ u * = σ u   ln ( ) ln ( ε ) . If = 0 , then σ u * = σ u . Then, µ ¯ A ( x ) ( u ) and µ _ A ( x ) ( u ) are the UMF and LMF of the vertical cuts with the IT2 FS of the secondary IT2 MF of the IT3 FS [41]. A visualization of this IT3 MF is shown in Figure 4.

3.3. Firefly Algorithm

The firefly algorithm (FA) was proposed by Xin-She Yang in [42]. The algorithm is based on the behavior and flashing produced by fireflies. The development of this algorithm is mainly based on three principles: (1) The fireflies do not have sex, which means they are unisex, which allows attraction to any other firefly. (2) The attractiveness of a firefly determines its brightness. The evaluation of a firefly mate includes that the firefly with less brightness is moved in the direction of the other brighter one. Their movement is random if both have the same brightness. (3) The brightness of each firefly is established by the fitness function. In [43], the variation of attractiveness β using the distance r is proposed, calculated by:
β = β 0 e γ r 2
The attractiveness at r = 0 is determined by β 0 . The movement in the next iteration of a firefly i to the brighter one j is calculated by:
x i t + 1 = x i t + β 0 e γ r i j 2 ( x j t x i t ) + α t ε i t
where xi represents a firefly i in the iteration t. The attractiveness of a mate in a group of fireflies is represented with β 0 e γ r i j 2 ( x j t x i t ) , and ε i t is a vector. This vector contains random numbers, α t , which determine a randomization parameter. The initial randomness scaling factor is given by:
α t = α t δ t
where δ is a value [0, 1]. In this work, a random array is implemented to avoid the local minimum; this allows the movement of fireflies to avoid stagnation.

4. Proposed Method

The implementation of the proposed method and dataset are described in this section.

4.1. Proposed Method Description

The proposed method designs ENNs for a time series prediction, where each individual neural network provides a prediction for the testing set and 20 future days. The set of predictions is combined using a type-3 FIS to establish a weight for each prediction, and thus, obtain a final prediction. An FA is applied to design the architecture and parameters of the ENNs and the FIS. The proposed ENNT3FL-FA is shown in Figure 5. The design of each ENN consists of mainly finding the number of modules (ANNs); this task is developed by the FA, which can search from 1 to “m” modules, and each prediction is combined using a type-3 FIS. The firefly algorithm also optimizes the type-3 fuzzy inference system.

4.1.1. Description of the ENN

For the ENN establishment, three kinds of ANNs, including function fitting [44], feedforward [45,46], and cascade-forward [47,48] neural networks, can be chosen. Each ENN can be designed using from 1 to “m” neural networks (modules), and this value is established using the FA. In the learning phase, a backpropagation algorithm widely applied to times-series predictions is used: the Levenberg–Marquardt (LM) algorithm, with three feedback delays [22,49]. The calculation of the prediction error of the module k, where k = {1, 2, 3, …, m}, is given by:
M S E k = 1 N i = 1 N ( y i y ^ k i ) 2
where the real prediction in the time i is represented by y i . The prediction in the same time provided by the neural network k is represented by y ^ k i . The number of data points is represented by N.
The ENN design consists mainly of the number (m), and the type of ANN to form the ENN. For each neural network, the goal error, number of hidden layers, and neurons are also sought by the firefly algorithm.

4.1.2. Description of the Type-3 FWA Integration

The prediction error of each ANN is used to obtain a weight to finally produce a final prediction. The weights used to achieve a final prediction are obtained using a Sugeno type-3 FIS model. The design of this FIS is established in two parts: The first one is developed depending on the number of neural networks of the ENN, where the value of “m” (modules or ANNs) determines the input and output number of the FIS. The ranges of each fuzzy input variable, sigma, and mean of three Gaussian type-3 MFs (“low”, “medium”, and “high”) depend on the individual prediction error (MSE). The second part of designing the FIS is determined by the FA, which establishes the values of lower scale and lower lag of the Gaussian type-3 membership functions. In Figure 6, an example of the Sugeno type-3 FIS model is presented.
As was previously mentioned, the ranges of the input variables depend on the error prediction (MSE) achieved by each module (normalized value between 0 and 1). That means that for each ENN, a type-3 FIS is designed. The minimal ( R min ) and maximal ( R max ) values given by Equations (17) and (18) allow us to define the range of the input variables.
R min = min ( M S E 1 , M S E 2 , M S E 3 , , M S E m )
R max = max ( M S E 1 , M S E 2 , M S E 3 , , M S E m )
An example of a type-3 fuzzy input variable is shown in Figure 7. As previously mentioned, a Gaussian type-3 membership function has four values: sigma ( σ ), mean ( m ), lower scale ( λ ), and lower lag ( ). The difference between R min and R max must be calculated by Equation (19) to determine the sigma and mean values. The sigma value and means of the three membership functions are given by Equations (20)–(23). The constant values of the fuzzy output variables are established by the FA.
R d i f = R m a x R m i n
σ = R dif 0.2
m 1   = R min
m 2   = ( R dif 2 )
m 3   = R max
Another essential element of an FIS is its fuzzy if-then rules, which allow combining all the predictions based on their errors. In this work, the total number of rules is calculated by Equation (24), where each fuzzy variable has three membership functions.
F R = 3 m
where m is the number of fuzzy input variables. An example with an ENN with three modules (m = 3) is shown in Table 1.
The type-3 FIS has as inputs the MSE values of each module and, as outputs, the weights corresponding to each prediction. These weights are used with the corresponding prediction to calculate a final prediction using the equation:
P = w 1 y ^ 1 + w 2 y ^ 2 + + w m y ^ m w 1 + w 2 + + w m
where w1 is the weight for the prediction obtained by ANN #1, w2 is the weight for the prediction obtained by ANN #2, and so on up to wm, which is the weight of the prediction obtained by ANN m, y ^ 1 is the prediction of ANN #1, y ^ 2 is the prediction of ANN #2, and so on up to y ^ m, which is the prediction of ANN (module) m.
The values used by the firefly algorithm as the search space to design the ENN and FIS are shown in Table 2. The search space for the ensemble neural network is established based on previous works applied to time series predictions [15,22].
For each experiment, the firefly algorithm is established with the parameters based on [22,50]. The settings for the FA are 10 fireflies, an alpha (α) with a value of 0.01, a beta (β) with a value of 1, a delta (δ) with a value of 0.97, and 30 maximum iterations. In Figure 8, the flowchart of the optimization technique is illustrated.
The firefly algorithm has as its objective the minimization of error of the final prediction achieved by the ENN, and the objective function is given by:
f = 1 N i = 1 N ( Y i P i ) 2
where the real prediction in the time i is determined by Y i , the final prediction of the ENN in the same time is determined by P i , and the number of data points is determined by N.

4.2. Dataset Description

The information of the worldwide confirmed cases dataset is from the Humanitarian Data Exchange [51]. In this work, two data periods are used to test the performance of the proposed method. Each one is divided into three parts: the testing, training, and validation set. The first data period is from 22 January 2020 to 29 March 2022, and this period consists of 798 days. The second data period consists of 158 days, from 22 January 2020 to 27 June 2020; the results achieved with this second data period are compared with a previous work [22]. For both data periods, 12 countries are analyzed: Brazil, China, France, Germany, India, Iran, Mexico, Italy, Spain, Poland, the United States of America, and the United Kingdom. In Figure 9 and Figure 10, the information by country is shown for the first and second data period, respectively.

5. Experimental Results

This section presents the results achieved by the proposed method applied to predicting the confirmed cases of 12 countries. The experimental results are achieved using a testing set with 30% of the information (black points on the graphs), leaving 70% to be divided into two sets: training and validation (80/20). Comparisons with a type-2 FWA presented by [22] are performed. As previously mentioned, the information of the confirmed cases of 12 countries is used, with 30 runs performed for each country. An individual prediction of the 20 future days is achieved by each module of the ENN (pink points on the graphs). These predictions are integrated using the weights provided by the FIS, and finally, a final prediction is obtained using Equation (25). This section only shows the results of three countries (Brazil, China, and France) of the first data period, but in Section 4.1 the results of the 12 countries are shown for both data periods.
The ENN architecture, which provides the best future prediction for Brazil, is shown in Table 3. This architecture has three modules using different types of ANNs. The first and second modules use two hidden layers, and the third module only one. The final prediction is obtained using a type-3 FWA.
In Figure 11, the individual predictions for the 20 future days and the testing set achieved with the architecture shown in Table 3 for Brazil are shown. In Figure 11b,c, module #2 and module #3 are shown, respectively, where the prediction of the 20 future days (pink points) tends to decrease, but the final integration (Figure 11d) achieved improves its behavior because the first module has a good prediction.
A zoom-in of the best final prediction for Brazil is shown in Figure 12, where the prediction is almost similar to the real behavior. After day #17, the prediction tends to decrease. The type-3 fuzzy input variables generated by the FA are shown in Figure 13 for module #1 (Figure 13a), module #2 (Figure 13b), and module #3 (Figure 13c).
In Figure 14, the average convergence obtained by both integration techniques of the 30 runs for Brazil is shown.
The behavior with the type-3 FWA has better convergence than the type-2 FWA technique (testing set). The results achieved with both techniques for the testing set are shown in Table 4, where a better average for Brazil is achieved using the proposed type-3 FWA (indicated in bold in the table).
In Figure 15, the average predictions of the 20 future days for Brazil are shown. As these results show, the type-2 and type-3 FWA achieved predictions closer to the real cases up to the eighth day (day #806 6 April 2022). However, after this day, the type-3 FWA integration tends to decrease more than the type-2 FWA. This behavior caused, on average, type-2 to achieve a better performance.
In Table 5, the results of the future prediction for Brazil are shown. These results achieved for Brazil show that type-2 FWA has on average a better performance in a real prediction (indicated in bold in the table).
The ENN architecture, which provides the best future prediction for China, is shown in Table 6. This architecture also has three modules, but each module has only one hidden layer. The final prediction is obtained using the type-3 FWA.
In Figure 16, the individual predictions for the 20 future days and the testing set achieved with the architecture shown in Table 6 for China are shown. The prediction of the 20 future days (pink points) tends to decrease for module #1 (Figure 16a) and module #2 (Figure 16b), but the prediction of module #3 (Figure 16c) achieved a good final integration (Figure 16d).
A zoom-in of the best final prediction for China is shown in Figure 17, where the prediction is almost similar to the real behavior. After day #16, the prediction tends to increase. The type-3 fuzzy input variables generated by the FA are shown in Figure 18 for module #1 (Figure 18a), module #2 (Figure 18b), and module #3 (Figure 18c).
In Figure 19, the average convergence obtained by both integration techniques of the 30 runs for China is shown. The behavior shown indicates that the type-3 FWA also has better convergence than the type-2 FWA (testing set).
In Table 7, the results achieved with both techniques for the testing set are shown, where a better average for China is achieved using the proposed type-3 FWA (indicated in bold in the table).
In Figure 20, the average predictions of the 20 future days for China are shown. The results show that the type-3 FWA achieved predictions closer to the real cases up to the sixteenth day (day #814 14 April 2022). After this day, the type-3 FWA integration had a slight increase.
In Table 8, the results of the future prediction for China are shown. These results achieved for China show that the type-3 FWA has on average a better performance in a real prediction (indicated in bold in the table).
In Table 9, the ENN architecture, which provides the best future prediction for France, is shown. This architecture has three modules and also uses one hidden layer per module. The final prediction is obtained using the type-3 FWA.
In Figure 21, the individual predictions for the 20 future days and the testing set achieved with the architecture shown in Table 9 for France are shown. All the modules achieved a good prediction of the 20 future days (pink points), which allows us to have an excellent final prediction (Figure 21d).
A zoom-in of the best final prediction for France is shown in Figure 22, where the prediction is very similar to the real behavior. The type-3 fuzzy input variables generated by the FA are shown in Figure 23 for module #1 (Figure 23a), module #2 (Figure 23b), and module #3 (Figure 23c).
In Figure 24, the average convergence obtained by both integration techniques of the 30 runs for France is shown, where the behavior with the type-2 FWA has better convergence than the type-3 FWA (testing set).
The results achieved with both techniques for the testing set are shown in Table 10, where a better average for France is achieved using the proposed type-2 FWA (indicated in bold in the table).
The predictions (averages) for the next 20 days for France are shown in Figure 25. As these results show, the type-3 FWA achieved predictions closer to the real cases up to the seventh day (day #805 5 April 2022). After this day, the type-3 FWA integration tends to increase, but not as much as the type-2 FWA.
In Table 11, the results of the future prediction for France are shown. These results achieved for France show that the type-3 FWA has on average a better performance in a real prediction (indicated in bold in the table).

Summary of Results

The results obtained with the type-3 FWA are presented and compared with the type-2 FWA in this section. The tests were performed using two data periods of confirmed cases of 12 countries. For the testing set for the first data period, the results achieved (MSE) are shown in Table 12. As the results show, the type-2 FWA has on average a better performance for the testing prediction for most countries.
In general, for the future days, the type-3 FWA had on average a better performance based on the results shown in Table 13 (except for Brazil).
For the first data period, for the testing phase and the next 20 days, the results achieved (averages) are graphically shown in Figure 26 and Figure 27.
The results achieved (MSE) for the second data period are shown in Table 14 and Table 15. The results achieved with the type-2 FWA were previously presented by [22]. As the results show in Table 15, the testing set with the type-2 FWA has on average a better performance for most countries (eight countries).
However, for the future days, most countries (eight countries) had on average a better performance using the type-3 FWA integration.
The results achieved (averages) for the second data period for the testing phase and the next 20 days are graphically shown in Figure 28 and Figure 29.

6. Statistical Comparison

The Shapiro–Wilk test was performed on each country for both data periods (testing and future prediction) to determine if the results are normally distributed. Due to the results achieved, where the normality assumption is not passed, a non-parametric test must be applied. The Mann–Whitney tests were performed to compare both integration techniques, where the median is used [52]. The achieved results are presented in this section. In this work, a 0.05 level of significance is utilized to perform the comparisons. The null hypothesis indicates that there is no difference between both techniques. The null hypothesis is rejected if the p-value is smaller than 0.05. The lower median for each country is underlined in each table.
The Mann–Whitney results for each country of the first data period for the testing days are shown in Table 16. As the results show (indicated in bold in the table), there is only a significant difference in only two countries (France and Iran) using the type-2 FWA.
Table 17 shows the results for each country of the first data period for the future days. As the results show (indicated in bold in the table), there is only a significant difference in only four countries. The type-2 FWA is significantly different for Brazil and the United Kingdom, and the type-3 FWA for China and Germany. However, the median achieved by the type-3 FWA for other countries was also lower than that the achieved by the type-2 FWA.
Table 18 shows the results for each country of the second data period for the testing days. As the results show (indicated in bold in the table), there is only a significant difference in only three countries (China, Iran, and the United Kingdom) using the type-2 FWA.
In Table 19, the results for each country of the second data period for the future days are shown. As the results show (indicated in bold in the table), no significant difference exists for any country. However, the median values achieved by the type-3 FWA for seven countries were lower than those achieved by the type-2 FWA.

7. Conclusions

This paper utilized the information of confirmed COVID-19 cases to predict the cases of 20 future days. The proposed ENNT3FL-FA combines ENNs, type-3 fuzzy logic, and a firefly algorithm, which was not previously proposed. The firefly algorithm allows us to design optimal ENN architectures and fuzzy inference systems to predict confirmed COVID-19 cases, where each individual prediction obtains a weight using the Sugeno model type-3 fuzzy inference system generated by the firefly algorithm to produce a final prediction. The proposed method was tested using the information of 12 countries in two data periods. The first data period contains information from 798 days, and the second one only 158 days. The last one was used to compare these results with a previous work, where integration techniques such as the average, type-1, and type-2 FWA were compared, and it was found that better results were achieved with the type-2 FWA. For this reason, in this work, the proposed method was compared with the type-2 FWA. The proposed ENNT3FL-FA achieved a better performance on the prediction of future days for both data periods in countries such as Germany, India, Italy, Mexico, Poland, Spain, the United Kingdom, and the United States of America based on the average values. However, when Mann–Whitney tests were performed, the achieved results showed for the first data period (798 days) in the testing prediction that there is only a significant difference for France and Iran predictions, where the best median values are achieved with the type-2 FWA. A similar situation occurred for the second data period (158 days), also in the testing period, where the type-2 FWA has better median values for Iran and the United Kingdom. For the future prediction, in the case of the first data period, there is a significant difference for Brazil and the United Kingdom predictions, where the best median values are achieved with the type-2 FWA, and only Germany obtained a significant difference by the type-3 FWA. In the second data period, the comparison between the type-2 FWA and the type-3 FWA does not provide significant differences. However, it is important to mention that for both data periods in the future prediction, more countries have lower median values with the proposed ENNT3FL-FA. With the results achieved, we conclude that ENNT3FL-FA provides a better performance in predicting future days and simulates the real behavior for the data period with more information, although statistically only a significant difference is achieved in a few countries. The main challenge of the proposed ENNT3FL-FA is to achieve a better performance with the testing prediction; this would allow for achieving a better future prediction. In future works, other type-3 membership functions will be implemented to evaluate their performance with another data period of COVID-19 and other infectious diseases such as influenza and monkeypox. We also will consider implementing other optimization methods to compare results and performance.

Author Contributions

Methodology and validation, P.M.; software, validation and writing, D.S.; conceptualization, creation of the main idea, and writing—review and editing, O.C.; formal analysis, J.R.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not applicable.

Acknowledgments

We would like to thank TecNM and Conacyt for their support during the realization of this research.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Jin, Z.; Liu, J.Y.; Feng, R.; Ji, L.; Jin, Z.L.; Li, H.B. Drug treatment of coronavirus disease 2019 (COVID-19) in China. Eur. J. Pharmacol. 2020, 883, 32598953. [Google Scholar] [CrossRef] [PubMed]
  2. Zhang, Q.; Wei, Y.; Chen, M.; Wan, Q.; Chen, X. Clinical analysis of risk factors for severe COVID-19 patients with type 2 diabetes. J. Diabetes Complicat. 2020, 34, 107666. [Google Scholar] [CrossRef] [PubMed]
  3. Melin, P.; Monica, J.C.; Sánchez, D.; Castillo, O. Analysis of Spatial Spread Relationships of Coronavirus (COVID-19) Pandemic in the World using Self Organizing Maps. Chaos Solit. Fractals 2020, 138, 109917. [Google Scholar] [CrossRef] [PubMed]
  4. Reddy, D.; Atam, V.; Rai, P.; Khan, F.; Pandey, S.; Malhotra, H.; Gupta, K.; Sonkar, S.; Verma, R.; KGMU COVID-19 Working Group. COVID-19 cases and their outcome among patients with uncommon co-existing illnesses: A lesson from Northern India. Clin. Epidemiol. Glob. Health 2022, 15, 101044. [Google Scholar] [CrossRef]
  5. Zha, L.; Sobue, T.; Hirayama, A.; Takeuchi, T.; Tanaka, K.; Katayama, Y.; Komukai, S.; Shimazu, T.; Kitamura, T.; COVID-19 Epidemiology Research Group. Characteristics and Outcomes of COVID-19 in Reproductive-Aged Pregnant and Nonpregnant Women in Osaka, Japan. Int. J. Infect. Dis. 2022, 117, 195–200. [Google Scholar] [CrossRef]
  6. Reyes, L.; Rodriguez, A.; Bastidas, A.; Parra-Tanoux, D.; Fuentes, Y.V.; García-Gallo, E.; Moreno, G.; Ospina-Tascon, G.; Hernandez, G.; Silva, E.; et al. Dexamethasone as risk-factor for ICU-Acquired respiratory tract infections in severe COVID-19. J. Crit. Care 2022, 69, 154014. [Google Scholar] [CrossRef]
  7. Liu, D.; Ding, W.; Dong, Z.; Pedrycz, W. Optimizing deep neural networks to predict the effect of social distancing on COVID-19 spread. Comput. Ind. Eng. 2022, 166, 107970. [Google Scholar] [CrossRef]
  8. Maleki, M.; Mahmoudi, M.R.; Wraith, D.; Pho, K.-H. Time series modelling to forecast the confirmed and recovered cases of COVID-19. Travel Med. Infect. Dis. 2020, 37, 101742. [Google Scholar] [CrossRef]
  9. Halide, H. Predicting COVID-19 confirmed cases in New York and DKI Jakarta by nonlinear fitting of a Bose–Einstein energy distribution and its implications on social restrictions. Gac. Sanit. 2021, 25, S604–S609. [Google Scholar] [CrossRef]
  10. Gning, L.; Ndour, C.; Tchuenche, J.M. Modeling COVID-19 daily cases in Senegal using a generalized Waring regression model. Physica A 2022, 597, 127245. [Google Scholar] [CrossRef]
  11. Kuvvetli, Y.; Deveci, M.; Paksoy, T.; Garg, H. A predictive analytics model for COVID-19 pandemic using artificial neural networks. Decis. Anal. 2021, 1, 1–13. [Google Scholar] [CrossRef]
  12. Verma, H.; Mandal, S.; Gupta, A. Temporal deep learning architecture for prediction of COVID-19 cases in India. Expert Syst. Appl. 2022, 195, 116611. [Google Scholar] [CrossRef] [PubMed]
  13. Khalilpourazari, S.; Doulabi, H.; Çiftçioglu, A.; Weber, G. Gradient-based grey wolf optimizer with Gaussian walk: Application in modelling and prediction of the COVID-19 pandemic. Expert Syst. Appl. 2021, 177, 114920. [Google Scholar] [CrossRef] [PubMed]
  14. Pham, P.; Pedrycz, W.; Vo, B. Dual attention-based sequential auto-encoder for Covid-19 outbreak forecasting: A case study in Vietnam. Expert Syst. Appl. 2022, 203, 117514. [Google Scholar] [CrossRef]
  15. Pulido, M.; Melin, P.; Castillo, O. Particle swarm optimization of ensemble neural networks with fuzzy aggregation for time series prediction of the Mexican Stock Exchange. Inf. Sci. 2014, 280, 188–204. [Google Scholar] [CrossRef]
  16. Melin, P.; Monica, J.C.; Sánchez, D.; Castillo, O. Multiple Ensemble Neural Network Models with Fuzzy Response Aggregation for Predicting COVID-19 Time Series: The Case of Mexico. Healthcare 2020, 8, 181. [Google Scholar] [CrossRef]
  17. Jia, D.; Wu, Z. Seismic fragility analysis of RC frame-shear wall structure under multidimensional performance limit state based on ensemble neural network. Eng. Struct. 2021, 246, 112975. [Google Scholar] [CrossRef]
  18. Wilkinson, I.; Bhattacharjee, R.; Shafer, J.; Osborne, A. Confidence estimation in the prediction of epithermal neutron resonance self-shielding factors in irradiation samples using an ensemble neural network. Energy AI 2022, 7, 100131. [Google Scholar] [CrossRef]
  19. Yang, L.; Wang, S.H.; Zhang, Y.D. EDNC: Ensemble Deep Neural Network for COVID-19 Recognition. Tomography 2022, 8, 869–890. [Google Scholar] [CrossRef]
  20. Aversano, L.; Bernardi, M.L.; Cimitile, M.; Pecori, R. Deep neural networks ensemble to detect COVID-19 from CT scans. Pattern Recognit. 2021, 120, 108135. [Google Scholar] [CrossRef]
  21. Tang, S.J.; Wang, C.J.; Nie, J.T.; Kumar, N.; Zhang, Y.; Xiong, Z.H.; Barnawi, A. EDL-COVID: Ensemble Deep Learning for COVID-19 Case Detection From Chest X-Ray Images. IEEE Trans. Industr. Inform. 2021, 17, 6539–6549. [Google Scholar] [CrossRef]
  22. Melin, P.; Sánchez, D.; Monica, J.C.; Castillo, O. Optimization using the firefly algorithm of ensemble neural networks with type-2 fuzzy integration for COVID-19 time series prediction. Soft Comput. 2021, 1, 1–38. [Google Scholar] [CrossRef] [PubMed]
  23. Liu, Z.; Mohammadzadeh, A.; Turabieh, H.; Mafarja, M.; Band, S.; Mosavi, A. A New Online Learned Interval Type-3 Fuzzy Control System for Solar Energy Management Systems. IEEE Access 2021, 9, 10498–10508. [Google Scholar] [CrossRef]
  24. Qasem, S.; Ahmadian, A.; Mohammadzadeh, A.; Rathinasamy, S.; Pahlevanzadeh, B. A type-3 logic fuzzy system: Optimized by a correntropy based Kalman filter with adaptive fuzzy kernel size. Inf. Sci. 2021, 572, 424–443. [Google Scholar] [CrossRef]
  25. Cao, Y.; Raise, A.; Mohammadzadeh, A.; Rathinasamy, S.; Band, S.; Mosavi, A. Deep learned recurrent type-3 fuzzy system: Application for renewable energy modeling / prediction. Energy Rep. 2021, 7, 8115–8127. [Google Scholar] [CrossRef]
  26. Hanandeh, S. Introducing mathematical modeling to estimate pavement quality index of flexible pavements based on genetic algorithm and artificial neural networks. Case Stud. Constr. Mater. 2022, 16, e0091. [Google Scholar] [CrossRef]
  27. Tam, V.; Butera, A.; Le, K.; Da Silva, L.; Evangelista, A. A prediction model for compressive strength of CO2 concrete using regression analysis and artificial neural networks. Constr. Build. Mater. 2022, 324, 126689. [Google Scholar] [CrossRef]
  28. Aggarwal, C. Neural Networks and Deep Learning: A Textbook, 1st ed.; Springer: Cham, Switzerland, 2018; pp. 1–35. [Google Scholar]
  29. Peng, B.; Tong, L.; Yan, D.; Huo, W. Experimental research and artificial neural network prediction of free piston expander-linear generator. Energy Rep. 2022, 8, 1966–1978. [Google Scholar] [CrossRef]
  30. Prakarsha, K.; Sharma, G. Time series signal forecasting using artificial neural networks: An application on ECG signal. Biomed. Signal. Process. Control 2022, 76, 103705. [Google Scholar] [CrossRef]
  31. Gurney, K. An Introduction to Neural Networks, 1st ed.; CRC Press: Florida, FL, USA, 1997; pp. 3–10. [Google Scholar]
  32. Haykin, S. Neural Networks: A Comprehensive Foundation, 2nd ed.; Prentice Hall: Hoboken, NJ, USA, 1998; pp. 56–75. [Google Scholar]
  33. Zadeh, L. Fuzzy sets. Inf. Control. 1965, 8, 338–353. [Google Scholar] [CrossRef]
  34. Zadeh, L. The concept of a linguistic variable and its application to approximate reasoning. Inf. Sci. 1975, 8, 199–249. [Google Scholar] [CrossRef]
  35. Zadeh, L. Some reflections on soft computing, granular computing and their roles in the conception, design and utilization of information/intelligent systems. Soft Comput. 1998, 2, 23–25. [Google Scholar] [CrossRef]
  36. Melin, P.; Castillo, O. Hybrid Intelligent Systems for Pattern Recognition Using Soft Computing: An Evolutionary Approach for Neural Networks and Fuzzy Systems, 1st ed.; Springer: Cham, Switzerland, 2005; pp. 25–40. [Google Scholar]
  37. Al-Jamimi, H.; Saleh, T. Transparent predictive modelling of catalytic hydrodesulfurization using an interval type-2 fuzzy logic. J. Clean. Prod. 2019, 231, 1079–1088. [Google Scholar] [CrossRef]
  38. Melin, P.; Castillo, O. A review on type-2 fuzzy logic applications in clustering, classification and pattern recognition. Appl. Soft Comput. 2014, 21, 568–577. [Google Scholar] [CrossRef]
  39. Rickard, J.; Aisbett, J.; Gibbon, G. Fuzzy subsethood for fuzzy sets of type-2 and generalized type-n. IEEE Trans. Fuzzy Syst. 2009, 17, 50–60. [Google Scholar] [CrossRef]
  40. Mohammadzadeh, A.; Sabzalian, M.; Zhang, W. An Interval Type-3 Fuzzy System and a New Online Fractional-Order Learning Algorithm: Theory and Practice. IEEE Trans. Fuzzy Syst. 2020, 28, 1940–1950. [Google Scholar] [CrossRef]
  41. Castillo, O.; Castro, J.R.; Melin, P. Interval Type-3 Fuzzy Systems: Theory and Design, 1st ed.; Springer: Cham, Switzerland, 2022; pp. 45–67. [Google Scholar]
  42. Yang, X. Firefly algorithms for multimodal optimization. In Stochastic Algorithms: Foundations and Applications. SAGA 2009. Lecture Notes in Computer Science, 1st ed.; Watanabe, O., Zeugmann, T., Eds.; Springer: Berlin/Heidelberg, Germany, 2009; Volume 5792, pp. 169–178. [Google Scholar]
  43. Yang, X.; He, X. Firefly Algorithm: Recent Advances and Applications. Int. J. Swarm Intell. Res. 2013, 1, 36–50. [Google Scholar] [CrossRef]
  44. Chen, Z.; Ashkezari, A.; Tlili, I. Applying artificial neural network and curve fitting method to predict the viscosity of SAE50/MWCNTs-TiO2 hybrid nanolubricant. Phys. A: Stat. Mech. Appl. 2020, 549, s0378437119321855. [Google Scholar] [CrossRef]
  45. Che, Z.G.; Chiang, T.A.; Che, Z.H. Feed-Forward Neural Networks Training: A comparison Between Genetic Algorithm And Back-Propagation Learning Algorithm. Int. J. Innov. Comput. Inf. Control 2011, 7, 5839–5850. [Google Scholar]
  46. Gauthier, J.P.; Micheau, P. Feedfoward and feedback adaptive controls for Continuously Variable Transmissions. IFAC Proc. Vol. 2012, 45, 1460–1465. [Google Scholar] [CrossRef]
  47. An, Y.; Yoo, K.; Na, M.; Kim, Y.S. Critical flow prediction using simplified cascade fuzzy neural networks. Ann. Nucl. Energy 2020, 136, 107047. [Google Scholar] [CrossRef]
  48. Budak, Ü.; Guo, Y.; Tanyildizi, E.; Şengür, A. Cascaded deep convolutional encoder-decoder neural networks for efficient liver tumor segmentation. Med. Hypotheses 2020, 134, 109431. [Google Scholar] [CrossRef] [PubMed]
  49. Pulido, M.; Melin, P. Optimization of Ensemble Neural Networks with Type-2 Fuzzy Integration of Responses for the Dow Jones Time Series Prediction. Intell. Autom. Soft Comput. 2014, 20, 403–418. [Google Scholar]
  50. Sánchez, D.; Melin, P.; Castillo, O. Optimization of modular granular neural networks using a firefly algorithm for human recognition. Eng. Appl. Artif. Intell. 2017, 64, 172–186. [Google Scholar] [CrossRef]
  51. The Humanitarian Data Exchange (HDX). Available online: https://data.humdata.org/dataset/novel-coronavirus-2019-ncov-cases (accessed on 30 April 2022).
  52. Iantovics, L.B.; Kovács, L.; Rotar, C. MeasApplInt—A novel intelligence metric for choosing the computing systems able to solve real-life problems with a high intelligence. Appl. Intell. 2019, 49, 3491–3511. [Google Scholar] [CrossRef]
Figure 1. Illustration of an artificial neural network.
Figure 1. Illustration of an artificial neural network.
Axioms 11 00410 g001
Figure 2. Ensemble neural network.
Figure 2. Ensemble neural network.
Axioms 11 00410 g002
Figure 3. Gaussian type-2 MF.
Figure 3. Gaussian type-2 MF.
Axioms 11 00410 g003
Figure 4. Gaussian type-3 MF.
Figure 4. Gaussian type-3 MF.
Axioms 11 00410 g004
Figure 5. The proposed ENNT3FL-FA.
Figure 5. The proposed ENNT3FL-FA.
Axioms 11 00410 g005
Figure 6. Sugeno type-3 FIS model.
Figure 6. Sugeno type-3 FIS model.
Axioms 11 00410 g006
Figure 7. Example of type-3 fuzzy input variable.
Figure 7. Example of type-3 fuzzy input variable.
Axioms 11 00410 g007
Figure 8. Flowchart of the FA.
Figure 8. Flowchart of the FA.
Axioms 11 00410 g008
Figure 9. First data period.
Figure 9. First data period.
Axioms 11 00410 g009
Figure 10. Second data period.
Figure 10. Second data period.
Axioms 11 00410 g010
Figure 11. Individual behavior and final prediction for Brazil: (a) module #1; (b) module #2; (c) module #3; (d) final prediction.
Figure 11. Individual behavior and final prediction for Brazil: (a) module #1; (b) module #2; (c) module #3; (d) final prediction.
Axioms 11 00410 g011
Figure 12. Best future prediction (Brazil).
Figure 12. Best future prediction (Brazil).
Axioms 11 00410 g012
Figure 13. Type-3 fuzzy input variables (Brazil): (a) fuzzy input #1; (b) fuzzy input #2; (c) fuzzy input #3.
Figure 13. Type-3 fuzzy input variables (Brazil): (a) fuzzy input #1; (b) fuzzy input #2; (c) fuzzy input #3.
Axioms 11 00410 g013
Figure 14. Average convergence for Brazil.
Figure 14. Average convergence for Brazil.
Axioms 11 00410 g014
Figure 15. Future prediction (Brazil).
Figure 15. Future prediction (Brazil).
Axioms 11 00410 g015
Figure 16. Individual behavior and final prediction for China: (a) module #1; (b) module #2; (c) module #3; (d) final prediction.
Figure 16. Individual behavior and final prediction for China: (a) module #1; (b) module #2; (c) module #3; (d) final prediction.
Axioms 11 00410 g016
Figure 17. Best future prediction (China).
Figure 17. Best future prediction (China).
Axioms 11 00410 g017
Figure 18. Type-3 fuzzy input variables (China): (a) fuzzy input #1; (b) fuzzy input #2; (c) fuzzy input #3.
Figure 18. Type-3 fuzzy input variables (China): (a) fuzzy input #1; (b) fuzzy input #2; (c) fuzzy input #3.
Axioms 11 00410 g018
Figure 19. Average convergence for China.
Figure 19. Average convergence for China.
Axioms 11 00410 g019
Figure 20. Future prediction (China).
Figure 20. Future prediction (China).
Axioms 11 00410 g020
Figure 21. Individual behavior and final prediction for France: (a) module #1; (b) module #2; (c) module #3; (d) final prediction.
Figure 21. Individual behavior and final prediction for France: (a) module #1; (b) module #2; (c) module #3; (d) final prediction.
Axioms 11 00410 g021
Figure 22. Best future prediction (France).
Figure 22. Best future prediction (France).
Axioms 11 00410 g022
Figure 23. Type-3 fuzzy input variables (France): (a) fuzzy input #1; (b) fuzzy input #2; (c) fuzzy input #3.
Figure 23. Type-3 fuzzy input variables (France): (a) fuzzy input #1; (b) fuzzy input #2; (c) fuzzy input #3.
Axioms 11 00410 g023
Figure 24. Average convergence for France.
Figure 24. Average convergence for France.
Axioms 11 00410 g024
Figure 25. Future prediction (France).
Figure 25. Future prediction (France).
Axioms 11 00410 g025
Figure 26. First data period (testing prediction).
Figure 26. First data period (testing prediction).
Axioms 11 00410 g026
Figure 27. First data period (future prediction).
Figure 27. First data period (future prediction).
Axioms 11 00410 g027
Figure 28. Second data period (testing prediction).
Figure 28. Second data period (testing prediction).
Axioms 11 00410 g028
Figure 29. Second data period (future prediction).
Figure 29. Second data period (future prediction).
Axioms 11 00410 g029
Table 1. Fuzzy if-then rules for three inputs and outputs.
Table 1. Fuzzy if-then rules for three inputs and outputs.
RuleAntecedentsConsequents
e1e2e3w1w2w3
1lowlowlowhighhighhigh
2lowlowmediumhighhighmedium
3lowlowhighhighhighlow
4lowmediumlowhighmediumhigh
5lowmediummediumhighmediummedium
6lowmediumhighhighmediumlow
7lowhighlowhighlowhigh
8lowhighmediumhighlowmedium
9lowhighhighhighlowlow
10mediumlowlowmediumhighhigh
11mediumlowmediummediumhighmedium
12mediumlowhighmediumhighlow
13mediummediumlowmediummediumhigh
14mediummediummediummediummediummedium
15mediummediumhighmediummediumlow
16mediumhighlowmediumlowhigh
17mediumhighmediummediumlowmedium
18mediumhighhighmediumlowlow
19highlowlowlowhighhigh
20highlowmediumlowhighmedium
21highlowhighlowhighlow
22highmediumlowlowmediumhigh
23highmediummediumlowmediummedium
24highmediumhighlowmediumlow
25highhighlowlowlowhigh
26highhighmediumlowlowmedium
27highhighhighlowlowlow
Table 2. Search space.
Table 2. Search space.
ParametersMinimumMaximum
ENNModules (m)25
Hidden Layers (h)15
Neurons for Each Hidden Layer150
Goal Error 0.000010.001
Type-3 FISLower Scale (λ)0.10.9
Lower Lag ()0.10.9
Constants0.10.9
Table 3. Best architecture for Brazil.
Table 3. Best architecture for Brazil.
TypeNeuronsIndividual
(MSE)
Testing
(MSE)
Future
(MSE)
Feedforward35, 259.58 × 10−77.70 × 10−61.84 × 10−6
Fitnet28, 451.51 × 10−6
Cascade267.49 × 10−7
Table 4. First data period (testing prediction, Brazil).
Table 4. First data period (testing prediction, Brazil).
Type-2 FWAType-3 FWA
BestAvgWorstBestAvgWorst
6.88 × 10−77.09 × 10−77.38 × 10−76.90 × 10−77.07 × 10−77.90 × 10−7
Table 5. First data period (future prediction, Brazil).
Table 5. First data period (future prediction, Brazil).
Type-2 FWAType-3 FWA
BestAvgWorstBestAvgWorst
3.04 × 10−61.97 × 10−21.42 × 10−11.84 × 10−62.46 × 10−21.06 × 10−1
Table 6. Best architecture for China.
Table 6. Best architecture for China.
TypeNeuronsIndividual
(MSE)
Testing
(MSE)
Future
(MSE)
Fitnet253.27 × 10−51.40 × 10−55.22 × 10−4
Fitnet282.00 × 10−5
Feedforward122.15 × 10−4
Table 7. First data period (testing prediction, China).
Table 7. First data period (testing prediction, China).
Type-2 FWAType-3 FWA
BestAvgWorstBestAvgWorst
1.36 × 10−51.42 × 10−51.54 × 10−51.36 × 10−51.41 × 10−51.52 × 10−5
Table 8. First data period (future prediction, China).
Table 8. First data period (future prediction, China).
Type-2 FWAType-3 FWA
BestAvgWorstBestAvgWorst
1.84 × 10−36.98 × 10−22.96 × 10−15.22 × 10−42.97 × 10−21.61 × 10−1
Table 9. Best architecture for France.
Table 9. Best architecture for France.
TypeNeuronsIndividual
(MSE)
Testing
(MSE)
Future
(MSE)
Fitnet266.71 × 10−66.14 × 10−64.13 × 10−6
Cascade301.34 × 10−5
Fitnet249.51 × 10−6
Table 10. First data period (testing prediction, France).
Table 10. First data period (testing prediction, France).
Type-2 FWAType-3 FWA
BestAvgWorstBestAvgWorst
6.09 × 10−66.25 × 10−66.80 × 10−66.14 × 10−66.36 × 10−66.81 × 10−6
Table 11. First data period (future prediction, France).
Table 11. First data period (future prediction, France).
Type-2 FWAType-3 FWA
BestAvgWorstBestAvgWorst
6.07 × 10−62.06 × 10−21.94 × 10−14.13 × 10−67.11 × 10−36.06 × 10−2
Table 12. First data period (testing prediction).
Table 12. First data period (testing prediction).
CountryType-2Type-3
BestAvgWorstBestAvgWorst
Brazil6.88 × 10−77.09 × 10−77.38 × 10−76.90 × 10−77.07 × 10−77.90 × 10−7
China1.36 × 10−51.42 × 10−51.54 × 10−51.36 × 10−51.41 × 10−51.52 × 10−5
France6.09 × 10−66.25 × 10−66.80 × 10−66.14 × 10−66.36 × 10−66.81 × 10−6
Germany1.56 × 10−61.94 × 10−62.30 × 10−61.61 × 10−62.02 × 10−62.84 × 10−6
India4.90 × 10−85.08 × 10−85.83 × 10−84.90 × 10−85.14 × 10−85.84 × 10−8
Iran2.13 × 10−72.23 × 10−72.33 × 10−72.14 × 10−72.28 × 10−72.46 × 10−7
Italy2.56 × 10−62.58 × 10−62.61 × 10−62.55 × 10−62.59 × 10−62.64 × 10−6
Mexico7.27 × 10−67.28 × 10−67.30 × 10−67.27 × 10−67.29 × 10−67.32 × 10−6
Poland4.55 × 10−74.60 × 10−74.98 × 10−74.55 × 10−74.61 × 10−74.78 × 10−7
Spain2.20 × 10−52.21 × 10−52.22 × 10−52.20 × 10−52.21 × 10−52.23 × 10−5
United Kingdom8.42 × 10−68.55 × 10−68.80 × 10−68.36 × 10−68.54 × 10−68.79 × 10−6
USA2.86 × 10−62.87 × 10−62.89 × 10−62.85 × 10−62.88 × 10−62.92 × 10−6
Table 13. First data period (future days).
Table 13. First data period (future days).
CountryType-2Type-3
BestAvgWorstBestAvgWorst
Brazil3.04 × 10−61.97 × 10−21.42 × 10−11.84 × 10−62.46 × 10−21.06 × 10−1
China1.84 × 10−36.98 × 10−22.96 × 10−15.22 × 10−42.97 × 10−21.61 × 10−1
France6.07 × 10−62.06 × 10−21.94 × 10−14.13 × 10−67.11 × 10−36.06 × 10−2
Germany8.02 × 10−48.55 × 10−24.11 × 10−14.09 × 10−53.02 × 10−21.01 × 10−1
India1.56 × 10−78.89 × 10−31.54 × 10−13.05 × 10−73.01 × 10−32.05 × 10−2
Iran1.12 × 10−51.78 × 10−29.82 × 10−27.56 × 10−71.43 × 10−21.05 × 10−1
Italy7.57 × 10−64.54 × 10−22.92 × 10−11.24 × 10−51.76 × 10−28.32 × 10−2
Mexico2.86 × 10−59.14 × 10−31.81 × 10−11.48 × 10−51.49 × 10−33.00 × 10−2
Poland8.31 × 10−52.05 × 10−24.28 × 10−15.71 × 10−56.08 × 10−35.85 × 10−2
Spain5.82 × 10−49.17 × 10−41.54 × 10−35.56 × 10−48.37 × 10−41.54 × 10−3
United Kingdom2.80 × 10−57.07 × 10−31.62 × 10−12.69 × 10−41.26 × 10−29.98 × 10−2
USA3.15 × 10−68.02 × 10−36.04 × 10−26.26 × 10−75.32 × 10−39.49 × 10−2
Table 14. Second data period (testing prediction).
Table 14. Second data period (testing prediction).
CountryType-2Type-3
BestAvgWorstBestAvgWorst
Brazil3.27 × 10−54.09 × 10−54.47 × 10−53.77 × 10−54.17 × 10−54.34 × 10−5
China2.40 × 10−82.66 × 10−83.13 × 10−82.31 × 10−82.94 × 10−83.64 × 10−8
France2.14 × 10−52.56 × 10−52.94 × 10−52.15 × 10−52.50 × 10−52.76 × 10−5
Germany1.90 × 10−62.00 × 10−62.17 × 10−61.85 × 10−62.01 × 10−62.15 × 10−6
India1.95 × 10−62.06 × 10−62.36 × 10−61.90 × 10−62.09 × 10−62.29 × 10−6
Iran1.40 × 10−61.47 × 10−61.49 × 10−61.43 × 10−61.48 × 10−61.52 × 10−6
Italy4.37 × 10−74.55 × 10−74.92 × 10−73.86 × 10−74.53 × 10−74.79 × 10−7
Mexico8.13 × 10−68.55 × 10−69.11 × 10−68.19 × 10−68.53 × 10−69.02 × 10−6
Poland6.21 × 10−66.76 × 10−66.99 × 10−66.12 × 10−66.75 × 10−66.98 × 10−6
Spain2.42 × 10−62.59 × 10−62.64 × 10−62.44 × 10−62.60 × 10−62.64 × 10−6
United Kingdom4.97 × 10−65.93 × 10−66.03 × 10−65.87 × 10−65.99 × 10−66.04 × 10−6
USA1.50 × 10−61.52 × 10−61.54 × 10−61.50 × 10−61.52 × 10−61.54 × 10−6
Table 15. Second data period (future days).
Table 15. Second data period (future days).
CountryType-2Type-3
BestAvgWorstBestAvgWorst
Brazil8.58 × 10−49.30 × 10−24.50 × 10−19.21 × 10−46.70 × 10−21.60 × 10−1
China1.76 × 10−72.89 × 10−52.74 × 10−43.53 × 10−72.43 × 10−45.68 × 10−3
France2.42 × 10−51.33 × 10−35.23 × 10−39.87 × 10−61.95 × 10−31.01 × 10−2
Germany8.66 × 10−72.04 × 10−41.07 × 10−38.56 × 10−71.30 × 10−48.71 × 10−4
India8.38 × 10−41.17 × 10−15.58 × 10−11.07 × 10−41.12 × 10−13.97 × 10−1
Iran5.63 × 10−65.77 × 10−41.36 × 10−26.40 × 10−66.91 × 10−41.30 × 10−2
Italy1.34 × 10−75.39 × 10−31.43 × 10−12.20 × 10−72.46 × 10−42.63 × 10−3
Mexico3.32 × 10−41.09 × 10−16.09 × 10−18.04 × 10−57.87 × 10−24.52 × 10−1
Poland7.13 × 10−65.19 × 10−38.62 × 10−28.39 × 10−62.98 × 10−33.88 × 10−2
Spain3.88 × 10−61.42 × 10−41.27 × 10−32.12 × 10−61.15 × 10−48.85 × 10−4
United Kingdom2.61 × 10−53.62 × 10−42.09 × 10−32.70 × 10−51.97 × 10−47.12 × 10−4
USA1.60 × 10−42.11 × 10−36.99 × 10−35.10 × 10−52.44 × 10−38.44 × 10−3
Table 16. Mann–Whitney results (first data period, testing prediction).
Table 16. Mann–Whitney results (first data period, testing prediction).
CountryMedianp-Value
Type-2Type-3
Brazil7.09 × 10−77.02 × 10−70.0989
China1.41 × 10−51.40 × 10−50.5892
France6.22 × 10−66.33 × 10−60.0094
Germany1.94 × 10−62.03 × 10−60.2501
India5.02 × 10−85.07 × 10−80.5058
Iran2.23 × 10−72.27 × 10−70.0251
Italy2.58 × 10−62.58 × 10−60.1119
Mexico7.28 × 10−67.28 × 10−60.1494
Poland4.58× 10−74.60 × 10−70.3478
Spain2.21× 10−52.21 × 10−50.1236
United Kingdom8.53 × 10−68.51 × 10−60.4295
USA2.87 × 10−62.87 × 10−60.0785
Table 17. Mann–Whitney results (first data period, future prediction).
Table 17. Mann–Whitney results (first data period, future prediction).
CountryMedianp-Value
Type-2Type-3
Brazil1.60 × 10−31.05 × 10−20.0257
China5.21 × 10−21.69 × 10−20.0035
France5.84 × 10−39.99 × 10−40.2983
Germany5.78 × 10−21.98 × 10−20.0394
India2.45 × 10−43.39 × 10−40.9522
Iran5.42 × 10−33.18 × 10−40.0854
Italy8.36 × 10−35.97 × 10−30.1902
Mexico3.50 × 10−42.34 × 10−40.1164
Poland9.38 × 10−41.03 × 10−30.7414
Spain8.91 × 10−48.09 × 10−40.1707
United Kingdom6.06 × 10−42.17 × 10−30.0048
USA2.28 × 10−42.64 × 10−40.3789
Table 18. Mann–Whitney results (second data period, testing prediction).
Table 18. Mann–Whitney results (second data period, testing prediction).
CountryMedianp-Value
Type-2Type-3
Brazil4.09 × 10−54.21 × 10−50.2609
China2.65 × 10−82.97 × 10−80.0001
France2.59 × 10−52.51 × 10−50.1971
Germany1.99 × 10−62.02 × 10−60.4110
India2.05 × 10−62.07 × 10−60.1353
Iran1.47 × 10−61.48× 10−60.0166
Italy4.55 × 10−74.55 × 10−70.9920
Mexico8.51 × 10−68.50 × 10−60.6818
Poland6.83 × 10−66.82 × 10−60.8999
Spain2.62 × 10−62.62 × 10−60.5069
United Kingdom5.97 × 10−66.00 × 10−60.0071
USA1.52 × 10−61.52 × 10−60.8067
Table 19. Mann–Whitney results (second data period, future prediction).
Table 19. Mann–Whitney results (second data period, future prediction).
CountryMedianp-Value
Type-2Type-3
Brazil5.72 × 10−26.70 × 10−20.9920
China1.19 × 10−54.49 × 10−60.0989
France9.72 × 10−41.58 × 10−30.3077
Germany7.64 × 10−56.80 × 10−50.5687
India2.23 × 10−25.76 × 10−20.7718
Iran8.83 × 10−52.96 × 10−50.1010
Italy1.09 × 10−44.67 × 10−50.1052
Mexico6.84 × 10−22.27 × 10−20.1770
Poland1.08 × 10−31.04 × 10−30.7263
Spain4.11 × 10−54.49 × 10−50.4715
United Kingdom2.64 × 10−41.60× 10−40.1096
USA2.04 × 10−32.29× 10−30.3421
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Melin, P.; Sánchez, D.; Castro, J.R.; Castillo, O. Design of Type-3 Fuzzy Systems and Ensemble Neural Networks for COVID-19 Time Series Prediction Using a Firefly Algorithm. Axioms 2022, 11, 410. https://doi.org/10.3390/axioms11080410

AMA Style

Melin P, Sánchez D, Castro JR, Castillo O. Design of Type-3 Fuzzy Systems and Ensemble Neural Networks for COVID-19 Time Series Prediction Using a Firefly Algorithm. Axioms. 2022; 11(8):410. https://doi.org/10.3390/axioms11080410

Chicago/Turabian Style

Melin, Patricia, Daniela Sánchez, Juan R. Castro, and Oscar Castillo. 2022. "Design of Type-3 Fuzzy Systems and Ensemble Neural Networks for COVID-19 Time Series Prediction Using a Firefly Algorithm" Axioms 11, no. 8: 410. https://doi.org/10.3390/axioms11080410

APA Style

Melin, P., Sánchez, D., Castro, J. R., & Castillo, O. (2022). Design of Type-3 Fuzzy Systems and Ensemble Neural Networks for COVID-19 Time Series Prediction Using a Firefly Algorithm. Axioms, 11(8), 410. https://doi.org/10.3390/axioms11080410

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