1 Introduction

In science and engineering is very common the solution of problems with stochastic nature such as prediction, separation and detection of signals in the presence of random noise (Mack and Habets 2020; Gomez-Garcia et al. 2020; Liu et al. 2019; Zhu et al. 2019). Kalman filter (KF) is the most well-known and used mathematical tool for stochastic estimation from noisy and uncertain measurements. It was proposed by Rudolph E. Kalman in 1960, who published his famous paper “A New Approach to Linear Filtering and Prediction Problem” (Kalman 1960), describing a recursive solution to discrete time linear filtering problem and becoming a standard approach for optimal estimation. Since the time of its introduction, the Kalman filter has been the subject of extensive research and applications in the fields of orbit calculation, target tracking, integrated navigation, dynamic positioning, sensor data fusion, microeconomics, control, modeling, digital image processing, pattern recognition, image segmentation and image edge detection and others. This broad interest in KF is due to its optimality, convenient form for online real-time processing, easy formulation and implementation (Serra 2018).

Fuzzy systems have been widely used for modeling (Wang and Wu 2019; Chin and Lin 2018; Kim et al. 2020a; Zhao and Lin 2019) and also for health area (Khodaei-Mehr et al. 2018; Pham and Berger 2011). The successful applications of fuzzy systems are due to its structure based on rules, where the antecedent propositions of the rules define fuzzy operation regions and the consequent describes a corresponding physical behavior in those regions, and its capability of approximate functions as well as treat nonlinearities and uncertainties (Serra 2012). Recently, type-2 fuzzy systems have been highlighted in several applications due to their better ability to deal with uncertain information (Evangelista and Serra 2019; Mendel 2019). A special case within the study of type-2 fuzzy logic is the interval type-2 fuzzy sets that, by simplifying the membership functions assigned to the sets, define a footprint of uncertainty (FoU) in data processing, which is limited by upper and lower membership functions (Liang and Mendel 2000).

With the emergence caused by COVID-19 and its rapid spread to several countries, authorities around the world have been implemented plans for fighting transmission of the virus based on guidelines provided by the World Health Organization (WHO) (Ryu and Chun 2020; WHO 2020a, b). The impacts caused by COVID-19 pandemic have affected health, social, economic, political and cultural spheres, unprecedented in the recent worldwide history of epidemics (Chakraborty and Maity 2020). In view to the problems faced to COVID-19 crisis, researchers from all scientific areas have proposed new studies and contributions as an effort to fight and understand the coronavirus disease (Feng et al. 2020; Fishbane and Hirsch 2020; Sun et al. 2020; Brown et al. 2020; Huang et al. 2020; Kang et al. 2020). In these contexts, computational modeling applied to analysis of epidemiological data has received increasing interest from the scientific community, aiming to characterize the dynamic evolution of infectious diseases outbreak and also helping in its control and prevention (Deeba et al. 2020; Price et al. 2019; Korcinska et al. 2020; Chen et al. 2020; van Gaalen et al. 2017; Sloan et al. 2020; van de Kassteele et al. 2019; Chowell et al. 2020).

Associated to epidemiological data analysis, the proposal for adaptive and real-time modeling methodologies which take into account the processing of uncertainties inherited to these types of experimental data (underreportings, lack of information, incubation period of the virus, time to seek care and diagnosis) is still open. The proposed methodology, based on interval type-2 fuzzy Kalman filter, is useful for adaptive and real-time forecasting of uncertain experimental data. A new formulation of type-2 fuzzy version of Observer/Kalman Filter Identification (OKID) algorithm, is proposed, for updating, recursively, the consequent proposition of type-2 fuzzy Kalman filter using spectral components extracted from the experimental data. Interval fuzzy sets characterizing the antecedent of type-2 fuzzy Kalman filter inference system are estimated by, also proposed, a formulation of interval type-2 fuzzy version of Gustafson–Kessel clustering algorithm. Computational results of tracking the states of a nonlinear dynamic system with chaotic behavior in a noisy environment show the efficiency of proposed methodology as compared to other approach widely cited in the literature. Applicability of proposed methodology is illustrated through experimental results from real-time interval forecasting of the COVID-19’s dynamic spread behavior in state of Maranhão and Brazil.

1.1 Related Works

In the last years, studies involving the integration of fuzzy systems and Kalman filters have been proposed in the literature (Pires and Serra 2019; Eyoh et al. 2018; Gil et al. 2019; Bouhentala et al. 2019; Hwang et al. 2019). In (Wang et al. 2020), fuzzy sets are combined with a novel trace optimization method based on extended Kalman filter with nested probabilistic–numerical linguistic information applied in tracking a maneuvering target. Based on limited and uncertain information from different sensors, the proposed methodology is able to merge this information and is efficient when applied in the problem of trace optimization of an unknown maneuvering target in Sichuan province in China. In (Asl et al. 2020), an optimization methodology of an adaptive unscented Kalman filter (UKF) is presented by means of an evolutionary fuzzy algorithm named fuzzy adaptive grasshopper optimization algorithm. The efficiency of the method is verified by application to different benchmark functions, such as a robotic manipulator and a servo-hydraulic system, performing better when compared to previous versions of UKF. In (Matía et al. 2019), a reformulation in the uncertainty representation in fuzzy Kalman filters (FKF) is proposed, to solve the problem of uncertainty propagation that occurred in other approaches present in the literature for the FKF. Trapezoidal possibility distributions is used to represent fuzzy variables, defining regions of possibility and impossibility in asymmetric sets, which contributes to model sensor’s uncertainty with more accuracy. In (Yang et al. 2019), a strategy based on fuzzy logic control to treat pathological symptoms of movement disorder with higher performance is presented. A slowly varying hidden variable in a neural network is estimated using an unscented Kalman filter and is used as a feedback variable to enhance control performance. The presented design, with enhanced control performance and higher hardware efficiency, has significant potential for clinical treatment of movement disorders and opens a new perspective for the applications in the fields of neural control engineering and brain–machine interfaces. In (Benhamida et al. 2019), an improved model predictive direct torque control (MPDTC) based on an adaptive fuzzy logic modulator and an extended Kalman filter is introduced. The methodology consists of an adaptive fuzzy logic-based duty cycle vector modulation, and two voltage vectors (VV) instead of a single VV are applied during the whole control cycle to promote the torque control performance and reduce its undulations. Moreover, a design of an extended Kalman filter estimator for drive systems is proposed. Despite the extensive literature in this context, there are still many fields to be explored regarding the association of Kalman filters and fuzzy logic.

Several mathematical, computational and statistical methods have already been proposed and widely applied in the prediction of infectious diseases worldwide (Rajaei et al. 2019; Watkins et al. 2020; Martins et al. 2018; He et al. 2018). In (Weng et al. 2020), a seasonal autoregressive integrated moving average (SARIMA) model was used to predict the incidence of Chlamydia Trachomatis (CT) infection in Shenzhen city, China. The proposed model breaks down the time series data corresponding to monthly cases of CT infection into behavioral patterns such as trend, seasonal and random, in order to understand the epidemiological behavior of the disease and obtain more accurate predictions. In (Koolhof et al. 2020), negative binomial regression models were developed to forecast human infections by Ross River virus (RRV), which is Australia’s most epidemiologically important mosquito-borne disease. The model uses data from climatic, environmental and oceanographic variables in order to understand the factors associated with RRV transmission in epidemiologically important regions in the state of Victoria and to establish an early warning forecasting system. In (Hranac et al. 2019), ensemble niche models to predict spatiotemporally varying bat birthing to examine how birthing cycles of African fruit bats, molossid bats, and non-molossid microbats inform the spatiotemporal occurrence of Ebola Virus Disease (EVD) spillover. The model uses pool sparse data and predicted the risk of EVD spillover at locations of the two 2018 EVD outbreaks in the Democratic Republic of the Congo. In (Chowell et al. 2020), an ensemble model was introduced for sequential forecasting that weights a set of plausible models and use a frequentist computational bootstrap approach to evaluate its uncertainty. The feasibility of the approach was demonstrated using simple dynamic differential equation models and the trajectory of outbreak scenarios of the Ebola Forecasting Challenge, providing forecasting horizon of 1-4 weeks. In (Stocks et al. 2020), a novel multilayered dynamic transmission model is presented for hepatitis C virus HCV transmission within a people who inject drugs (PWID) population. The approach based on this model is able to estimate the number of undiagnosed PWIDs, the true incidence, the average time until diagnosis, the reproduction numbers and associated uncertainties, using routine surveillance data.

Recently, with the beginning of the COVID-19 epidemic outbreak, several researchers have proposed model-based data analysis approaches applied to novel Coronavirus 2019 (Zhong et al. 2020; Lin et al. 2020; Mohd and Sulayman 2020; Duan and Zhang 2020; Chintalapudi et al. 2020; Fredj and Chrif 2020). The objective of these studies is to characterize the evolution of pandemic in certain regions and, thus, to contribute for the requirements adopted to contain the contamination by virus and allocation of resources. In this sense, a mathematical model for forecasting the transmission dynamics of COVID-19 in Korea is proposed in (Kim et al. 2020b). The mathematical model is based on SEIR model (Susceptible–Exposed–Infectious–Recovered) and takes account the behavioral changes that were implemented in the population since local transmission began. The study is able to predict the final size and the timing of the end of the epidemic as well as the maximum number of isolated individuals using daily confirmed cases comparing epidemiological parameters between the national level and the Daegu/Gyeongbuk area. The study proposed in (Park et al. 2020) addresses the role of asymptomatic carriers in transmission poses challenges for control of the COVID-19 pandemic. A mathematical framework is used to evaluate expected effects of asymptomatic transmission on the basic reproduction number \(R_0\) (i.e., the expected number of secondary cases generated by an average primary cases in a fully susceptible population) and the fraction of new secondary cases attributable to asymptomatic individuals. The proposed methodology models the viral spread using a renewal equation framework, which allows to model the current incidence of infected individuals as a function of previous incidence and how infectiousness of an infected individual varies over the course of their infection. This analysis shows that understanding the temporal course of asymptomatic transmission can be important for assessing the importance of this route of transmission and for disease dynamics. In (Kanagarathinam and Sekar 2020), a SEIR model for COVID-19 was developed to show the importance of estimation of reproduction number (\(R_0\)). The work is focused on predicting the 2019 Novel Coronavirus outbreak at the early stage in India based on estimation of reproduction number (\(R_0\)) and help to take active measures prior to the spread of 2019-nCoV disease. The data of daily newly infective cases in India have been used as samples to obtain the reproduction number. The maximum likelihood approach has been carried out to the distribution of \(R_0\). In (Rustam et al. 2020), several supervised machine learning models are compared to predict the number of patients affected by COVID-19. The four standard forecast models were used: linear regression (LR), least absolute shrinkage and selection operator (LASSO), support vector machine (SVM) and exponential smoothing (ES). Three types of predictions are made by each of the models, such as the number of newly infected cases, the number of deaths and the number of recoveries in next 10 days.

Differently from aforementioned approaches and others ones found from the literature, the scope of this paper outlines the integration of Kalman filter and interval type-2 fuzzy systems for tracking and forecasting the COVID-19 dynamic spread behavior. The design of interval type-2 fuzzy Kalman filter, according to proposed methodology, is based on spectral unobservable components and uncertainty regions extracted from experimental data.

1.2 Contributions

The originality of proposed methodology is outlined by the following main contributions:

  • Applicability for adaptive and real-time forecasting of uncertain experimental data;

  • A new formulation of interval type-2 fuzzy version of Gustafson–Kessel clustering algorithm for estimating and shaping the interval fuzzy sets characterizing the antecedent proposition of type-2 fuzzy Kalman filter inference system;

  • A new formulation of type-2 fuzzy version of Observer/Kalman Filter Identification (OKID) algorithm, for recursive updating the consequent proposition of type-2 fuzzy Kalman filter based on unobservable spectral components extracted from the experimental data.

2 Interval Type-2 Fuzzy Computational Model

In this section, the proposed methodology for designing the interval type-2 fuzzy Kalman filter computational model from experimental data is presented. Formulations for pre-processing the experimental data by spectral analysis, parametric estimation of interval type-2 fuzzy Kalman filter antecedent proposition, parametric estimation of interval type-2 fuzzy Kalman filter consequent proposition and its recursive updating mechanism are addressed.

2.1 Pre-Processing by Singular Spectral Analysis

The singular spectral analysis technique is a mathematical tool for analyzing and decomposing complex time series into simpler components within the original data. Such unobservable components have relevant characteristics about the corresponding time series behavior (Elsner 2002).

2.1.1 Training step

Let the initial experimental data set referring to p outputs of the dynamic system under analysis, with \(N_b\) samples, given by:

$$\begin{aligned} {\mathbf {Y}} = [{\mathbf {y}}_1 \quad {\mathbf {y}}_2 \quad \ldots \quad {\mathbf {y}}_{N_b}]^T, ~~~~ {\mathbf {Y}} \in {\mathbb {R}}^{p \times N_b} \end{aligned}$$
(1)

where \({\mathbf {y}}_k \in {\mathbb {R}}^p\), with \(k = 1,\dots ,N_b\), is the output vector of the dynamic system at instant of time k. From this initial data set, a trajectory matrix \( {\mathbf {H}} \) is defined, for each of the dimensions of \({\mathbf {Y}}\), considering a set of \( \rho \) delayed vectors with dimension \( \delta \), which is an integer number defined by user with \( 2 \le \delta \le N_b-1\) and \( \rho = N_b - \delta + 1 \), given by:

$$\begin{aligned} {\mathbf {H}} = \left[ \begin{array}{ccccc} y_1 &{} y_2 &{} y_3 &{} \cdots &{} y_\rho \\ y_2 &{} y_3 &{} y_4 &{} \cdots &{} y_{\rho +1}\\ \vdots &{} \vdots &{} \vdots &{} \ddots &{} \vdots \\ y_\delta &{} y_{\delta +1} &{} y_{\delta +2} &{} \cdots &{} y_{N_b} \end{array} \right] ,~~~~ {\mathbf {H}} \in {\mathbb {R}}^{\delta \times \rho } \end{aligned}$$
(2)

and the covariance matrix \( {\mathbf {S}} \) is obtained as follows:

$$\begin{aligned} {\mathbf {S}} = {\mathbf {H}}{\mathbf {H}}^T, \qquad {\mathbf {S}} \in {\mathbb {R}} ^{\delta \times \delta } \end{aligned}$$
(3)

Applying the singular value decomposition (SVD) procedure to matrix \( {\mathbf {S}} \), is obtained a set of eigenvalues in decreasing order such that \( \sigma ^1 \ge \sigma ^2\ge \dots \ge \sigma ^\delta \ge 0 \) with their respective eigenvectors \( \varvec{\phi }^1, \varvec{\phi }^2, \dots , \varvec{\phi }^\delta \). Considering \( d = max \left\{ \varsigma , \text {such that } \sigma ^\varsigma > 0 \right\} \), and \({\mathbf {V}}^\varsigma = {\mathbf {H}}^T\varvec{\phi }^\varsigma /\sqrt{\sigma ^\varsigma }\) with \(\varsigma = 1,\dots ,d\), the singular value decomposition of the trajectory matrix \( {\mathbf {H}} \), can be rewritten as:

$$\begin{aligned} {\mathbf {H}} = {\mathbf {H}}^1 + {\mathbf {H}}^2 + \dots + {\mathbf {H}}^d \end{aligned}$$
(4)

where the matrix \({\mathbf {H}}^\varsigma |^{\varsigma = 1,\dots ,d}\) is elementary (it has rank equal to 1) and is given by:

$$\begin{aligned} {\mathbf {H}}^\varsigma = \sqrt{\sigma ^\varsigma } \varvec{\phi }^\varsigma {{\mathbf {V}}^{\varsigma }}^T, ~~~~ {\mathbf {H}}^{\varsigma } \in {\mathbb {R}}^{\delta \times \rho } \end{aligned}$$
(5)

The regrouping of \({\mathbf {H}}^\varsigma |^{\varsigma = 1,\dots ,d}\) into \(\xi \) linearly independent matrices terms \({\mathbf {I}}^j|^{j = 1,\dots ,\xi }\), such that \(\xi \le d\), results in

$$\begin{aligned} {\mathbf {H}} = {\mathbf {I}}^1 + {\mathbf {I}}^2 + \dots + {\mathbf {I}}^\xi \end{aligned}$$
(6)

The unobservable components \( \alpha ^j | ^{j = 1, \ldots , \xi } \) extracted from experimental data, resulted from the matrices \( {\mathbf {I}}^{j} | ^ {j = 1, \ldots , \xi }\), are given by:

$$\begin{aligned} \alpha _k^j = {\left\{ \begin{array}{ll} \frac{1}{k} \displaystyle \sum _{\nu =1}^{k+1} I^{j}_{\nu , k - \nu + 1} \qquad 1 \le k \le \delta ^*\\ \frac{1}{\delta ^*} \displaystyle \sum _{\nu =1}^{\delta ^*} I^{j}_{\nu , k - \nu + 1} \qquad \delta ^* \le k \le \rho ^*\\ \frac{1}{N_b-k+1} \displaystyle \sum _{\nu =k-\rho ^*+1}^{N-\rho ^*+1} I^{j}_{\nu , k - \nu + 1} \qquad \rho ^* < k \le N_b \end{array}\right. } \end{aligned}$$
(7)

where \( \delta ^* = \text{ min }(\delta ,\rho )\), \( \rho ^* = \text{ max }(\delta ,\rho )\) and \( N_b = \delta + \rho - 1\).

2.1.2 Recursive step

After the initialization of spectral analysis algorithm in the training step, the next steps will be repeated for each time instant \(k=N_b+1, N_b+2, \dots \), as formulated in sequel. The value of \( \rho \) is increased by:

$$\begin{aligned} \rho = k-\delta +1 \end{aligned}$$
(8)

The covariance matrix is updated, recursively, as follows:

$$\begin{aligned} {\mathbf {S}}_k = {\mathbf {S}}_{k-1} + {\varvec{\Upsilon }}_k, \qquad {\mathbf {S}}_k \in {\mathbb {R}}^{\delta \times \delta } \end{aligned}$$
(9)

where \({\varvec{\Upsilon }}_k = \varvec{\psi }_k\varvec{\psi }_k^T \in {\mathbb {R}}^{\delta \times \delta }\) with \(\varvec{\psi }_k = \left[ y_{\rho }, y_{\rho + 1}, \dots , y_k \right] ^T \in {\mathbb {R}}^{\delta \times 1}\). Applying SVD procedure to covariance matrix \( {\mathbf {S}}_k \), the set of eigenvalues and their respective eigenvectors are updated such that the dynamic system output \(y_k\) can be rewritten by:

$$\begin{aligned} y_k = h_k^1 + h_k^2 + \dots + h_k^d \end{aligned}$$
(10)

where \(h_k^\varsigma = \kappa _k^\varsigma \varvec{\psi }_k^T \varvec{\phi }_k^\varsigma \) such that \( \kappa _k ^ \varsigma \) corresponds to the last element of the eigenvector \( \varvec{\phi }_k ^ \varsigma \). Finally, the regrouping of the terms \( h_k ^ \varsigma |^{\varsigma = 1, \ldots , d} \) in \( \xi \) disjoint terms \( I_k^j | ^ {j = 1, \ldots , \xi } \), results in

$$\begin{aligned} y_k = I_k^1 + I_k^2 + \ldots + I_k^\xi \end{aligned}$$
(11)

such that \(I_k^j = \alpha ^ j_k,~ \text{ with } ~ j = 1, \ldots , \xi \) and \(k = N_b+1, N_b+2,\dots \), represents the samples of extracted unobservable components at instant k. The recursive singular spectral analysis, according to proposed methodology, is implemented as described in Algorithm 1.

figure a

2.1.3 Recursive Estimation of Measurement Noise Covariance

The spectral components extracted by singular spectral analysis in section 2.1 that presents smaller eigenvalues are considered as residuals and they are used as data set for recursive estimation of measurement noise covariance R, inherited to experimental data. The initial covariance of measurement noise v, is given by:

$$\begin{aligned} R = \text{ E }(vv^T) = \dfrac{1}{N_b} \sum _{j = 1}^{N_b} v_jv_j^T \end{aligned}$$
(12)

where \( N_b \) is the length of experimental data set to be used in training step for initial parameterization of interval type-2 fuzzy Kalman filter and v is the spectral component \(\alpha ^j\) considered as residual. The recursive updating of covariance R, at instants of time \( k = N_b + 1, N_b + 2, \dots \), is given by:

$$\begin{aligned} R_{k} = \dfrac{k-1}{k}R_{k-1} + \dfrac{1}{k} v_kv_k^T \end{aligned}$$
(13)

Once the covariance R of the residual v is computed, an adaptive factor \( {\mathcal {X}} _k \), with \(k = N_b + 1, N_b+2, \dots \), is proposed, to be used as weighting factor for implementing the recursive updating mechanism of interval type-2 fuzzy Kalman filter, as follows:

$$\begin{aligned}&{\left\{ \begin{array}{ll} {\mathcal {X}}_k = 1~~~&{}\text{ for } ~~ R_k < 1 \\ {\mathcal {X}}_k = R_k^{-1}~~~&{}\text{ for } ~~ 1 \le R_k \le 1000 \\ {\mathcal {X}}_k = 1\times 10^{-3}~~~&{}\text{ for } ~~ R_k > 1000 \\ \end{array}\right. } \end{aligned}$$
(14)

The algorithm for recursive estimation of noise covariance R and weighting factor \({\mathcal {X}}\), according to proposed methodology, is implemented as described in Algorithm 2.

figure b

2.2 Parametric Estimation of Interval Type-2 Fuzzy Kalman Filter

The adopted structure of interval type-2 fuzzy Kalman filter presents the \(i|^{[i=1,2,\dots ,c]}\)-th fuzzy rule, given by:

$$\begin{aligned} R^{(i)}:&\text{ IF } {\mathbf {Z}}_k \text{ IS } {\widetilde{W}}^i \nonumber \\&\text{ THEN } {\left\{ \begin{array}{ll} \widetilde{\hat{{\mathbf {x}}}}^i_{k+1} = \widetilde{{\mathbf {A}}}^i_k\widetilde{\hat{{\mathbf {x}}}}^i_k + \widetilde{{\mathbf {B}}}^i_k{\mathbf {u}}_k + \varvec{\mathcal {X}}_k \widetilde{{\mathbf {K}}}^i_k\widetilde{\varvec{\epsilon }}^i_k \\ \widetilde{\hat{{\mathbf {y}}}}^i_k = \widetilde{{\mathbf {C}}}^i_k\widetilde{\hat{{\mathbf {x}}}}^i_k + \widetilde{{\mathbf {D}}}^i_k{\mathbf {u}}_k \end{array}\right. } \end{aligned}$$
(15)

with n-th order, m inputs, p outputs, where \( {\mathbf {Z}}_k\) is the linguistic variable of the antecedent; \( {\widetilde{W}}^i \) is the interval type-2 fuzzy set; \(\widetilde{\hat{{\mathbf {x}}}}^i_{k} \in {\mathbb {R}}^{n} \) is the estimated interval states vector of the nonlinear dynamic system; \( \widetilde{\hat{{\mathbf {y}}}}^i_k \in {\mathbb {R}}^{p}\) is the estimated interval output vector and \( {\mathbf {u}}_k \in {\mathbb {R}}^{m}\) is the input signal. The matrices \( \widetilde{{\mathbf {A}}}^i_k \in {\mathbb {R}}^{n \times n}\), \(\widetilde{{\mathbf {B}}}^i_k \in {\mathbb {R}}^{n \times m}\), \(\widetilde{{\mathbf {C}}}^i_k \in {\mathbb {R}}^{p \times n}\), \(\widetilde{{\mathbf {D}}}^i_k \in {\mathbb {R}}^{p \times m}\) and \(\widetilde{{\mathbf {K}}}^i_k \in {\mathbb {R}}^{n \times p}\) are, respectively, state matrix, input matrix, output matrix, direct transmission matrix and Kalman gain matrix, which are uncertain parameters that describe the dynamics of the nonlinear system within a region of uncertainty. The residual error \(\widetilde{\varvec{\epsilon }}^i_k\) for i-th rule is defined as \(\widetilde{\varvec{\epsilon }}^i_k = {\mathbf {y}}_k - \widetilde{\hat{{\mathbf {y}}}}^i_k\), where \({\mathbf {y}}_k \in {\mathbb {R}}^p\) is the real output of the dynamic system and \(\widetilde{\hat{{\mathbf {y}}}}^i_k\) is the interval estimated output by i-th linear submodel, and the \(\varvec{\mathcal {X}}_k\) is the weighting factor, as formulated in section 2.1.3, which corresponding to the level of filtering to be applied by interval type-2 fuzzy Kalman filter on the experimental data.

The interval type-2 fuzzy Kalman filter approximates the dynamic behavior inherited to experimental data through the weighted sum of Kalman filters defined in the consequent proposition of type-2 fuzzy Kalman filter rules, according to normalized interval activation degrees, of each i-th rule, as follows:

$$\begin{aligned} \widetilde{\hat{{\mathbf {x}}}}_{k+1}= & {} \sum _{i = 1}^{c} {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_k)\widetilde{{\mathbf {A}}}^i_k\widetilde{\hat{{\mathbf {x}}}}_k + \sum _{i = 1}^{c}{\widetilde{\mu }}^i_{\widetilde{W}^i}({\mathbf {Z}}_k) \widetilde{{\mathbf {B}}}^i_k{\mathbf {u}}_k \nonumber \\&+ \sum _{i = 1}^{c} {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_k) \varvec{\mathcal {X}}_k \widetilde{{\mathbf {K}}}^i_k\widetilde{\varvec{\epsilon }}^i_k \end{aligned}$$
(16)
$$\begin{aligned} \widetilde{\hat{{\mathbf {y}}}}_k= & {} \sum _{i = 1}^{c} {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_k) \widetilde{{\mathbf {C}}}^i_k \widetilde{\hat{{\mathbf {x}}}}_k + \sum _{i = 1}^{c} {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_k) \widetilde{{\mathbf {D}}}^i_k {\mathbf {u}}_k \end{aligned}$$
(17)

with \({\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_k) = \left[ {\underline{\mu }}^i_{\widetilde{W}^i}({\mathbf {Z}}_k), {\overline{\mu }}_{\widetilde{W}^i}^i({\mathbf {Z}}_k) \right] \), where \({\underline{\mu }}^i_{\widetilde{W}^i}({\mathbf {Z}}_k)\) and \({\overline{\mu }}^i_{\widetilde{W}^i}({\mathbf {Z}}_k)\) corresponds to lower and upper activation degrees in i-th cluster, respectively, and c is the number of rules of interval type-2 fuzzy Kalman filter, such that:

$$\begin{aligned} \sum _{i=1}^{c}{\widetilde{\mu }}^i_{\widetilde{W}^i}({\mathbf {Z}}_k) = 1, \qquad {\widetilde{\mu }}^i_{\widetilde{W}^i}({\mathbf {Z}}_k) \ge 0 \end{aligned}$$
(18)

2.2.1 Parametric Estimation of Antecedent

The partitioning of experimental data implies to computing of operating regions and, necessarily, the number of rules of the interval type-2 fuzzy Kalman filter. An interval type-2 fuzzy version of Gustafson–Kessel clustering algorithm was proposed, which is formulated in the sequel.

Given the experimental data set \({\mathbf {Z}}\), previously collected, of size \(n \times N_b\), choose the number of clusters \(1<c<N_b\); the initial interval partition matrix \(\widetilde{{\mathbf {U}}}^{(0)} \in {\mathbb {R}}^{c \times N_b}\), the termination tolerance \(\mathcal {E} > 0\) and the interval weighting exponent \(\widetilde{m} = \left[ {\underline{m}}, {\overline{m}} \right] \), where \({\underline{m}}\) and \({\overline{m}}\) correspond to, respectively, weighting exponent of upper and lower membership functions.

Repeat for \(l = 1,2,\dots \)

Step 1 - Compute the centers of the clusters:

$$\begin{aligned} \widetilde{{\mathbf {v}}}^{{i}^{(l)}} = \frac{\displaystyle \sum _{k=1}^{N_b}\left( {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_k)^{i^{(l-1)}} \right) ^{\widetilde{m}}{\mathbf {Z}}_k}{\displaystyle \sum _{k=1}^{N_b}\left( {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_k)^{{(l-1)}} \right) ^{\widetilde{m}}} ,~~1\le i \le c \end{aligned}$$
(19)

Step 2 - Compute the covariance matrices of the clusters:

$$\begin{aligned} \widetilde{{\mathbf {F}}}^i= & {} \dfrac{\displaystyle \sum _{k=1}^{N_b} \left( {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_k)^{{(l-1)}} \right) ^{\widetilde{m}} \left( {\mathbf {Z}}_k - \widetilde{{\mathbf {v}}}^{i^{(l)}}\right) \left( {\mathbf {Z}}_k - \widetilde{{\mathbf {v}}}^{i^{(l)}}\right) ^T }{\displaystyle \sum _{k=1}^{N}\left( {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_k)^{{(l-1)}} \right) ^{\widetilde{m}} },\nonumber \\&~~1\le i \le c,~~1\le k \le N_b \end{aligned}$$
(20)

Step 3 - Compute the distances:

$$\begin{aligned} {{\widetilde{D}}^{i}}_{k\widetilde{{\mathbf {F}}}^i} = \sqrt{\left( {\mathbf {Z}}_k - \widetilde{{\mathbf {v}}}^{i^{(l)}} \right) ^T \left[ \text{ det }\left( \widetilde{{\mathbf {F}}}^i\right) ^{1/n}\left( {\widetilde{{\mathbf {F}}}}^{i}\right) ^{-1} \right] \left( {\mathbf {Z}}_k - \widetilde{{\mathbf {v}}}^{i^{(l)}}\right) } \end{aligned}$$
(21)

Step 4 - Update the partition matrix:

If \({{\widetilde{D}}^{i}}_{k\widetilde{{\mathbf {F}}}^i} > 0\) for \(1 \le i \le c\), \(1\le k \le N_b\)

$$\begin{aligned} {\widetilde{\mu }}^{i^{(l)}}_{\widetilde{W}^i} ({\mathbf {Z}}_k) = \left[ {\underline{\mu }}^i_{\widetilde{W}^i}({\mathbf {Z}}_k), {\overline{\mu }}_{\widetilde{W}^i}^i({\mathbf {Z}}_k) \right] \end{aligned}$$
(22)

where

$$\begin{aligned} {{\underline{\mu }}^{i^{(l)}}_{\widetilde{W}^i}({\mathbf {Z}}_k)}= & {} \text{ min } \left[ \dfrac{1}{\displaystyle \sum _{j = 1}^{c}\left( {{\underline{D}}^{i}_{k\underline{{\mathbf {F}}}^i}}/ {{\underline{D}}^{i}_{k\underline{{\mathbf {F}}}^i}}\right) ^{2/({\underline{m}} -1)}}~~\right. , \nonumber \\&\left. ~~\dfrac{1}{\displaystyle \sum _{j = 1}^{c}\left( {{\overline{D}}^{i}_{k\overline{{\mathbf {F}}}^i}}/ {{\overline{D}}^{i}_{k\overline{{\mathbf {F}}}^i}}\right) ^{2/({\overline{m}}-1)}} \right] \end{aligned}$$
(23)
$$\begin{aligned} {{\overline{\mu }}^{i^{(l)}}_{\widetilde{W}^i}({\mathbf {Z}}_k)}= & {} \text{ max } \left[ \dfrac{1}{\displaystyle \sum _{j = 1}^{c}\left( {{\underline{D}}^{i}_{k\underline{{\mathbf {F}}}^i}}/ {{\underline{D}}^{i}_{k\underline{{\mathbf {F}}}^i}}\right) ^{2/({\underline{m}}-1)}} ~~\right. , \nonumber \\&\left. ~~\dfrac{1}{\displaystyle \sum _{j = 1}^{c}\left( {{\overline{D}}^{i}_{k\overline{{\mathbf {F}}}^i}} /{{\overline{D}}^{i}_{k\overline{{\mathbf {F}}}^i}}\right) ^{2/({\overline{m}}-1)}} \right] \end{aligned}$$
(24)

otherwise

\({{\widetilde{\mu }}^{i^{(l)}}_{\widetilde{W}^i}({\mathbf {Z}}_k)}=\left[ 0,~0\right] \) with \({{\underline{\mu }}^{i^{(l)}}_{\widetilde{W}^i}({\mathbf {Z}}_k)} \in [0,1]\) e \({\overline{\mu }^{i^{(l)}}_{\widetilde{W}^i}({\mathbf {Z}}_k)} \in [0,1]\)

Until \(\left\| \widetilde{{\mathbf {U}}}^{(l)}-\widetilde{{\mathbf {U}}}^{(l-1)}\right\| < \mathcal {E}\)

The interval type-2 fuzzy Gustafson–Kessel clustering algorithm, according to proposed methodology, is implemented as described in Algorithm 3.

figure c

2.2.2 Parametric Estimation of Consequent

Once the interval type-2 fuzzy Kalman filter is obtained by black box modeling approach, it is necessary to estimate, from experimental data, the matrices that compose the interval type-2 fuzzy Kalman filter inference system consequent proposition, as formulated in Eq. (15). In this sense, an interval type-2 fuzzy OKID (Observer/Kalman Filter Identification) algorithm, is proposed. The interval type-2 membership values from partitions defined on experimental data, which were estimated by interval type-2 Gustafson–Kessel clustering algorithm, have been considered as weighting criteria for computing the consequent proposition of interval type-2 fuzzy Kalman filter inference system. The interval type-2 fuzzy OKID algorithm is formulated in the sequel.

Let the experimental data set \({\mathbf {Z}}\), such that \({\mathbf {Z}}_k = \left[ {\mathbf {u}}_k \varvec{\alpha }^*_k \right] ^T \), where \(\varvec{\alpha }^*_k\) corresponds to spectral components extracted from the experimental data. Choose an appropriate number of Markov parameters q, through the following steps:

Step 1 - Compute the matrix of regressors \({\varvec{\Lambda }}\), given by:

$$\begin{aligned} {\varvec{\Lambda }} = \left[ \begin{array}{cccc} {\mathbf {u}}_q ~~ &{} ~~{\mathbf {u}}_{q+1} ~~&{} \cdots &{} {\mathbf {u}}_{N_b-1} \\ {\mathbf {Z}}_{q-1} ~~ &{} ~~{\mathbf {Z}}_{q} ~~&{} \cdots &{} {\mathbf {Z}}_{N_b-2}\\ {\mathbf {Z}}_{q-2} ~~ &{} ~~{\mathbf {Z}}_{q-1} ~~&{} \cdots &{} {\mathbf {Z}}_{N_b-3}\\ \vdots ~~&{} ~~\vdots ~~&{} \ddots &{} \vdots \\ {\mathbf {Z}}_0 ~~&{} ~~{\mathbf {Z}}_1 &{} \cdots &{}~~ {\mathbf {Z}}_{N_b-q-1}\\ \end{array} \right] \end{aligned}$$
(25)

Step 2 - Compute the interval observer Markov parameters \(\widetilde{\overline{{\mathbf {Y}}}}^i\):

$$\begin{aligned} {\mathbf {y}}^T = \displaystyle \sum _{i = 1}^{c} \widetilde{{\varvec{\Gamma }}}^i {\varvec{\Lambda }}^T \widetilde{\overline{{\mathbf {Y}}}}^{i^T} \end{aligned}$$
(26)

where

$$\begin{aligned} \widetilde{{\varvec{\Gamma }}}^i = \left[ \begin{array}{cccc} {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_q) &{} 0 &{} \dots &{} 0\\ 0 &{} {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_{q+1}) &{} \dots &{} 0\\ 0 &{} 0 &{} \dots &{} 0\\ \vdots &{} \vdots &{} \ddots &{} \vdots \\ 0 &{} 0 &{} \dots &{} {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_{N_b-1})\\ \end{array} \right] \end{aligned}$$
(27)

is the diagonal weighting matrix of the i-th fuzzy rule obtained from the interval type-2 GK fuzzy clustering algorithm and

$$\begin{aligned} \widetilde{\overline{{\mathbf {Y}}}}^{i}= & {} \left[ \begin{array}{ccc} \widetilde{{\mathbf {D}}}^i_k ~&\widetilde{{\mathbf {C}}}^i_k \widetilde{\overline{{\mathbf {B}}}}^i_k ~&\widetilde{{\mathbf {C}}}^i_k \widetilde{\overline{{\mathbf {A}}}}^i_k \widetilde{\overline{{\mathbf {B}}}}^i_k ~\cdots ~ \widetilde{{\mathbf {C}}}^i_k \widetilde{\overline{{\mathbf {A}}}}^{i^{\left( q-1\right) }}_k \widetilde{\overline{{\mathbf {B}}}}^i_k \end{array} \right] \nonumber \\= & {} \left[ \widetilde{\overline{{\mathbf {Y}}}}_0 ~~ \widetilde{\overline{{\mathbf {Y}}}}_1 ~~ \widetilde{\overline{{\mathbf {Y}}}}_2 ~~ \cdots \widetilde{\overline{{\mathbf {Y}}}}_q\right] \end{aligned}$$
(28)

is the interval observer Markov parameters of i-th rule such that

$$\begin{aligned} \widetilde{\overline{{\mathbf {A}}}}^i_k= & {} \left[ \widetilde{{\mathbf {A}}}^i_k + \widetilde{{\mathbf {K}}}^i_k\widetilde{{\mathbf {C}}}^i_k\right] \end{aligned}$$
(29)
$$\begin{aligned} \widetilde{\overline{{\mathbf {B}}}}^i_k= & {} \left[ \widetilde{{\mathbf {B}}}^i_k + \widetilde{{\mathbf {K}}}^i_k\widetilde{{\mathbf {D}}}^i_k~, -\widetilde{{\mathbf {K}}}^i_k\right] \end{aligned}$$
(30)
Fig. 1
figure 1

The MSE comparative analysis for filtering and tracking, based on 100 realizations, the state variable \(x_1\) of Lorenz’s chaotic attractor: a Approach in (Páramo-Carranza et al. 2017); b interval type-2 fuzzy Kalman filter based on proposed methodology

Fig. 2
figure 2

The MSE comparative analysis for filtering and tracking, based on 100 realizations, the state variable \(x_2\) of Lorenz’s chaotic attractor: a Approach in (Páramo-Carranza et al. 2017); b interval type-2 fuzzy Kalman filter based on proposed methodology

Fig. 3
figure 3

The MSE comparative analysis for filtering and tracking, based on 100 realizations, the state variable \(x_3\) of Lorenz’s chaotic attractor: a Approach in (Páramo-Carranza et al. 2017); b interval type-2 fuzzy Kalman filter based on proposed methodology

Fig. 4
figure 4

The computational data set of state variable \(x_1\) from Lorenz’s chaotic attractor corrupted by noise with \(SNR = 0.65\)

Fig. 5
figure 5

The temporal behavior of spectral components \(\alpha ^j|^{j = 1,\dots ,2}\), which were extracted for state variable \(x_1\) from Lorenz’s chaotic attractor in a noisy environment with \(SNR = 0.65\): a Unobservable component \(\alpha ^1\) assumed as residual; b Unobservable component \(\alpha ^2\) assumed as dynamically correlated to state variable \(x_1\)

Fig. 6
figure 6

Interval type-2 fuzzy membership functions estimated by clustering of state variable \(x_1\) from Lorenz’s chaotic attractor

Fig. 7
figure 7

The temporal behavior of a measurement noise covariance \(R_k\) associated to state variable \(x_1\) and b the weighting factor \(\varvec{\mathcal {X}}_k\) used for implementing the recursive updating mechanism of interval type-2 fuzzy Kalman filter

Manipulating Eq. (26):

$$\begin{aligned} {\varvec{\Lambda }} \widetilde{{\varvec{\Gamma }}}^i {\mathbf {y}}^T = {\varvec{\Lambda }} \widetilde{{\varvec{\Gamma }}}^i {\varvec{\Lambda }}^T \widetilde{\overline{{\mathbf {Y}}}}^{i^T} \end{aligned}$$
(31)

Assuming \(\widetilde{\varvec{{\mathfrak {U}}}}^i = {\varvec{\Lambda }} \widetilde{{\varvec{\Gamma }}}^i {\varvec{\Lambda }}^T\) and \(\widetilde{\varvec{\aleph }}^i = {\varvec{\Lambda }} \widetilde{{\varvec{\Gamma }}}^i {\mathbf {y}}^T\), Eq. (31) is rewriting as:

$$\begin{aligned} \varvec{\widetilde{{\mathfrak {U}}}}^i \widetilde{\overline{{\mathbf {Y}}}}^{i^T} = \widetilde{\varvec{\aleph }}^i \end{aligned}$$
(32)

Equation (32) is solved by QR factorization method, which is numerically robust since it avoids matrix inverse operations. Applying QR factorization to the term \(\varvec{\widetilde{{\mathfrak {U}}}}^i\) on the right side of the Eq. (32), it has:

$$\begin{aligned} \widetilde{{\mathbf {Q}}}^i \widetilde{{\mathbf {R}}}^i \widetilde{\overline{{\mathbf {Y}}}}^{i^T} = \widetilde{\varvec{\aleph }}^i \end{aligned}$$
(33)

where \(\widetilde{{\mathbf {Q}}}^i\) is an orthogonal matrix, such that \(\left( \widetilde{{\mathbf {Q}}}^i\right) ^{-1} = \left( \widetilde{{\mathbf {Q}}}^i\right) ^T\) and \(\widetilde{{\mathbf {R}}}^i\) is an upper triangular matrix. Because the matrix \(\widetilde{{\mathbf {R}}}^i\) is upper triangular, Eq. (33) can be solved by backward replacement, obtaining the observer’s Markov parameter vector \(\widetilde{\overline{{\mathbf {Y}}}}^{i}\).

Step 3 - Compute the observer gain and system Markov parameters:

$$\begin{aligned} \widetilde{\overline{{\mathbf {Y}}}}_0^i= & {} \widetilde{{\mathbf {D}}}^i_k \end{aligned}$$
(34)
$$\begin{aligned} \widetilde{\overline{{\mathbf {Y}}}}_j^i= & {} \widetilde{{\mathbf {C}}}^i_k \widetilde{\overline{{\mathbf {A}}}}^{i^{\left( j-1\right) }}\widetilde{\overline{{\mathbf {B}}}}^i_k \end{aligned}$$
(35)
$$\begin{aligned}= & {} \left[ \widetilde{{\mathbf {C}}}^i_k \left( \widetilde{{\mathbf {A}}}^i_k + \widetilde{{\mathbf {K}}}^i_k \widetilde{{\mathbf {C}}}^i_k \right) ^{\left( j-1\right) } \left( \widetilde{{\mathbf {B}}}^i_k + \widetilde{{\mathbf {K}}}^i_k \widetilde{{\mathbf {D}}}^i_k \right) ~, \right. \nonumber \\&\left. - \widetilde{{\mathbf {C}}}^i_k \left( \widetilde{{\mathbf {A}}}_k^i + \widetilde{{\mathbf {K}}}^i_k \widetilde{{\mathbf {C}}}^i_k \right) ^{\left( j-1\right) } \widetilde{{\mathbf {K}}}^i_k \right] \end{aligned}$$
(36)
$$\begin{aligned}= & {} \left[ \widetilde{\overline{{\mathbf {Y}}}}_j^{i^{(1)}}~,~ -\widetilde{\overline{{\mathbf {Y}}}}_j^{i^{(2)}}\right] ,~~ j = 1,2,3, \dots \end{aligned}$$
(37)
Fig. 8
figure 8

Performance of interval type-2 fuzzy Kalman filter, based on proposed methodology, for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor, in the case of \(SNR = 0.65\)

Fig. 9
figure 9

The temporal behavior estimated of the main diagonal elements from interval type-2 fuzzy Kalman gains, during recursive updating of interval type-2 fuzzy Kalman filter for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor: ac Rule 1, df Rule 2

Fig. 10
figure 10

The temporal behavior from estimated of the main diagonal elements from interval type-2 fuzzy matrix \(\widetilde{{\mathbf {A}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor: ac Rule 1, df Rule 2

Fig. 11
figure 11

The temporal behavior from estimated of the main diagonal elements from interval type-2 fuzzy matrix \(\widetilde{{\mathbf {B}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor: ac Rule 1, df Rule 2

Fig. 12
figure 12

The temporal behavior from estimated of the main diagonal elements from interval type-2 fuzzy matrix \(\widetilde{{\mathbf {C}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor: ac Rule 1, df Rule 2

Fig. 13
figure 13

The temporal behavior from estimated of the main diagonal elements from interval type-2 fuzzy matrix \(\widetilde{{\mathbf {D}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor: ac Rule 1, df Rule 2

Thus, the system Markov parameters are obtained as follows:

$$\begin{aligned} \widetilde{{\mathbf {Y}}}_0^i= & {} \widetilde{\overline{{\mathbf {Y}}}}_0^i = \widetilde{{\mathbf {D}}}^i_k \end{aligned}$$
(38)
$$\begin{aligned} \widetilde{{\mathbf {Y}}}_j^i= & {} \widetilde{\overline{{\mathbf {Y}}}}_j^{i^{(1)}} - \sum _{\iota =1}^{j}\widetilde{\overline{{\mathbf {Y}}}}_j^{i^{(2)}} \widetilde{{\mathbf {Y}}}_{j-\iota }^i, ~ \text{ for } ~ j = 1, \dots , q \end{aligned}$$
(39)
$$\begin{aligned} \widetilde{{\mathbf {Y}}}_j^i= & {} -\sum _{\iota =1}^{q} \widetilde{\overline{{\mathbf {Y}}}}_j^{i^{(2)}}\widetilde{{\mathbf {Y}}}_{j-\iota }^i , ~~ \text{ for } ~ j = q+1, \dots , \infty \end{aligned}$$
(40)

and the observer gain Markov parameters are obtained by:

$$\begin{aligned} \widetilde{{\mathbf {Y}}}_1^{i^o}= & {} \widetilde{\overline{{\mathbf {Y}}}}_1^{i^{(2)}} = \widetilde{{\mathbf {C}}}^i_k \widetilde{{\mathbf {K}}}^i_k \end{aligned}$$
(41)
$$\begin{aligned} \widetilde{{\mathbf {Y}}}_j^{i^o}= & {} \widetilde{\overline{{\mathbf {Y}}}}_j^{i^{(2)}} - \sum _{\iota =1}^{j-1}\widetilde{\overline{{\mathbf {Y}}}}_j^{i^{(2)}} \widetilde{{\mathbf {Y}}}_{j-\iota }^{i^o}, \text{ for } ~ j = 2, \dots , q \end{aligned}$$
(42)
$$\begin{aligned} \widetilde{{\mathbf {Y}}}_j^{i^o}= & {} -\sum _{\iota =1}^{q} \widetilde{\overline{{\mathbf {Y}}}}_j^{i^{(2)}} \widetilde{{\mathbf {Y}}}_{j-\iota }^{i^o} , ~~ \text{ for } ~ j = q+1, \dots , \infty \end{aligned}$$
(43)

Step 4 - Construct the Hankel matrix \(\widetilde{{\mathbf {H}}}^i\left( j - 1\right) \in {\mathbb {R}}^{\gamma p \times \beta m}\):

$$\begin{aligned} \widetilde{{\mathbf {H}}}^i\left( j - 1\right) = \left[ \begin{array}{cccc} \widetilde{{\mathbf {Y}}}_j^i &{} ~ \widetilde{{\mathbf {Y}}}_{j+1}^i &{} ~ \dots &{} \widetilde{{\mathbf {Y}}}_{j+\beta -1}^i \\ \widetilde{{\mathbf {Y}}}_{j+1}^i &{} ~ \widetilde{{\mathbf {Y}}}_{j+2}^i &{} ~ \dots &{} \widetilde{{\mathbf {Y}}}_{j+ \beta }^i \\ \vdots &{} \vdots &{} \ddots &{} \vdots \\ \widetilde{{\mathbf {Y}}}_{j+\gamma -1}^i &{} ~ \widetilde{{\mathbf {Y}}}_{j+ \gamma }^i &{} \dots &{} \widetilde{{\mathbf {Y}}}_{j+\gamma + \beta -2}^i\\ \end{array} \right] \end{aligned}$$
(44)

where \(\gamma \) and \(\beta \) are sufficiently large arbitrary integers defined by user.

Step 5 - For \(j = 1\), decompose \(\widetilde{{\mathbf {H}}}^i\left( 0 \right) \) using Singular Value Decomposition:

$$\begin{aligned} \widetilde{{\mathbf {H}}}^i\left( 0 \right) = \widetilde{{\varvec{\Xi }}}^i \widetilde{{\varvec{\Sigma }}}^i \widetilde{{\varvec{\Psi }}}^{i^T} \end{aligned}$$
(45)

where \(\widetilde{{\varvec{\Xi }}}^i \in {\mathbb {R}}^{\alpha p \times \alpha p}\) and \(\widetilde{{\varvec{\Psi }}}^{i} \in {\mathbb {R}}^{\beta m \times \beta m}\) are orthogonal matrices and \(\widetilde{{\varvec{\Sigma }}}^i \in {\mathbb {R}}^{\alpha p \times \beta m}\) is the diagonal matrix of singular values defined as:

$$\begin{aligned} \widetilde{{\varvec{\Sigma }}}^i = \left[ \begin{array}{cc} \widetilde{{\varvec{\Sigma }}}^i_{n} &{} ~~0\\ 0 &{} ~~0 \end{array} \right] \end{aligned}$$
(46)

such that n is the number of significant singular values and determines the minimum order of the type-2 fuzzy Kalman filter. Thus, the size of matrices in Eq. (45) is reduced to the minimum order, as follows:

$$\begin{aligned} \widetilde{{\mathbf {H}}}^i_n\left( 0 \right) = \widetilde{{\varvec{\Xi }}}^i_n \widetilde{{\varvec{\Sigma }}}^i_n \widetilde{{\varvec{\Psi }}}^{i^T}_n \end{aligned}$$
(47)

where \(\widetilde{{\varvec{\Xi }}}_n^i \in {\mathbb {R}}^{\alpha p \times n}\), \(\widetilde{{\varvec{\Psi }}}_n^{i} \in {\mathbb {R}}^{\beta m \times n}\), \(\widetilde{{\varvec{\Sigma }}}_n^i \in {\mathbb {R}}^{n \times n}\) are the resulting matrices after the reduction to minimum order.

Step 6 - Compute the observability and controllability matrices:

$$\begin{aligned} \widetilde{\varvec{\mathcal {P}}}_\gamma ^i= & {} \widetilde{{\varvec{\Xi }}}^i_n \left( \widetilde{{\varvec{\Sigma }}}^{i}_n\right) ^{1/2} \end{aligned}$$
(48)
$$\begin{aligned} \widetilde{\varvec{\mathcal {Q}}}_\beta ^i= & {} \left( \widetilde{{\varvec{\Sigma }}}^{i}_n\right) ^{1/2} \widetilde{{\varvec{\Psi }}}^{i^T}_n \end{aligned}$$
(49)
Fig. 14
figure 14

Instantaneous upper normalized fuzzy activation degrees of type-2 fuzzy Kalman inference system, during its recursive updating for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor: a Rule 1, b Rule 2

Fig. 15
figure 15

Instantaneous lower normalized fuzzy activation degrees of type-2 fuzzy Kalman inference system, during its recursive updating for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor: a Rule 1, b Rule 2

where

$$\begin{aligned} \widetilde{\varvec{\mathcal {P}}}_\gamma ^i = \left[ \begin{array}{c} \widetilde{{\mathbf {C}}}^i_k \\ \widetilde{{\mathbf {C}}}^i_k \widetilde{{\mathbf {A}}}^i_k \\ \widetilde{{\mathbf {C}}}^i_k \widetilde{{\mathbf {A}}}^{i^2}_k \\ \vdots \\ \widetilde{{\mathbf {C}}}^i_k \widetilde{{\mathbf {A}}}^{i^{\gamma - 1}}_k \end{array}\right] \end{aligned}$$
(50)

is the observability matrix and

$$\begin{aligned} \widetilde{\varvec{\mathcal {Q}}}_\beta ^i = \left[ \widetilde{{\mathbf {B}}}^i_k ~~~~ \widetilde{{\mathbf {A}}}^i_k \widetilde{{\mathbf {B}}}^i_k ~~~~ \widetilde{{\mathbf {A}}}^{i^2}_k \widetilde{{\mathbf {B}}}^i_k ~\cdots ~\widetilde{{\mathbf {A}}}^{i^{\beta -1}}_k \widetilde{{\mathbf {B}}}^i_k\right] \end{aligned}$$
(51)

is the controllability matrix.

Step 7 - Compute the matrices that make up the consequent proposition of interval type-2 fuzzy Kalman filter:

$$\begin{aligned} \widetilde{{\mathbf {A}}}^i_k= & {} \left( \widetilde{{\varvec{\Sigma }}}^i_n\right) ^{-1/2}\widetilde{{\varvec{\Xi }}}^{i^T}_n \widetilde{{\mathbf {H}}}^i_n\left( 1 \right) \widetilde{{\varvec{\Psi }}}^{i^T}_n \left( \widetilde{{\varvec{\Sigma }}}^i_n\right) ^{-1/2} \end{aligned}$$
(52)
$$\begin{aligned} \widetilde{{\mathbf {B}}}^i_k= & {} \text{ first } m \text{ columns } \text{ of } \varvec{\mathcal {Q}}_\beta ^i \end{aligned}$$
(53)
$$\begin{aligned} \widetilde{{\mathbf {C}}}^i_k= & {} \text{ first } p \text{ rows } \text{ of } \varvec{\mathcal {P}}_\beta ^i \end{aligned}$$
(54)
$$\begin{aligned} \widetilde{{\mathbf {D}}}^i_k= & {} \widetilde{{\mathbf {Y}}}_0^i \end{aligned}$$
(55)

Step 8 - Compute the interval Kalman gain matrix:

$$\begin{aligned} \widetilde{{\mathbf {Y}}}_j^{i^o} = - \widetilde{\varvec{\mathcal {P}}}_\beta ^i \widetilde{{\mathbf {K}}}^i_k \end{aligned}$$
(56)
Fig. 16
figure 16

Performance of approach in (Páramo-Carranza et al. 2017) (dashed line) for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor (solid line), in the case of \(SNR = 0.65\)

Table 1 Efficiency analysis of interval type-2 fuzzy Kalman filter, based on proposed methodology, as compared to approach in (Páramo-Carranza et al. 2017), for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor in the case of \(SNR = 0.65\), based on MSE validation criterion

where \(\widetilde{{\mathbf {Y}}}_j^{i^o}\) is the observer gain Markov parameters, \(\widetilde{\varvec{\mathcal {P}}}_\beta ^i\) is the observability matrix and \(\widetilde{{\mathbf {K}}}^i_k\) is the interval Kalman gain matrix. Manipulating Eq. (56):

$$\begin{aligned} \widetilde{\varvec{\mathcal {P}}}_\beta ^{i^T} \widetilde{{\varvec{\Gamma }}}^i \widetilde{{\mathbf {Y}}}_j^{i^o} = - \widetilde{\varvec{\mathcal {P}}}_\beta ^{i^T} \widetilde{{\varvec{\Gamma }}}^i \widetilde{\varvec{\mathcal {P}}}_\beta ^i \widetilde{{\mathbf {K}}}^i_k \end{aligned}$$
(57)

Assuming \(\varvec{\widetilde{{\mathfrak {A}}}}^i = - \widetilde{\varvec{\mathcal {P}}}_\beta ^{i^T} \widetilde{{\varvec{\Gamma }}}^i \widetilde{\varvec{\mathcal {P}}}_\beta ^i\) and \(\varvec{\widetilde{{\mathfrak {N}}}}^i = \widetilde{\varvec{\mathcal {P}}}_\beta ^{i^T} \widetilde{{\varvec{\Gamma }}}^i \widetilde{{\mathbf {Y}}}_j^{i^o}\), Eq. (57) is rewritten as follows:

$$\begin{aligned} \varvec{\widetilde{{\mathfrak {A}}}}^i \widetilde{{\mathbf {K}}}^i_k = \varvec{\widetilde{{\mathfrak {N}}}}^i \end{aligned}$$
(58)

Equation (58) is solved by QR factorization method being applied to \(\varvec{\widetilde{{\mathfrak {A}}}}^i\) and obtaining the interval Kalman gain matrix \(\widetilde{{\mathbf {K}}}^i_k\) in the same way as done in Step 2 for determining interval Markov parameters.

Recursive Updating of Interval Type-2 Fuzzy Kalman Filter Inference System After the initial estimation of interval type-2 fuzzy Kalman filter, the Kalman filters, into consequent proposition of interval type-2 fuzzy Kalman filter inference system, are updated recursively at instants of time \(k=N_b+1, k = N_b+2, \dots \), to each new sample from experimental data set. Considering the regressors vector, at instant k, given by

$$\begin{aligned} \varvec{\lambda }_k = \left[ \begin{array}{c} {\mathbf {u}}_{k+1} \\ {\mathbf {Z}}_{k} \\ {\mathbf {Z}}_{k-1}\\ \vdots \\ {\mathbf {Z}}_{k-q} \end{array}\right] \end{aligned}$$
(59)

the interval observer Markov parameters \(\widetilde{\overline{{\mathbf {Y}}}}^{i}\) are obtained by recursive updating of Eq. (32), as follows:

$$\begin{aligned} \varvec{\widetilde{{\mathfrak {U}}}}^i_k= & {} \varvec{\widetilde{{\mathfrak {U}}}}^i_{k-1} + {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_{k}) \varvec{\lambda }_k \varvec{\lambda }^T_k \end{aligned}$$
(60)
$$\begin{aligned} \varvec{{\widetilde{\aleph }}}^i_k= & {} \widetilde{\varvec{\aleph }}^i_{k-1} + {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_{k}) \varvec{\lambda }_k {\mathbf {y}}^T_k \end{aligned}$$
(61)

Once \(\varvec{\widetilde{{\mathfrak {U}}}}^i_k\) and \(\varvec{{\widetilde{\aleph }}}^i_k\) have been updated, and applying the QR factorization in \(\varvec{\widetilde{{\mathfrak {U}}}}^i_k\), the i-th Markov parameters are updated. The consequent proposition of the type-2 fuzzy Kalman filter is updated recursively by repeating the Step 3 to Step 7. Similarly, the interval type-2 fuzzy Kalman gain matrix \(\widetilde{{\mathbf {K}}}^i_k\) is obtained by recursive updating of Eq. (58), as follows:

$$\begin{aligned} \varvec{\widetilde{{\mathfrak {A}}}}^i_k= & {} \varvec{\widetilde{{\mathfrak {A}}}}^i_{k-1} + {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_{k}) \varvec{\lambda }_k \varvec{\lambda }^T_k \end{aligned}$$
(62)
$$\begin{aligned} \varvec{\widetilde{{\mathfrak {N}}}}^i_k= & {} \varvec{\widetilde{{\mathfrak {N}}}}^i_{k-1} + {\widetilde{\mu }}^i_{\widetilde{W}^i} ({\mathbf {Z}}_{k}) \varvec{\lambda }_k \varvec{\lambda }^T_k \end{aligned}$$
(63)

Once \(\varvec{\widetilde{{\mathfrak {A}}}}^i_k\) and \(\varvec{\widetilde{{\mathfrak {N}}}}^i_k\) have been updated, and applying the QR factorization method in \(\varvec{\widetilde{{\mathfrak {A}}}}^i_k\), the interval type-2 fuzzy Kalman gain matrix is updated.

The interval type-2 fuzzy Observer/Kalman Filter Identification algorithm, according to proposed methodology, is implemented as described in Algorithm 4.

figure d
Fig. 17
figure 17

The experimental data of daily deaths reports within period ranging from 18 of March 2020 to 18 of May 2020, in state of Maranhão

Fig. 18
figure 18

The efficiency of unobservable components, according to VAF criterion, for representing the experimental data of the daily deaths reports, in the state of Maranhão

3 Results

In this section, computational results from filtering and tracking the states of a nonlinear dynamic system with chaotic behavior in a noisy environment, are shown to illustrate the efficiency of proposed methodology in comparison to approach in (Páramo-Carranza et al. 2017). Also, experimental results from real-time interval tracking and forecasting the COVID-19’s dynamic spread behavior in state of Maranhão and Brazil are shown to demonstrate the applicability of proposed methodology.

3.1 Computational Results

3.1.1 Interval Type-2 Fuzzy Kalman Filtering and Tracking of Lorenz’s Chaotic Attractor

In this section, computational results for filtering and tracking the states of a nonlinear dynamic system, with chaotic behavior, in a noisy environment, for comparative analysis with the approach in (Páramo-Carranza et al. 2017), widely cited in the literature, are presented. The nonlinear dynamic system under analysis consists of the Lorenz’s chaotic attractor, described by (Huang et al. 2015):

$$\begin{aligned} {\dot{x}}_1= & {} \varrho (x_2 - x_1)\nonumber \\ {\dot{x}}_2= & {} \varpi x_1 - x_2 - x_1 x_3\nonumber \\ {\dot{x}}_3= & {} x_1 x_2 - \varkappa x_3 \end{aligned}$$
(64)

where the parameters \( \varrho = 10 \), \( \varkappa = 8/3 \) and \( \varpi = 28 \) provide a chaotic behavior.

Once that the problem of interest, in this paper, is based on the time series related to state variables \(x_1\), \(x_2\) and \(x_3\) from Lorenz’s chaotic attractor, the variable \({\mathbf {u}}_k\), in Eq. 15 of proposed methodology, is considered as white noise signal with low amplitude. A data set from Lorenz’s chaotic attractor, with total length of 10000 samples by a sampling period of \( T = 1 \, \mathrm{ms} \), was generated. The first 4000 samples were used in training step for initial parameterization of interval type-2 fuzzy Kalman filter. The unobservable components associated to state variable \(x_1\) of Lorenz’s chaotic attractor were extracted by singular spectral analysis approach, according to section 2.1, for pre-processing of data set. The noisy state variable \( x_1 \) was decomposed into 2 spectral components, where the component with residual behavior was used for estimation of measurement noise covariance \(R_k\) and weighting factor \(\varvec{\mathcal {X}}\), and the other component, assuming correlated to nominal dynamic of state variable \(x_1\), was used for parameterizing the interval type-2 fuzzy Kalman filter. The partitions of computational data from noisy state variable \(x_1\) were defined by interval type-2 fuzzy Gustafson–Kessel clustering algorithm, so the antecedent proposition, the rules number and consequent proposition, of the interval type-2 fuzzy Kalman filter, could be estimated successfully. For implementing the interval type-2 fuzzy clustering algorithm, the following parameters were adopted: number of clusters \(c = 2\), interval weighting exponent \(\widetilde{m} = [1.5,2.0]\) and termination tolerance \(\mathcal {E} = 10^{-5}\). According to computational data of Lorenz’s chaotic attractor state variables \(x_2\) and \(x_3\), the unobservable components from noisy state variable \(x_1\), the interval type-2 fuzzy normalized membership values and the parameterization of interval type-2 fuzzy Kalman filter by training and recursive steps were performed. The parametric estimation of consequent proposition of interval type-2 fuzzy Kalman filter inference system, in Eq. 15, took into account the partitions on noisy state variable \(x_1\) as weighting criterion, and the parameters values: \(q = 1\), \(\gamma = 10\) e \(\beta = 10\). The signal-to-noise ratio (SNR) in the state variable \(x_1\) was varied, so that the ultimate goal was for filtering and tracking, from noisy computational data set, the nominal state variables \(x_1\), \(x_2\) and \(x_3\) as accurate as possible. The mean square error (MSE) values, used as validation criterion, for different levels of SNR, considering the effect of 100 realizations in the filtering and tracking the nominal state variables \(x_1, x_2\) and \(x_3\), are shown in Figs. 123, respectively. It is observed the superior performance of interval type-2 fuzzy Kalman filter, based on proposed methodology, for filtering and tracking the Lorenz’s chaotic attractor state variables, considering the lower values of MSE obtained by upper and lower limits of the interval type-2 fuzzy Kalman filter as compared to values of MSE obtained by approach in (Páramo-Carranza et al. 2017).

Fig. 19
figure 19

The temporal behavior of spectral unobservable components \(\alpha ^j|^{j = 1,\dots ,7}\), which were extracted from experimental data of daily deaths, in the state of Maranhão

Fig. 20
figure 20

Interval type-2 fuzzy membership functions estimated from clustering of daily deaths reports, in state of Maranhão

Fig. 21
figure 21

The confidence region generated by interval type-2 fuzzy Kalman filter for tracking the experimental data of daily deaths reports, from 03 of March 2020 to 18 of May 2020, in state of Maranhão

Fig. 22
figure 22

Performance of the interval type-2 fuzzy Kalman filter for tracking and forecasting the effects of COVID-19 spread experimental data related to daily deaths reports, in state of Maranhão: a updating based on training data from 18 of March 2020 to 18 of May 2020; b recursive updating on 24 of June 2020; c recursive updating on 28 of July 2020; d recursive updating on 25 of August 2020; e recursive updating on 25 of September 2020

Considering the particular case of \(SNR = 0.65\), the dynamic behavior for noisy and nominal cases of Lorenz’s chaotic attractor state variable \(x_1\) is shown in Fig. 4. According to experimental data of state variable \(x_1\) shown in Fig. 4, the pre-processed unobservable components in Fig. 5 and the interval type-2 fuzzy normalized membership values in Fig. 6, the parametric estimation of the type-2 fuzzy Kalman filter was computed by training and recursive steps. The component with residual behavior was used for estimation of measurement noise covariance \(R_k\) and weighting factor \(\varvec{\mathcal {X}}\), and the other component, assuming correlated to nominal dynamic of state variable \(x_1\), was used for parameterizing the interval type-2 fuzzy Kalman filter. As it can be seen in Fig. 5, the unobservable component \(\alpha ^1\) presenting a residual behavior was used for estimation of measurement noise covariance \(R_k\) and weighting factor \(\varvec{\mathcal {X}}\), and the unobservable component \(\alpha ^2\) assuming correlated to nominal dynamic of state variable \(x_1\) was used for parameterizing the interval type-2 fuzzy Kalman filter. Based on estimation of measurement noise covariance \(R_k\) associated to state variable \(x_1\), the weighting factor \(\varvec{\mathcal {X}}_k\) to be used as weighting factor for implementing the recursive updating mechanism of interval type-2 fuzzy Kalman filter is given by:

$$\begin{aligned} {\varvec{\mathcal {X}}_k} = \left[ \begin{array}{ccc} {R}^{-1}_k &{} ~~0 &{} ~~~0\\ 0 &{} ~~1 &{} ~~~0 \\ 0 &{} ~~0 &{} ~~~1 \\ \end{array} \right] \end{aligned}$$
(65)

The temporal behavior of the measurement noise covariance \({R}_k\) and the weighting factor \(\varvec{\mathcal {X}}_k\), which are associated with filtering and tracking the state variable \(x_1\) from Lorenz chaotic attractor, by interval type-2 fuzzy Kalman filter, is shown in Fig. 7. The confidence region, as shown in Fig. 8, created by interval type-2 fuzzy Kalman filter taking into account uncertainties, estimated by interval type-2 membership functions shown in Fig. 6, inherited to noisy data from Lorenz’s chaotic attractor, illustrates its efficiency for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\). The estimation of interval type-2 fuzzy Kalman gain matrices \(\widetilde{{\mathbf {K}}}^i|^{i = 1,\dots ,2}\), during recursive updating of interval type-2 fuzzy Kalman filter for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor, is shown in Fig. 9. The recursive estimation of the interval type-2 fuzzy matrices \(\widetilde{{\mathbf {A}}}^i\), \(\widetilde{{\mathbf {B}}}^i\), \(\widetilde{{\mathbf {C}}}^i\) and \(\widetilde{{\mathbf {D}}}^i\), with \(i = 1,\dots ,2\), in the consequent proposition of the interval type-2 fuzzy Kalman filter inference system, during recursive updating of interval type-2 fuzzy Kalman filter for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor, is shown in Figs. 10111213. The upper and lower instantaneous activation degrees related to interval type-2 fuzzy Kalman filter inference system, for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor, are shown in Figs. 1415. The performance of approach in (Páramo-Carranza et al. 2017) for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of the Lorenz’s chaotic attractor is shown in Fig. 16.

Fig. 23
figure 23

Interval type-2 fuzzy Kalman gains, during recursive updating of interval type-2 fuzzy Kalman filter for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in state of Maranhão: a Rule 1, b Rule 2, c Rule 3

Fig. 24
figure 24

Interval type-2 fuzzy matrix \(\widetilde{{\mathbf {A}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in state of Maranhão: a Rule 1, b Rule 2, c Rule 3

Fig. 25
figure 25

Interval type-2 fuzzy matrix \(\widetilde{{\mathbf {B}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in state of Maranhão: a Rule 1, b Rule 2, c Rule 3

Fig. 26
figure 26

Interval type-2 fuzzy matrix \(\widetilde{{\mathbf {C}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in state of Maranhão: a Rule 1, b Rule 2, c Rule 3

Fig. 27
figure 27

Interval type-2 fuzzy matrix \(\widetilde{{\mathbf {D}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in state of Maranhão: a Rule 1, b Rule 2, c Rule 3

Fig. 28
figure 28

Instantaneous normalized fuzzy activation degrees of type-2 fuzzy Kalman inference system, during its recursive updating for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in state of Maranhão: a upper instantaneous normalized fuzzy activation degrees and b lower instantaneous normalized fuzzy activation degrees

Fig. 29
figure 29

Real-time efficiency, based on VAF validation criterion, of interval type-2 fuzzy Kalman filter, during its recursive updating for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 29 of September, in state of Maranhão

Fig. 30
figure 30

The experimental data of daily deaths reports within period from 29 of February 2020 to 18 of May 2020, in Brazil

Fig. 31
figure 31

The efficiency of unobservable components, according to VAF criterion, for representing the experimental data of the daily deaths reports, in Brazil

The efficiency analysis of interval type-2 fuzzy Kalman filter by its comparison with approach in (Páramo-Carranza et al. 2017), for filtering and tracking the state variables \(x_1\), \(x_2\) and \(x_3\) of Lorenz’s chaotic attractor in the case of \(SNR = 0.65\), based on MSE validation criterion, is shown in Tab. 1.

3.1.2 Comparative Analysis and Discussions

In this section, a more detailed discussion on the results shown in Figs. 123816 and Table 1, according to comparative analysis of proposed methodology with the approach in (Páramo-Carranza et al. 2017), is presented.

The adopted methodology in (Páramo-Carranza et al. 2017) considers the fuzzy Kalman filter design procedure from discretization of the Lorenz chaotic nonlinear model in Eq. 64, the linearization at specific operation points of state variables \( x_1 \), \( x_2 \) and \( x_3 \), and the definition of membership functions with pre-established format for partitioning the dynamic behavior of states \( x_1 \), \( x_2 \) and \( x_3 \). The adopted discretization for fuzzy Kalman filter design is based on the current sample (at instant k) of the dynamic behavior of Lorenz chaotic attractor, discarding the previous information of samples, which implies a filter design based on dynamically limited discrete model and the filtering error accumulated at sample k is propagated, recurrently, for further approximations, mainly in environments with high variability of experimental data, such as chaotic dynamic systems in a noisy environment, limiting the filtering performance for high errors (Franklin et al. 1997; Serra 2018). The adopted linearization considers the application of partial derivatives to Lorenz chaotic attractor in specific operation points of the state variables \( x_1 \), \( x_2 \) and \( x_3 \), which implies a filter design dynamically limited to specified operating points (Luenberger 1979; Chen 1999; Antsaklis and Liu 2003). Thus, as the dynamic behavior of Lorenz chaotic attractor, in a noisy environment, gets out the operating points of linearized state variables \( x_1 \), \( x_2 \) and \( x_3 \), the approximation errors increase in prediction and updating steps of discrete fuzzy Kalman filter and polarize the estimation of state variables \( x_1 \), \( x_2 \) and \( x_3 \). The adopted partitions of the discourse universe of state variable \( x_1 \) consider operation regions with pre-established membership functions from expert knowledge, discarding any similarity degree from dynamic behavior of state variable \( x_1 \), which implies the increasing of filtering errors (Wang 1997; Babuska 1998; Sato-Ilic and Jain 2006).

Fig. 32
figure 32

The temporal behavior of unobservable spectral components \(\alpha ^j|^{j = 1,\dots ,10}\), which were extracted from experimental data of daily deaths, in Brazil

On the other hand, the methodology for interval type-2 fuzzy Kalman filter design, proposed in this paper, considers the pre-processing of the noisy dynamic data of Lorenz chaotic attractor state variables, the computation of an interval adaptive similarity measure related to dynamic behavior of state variable \( x_1 \) resulting in membership functions with different formats and orientations for estimating regional models useful to characterize the dynamic behavior of Lorenz chaotic attractor. The adopted pre-processing method for fuzzy Kalman filter design is based on spectral decomposition of the noisy dynamic data of state variable \( x_1 \), resulting in unobservable spectral components with interpretable data patterns which allows to discard the spectral components associated with noise characteristic for better mathematical characterization of Lorenz chaotic attractor in the operation regions, recursively updated at each sampling time k, in order to reduce the filtering errors (Golyandina and Zhigljavsky 2013; Abdollahzade et al. 2015; Hossein and Saeid 2015; Juang 1994; Qi et al. 2019). For partitioning the dynamic data of state variable \( x_1 \) an interval adaptive similarity mechanism is adopted to define interval operation regions represented by interval membership functions, with different formats and orientations, adapted to the topological structure associated to the variability of dynamic data, in order to minimize the filtering errors (Babuska 1998; Höppner et al. 1999; Chaomurilige and Yang 2017).

Fig. 33
figure 33

Interval type-2 fuzzy membership functions estimated from clustering of daily deaths reports, in Brazil

Fig. 34
figure 34

The confidence region generated by interval type-2 fuzzy Kalman filter for tracking the experimental data of daily deaths reports, from 29 of February 2020 to 18 of May 2020, in Brazil

3.2 Experimental Results

In this section, experimental results for forecasting analysis of dynamic spread behavior taking into account the experimental data of daily deaths reports caused by COVID-19 in state of Maranhão and Brazil are presented.

3.2.1 Interval Type-2 Fuzzy Kalman Filtering and Forecasting Analysis of the Dynamic Spread of COVID-19 in State of Maranhão

The experimental data of daily deaths reports in the period ranging from 18 of March 2020 to 18 of May 2020 in state of Maranhão are shown in Fig. 17, which were obtained from the database provided by the State Health Organization of MaranhãoFootnote 1. Once that the problem of interest, in this paper, is based on the time series related to daily deaths reports in state of Maranhão, the variable \({\mathbf {u}}_k\), in Eq. 15 of proposed methodology, is considered as white noise signal with low amplitude.

The pre-processing of experimental data by singular spectral analysis was able to extract the unobservable components associated to daily deaths reports. The variance accounted for (VAF) was considered as criterion for evaluating the appropriate number of these components, within a range from 2 to 15 ones, for best representation of the experimental data, as shown in Fig. 18. As it can be seen, considering the cost–benefit balance for computational practical application of the proposed methodology, the appropriated number of unobservable components was \(\xi = 7\), with VAF value of 99.92% in efficiency to represent as accurately as possible the experimental data and, at same time, reducing the computational load of interval type-2 fuzzy Kalman filter algorithm. These spectral unobservable components, which were extracted from daily deaths reports in state of Maranhão, are shown in Fig. 19.

Fig. 35
figure 35

Performance of the interval type-2 fuzzy Kalman filter for tracking and forecasting the effects of COVID-19 spread experimental data related to daily deaths reports, in Brazil: a updating based on training data from 29 of February 2020 to 18 of May 2020; b recursive updating on 24 of June 2020; c recursive updating on 23 of July 2020; d recursive updating on 28 of August 2020; e recursive updating on 25 of September 2020

The partitions of experimental data related to daily deaths reports were defined by interval type-2 fuzzy Gustafson–Kessel clustering algorithm, as shown in Fig. 20, so the antecedent proposition, the rules number and consequent proposition, of the type-2 fuzzy Kalman filter, could be estimated successfully. For implementing the proposed type-2 fuzzy clustering algorithm, the following parameters were adopted: number of clusters \(c = 3\), interval weighting exponent \(\widetilde{m} = [2.0,2.3]\) and termination tolerance \(\mathcal {E} = 10^{-5}\).

The implementation of interval type-2 fuzzy OKID algorithm, for parametric estimation of consequent proposition in the type-2 fuzzy Kalman filter inference system, in Eq. 15, took into account the partitions on daily deaths reports, in Fig. 20, as weighting criterion, and the parameters values: \(q = 1\), \(\gamma = 5\) e \(\beta = 5\). According to experimental data of daily deaths reports in state of Maranhão shown in Fig. 17, the pre-processed unobservable components shown in Fig. 19 and the interval type-2 fuzzy normalized membership values shown in Fig. 20, the initial parametric estimation of the type-2 fuzzy Kalman filter was computed by training step. The confidence region, as shown in Fig. 21, created by initial estimation of interval type-2 fuzzy Kalman filter taking into account uncertainties estimated by interval type-2 membership functions shown in Fig. 20, inherited to experimental data ranging from 18 of March 2020 to 18 of May 2020, illustrates its efficiency for tracking the experimental data of daily deaths reports in the state of Maranhão. From this confidence region, shown in Fig. 21, interval normal distribution projections were estimated, delimiting upper and lower limits for forecasting the future daily deaths reports in the state of Maranhão. The efficiency of interval type-2 fuzzy Kalman filter based on its initial estimation by training step from experimental data of daily deaths reports ranging from 18 of March 2020 to 18 of May 2020, for forecasting the future (validation) experimental data of daily deaths reports within the period ranging from 19 of May 2020 to 27 of May 2020, is shown in Fig. 22a. From 05 of May 2020 to 17 of May 2020, it was established a lockdown in metropolitan city of São Luís, and other four municipalities as well, in state of Maranhão, with positive reflexes on the numbers of confirmed cases and daily deaths reports. Due to this social context changing established by government in state of Maranhão, it was necessary a recursive updating of interval type-2 fuzzy Kalman filter on 24 of June 2020, for proposals of new tracking and forecasting future daily deaths reports within the period ranging from 25 of June 2020 to 03 of July 2020, as shown in Fig. 22b. The effect of lockdown can be observed within the period ranging from 28 of May 2020 to 01 of June 2020. The new recursive updating of the interval type-2 fuzzy Kalman filter was on 28 of July 2020, for proposals of new tracking and forecasting future daily deaths reports within the period ranging from 29 of July 2020 to 25 of August 2020, as shown in Fig. 22c. The new recursive updating of the interval type-2 fuzzy Kalman filter was on 25 of August 2020, for proposals of new tracking and forecasting future daily deaths reports within the period ranging from 26 of August 2020 to 25 of September 2020, as shown in Fig. 22d. The new recursive updating of the interval type-2 fuzzy Kalman filter was on 25 of September 2020, for proposals of new tracking and forecasting future daily deaths reports within the period ranging from 26 of September 2020 to ahead, as shown in Fig. 22e. It can be seen an efficiency in the adaptability of interval normal distribution projections created in real time by interval type-2 fuzzy Kalman filter, which illustrates its applicability for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports in state of Maranhão. The estimation of interval type-2 fuzzy Kalman gain matrices \(\widetilde{{\mathbf {K}}}^i|^{i = 1,\dots ,3}\), during recursive updating of interval type-2 fuzzy Kalman filter, within period ranging from 19 of May 2020 to 25 of September 2020, is shown in Fig. 23. The recursive estimation of the interval type-2 fuzzy matrices \(\widetilde{{\mathbf {A}}}^i\), \(\widetilde{{\mathbf {B}}}^i\), \(\widetilde{{\mathbf {C}}}^i\) and \(\widetilde{{\mathbf {D}}}^i\), with \(i = 1,\dots ,3\), in the consequent proposition of the interval type-2 fuzzy Kalman filter inference system, during recursive updating of interval type-2 fuzzy Kalman filter, within period ranging from 19 of May 2020 to 25 of September, is shown in Figs. 24252627. The upper and lower instantaneous activation degrees related to interval type-2 fuzzy Kalman filter inference system, during its training and recursive step within period ranging from 18 of March 2020 to 25 of September, are shown in Fig. 28. The efficiency of interval type-2 fuzzy Kalman filter, during its recursive updating for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports in state of Maranhão, within period ranging from 19 of May 2020 to 29 of September, was validated through variance accounted for (VAF) criterion, as shown in Fig. 29.

Fig. 36
figure 36

Interval type-2 fuzzy Kalman gains, during recursive updating of interval type-2 fuzzy Kalman filter for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in Brazil: a Rule 1, b Rule 2, c Rule 3

Fig. 37
figure 37

Interval type-2 fuzzy matrix \(\widetilde{{\mathbf {A}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in Brazil: a Rule 1, b Rule 2, c Rule 3

Fig. 38
figure 38

Interval type-2 fuzzy matrix \(\widetilde{{\mathbf {B}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in Brazil: a Rule 1, b Rule 2, c Rule 3

Fig. 39
figure 39

Interval type-2 fuzzy matrix \(\widetilde{{\mathbf {C}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in Brazil: a Rule 1, b Rule 2, c Rule 3

Fig. 40
figure 40

Interval type-2 fuzzy matrix \(\widetilde{{\mathbf {D}}}^i\), during recursive updating of interval type-2 fuzzy Kalman filter for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in Brazil: a Rule 1, b Rule 2, c Rule 3

Fig. 41
figure 41

Instantaneous normalized fuzzy activation degrees of type-2 fuzzy Kalman inference system, during its recursive updating for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 25 of September, in Brazil: a upper instantaneous normalized fuzzy activation degrees and b lower instantaneous normalized fuzzy activation degrees

Fig. 42
figure 42

Real-time efficiency, based on VAF validation criterion, of interval type-2 fuzzy Kalman filter, during its recursive updating for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 29 of September, in Brazil

According to results from real-time interval tracking and forecasting the COVID-19’s dynamic spread behavior, based on experimental data of daily deaths reports, in state of Maranhão, the following auxiliary information and helpful for State Health Organization of Maranhão, it can be inferred that:

  • The proposed methodology can be helpful to help the State Health Organization of Maranhão as auxiliary information in the diagnosis regarding the flexibility of social activities, in state of Maranhão. Figure 22 depicts a time-based displacement of the interval projections as well as their amplitudes, as the daily deaths reports are processed by interval type-2 fuzzy Kalman filter. From the recursive updating on 25 of September 2020, the forecasting interval projections indicate the month of November as more adequate for reevaluating the requirements on flexibility of social activities, in state of Maranhão.

3.2.2 Interval Type-2 Fuzzy Kalman Filtering and Forecasting Analysis of the Dynamic Spread of COVID-19 in Brazil

The experimental data corresponding to daily deaths reports within the period ranging from 29 of February 2020 to 18 of May 2020, in Brazil, are shown in Fig. 30, which were extracted from official report by Ministry of Health of BrazilFootnote 2. Once that the problem of interest, in this paper, is based on the time series related to daily deaths reports in Brazil, the variable \({\mathbf {u}}_k\), in Eq. 15 of proposed methodology, is considered as white noise signal with low amplitude.

The pre-processing of experimental data by singular spectral analysis was able to extract the unobservable components associated to daily deaths reports. The variance accounted for (VAF) was considered as criterion for evaluating the appropriate number of these components, within a range from 2 to 15 ones, for best representation of the experimental data, as shown in Fig. 31. As it can be seen, considering the cost–benefit balance for computational practical application of the proposed methodology, the appropriated number of unobservable components was \(\xi = 10\), with VAF value of 99.98% in efficiency to represent as accurately as possible the experimental data and, at same time, reducing the computational load of interval type-2 fuzzy Kalman filter algorithm. These spectral unobservable components, which were extracted from daily deaths reports in Brazil, are shown in Fig. 32.

The partitions of experimental data related to daily deaths reports were defined by interval type-2 fuzzy Gustafson–Kessel clustering algorithm, as shown in Fig. 33, so the antecedent proposition, the rules number and consequent proposition, of the type-2 fuzzy Kalman filter, could be estimated successfully. For implementing the proposed type-2 fuzzy clustering algorithm, the following parameters were adopted: number of clusters \(c = 3\), interval weighting exponent \(\widetilde{m} = [1.5,2.3]\) and termination tolerance \(\mathcal {E} = 10^{-5}\).

The implementation of interval type-2 fuzzy OKID algorithm, for parametric estimation of consequent proposition in the type-2 fuzzy Kalman filter inference system, in Eq. 15, took into account the partitions on daily deaths reports, in Fig 33, as weighting criterion, and the parameters values: \(q = 1\), \(\gamma = 15\) e \(\beta = 15\). According to experimental data of daily deaths reports in Brazil shown in Fig. 30, the pre-processed unobservable components shown in Fig. 32 and the interval type-2 fuzzy normalized membership values shown in Fig. 33, the initial parametric estimation of the type-2 fuzzy Kalman filter was computed by training step. The confidence region, as shown in Fig. 34, created by initial estimation of interval type-2 fuzzy Kalman filter taking into account uncertainties estimated by interval type-2 membership functions shown in Fig. 33, inherited to experimental data ranging from 29 of February 2020 to 18 of May 2020, illustrates its efficiency for tracking the experimental data of daily deaths reports in Brazil.

From this confidence region, shown in Fig. 34, interval normal distribution projections were estimated, delimiting upper and lower limits for forecasting the future daily deaths reports in Brazil. The efficiency of interval type-2 fuzzy Kalman filter based on its initial estimation by training step from experimental data of daily deaths reports ranging from 29 of February 2020 to 18 of May 2020, for forecasting the future (validation) experimental data of daily deaths reports within the period ranging from 19 of May 2020 to 27 of May 2020, is shown in Fig. 35a. The new recursive updating of interval type-2 fuzzy Kalman filter on 24 of June 2020, for proposals of new tracking and forecasting future daily deaths reports within the period ranging from 25 of June 2020 to 30 of June 2020, is shown in Fig. 35b. The new recursive updating of the interval type-2 fuzzy Kalman filter was on 23 of July 2020, for proposals of new tracking and forecasting future daily deaths reports within the period ranging from 24 of July 2020 to 13 of August 2020, as shown in Fig. 35c. The new recursive updating of the interval type-2 fuzzy Kalman filter was on 28 of August 2020, for proposals of new tracking and forecasting future daily deaths reports within the period ranging from 29 of August 2020 to 25 of September 2020, as shown in Fig. 35d. The new recursive updating of the interval type-2 fuzzy Kalman filter was on 25 of September 2020, for proposals of new tracking and forecasting future daily deaths reports within the period ranging from 26 of September 2020 to ahead, as shown in Fig. 35e. It can be seen an efficiency in the adaptability of interval normal distribution projections created in real time by interval type-2 fuzzy Kalman filter, which illustrates its applicability for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports in Brazil. The estimation of interval type-2 fuzzy Kalman gain matrices \(\widetilde{{\mathbf {K}}}^i|^{i = 1,\dots ,3}\), during recursive updating of interval type-2 fuzzy Kalman filter, within period ranging from 19 of May 2020 to 25 of September, in Brazil, is shown in Fig. 36. The recursive estimations of the interval type-2 fuzzy matrices \(\widetilde{{\mathbf {A}}}^i\), \(\widetilde{{\mathbf {B}}}^i\), \(\widetilde{{\mathbf {C}}}^i\) and \(\widetilde{{\mathbf {D}}}^i\), with \(i = 1,\dots ,3\), in the consequent proposition of the interval type-2 fuzzy Kalman filter inference system, during recursive updating of interval type-2 fuzzy Kalman filter, within period ranging from 19 of May 2020 to 25 of September, are shown in Figs. 37383940. The upper and lower instantaneous activation degrees related to interval type-2 fuzzy Kalman filter inference system, during its training and recursive step within period ranging from 29 of February 2020 to 25 of September, in Brazil, are shown in Fig. 41. The efficiency of interval type-2 fuzzy Kalman filter, during its recursive updating for tracking and forecasting the COVID-19 dynamic spread experimental data related to daily deaths reports within period ranging from 19 of May 2020 to 29 of September, in Brazil, was validated through Variance Accounted For (VAF) criterion, as shown in Fig. 42.

According to results from real-time interval tracking and forecasting the COVID-19’s dynamic spread behavior, based on experimental data of daily deaths reports, in Brazil, the following auxiliary information, and helpful for Ministry of Health of Brazil, it can be inferred that:

  • The proposed methodology can be helpful to help the Ministry of Health of Brazil as auxiliary information in the diagnosis regarding the flexibility of social activities, in Brazil. Figure 35 depicts a time-based displacement of the interval projections as well as their amplitudes, as the daily deaths reports are processed by interval type-2 fuzzy Kalman filter. From the recursive updating on 25 of September, the forecasting interval projections indicate the month of January 2021 as more adequate for reevaluating the requirements on flexibility of social activities, in Brazil.

4 Conclusion

In this paper, an approach for experimental data-based design of interval type-2 fuzzy Kalman filters was proposed. The computational results showed efficiency of designed interval type-2 fuzzy Kalman filter, due to its spectral pre-processing analysis mechanism, for filtering and tracking data set of Lorenz’s chaotic attractor in a noisy environment, as compared to another approach widely cited in the literature. The experimental results showed the applicability of designed interval type-2 fuzzy Kalman filter, due to its recursive updating mechanism, for adaptive and real-time forecasting the COVID-19 spread dynamics related to daily deaths reports in state of Maranhão and Brazil.

From the recursive updating on 25 of September 2020, it could be inferred by forecasting interval projections the month of January 2021 as more adequate for reassessment the requirements on flexibility of social activities in Brazil (containing the 27 states and federal district) and the month of November as more adequate for reassessment the requirements on flexibility of social activities in state of Maranhão.

For further works, the formulation and applicability of proposed methodology in the context of evolving interval type-2 fuzzy systems are of particular interest.