Next Article in Journal
A Digital Twin Inspired Simulation Framework for Optimizing Renewable Energy Communities
Previous Article in Journal
XAI-Guided Graph-Based Feature Engineering and Heterogeneous Ensemble Learning for Android Malware Detection
Previous Article in Special Issue
Performance Evaluation of Daubechies Wavelet-Based Feature Extraction for Multi-State Remaining Useful Life Prediction in Roller Bearings Using Machine Learning Algorithms
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Data-Driven Fault Diagnosis in Chemical Reactors Using Takagi–Sugeno Models and Zonotopic PI Observers

by
Julio-Alberto Guzmán-Rabasa
1,
Claudia Mendoza-Avendaño
1,
José-Armando Fragoso-Mandujano
1,
Norberto Urbina-Brito
2,
Yair González-Baldizón
1,3,
Esvan-Jesús Pérez-Pérez
4,* and
Guillermo Valencia-Palomo
5,*
1
Intelligent Systems Research Group, Tecnológico Nacional de México, Instituto Tecnológico de Tuxtla Gutiérrez, Carretera Panamericana S/N, Tuxtla Gutiérrez 29050, Mexico
2
Department of Biomedical, Universidad Politécnica de Chiapas, Portillo Zaragoza, Carretera Tuxtla Gutiérrez Km 21+500, Las Brisas, Suchiapa 29150, Mexico
3
School of Applied Digital Technologies, Universidad Autónoma de Chiapas, Blvd. Belisario Domínguez Km. 1081, Tuxtla Gutiérrez 29050, Mexico
4
Research Group of Advanced Control Systems, Universitat Politècnica de Catalunya, Rambla Sant Nebridi 22, 08222 Terrassa, Spain
5
Tecnológico Nacional de México, I. T. Hermosillo, Av. Tecnológico 115, Hermosillo 83170, Mexico
*
Authors to whom correspondence should be addressed.
Algorithms 2026, 19(8), 689; https://doi.org/10.3390/a19080689
Submission received: 16 July 2026 / Revised: 14 August 2026 / Accepted: 14 August 2026 / Published: 16 August 2026

Abstract

This paper addresses fault diagnosis in nonlinear systems where reliable mathematical models are unavailable and only input–output measurements are accessible. The proposed methodology consists of three stages. First, a data-driven identification stage is performed using an Adaptive Neuro-Fuzzy Inference System (ANFIS) to capture the nonlinear dynamics of the system from fault-free sensor data. This procedure yields a set of convex Takagi–Sugeno (TS) models representing the system dynamics. In the second stage, fault detection is achieved using zonotopic proportional–integral (PI) observers with convex structures. Robustness against parametric uncertainty and sensor noise is ensured through an H formulation expressed as a set of linear matrix inequalities (LMIs). Finally, fault isolation is carried out using a fault signature matrix (FSM). The zonotopic framework provides adaptive set-based residual bounds that act as adaptive thresholds for fault detection, while structured residual activation patterns enable reliable fault isolation. The proposed approach is evaluated on a continuous stirred tank reactor (CSTR) under sensor faults and incipient process faults in the presence of measurement noise and compared with representative data-driven methods. Results demonstrate improved diagnostic accuracy and reduced false-alarm rates while maintaining timely fault detection and reliable isolation.

1. Introduction

Fault diagnosis (FD) of nonlinear industrial systems remains a challenging task when reliable first-principles mathematical models are unavailable or difficult to obtain. This situation is particularly common in chemical reactors, where complex nonlinear dynamics, parametric uncertainty, and measurement noise limit the applicability of classical model-based fault diagnosis techniques derived from analytical descriptions. In such scenarios, fault diagnosis strategies that rely exclusively on measured input–output data are highly desirable.
FD is an essential component to ensure the efficiency and safety of complex dynamic systems in various industrial environments. Early fault detection is critical to prevent unplanned downtimes, reduce maintenance costs, and enhance system reliability [1]. Traditionally, FD approaches have been based on control theory and statistical decision-making methods, as well as logic and optimization techniques [2]. However, the growing complexity of modern systems has driven the development of advanced methods capable of handling the uncertainties and noise inherent in real-world data.
Among model-based approaches, TS observer-based fault diagnosis schemes have received significant attention due to their ability to represent nonlinear dynamics using convex combinations of local linear models. Nevertheless, most existing TS observer designs assume that the TS model is analytically derived and that its parameters are known and fixed. This assumption significantly restricts their applicability in data-driven settings, where system dynamics must be identified from input–output measurements and are inevitably affected by modeling uncertainty.
In recent years, several data-driven methodologies have been proposed to address these challenges. Ref. [3] employed random forest algorithms and machine learning techniques to identify key state variables and improve diagnostic accuracy in complex systems. Ref. [4] developed a diagnosis approach based on comparing process measurements with optimal reference values, focusing on the analysis of temperature measurement alterations in exothermic chemical processes. Ref. [5] integrated fast Fourier transform (FFT), continuous wavelet transform (CWT), and statistical signal features to enhance fault detection across different datasets. Ref. [6] introduced the concept of cross-domain fault diagnosis (CDFD), using simulation data to train fault diagnosis models. Ref. [7] tackled fault detection in nonlinear dynamic systems using stacked neural networks and canonical variable analysis, improving robustness in systems with unknown models and nonlinearities. Ref. [8] proposed an approach for incipient fault diagnosis in nonlinear systems with stochastic uncertainties using particle filtering techniques. Ref. [9] presented a review of data-driven fault detection, focusing on three aspects: processes, study systems, and evaluation metrics. Another piece of work by [10] developed two data-driven fault detection designs for dynamic systems, validated on a three-tank system.
While data-driven methods eliminate the need for explicit mathematical models, most existing approaches focus on statistical reconstruction errors or classification accuracy and do not explicitly propagate identification-induced uncertainty into the fault diagnosis stage. As a result, their performance may degrade under measurement noise or when only limited fault-free data are available.
In the line of hybrid approach comparisons, Ref. [11] evaluated hybrid and data-driven models in catalytic reactor systems. Ref. [12] explored the use of fuzzy observers in a CSTR for fault detection, while Ref. [13] proposed a bank of linear parameter-varying (LPV) observers for actuator fault detection in chemical processes. Ref. [14] employed state observers for diagnosis in a CSTR. Comprehensive reviews of hybrid fault detection and diagnosis schemes can be found in [15,16].
On the other hand, robust model-based FD schemes have also been addressed. Ref. [17] proposed disturbance-decoupled residual generators for fault detection and isolation in nonlinear systems. Ref. [18] designed a robust observer for fault diagnosis in sensors and actuators in two series-connected CSTRs. Ref. [19] proposed a fault-tolerant control scheme based on unknown input observers, while Ref. [20] developed robust observer-based methodologies applied to CSTRs.
Despite these advances, existing robust observer-based fault diagnosis schemes rarely consider the case where the underlying TS model is obtained exclusively from data and is affected by structural uncertainty introduced during the identification process. Ignoring such uncertainty may lead to overly optimistic residual evaluation and unreliable fault detection results.
Regarding robust fault diagnosis under bounded uncertainty, set-membership and interval observer approaches have emerged as effective alternatives to conventional stochastic filters. For instance, Ref. [21] developed unknown-input observers for discrete-time TS models capable of estimating states and faults in the presence of unknown disturbances. Similarly, more recent works have proposed robust observer designs with explicit performance criteria for fault detection in discrete TS models [22], as well as interval-based state and fault estimation schemes that guarantee error bounds under bounded uncertainty [23]. While these approaches exhibit strong robustness against noise and uncertainty, they all rely on the availability of an analytically derived TS model of the system. This requirement leaves a relevant gap for applications in which only input–output measurements are available.
This work addresses the problem of achieving robust fault diagnosis for nonlinear systems using only input–output measurements, in the presence of uncertainty and measurement noise in the identified TS models.
To tackle this problem, an ANFIS is employed to structure uncertain TS models directly from fault-free input–output data, avoiding the need for analytical modeling. The resulting TS representation is then used to design zonotopic PI observers with H performance, which explicitly account for modeling uncertainty and measurement noise. A key advantage of the zonotopic framework is its ability to generate adaptive, set-based residual bounds that serve as decision thresholds for fault detection, rather than relying on fixed heuristic limits.

Positioning with Respect to Related Fault-Diagnosis Approaches

The literature reviewed above shows that the individual components considered in this work have been investigated separately in different fault-diagnosis contexts. Data-driven approaches avoid the need for detailed first-principles models by learning system behavior directly from available measurements [10]. Conversely, robust observer-based approaches for Takagi–Sugeno systems provide formal mechanisms for state and fault estimation under uncertainty [21,22], while interval and zonotopic techniques enable bounded state and fault estimation [23]. PI observer structures have also been studied for robust fault detection and uncertain nonlinear systems [24,25].
However, these research directions generally address data-driven identification, robust observer synthesis, and set-based uncertainty treatment as separate stages. In particular, existing TS observer-based approaches typically assume that the local models are available before observer synthesis, while conventional data-driven fault-diagnosis methods do not explicitly propagate the uncertainty introduced during model identification into a zonotopic observer and the subsequent fault-decision mechanism.
Table 1 summarizes the methodological positioning of the proposed framework with respect to representative related approaches. The comparison is intended to clarify that the contribution of this work does not arise from ANFIS, TS modeling, PI observers, zonotopes, or H synthesis individually, but from their integration into a unified data-driven fault-diagnosis framework.
In contrast with the representative approaches summarized in Table 1, the proposed methodology establishes a direct connection between data-driven nonlinear system identification, uncertainty characterization, robust set-based state estimation, and fault decision making. Nominal input–output measurements are first used to identify the nonlinear process dynamics through ANFIS. The identified consequent parameters are organized into a convex TS representation, and the uncertainty associated with the identification process is explicitly incorporated into the dynamic model. This uncertain TS representation is subsequently used to synthesize PI observer gains according to an H robustness criterion.
The resulting zonotopic observer propagates bounded modeling uncertainty and measurement noise together with the state estimates. Consequently, fault detection does not rely on a fixed heuristic threshold; instead, it evaluates the consistency between the predicted zonotopic state enclosure and the set compatible with the current measurements. The corresponding residual activation patterns are then processed through the fault signature matrix (FSM) to perform fault isolation.
Therefore, the central methodological distinction of the proposed framework is that uncertainty arising during the data-driven identification stage is explicitly carried into the robust observer and fault-decision stages. The main contributions of this paper are summarized as follows:
  • A fully data-driven fault diagnosis framework for nonlinear systems is proposed, relying exclusively on measured input–output data and avoiding the need for an analytical first-principles model.
  • An ANFIS-based identification strategy is employed to construct uncertain convex TS models from fault-free measurements while explicitly accounting for identification-induced uncertainty.
  • A zonotopic PI observer is developed for TS models obtained exclusively from data, integrating identification-induced uncertainty with explicit H robustness guarantees.
  • Adaptive set-based residual bounds are generated through zonotopic state estimation, enabling fault detection based on measurement consistency rather than fixed heuristic thresholds.
  • Fault isolation is performed through an FSM that exploits structured residual activation patterns, and the complete framework is validated on a CSTR considering sensor faults and incipient process faults under noisy operating conditions.
The remainder of the paper is organized as follows. Section 2 presents the proposed framework, including ANFIS-based system identification, zonotopic PI observer design, and the H robustness conditions. Section 3 reports the identification and fault-diagnosis results and presents the comparative evaluation. Section 4 discusses the main findings, limitations, and practical implications. Finally, Section 5 summarizes the conclusions and future research directions.
Notation: In this paper, N and R denote the sets of natural and real numbers, respectively, and R m represents the set of m-dimensional real vectors. The matrix transpose is denoted by ( · ) , while det ( · ) , Tr ( · ) , and Cov ( · ) denote the determinant, trace, and covariance, respectively. The p-norm is denoted by · p , with · F and · representing the Frobenius and infinity norms, respectively. A zonotope c , R is a convex set defined as c , R = { c + R ξ : ξ 1 } [26]. If c = 0 , the zonotope is centered and remains invariant under column permutations [27]. The reduction operator q limits the number of generators by retaining the most significant ones and enclosing the remaining generators [28]. The Minkowski sum and linear map of zonotopes are denoted by ⊕ and ⊙, respectively. Given two zonotopes c 1 , R 1 and c 2 , R 2 , and a matrix M of appropriate dimensions, c 1 , R 1 c 2 , R 2 = c 1 + c 2 , [ R 1 , R 2 ] , and M c , R = M c , M R . The abbreviations used throughout this work are summarized in Abbreviations.

2. Methods

2.1. Proposed Fault Diagnosis Method for Nonlinear Systems

This work considers a CSTR as a case study, a benchmark system widely used in chemical and biotechnological processes for the validation of fault diagnosis methodologies [29,30]. Although the proposed approach is validated on a CSTR, the methodology is general and can be extended to other nonlinear dynamic systems where only input–output measurements are available.
The proposed fault diagnosis method, illustrated in Figure 1, is designed for scenarios in which an explicit first-principles mathematical model of the system is unavailable or unreliable. The approach relies exclusively on measured input–output data and consists of three tightly coupled stages: data-driven system identification, uncertainty-aware fault detection, and residual-based fault isolation.
In the identification stage, an ANFIS is trained using nominal (fault-free) input–output data to capture the nonlinear dynamics of the CSTR. The ANFIS identification process is used to structure an equivalent convex TS representation of the system, avoiding analytical model derivation while explicitly accounting for identification-induced uncertainty.
Based on the identified TS models, a set of zonotopic PI observers is designed for fault detection. The observer structure explicitly incorporates modeling uncertainty and measurement noise, and robustness is guaranteed through an H performance criterion. At each sampling instant k, the observers generate zonotopic state estimates X ^ k z o , which provide set-based enclosures of the true system state.
Fault detection is performed by comparing the zonotopic state estimates with measurement-consistent sets X k y k derived from sensor readings. A fault is detected when the intersection X ^ k z o X k y k becomes empty, indicating an inconsistency between the predicted system behavior and the measured data. This set-based mechanism naturally leads to adaptive detection thresholds, eliminating the need for fixed heuristic limits.
Finally, in the fault isolation stage, the activation patterns of the residuals are analyzed using a fault signature matrix (FSM). The FSM enables a logical decision process to identify the faulty component based on the structured residual responses, leading to reliable fault isolation under uncertainty and noise.
From an implementation perspective, the complete procedure is divided into offline and online stages. In the offline stage, the nominal fault-free input–output measurements are first organized into the regressive structures defined for C, T, T c , and Q c . Four ANFIS models are then trained to identify the corresponding nonlinear dynamics. The consequent parameters of the trained ANFIS models are arranged into the local matrices of the convex TS representation, and the associated identification uncertainty is incorporated into the uncertain model. The zonotopic PI observer gains are subsequently obtained by solving the H LMI conditions. Once this stage is completed, the ANFIS parameters and observer gains remain fixed during online monitoring.
During the online stage, the available current and delayed measurements are used to construct the corresponding regressive vectors and evaluate the ANFIS membership functions. The normalized firing strengths determine the convex combination of the local TS submodels at each sampling instant. The zonotopic PI observers then propagate the predicted state enclosures while accounting for identification-induced uncertainty and measurement noise. For each monitored output, a measurement-consistent set is constructed and compared with the corresponding predicted zonotope. If their intersection is nonempty, the measurement is considered consistent with the predicted nominal behavior; otherwise, the associated residual is activated. Finally, the binary residual activation pattern is compared with the predefined fault signature matrix (FSM), and the corresponding fault scenario is assigned as the final diagnostic label.

2.2. Description of Data Measurements in the CSTR SYSTEM

The CSTR system, shown in Figure 2, operates continuously, converting species A into species B through a second-order exothermic reaction. A cooling jacket regulates the reactor’s temperature, preventing thermal instabilities. The system has three main inputs: the inlet reactant concentration ( C i ) , the inlet temperature ( T i ) , and the coolant temperature ( T c i ) . These inputs control the reaction rate and the heat management of the reactor. On the output side, the product concentration ( C ) , reactor temperature ( T ) , coolant temperature ( T c ) , and coolant flow-rate ( Q c ) are continuously monitored to ensure optimal performance.
The simulations were generated using the “Feedback-controlled CSTR Process for Fault Simulation” benchmark, Version 1.1.0.1 [31]. The benchmark represents a three-state jacketed CSTR in which species A is converted into species B through a second-order exothermic reaction. All simulations reported in this study were executed in MATLAB/Simulink (R2025b).
The reactor operates under closed-loop temperature control. The reactor temperature T is regulated by manipulating the coolant flow rate Q c using a controller with K c = 1.0 and τ I = 0.2 . The manipulated coolant flow is constrained to 10 Q c 200 L/min, and the reactor-temperature setpoint is T sp = 430.9 K. The initial conditions are C ( 0 ) = 0.1 mol/L, T ( 0 ) = 430.9 K, and T c ( 0 ) = 416.7 K.
Each simulation was performed for 1200 min at a sampling rate of four samples per minute, corresponding to a data sampling interval of T s = 15 s and 4800 samples per measured variable. The nominal input conditions are C i , 0 = 1 mol/L, T i , 0 = 350 K, and T c i , 0 = 350 K. To provide excitation of the nonlinear dynamics, pseudorandom Gaussian perturbations were superimposed on the nominal inputs. The perturbation applied to C i has variance 0.002, while those applied to T i and T c i have variance 2. Independent seeds were generated using randi(100000).
Zero-mean Gaussian process and measurement noise were additionally included in the simulations. The process-noise generators were configured with variance 10 6 , while the additive measurement-noise generators used variance 0.05. These values correspond to standard deviations of 10 3 and approximately 0.2236, respectively. The corresponding Simulink Random Number blocks use seeds generated through randi(100000) and a block sample time of 1 simulation time unit. The complete simulation, controller, initialization, input-excitation, and noise settings are summarized in Table 2.
As a data-driven methodology, the proposed scheme relies on time-series information from both input and output sensors. To capture such behavior effectively, the estimation process employs a regressive structure that incorporates data from the two preceding time steps k. The output variables estimated from the inputs are organized in a regressive structure, as summarized in Table 3.
These regressive structures act as inputs for the ANFIS, allowing them to identify the estimated variables, leading to the development of the Takagi–Sugeno convex system used for designing the zonotopic PI observer.

2.3. CSTR System Identification Using ANFIS

The identification of the system relies on regressive input structures, as detailed in Table 3. These inputs are arranged to match the CSTR dynamics and are processed by the ANFIS-based neural network, whose configuration is depicted in Figure 3. To ensure model fidelity, the training phase is carried out using only nominal data, free from faults. As shown in the figure, the input set comprises temperature measurements at the current and two previous time steps T ( k ) , T ( k 1 ) , T ( k 2 ) , along with inlet concentration C i ( k ) , feed temperature T i ( k ) , and coolant temperature T c i ( k ) . These variables feed the fuzzy inference mechanism within the ANFIS to model system behavior and generate an estimate of the output temperature T ^ ( k ) .
The ANFIS framework is designed to capture the nonlinear dynamics associated with each state variable of the CSTR. As outlined in Table 3, the input vectors for the network are constructed individually for each variable, incorporating relevant temporal regressors that reflect the system’s dynamic behavior. The structure of these inputs ensures that the model effectively learns the temporal dependencies inherent to the process. Accordingly, the input vector ζ for the ANFIS is constructed by concatenating the current and past temperature values along with process inputs, as defined by
ζ = T ( k ) T ( k 1 ) T ( k 2 ) C i ( k ) T i ( k ) T c i ( k ) .
The number of membership functions N MF determines the structural complexity of the ANFIS model and was therefore treated as an identification parameter rather than as a tuning parameter of the fault-diagnosis stage. Validation-based selection of ANFIS membership-function configurations has been previously employed to assess model generalization [32]. In the present work, two membership functions were assigned to each input. As the number of fuzzy rules grows according to N = ( N MF ) N ζ and each ANFIS model contains six inputs ( N ζ = 6 ), the adopted configuration results in 2 6 = 64 fuzzy rules. Increasing N MF to three or four would increase the rule base to 3 6 = 729 and 4 6 = 4096 rules, respectively, substantially increasing the number of consequent parameters to be identified and the computational burden of both the identification stage and the resulting TS representation. Therefore, N MF = 2 was retained as a parsimonious configuration that provides satisfactory validation performance while maintaining a computationally tractable model complexity.
Layer 1: This layer performs the fuzzification of the input data using triangular membership functions. Two membership functions ( N MF = 2 ) are assigned to each ANFIS input. Each membership function η n f ( · ) is parameterized by the three premise parameters a n f , b n f , and c n f and is defined as
η n f ( ζ o ) = 0 if ζ o a n f ζ o a n f b n f a n f if a n f < ζ o b n f c n f ζ o c n f b n f if b n f < ζ o c n f 0 if ζ o > c n f , n f = 1 , 2 , , N MF , o = 1 , 2 , , N ζ ,
In the present implementation, N MF = 2 triangular membership functions are assigned to each of the N ζ = 6 regressive inputs. Therefore, the complete grid-partitioned ANFIS structure contains N = ( N MF ) N ζ = 2 6 = 64 Takagi–Sugeno fuzzy rules.
Layer 2: This layer constructs the fuzzy rules by combining the outputs of the membership functions from the previous layer. Each of the N = N MF N ζ nodes contains a fixed-function node that computes the firing strength of a rule by multiplying the incoming signals and forwarding the resulting product:
μ i ( ζ ) = o = 1 N ζ η n f ( ζ o ) , i = 1 , 2 , , N .
Layer 3: In this layer, the firing strengths obtained in Layer 2 are normalized. Each node computes the ratio between the firing strength of the i-th rule and the sum of all firing strengths, ensuring that the resulting values sum to one. These normalized values are referred to as rule weights.
μ ¯ i ( ζ ) = μ i ( ζ ) i = 1 N μ i ( ζ ) , i = 1 , 2 , , N .
Layer 4: This layer calculates the contribution of each rule to the final output. Each node multiplies the normalized firing strength from Layer 3 by a linear function of the input variables. This linear function, often referred to as the consequent part of the rule, is parameterized by coefficients adjusted during training.
R i : IF ζ 1 i s η m 1 AND , , AND ζ N ζ i s η m N ζ THEN μ ¯ i ( ζ i α i + λ i ) , i = 1 , 2 , , N .
Output: This layer is where the final output of the ANFIS is computed as the weighted sum of all rule contributions received from Layer 4. It aggregates all the inferred outputs into a single value representing the estimated system response.
i = 1 N μ ¯ i ( ζ i α i + λ i ) .
The initial ANFIS structure was generated using grid partitioning of the six regressive input variables, with two triangular membership functions assigned to each input. This configuration results in 64 Takagi–Sugeno fuzzy rules. The initial membership functions were distributed over the ranges represented by the nominal training data.
Parameter estimation was performed using the hybrid ANFIS learning algorithm. During each training epoch, the consequent parameters were estimated through least-squares optimization, while the premise parameters of the triangular membership functions were updated through the gradient-based learning step. The initial step size was set to 0.01, with decrease and increase rates of 0.8 and 1.1, respectively. A maximum of 150 epochs was considered, and a minimum improvement of 10 4 was adopted as the stopping criterion.
To reduce overfitting and avoid information leakage between temporally correlated observations, the training–validation partition was performed simulation-wise. Of the 30 independent fault-free simulations, 24 complete simulations were used for training and 6 complete simulations were reserved exclusively for validation. No samples from the validation simulations were used during ANFIS parameter estimation. The complete ANFIS architecture and training configuration used for the four identified output models are summarized in Table 4.
Once the ANFIS model has been trained and both the normalized firing strengths (4) and the consequent parameters (5) have been identified, a Takagi–Sugeno (TS) fuzzy representation can be derived. As an illustrative case, the formulation of the estimated temperature variable T ^ is presented as follows:
T ^ ( k ) = i = 1 N μ ¯ i ( ζ ( k ) ) ( α 1 i T ( k ) + α 2 i T ( k 1 ) + α 3 i T ( k 2 ) + α 4 i C i ( k ) + α 5 i T i ( k ) + α 6 i T c i ( k ) + λ i ) .
The components of expression (7) can be reformulated and grouped as follows:
T ^ ( k ) = i = 1 N μ ¯ i ( ζ ( k ) ) α 1 i 1 α 2 i 1 α 3 i 1 α 1 i 2 α 2 i 2 α 3 i 2 α 1 i 3 α 2 i 3 α 3 i 3 A i x + α 4 i 1 α 5 i 1 α 6 i 1 α 4 i 2 α 5 i 2 α 6 i 2 α 4 i 3 α 5 i 3 α 6 i 3 B i u + λ i 1 λ i 2 λ i 3 λ i ,
where x ( k ) = T ( k ) T ( k 1 ) T ( k 2 ) T denotes the state vector, and u ( k ) = C i ( k ) T i ( k ) T c i ( k ) T denotes the input vector. The superscripts 1, 2, and 3 correspond to the ANFIS output components. The resulting polytopic model is expressed in a discrete-time state-space form as follows:
x ( k + 1 ) = i = 1 N μ ¯ i ( ζ ( k ) ) A i x ( k ) + B i u ( k ) + λ i , y ( k ) = C x ( k ) ,
where N = N MF N ζ is the number of fuzzy rules, μ ¯ i ( ζ ( k ) ) are the normalized firing strengths (premise functions), and the matrices A i R n x × n x , B i R n x × n u , and C R n y × n x define the system dynamics. The vector λ i R n x is an affine term representing the offset learned by the ANFIS network. The output vector is given by y ( k ) R n y .
Remark 1.
The convexity of the polytopic model in (9) is strictly guaranteed by the structural constraints of the ANFIS Layers 1–3. Specifically, the normalization performed in Layer 3 (see Equation (4)) ensures that the weighting functions satisfy the convex sum property: i = 1 N μ ¯ i ( ζ ( k ) ) = 1 and μ ¯ i ( ζ ( k ) ) 0 for all ζ R n ζ [33]. As each μ ¯ i is derived from non-negative membership functions (2) and their T-norm product (3), the resulting firing strengths are intrinsically non-negative. This property ensures that the global nonlinear dynamics are always contained within the convex hull of the local submodels { A i , B i , λ i } , providing the necessary mathematical foundation for the LMI-based stability analysis of the zonotopic observer.
It is worth noting that the CSTR system is affected by uncertainties stemming from unmodeled reaction dynamics and external disturbances. In this framework, the matrices Ψ i and Ω i capture the parametric uncertainties associated with the dynamic model, while the matrix F σ accounts for measurement noise:
x ( k + 1 ) = i = 1 N μ ¯ i ( ζ ( k ) ) ( A i + Ψ i ) x ( k ) + ( B i + Ω i ) u ( k ) + λ i , y ( k ) = C x ( k ) + F σ σ ( k )
The uncertainty matrices Ψ i R n x × n x and Ω i R n x × n u are constructed from the parameter error covariance matrix Σ θ ( i ) , which is obtained during the hybrid learning phase of the ANFIS model. This matrix is partitioned as follows:
Σ θ ( i ) = Σ A i Σ B i Σ λ i
Here, Σ A i R n x 2 × n x 2 and Σ B i R n x n u × n x n u are the covariance submatrices of the consequent parameters corresponding to A i and B i .
The covariance information of the consequent parameters is obtained from the least-squares stage of the hybrid ANFIS training procedure. For a given identified output, the consequent parameters associated with the ith fuzzy rule are collected as
θ i = α 1 i α 6 i λ i .
Because the normalized firing strengths μ ¯ i ( ζ ( k ) ) are fixed during the consequent-parameter update, the ANFIS output is linear with respect to the consequent parameters. Therefore, the training data can be written in regression form as
y = Φ θ + e ,
where Φ is the regression matrix containing the input regressors weighted by the corresponding normalized firing strengths, θ collects the consequent parameters of all fuzzy rules, and e denotes the identification residual. After least-squares estimation, the covariance matrix of the consequent-parameter estimates is computed as
Σ θ = σ ^ e 2 Φ Φ 1 ,
where the residual variance is estimated as
σ ^ e 2 = y Φ θ ^ 2 2 N s N p ,
with N s denoting the number of training samples and N p the number of estimated consequent parameters. The rule-specific covariance blocks Σ A i , Σ B i , and Σ λ i are subsequently extracted according to the arrangement of the consequent parameters in the TS representation. The diagonal elements of Σ A i and Σ B i are converted into parameter-wise standard deviations and are used to construct the uncertainty matrices Ψ i and Ω i . To extract the uncertainty matrices, the diagonal elements (variances) are reshaped and square-rooted to obtain the standard deviations of each parameter, leading to the following:
Ψ i = reshape diag ( Σ A i ) , n x , n x
Ω i = reshape diag ( Σ B i ) , n x , n u
Equations (16) and (17) provide the structured uncertainty matrices used in the uncertain state-space model (10), capturing the parameter-wise confidence derived from ANFIS training. The operator reshape denotes the standard transformation of a vector into a matrix of specified dimensions, consistent with column-major ordering. It is worth noting that no uncertainty is introduced in the affine term λ i . This decision is justified by the fact that λ i acts as a constant offset in the model, and its influence on the system dynamics is typically negligible compared to the multiplicative terms A i x ( k ) and B i u ( k ) . Furthermore, during ANFIS training, the estimation of λ i via least-squares methods tends to exhibit low variance relative to the state and input-dependent parameters. The matrix F σ R n y × n y denotes the scaling of the additive measurement noise σ ( k ) R n y , which reflects sensor noise affecting the CSTR output measurements.
The affine term λ i has a different role from the coefficients contained in A i and B i . Once ANFIS training is completed, λ i is a fixed consequent coefficient associated with the ith local model and does not multiply either the state vector x ( k ) or the input vector u ( k ) . Consequently, uncertainty associated with A i and B i enters the state dynamics through the multiplicative terms Ψ i x ( k ) and Ω i u ( k ) , respectively, while uncertainty associated with λ i , if explicitly included, would enter as an additive contribution.
To quantitatively assess the relevance of this affine-term uncertainty, its propagated contribution was evaluated over the fixed validation dataset. The magnitude of the uncertainty associated with the state- and input-dependent terms was computed as
b A B ( k ) = i = 1 N μ ¯ i ( ζ ( k ) ) | Ψ i | | x ( k ) | + | Ω i | | u ( k ) | ,
while the contribution associated with the affine term was evaluated as
b λ ( k ) = i = 1 N μ ¯ i ( ζ ( k ) ) σ λ i , σ λ i = diag ( Σ λ i ) .
The corresponding RMS uncertainty measures over the K validation samples are defined as
J A B = 1 K k = 1 K b A B ( k ) 2 2 , J λ = 1 K k = 1 K b λ ( k ) 2 2 .
The relative contribution of the affine-term uncertainty is then quantified as
η λ = 100 J λ J A B + J λ .
Table 5 summarizes the resulting values for the four identified outputs. The affine-term uncertainty contributes less than 0.090% of the total propagated ANFIS uncertainty in every case, ranging from 0.063% for C to 0.089% for Q c . Therefore, the dominant identification-induced uncertainty is associated with the state- and input-dependent consequent parameters contained in A i and B i . These results quantitatively support retaining λ i as the fixed affine offset obtained during ANFIS training and neglecting its uncertainty in the present observer formulation.
The uncertainty matrices Ψ i and Ω i are constructed from the diagonal entries of the ANFIS parameter covariance submatrices Σ A i and Σ B i . This choice provides a structured and computationally tractable approximation in which each uncertain parameter is bounded individually according to its estimated variance. As a result, the uncertainty description can be directly embedded into the TS model while preserving the original dimensions of A i and B i , which facilitates the subsequent zonotopic propagation and observer design.
It should be noted, however, that this approximation neglects the cross-correlations among the identified consequent parameters. Therefore, the resulting uncertainty model captures the marginal dispersion of each parameter, but not the full correlation structure encoded in the complete covariance matrix. In practical terms, this means that the proposed formulation provides a structured parameter-wise uncertainty description rather than a full statistical characterization of parameter dependence. The following section will describe the robust fault diagnosis stage based on zonotopic PI observers.

2.4. Structure of Zonotopic PI Observer

Following the approach in [34], the effect of uncertain parameters can be aggregated into a single disturbance term. Consequently, Equation (10) is reformulated as follows:
x ( k + 1 ) = i = 1 N μ ¯ i ( ζ ( k ) ) A i x ( k ) + B i u ( k ) + λ i + E i δ ( k ) , y ( k ) = C x ( k ) + F σ σ ( k ) ,
with
E i δ ( k ) = Ψ i x ( k ) + Ω i u ( k ) ,
where E i is the uncertainty distribution matrix of suitable dimensions, and δ ( k ) R n x is a vector that captures the impact of uncertainty.
Zonotopes are adopted due to their favorable balance between computational efficiency and expressive power for uncertainty representation. Unlike general polytopes, whose complexity grows exponentially with the system dimension, zonotopes admit a generator-based description that scales linearly. This property enables efficient computation of Minkowski sums and linear transformations, making zonotopes particularly suitable for real-time state estimation. In the proposed framework, zonotopes are used to propagate bounded disturbances and identification-induced uncertainty, allowing the construction of adaptive, set-based thresholds for robust fault detection.
A zonotope can be interpreted as a compact geometric representation of all states that are consistent with the available model and bounded uncertainty information. A zonotope c , R is characterized by a center c, representing the nominal or central estimate, and a generator matrix R, whose columns describe the directions and magnitudes in which the estimate may vary. Consequently, the zonotope represents a bounded set of admissible states rather than a single point estimate.
The operations used in the proposed observer have a direct geometric interpretation. A linear map transforms both the center and the generators, while a Minkowski sum combines different uncertainty contributions by augmenting the generator matrix. During recursive propagation, the number of generators may continuously increase; therefore, the inclusion-preserving operator q is used to reduce the generator complexity while maintaining an outer enclosure of the original set. In the proposed framework, these operations allow identification-induced uncertainty and measurement noise to be propagated together with the estimated state. The process uncertainty and measurement noise are formally modeled using zonotopic sets, defined as follows:
δ Z δ : = c δ , R δ , σ Z σ : = c σ , R σ ,
where c , R : = c + R ξ ξ R r , ξ 1 denotes a zonotope centered at c with generator matrix R. Specifically, c δ R n x and c σ R n y are the centers of the zonotopes Z δ and Z σ that enclose the process uncertainty and measurement noise, respectively. The corresponding generator matrices are R δ R n x × r δ and R σ R n y × r σ , where r δ and r σ denote the zonotope orders.
The zonotopic observer is initialized from a bounded set centered at the nominal initial state. Specifically,
X ^ 0 z o = c 0 z o , R 0 z o ,
with
c 0 z o = 0.100 430.9 416.7 , R 0 z o = 0.005 0 0 0 1.0 0 0 0 1.0 .
Accordingly, the initial state is assumed to satisfy C ( 0 ) [ 0.095 , 0.105 ] mol/L, T ( 0 ) [ 429.9 , 431.9 ] K, and T c ( 0 ) [ 415.7 , 417.7 ] K. This nonzero initial generator matrix accounts for a small bounded uncertainty around the nominal initial condition and prevents the observer from starting from an artificially exact point estimate.
To enhance state estimation in the presence of persistent disturbances and modeling uncertainties, a discrete-time PI observer structure is developed within the TS framework. This formulation extends the conventional proportional observer by incorporating an integral action on the output estimation error, thereby improving robustness and sensitivity to incipient faults.
Although PI observer structures have been previously studied in the literature, the following development is specifically tailored to TS models obtained exclusively from input–output data. In contrast to classical formulations, the proposed observer is embedded within a zonotopic framework and incorporates H robustness to explicitly handle identification-induced uncertainty and measurement noise. Following the design methodology proposed by [24], the PI observer is formulated as follows:
x ^ ( k + 1 ) = i = 1 N μ ¯ i ( ζ ( k ) ) A i x ^ ( k ) + B i u ( k ) + λ i + L P , i y ( k ) y ^ ( k ) + L I , i η ( k ) ,
η ( k + 1 ) = η ( k ) + y ( k ) y ^ ( k ) ,
y ^ ( k ) = C x ^ ( k ) ,
where x ^ ( k ) R n x is the estimated state vector, η ( k ) R n y is the integral state, which accumulates the output estimation error over time, y ^ ( k ) = C x ^ ( k ) is the estimated system output, L P , i and L I , i are the proportional and integral observer gains associated with the i-th submodel, and μ ¯ i ( ζ ( k ) ) are the normalized activation functions determined by the scheduling vector ζ ( k ) .
Unlike classical PI observer formulations, the proposed structure operates on zonotopic state enclosures derived from data-driven TS models, enabling adaptive, set-based residual generation under bounded uncertainty.
This structure also facilitates the synthesis of observer gains via LMIs, ensuring robust convergence of the estimation error dynamics under bounded uncertainty and noise.
It is emphasized that the PI observer structure itself is not claimed to be novel; rather, the contribution lies in its integration with data-driven TS modeling, zonotopic state estimation, and H -based robustness guarantees.
This formulation is a generalization of the PI observer introduced in [24,25] to the case of fuzzy TS models with multiple submodels and nonlinear weighting.
The error is obtained from the relation e ( k ) = x ( k ) x ^ ( k ) , and the error dynamic e ( k + 1 ) is
e ( k + 1 ) = x ( k + 1 ) x ^ ( k + 1 ) ,
From the definition of the estimation error in (30), and by substituting the system (22) and observer (27) into this relation, the error dynamics can be expressed as follows:
e ( k + 1 ) = i = 1 N j = 1 N μ ¯ i ( ζ ( k ) ) μ ¯ j ( ζ ( k ) ) ( A i L P , j C ) e ( k ) + E i δ ( k ) L P , j F σ σ ( k ) L I , j η ( k )
The integral state is updated as follows:
η ( k + 1 ) = η ( k ) + y ( k ) y ^ ( k ) = η ( k ) + C e ( k ) + F σ σ ( k )
Thus, the extended error dynamics become
e ˜ ( k + 1 ) = i = 1 N j = 1 N μ ¯ i ( ζ ( k ) ) μ ¯ j ( ζ ( k ) ) A i L P , j C L I , j C I A i j e ˜ ( k ) + E i L P , j F σ 0 F σ B i j ϕ w ( k )
with the extended state vector:
e ˜ ( k ) = e ( k ) η ( k ) , ϕ w ( k ) = δ ( k ) σ ( k )
Finally, the complete extended error dynamics can be written as
e ˜ ( k + 1 ) = i = 1 N j = 1 N μ ¯ i ( ζ ( k ) ) μ ¯ j ( ζ ( k ) ) A i j e ˜ ( k ) + B i j ϕ w ( k )
where
A i j = A i L P , j C L I , j C I , B i j = E i L P , j F σ 0 F σ
The extended error dynamics in (35) provide the basis for the subsequent H LMI-based synthesis of the zonotopic PI observer gains, explicitly accounting for identification-induced uncertainty and measurement noise in a data-driven TS framework.
A zonotopic observer that encloses the system states under uncertainty (22) can be expressed as X ^ k = c k x , R k x , derived from the observer formulation (27) and Proposition 1, assuming bounded uncertainties and zonotopic representation under the following assumption.
Proposition 1.
Given the uncertain TS system (22) and the PI observer (27), with bounded disturbances δ k 0 , I n δ and noise σ k 0 , I n σ , the predicted zonotope X ^ k + 1 z o = c k + 1 z o , R k + 1 z o is
c k + 1 z o = i = 1 N μ ¯ i ( ζ ( k ) ) ( A i L P , i C ) c k z o + B i u k + λ i + L P , i y k + L I , i η ( k ) ,
R k + 1 z o = i = 1 N μ ¯ i ( ζ ( k ) ) ( A i L P , i C ) R ¯ k z o , i = 1 N μ ¯ i ( ζ ( k ) ) E i , i = 1 N μ ¯ i ( ζ ( k ) ) L P , i F σ ,
R ¯ k z o = q R k z o ,
where q ( · ) is an inclusion-preserving generator reduction to fixed order q.
Proof. 
Let x ^ ( k ) X ^ k z o = c k z o , R k z o with the reduced form R ¯ k z o = q ( R k z o ) . From the PI-TS observer, for each submodel i we have
x ^ ( k + 1 ) = ( A i L P , i C ) x ^ ( k ) + B i u k + λ i + L P , i y k + L I , i η ( k ) + E i δ k L P , i F σ σ k ,
weighted by μ ¯ i ( ζ ( k ) ) and summed over i.
We propagate sets using standard zonotope operations: (i) Linear map: M c , R = M c , M R ; (ii) Minkowski sum: c 1 , R 1 c 2 , R 2 = c 1 + c 2 , [ R 1 R 2 ] ; and (iii) Scalar multiplication: κ c , R = κ c , κ R with κ 0 .
We apply (i)–(iii) term by term for a fixed i:
( A i L P , i C ) c k z o , R ¯ k z o = ( A i L P , i C ) c k z o , ( A i L P , i C ) R ¯ k z o ,
B i u k , 0 = B i u k , 0 ,
λ i , 0 ,
L P , i y k , 0 = L P , i y k , 0 ,
L I , i η ( k ) , 0 ,
E i 0 , I n δ = 0 , E i ,
( L P , i F σ ) 0 , I n σ = 0 , L P , i F σ .
Deterministic terms such as (42)–(45) contribute only to the zonotope center, while terms (41), (46) and (47) contribute to the generator matrix. We then combine these contributions via Minkowski sum (ii), and weight them by μ ¯ i ( ζ ( k ) ) using (iii). As i = 1 N μ ¯ i ( ζ ( k ) ) = 1 and μ ¯ i 0 , the convex combination of centers and the linearity of the image yield
i = 1 N μ ¯ i ( ζ ( k ) ) ( A i L P , i C ) c k z o , R ¯ k z o = i = 1 N μ ¯ i ( ζ ( k ) ) ( A i L P , i C ) c k z o , R ¯ k z o ,
which produces the first block in (37) and (38) by (i). Similarly, as the same uncertainty δ k and noise σ k affect all submodels,
i = 1 N μ ¯ i ( ζ ( k ) ) 0 , E i = 0 , i = 1 N μ ¯ i ( ζ ( k ) ) E i ,
i = 1 N μ ¯ i ( ζ ( k ) ) 0 , L P , i F σ = 0 , i = 1 N μ ¯ i ( ζ ( k ) ) L P , i F σ ,
which form the second and third blocks in (38). The deterministic terms B i u k , λ i , L P , i y k , and L I , i η ( k ) only shift the center (no new generators are added), yielding (37). Finally, the reduction operator q in (39) preserves set inclusion while bounding complexity.
Therefore, X ^ k + 1 z o = c k + 1 z o , R k + 1 z o is given by (37)–(39).    □
Note from expression (38) that the deterministic terms λ i , 0 , ( B i u k , 0 ) , ( L P , i y k , 0 ) , and ( L I , i η ( k ) , 0 ) have no impact on the generator matrix R k + 1 z o and influence only the center c k + 1 z o of the zonotope c k + 1 z o , R k + 1 z o . Assuming that the estimated state belongs to the zonotope X ^ k z o = c k z o , R k z o , with its reduced generator matrix R ¯ k z o = q ( R k z o ) , and that the disturbances and noise are bounded as δ k 0 , I n δ and σ k 0 , I n σ , the estimation error e ( k ) = x ( k ) x ^ ( k ) is enclosed at the next step by the zonotope:
e ( k + 1 ) 0 , R k + 1 e ,
with the generator matrix given by
R k + 1 e = i = 1 N μ ¯ i ( ζ ( k ) ) ( A i L P , i C ) R ¯ k z o , i = 1 N μ ¯ i ( ζ ( k ) ) E i , i = 1 N μ ¯ i ( ζ ( k ) ) L P , i F σ .
To ensure robustness against bounded disturbances and measurement noise, the observer gains L P , i and L I , i are designed according to an H performance criterion. The goal is to minimize the worst-case amplification from the disturbance input to the estimation error by solving a convex optimization problem subject to LMI constraints.
The reduction order q is an implementation parameter of the zonotopic propagation and is independent of the LMI-based H observer synthesis. Its purpose is to prevent the continuous growth of the number of generators during recursive set propagation while preserving an outer enclosure of the estimated set. In all simulations, the reduction order was fixed to q = 15 . For the considered observers, the state dimension is n x = 3 ; hence, this setting corresponds to a maximum reduced generator budget equal to five times the state dimension. The selected value was adopted as a practical compromise between retaining geometric information in the zonotopic representation and maintaining bounded computational complexity. No optimality claim is made regarding q = 15 . A systematic optimization of the reduction order is not addressed in the present work and constitutes a possible direction for future investigation.
For the CSTR implementation, the normalized disturbance and measurement-noise variables satisfy δ k 1 and σ k 1 , respectively. Their actual magnitudes are introduced through the uncertainty-distribution and measurement-noise scaling matrices
E = 0.039 0 0 0 0.042 0 0 0 0.040 , F σ = 0.662 0 0 0 0.679 0 0 0 0.667 .
Consequently, the bounded model-uncertainty contribution satisfies the componentwise bounds | E δ k | [ 0.039 , 0.042 , 0.040 ] , while the bounded measurement-noise contribution satisfies | F σ σ k | [ 0.662 , 0.679 , 0.667 ] . Equivalently, E δ k 0.042 and F σ σ k 0.679 . These bounds are propagated explicitly through the zonotopic observer at each sampling instant.

2.5. Robust Zonotopic PI Observer Design

To ensure that the uncertain TS system (22), identified exclusively from data, and the proposed zonotopic PI observer (27) achieve convergence, the origin of the extended error dynamics (35) must be asymptotically stable. The objective is to derive sufficient conditions that guarantee H robustness of the estimation error dynamics in the presence of identification-induced uncertainty and measurement noise. These conditions are summarized in the following theorem.
Theorem 1.
Consider the discrete-time TS system subject to additive uncertainty and measurement noise, together with the proposed zonotopic PI observer designed for TS models obtained from input–output data. For a prescribed disturbance attenuation level γ > 0 , the extended error system (35) satisfies the H performance criterion with attenuation index γ if there exist a symmetric positive-definite matrix P R n × n , design matrices Y j , W j R n × p , and a scalar γ ¯ = γ 2 , such that the following inequality holds for all ( i , j ) { 1 , 2 , , N } :
2 N 1 L i i + L i j + L j i < 0 ,
where the matrix L i j is defined as
L i j = C C P C E w A ˜ i j P B ˜ i j P E w C E w E w γ ¯ I 0 0 P A ˜ i j 0 P 0 P B ˜ i j 0 0 γ ¯ I ,
with
A ˜ i j = A i Y j C P 1 W j P 1 C I ,
B ˜ i j = E i Y j F σ P 1 0 F σ .
Then, the designed observer ensures the internal stability of the extended error dynamics and guarantees that the H performance criterion
k = 0 r ( k ) r ( k ) < γ 2 k = 0 ϕ w ( k ) ϕ w ( k )
is satisfied for all admissible disturbances. Taking into account that γ 2 = γ ¯ , the zonotopic condition
e ( k ) 2 2 < γ 2 ϕ w ( k ) 2 2
is fulfilled, and the corresponding LMI conditions are derived using the Schur complement and convex relaxation.
Proof. 
Let V ( k ) = e ˜ ( k ) P e ˜ ( k ) be the Lyapunov candidate function with P > 0 . The extended error dynamics are given by
e ˜ ( k + 1 ) = A ˜ i j e ˜ ( k ) + B ˜ i j ϕ w ( k ) ,
and the residual is defined as
r ( k ) = C e ( k ) + E w ϕ w ( k ) ,
where E w = 0 F σ and ϕ w ( k ) = δ ( k ) σ ( k ) is the disturbance vector that includes process and measurement uncertainty.
The H performance condition is expressed as
J r 1 = Δ V ( k + 1 ) + r ( k ) r ( k ) γ 2 ϕ w ( k ) ϕ w ( k ) < 0 .
We expand Δ V ( k + 1 ) as
Δ V ( k + 1 ) = ( A ˜ i j e ˜ ( k ) + B ˜ i j ϕ w ( k ) ) P ( A ˜ i j e ˜ ( k ) + B ˜ i j ϕ w ( k ) ) e ˜ ( k ) P e ˜ ( k )
= e ˜ ( k ) ϕ w ( k ) A ˜ i j P A ˜ i j P A ˜ i j P B ˜ i j B ˜ i j P A ˜ i j B ˜ i j P B ˜ i j e ˜ ( k ) ϕ w ( k ) .
For the residual term:
r ( k ) r ( k ) γ 2 ϕ w ( k ) ϕ w ( k ) = e ˜ ( k ) ϕ w ( k ) C C C E w E w C E w E w γ 2 I e ˜ ( k ) ϕ w ( k ) .
Adding both contributions, we define the total inequality:
J r 1 = e ˜ ( k ) ϕ w ( k ) L i j e ˜ ( k ) ϕ w ( k ) < 0 ,
with
L i j = C C P + A ˜ i j P A ˜ i j C E w + A ˜ i j P B ˜ i j E w C + B ˜ i j P A ˜ i j E w E w γ 2 I + B ˜ i j P B ˜ i j .
Applying the Schur complement, and defining L P , j = Y j P 1 and L I , j = W j P 1 , the inequality becomes a convex LMI in variables P, Y j , and W j .
Using the convex relaxation from [33], the term
i = 1 N j = 1 N μ ¯ i ( ζ ( k ) ) μ ¯ j ( ζ ( k ) ) L i j
is upper-bounded by
2 N 1 L i i + L i j + L j i ,
which yields tractable LMIs. Taking into account γ 2 = γ ¯ , the zonotopic condition
e ( k ) 2 2 < γ 2 ϕ w ( k ) 2 2
is satisfied. This concludes the proof.    □
Remark 2.
Rather than selecting the attenuation level γ empirically, the observer synthesis can be formulated as the following convex optimization problem:
minimize P , Y j , W j , γ ¯ γ ¯ subject to P 0 , 2 N 1 L i i + L i j + L j i 0 , ( i , j ) ,
where γ ¯ = γ 2 . Therefore, γ = γ ¯ represents the smallest disturbance-attenuation level admitted by the proposed LMI conditions. The optimization is performed offline, and the observer gains L P , j = Y j P 1 and L I , j = W j P 1 obtained from the solution are subsequently fixed for online implementation.
For the numerical implementation, the LMI conditions of Theorem 1 were formulated in MATLAB (R2025b) using YALMIP as the optimization modeling interface and solved with the SeDuMi 1.3 semidefinite-programming solver. To numerically enforce the strict matrix inequalities, a feasibility margin of ε = 10 8 was adopted. Accordingly, each strict LMI condition L < 0 was implemented as
L ε I , ε = 10 8 .
The H disturbance-attenuation bound was minimized subject to the complete set of LMI feasibility constraints. The resulting optimization problem was feasible, and yielded
γ = 0.8452 .
Once a feasible solution ( P , Y i , W i ) is obtained, the proportional and integral observer gains are recovered using the same variable transformations introduced in the proof of Theorem 1:
L P , i = Y i P 1 , L I , i = W i P 1 , i = 1 , , N .
For the present ANFIS-derived TS representation, N = 64 local models are considered. The complete numerical set of proportional and integral observer gains used in the simulations is reported in Appendix A.
The LMI optimization is performed only once during the offline observer-design stage, after the ANFIS-based TS model and its uncertainty description have been obtained. The resulting matrices P, Y i , and W i , and, consequently, the gains L i , remain fixed throughout online operation. Therefore, no semidefinite optimization problem is solved at each sampling instant. During online operation, only the normalized activation weights μ ¯ i ( ζ ( k ) ) are updated according to the current scheduling variables, and the corresponding precomputed local observer contributions are combined through the Takagi–Sugeno interpolation mechanism.
The main numerical settings employed for the H observer synthesis are summarized in Table 6.

2.6. Fault Detection and Isolation Stage

The FD procedure based on zonotopic PI observers combines state estimation from the ANFIS with uncertainty and noise propagation handled by the zonotopic framework. Faults are detected by verifying whether the estimated zonotope intersects the measurement strip at each time step. A fault is flagged whenever this intersection is empty, indicating inconsistency between prediction and measurement. For each residual channel s, fault detection is performed without introducing a manually tuned fixed threshold. Let the predicted zonotope at time k be X ^ k z o = c k z o , R k z o , and let C s denote the measurement row associated with the sth residual. The projection of the predicted zonotope onto the corresponding measurement direction is the interval
Y s z o ( k ) = C s c k z o C s R k z o 1 , C s c k z o + C s R k z o 1 .
The measurement-consistent interval is defined as
Y s m ( k ) = y s ( k ) ν s , y s ( k ) + ν s ,
where ν s is the corresponding measurement-noise bound obtained from F σ Z σ . Hence, the adaptive residual threshold is
τ s ( k ) = C s R k z o 1 + ν s .
Using the residual
r s ( k ) = y s ( k ) C s c k z o ,
the binary residual activation is computed as
ψ s ( k ) = 0 , | r s ( k ) | τ s ( k ) , 1 , | r s ( k ) | > τ s ( k ) .
Numerically, the set-intersection test is therefore implemented as an interval-overlap test. The predicted and measurement-consistent intervals intersect if and only if
max C s c k z o C s R k z o 1 , y s ( k ) ν s min C s c k z o + C s R k z o 1 , y s ( k ) + ν s .
Accordingly, an empty intersection is equivalently detected when
X ^ k z o X k y s = | r s ( k ) | > τ s ( k ) .
Thus, no additional linear or nonlinear optimization problem is required for the online intersection test. The decision is obtained directly from the center and generator matrix of the propagated zonotope and the prescribed measurement-noise bound. For fault isolation, the binary residual vector is defined as
ψ ( k ) = ψ 1 ( k ) ψ 2 ( k ) ψ 3 ( k ) ψ 4 ( k ) .
The predefined fault signature matrix used in the CSTR case study is
M FSM = 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 1 0 0 0 1 0 1 ,
where the rows correspond to residuals ( r 1 , r 2 , r 3 , r 4 ) and the columns correspond to fault scenarios ( f 1 , , f 6 ) . Fault isolation is performed by comparing the observed binary signature ψ ( k ) with the columns of M FSM . An exact match with column j assigns fault f j , while ψ ( k ) = 0 corresponds to nominal operation.
The set of candidate fault scenarios is defined a priori according to the physical faults considered in the CSTR benchmark. However, the binary entries of the FSM are obtained offline from dedicated single-fault simulations rather than being assigned solely from process knowledge. For each fault scenario f j , the zonotopic detection procedure is applied and the corresponding residual activation pattern is recorded. Specifically, the FSM entry is defined as
ψ s , j = 1 , if residual r s is inconsistent under fault f j , 0 , otherwise ,
where inconsistency is determined through the adaptive set-based criterion | r s ( k ) | > τ s ( k ) . Thus, the candidate fault set is specified from process knowledge, while the residual signatures forming the FSM are derived from the simulated fault responses. No additional statistical or machine-learning classifier is used to construct the FSM. During online fault isolation, let ψ ( k ) denote the observed binary residual signature and let m j denote the jth column of M FSM . The set of candidate faults compatible with the observed signature is defined as
J ( k ) = j { 1 , , N f } : ψ ( k ) = m j .
The isolation decision is then defined as follows:
D ( k ) = nominal , ψ ( k ) = 0 , f j , | J ( k ) | = 1 , ambiguous / unisolated , | J ( k ) | 1 and ψ ( k ) 0 .
Accordingly, a fault label is assigned only when the observed residual signature uniquely matches one column of the FSM. A nonzero signature that does not provide a unique match is retained as an ambiguous diagnostic event rather than being forcibly assigned to one of the predefined fault classes.
The present FSM was constructed and validated for single-fault scenarios. Simultaneous faults are therefore not assumed to be uniquely isolable by the current matrix. If two faults f a and f b occur simultaneously, a first logical approximation to the resulting residual signature would be the element-wise Boolean union,
m a , b = m a m b ,
where ∨ denotes the element-wise logical OR operation. However, such a combined signature is not necessarily unique, and nonlinear interactions between simultaneous faults may further modify the residual response. Consequently, simultaneous-fault isolation is not guaranteed by the current FSM. Its systematic treatment would require augmenting M FSM with dedicated combined-fault signatures and performing an isolability analysis for the enlarged fault set.
The complete online fault-detection and isolation procedure, including zonotope propagation, adaptive residual evaluation, numerical intersection testing, and FSM-based fault isolation, is summarized in Algorithm 1.
Algorithm 1 Zonotopic fault detection and isolation scheme
Require:  Measured inputs u ( k ) and outputs y ( k ) ; ANFIS-derived TS models { A i , B i , λ i , μ ¯ i } i = 1 N ; precomputed observer gains { L P , i , L I , i } i = 1 N ; initial zonotope X ^ 0 z o = c 0 z o , R 0 z o ; reduction order q = 15 ; Z δ = 0 , I 3 ; Z σ = 0 , I 3 ; uncertainty matrices E i and F σ ; γ opt = 0.8452 ; and fault signature matrix M FSM .
Ensure:  Fault-detection decision and isolated fault label.
   1:
Initialize X ^ 0 z o = c 0 z o , R 0 z o and the integral observer state η ( 0 ) .
   2:
for each sampling instant k do
   3:
      Evaluate the ANFIS membership functions and compute the normalized TS weights μ ¯ i ( ζ ( k ) ) .
   4:
      Propagate the zonotopic PI observer using the precomputed gains L P , i and L I , i .
   5:
      Reduce the generator matrix as R ¯ k z o = q ( R k z o ) , with  q = 15 .
   6:
      for each residual channel s = 1 , , 4  do
   7:
            Compute the residual r s ( k ) = y s ( k ) C s c k z o .
   8:
            Compute the projected zonotope half-width h s ( k ) = C s R k z o 1 .
   9:
            Obtain the measurement-noise bound ν s from F σ Z σ .
 10:
            Compute the adaptive threshold τ s ( k ) = h s ( k ) + ν s .
 11:
            if  | r s ( k ) | > τ s ( k )  then
 12:
                ψ s ( k ) 1                  ▹ empty intersection
 13:
            else
 14:
                ψ s ( k ) 0                  ▹ nonempty intersection
 15:
            end if
 16:
      end for
 17:
      Form the binary residual signature ψ ( k ) = [ ψ 1 ( k ) , ψ 2 ( k ) , ψ 3 ( k ) , ψ 4 ( k ) ] .
 18:
      if  ψ ( k ) = 0  then
 19:
            Declare nominal operation.
 20:
      else
 21:
            Compare ψ ( k ) with the columns of M FSM .
 22:
            if  ψ ( k ) = M FSM ( : , j ) for a unique j then
 23:
               Isolate fault f j .
 24:
            else
 25:
               Report an unclassified residual signature.
 26:
            end if
 27:
      end if
 28:
end for
It is noted that γ = 0.8452 is an offline observer-design parameter used to obtain the fixed gains L P , i and L I , i through the H LMI synthesis. It is reported among the algorithm parameters for reproducibility, but the LMI problem and γ are not recomputed during online diagnosis. The generation of residuals r s relies on the estimated variables presented in Table 3, and specialized zonotopic PI observers will be developed specifically for tracking these residuals:
r 1 ( k ) = C ( k ) C ^ ( k ) ,
r 2 ( k ) = T ( k ) T ^ ( k ) ,
r 3 ( k ) = T c ( k ) T ^ c ( k ) ,
r 4 ( k ) = Q c ( k ) Q ^ c ( k ) ,

3. Results

In this section, the results of the proposed hybrid method for fault diagnosis using ANFIS and zonotopic PI observers are presented. The method was evaluated on a CSTR model simulator specifically configured for this purpose.
The CSTR system was subjected to several tests under different operating conditions, with 30 simulations conducted in fault-free scenarios. The simulation time was 1200   min with four samples per minute. The Simulink benchmark includes random number generator blocks to perturb the inputs C i T i T c i , along with process noise and added sensor noise. This allows the numerical simulations to have random variations around their nominal values, as shown in Figure 4. Input perturbations reveal complex system dynamics, leading to temporally correlated measurements and non-Gaussian distributions due to the inherent nonlinearity of the process.
A total of 30 independent fault-free simulations were generated for ANFIS identification and validation. Each simulation was performed for 1200 min at a sampling rate of four samples per minute, resulting in 4800 samples per simulation. To prevent information leakage between temporally correlated samples belonging to the same trajectory, the training–validation partition was performed simulation-wise rather than by randomly splitting individual samples. Specifically, 24 complete simulations (80%) were assigned to the training dataset and the remaining six complete simulations (20%) were reserved exclusively for validation. Consequently, the training and validation sets contained 115,200 and 28,800 samples, respectively. The same validation simulations were maintained throughout all subsequent analyses.
The ANFIS models were trained for 150 epochs using the nominal training partition. Table 7 reports the identification accuracy for each output variable. Training root mean square error (RMSE) ranged from 3.8971 × 10 4 to 6.9623 × 10 4 , while validation RMSE ranged from 4.1683 × 10 4 to 7.3816 × 10 4 . In all four cases, the validation error remains close to the corresponding training error, indicating that the identified models preserve their predictive performance on simulations that were not used during parameter estimation. The RMSE is defined as
R M S E = 1 N ι ι = 1 N ι ( y ι y ^ ι ) 2
where y ι and y ^ ι denote the measured and predicted values, respectively, and N ι is the number of observations used for the corresponding training or validation evaluation.

3.1. Influence of Training-Data Availability

As the proposed methodology constructs the uncertain TS representation from ANFIS models identified exclusively from nominal data, the amount of available training information can influence the accuracy of the subsequent diagnostic model. To investigate this effect while preserving complete independence of the validation data, a simulation-wise sensitivity analysis was performed.
The six simulations originally assigned to the validation dataset were kept fixed in all experiments. The amount of training information was varied by using 6, 12, 18, and 24 complete nominal simulations, corresponding to 25%, 50%, 75%, and 100% of the original training partition, respectively. As each simulation contains 4800 samples, these configurations correspond to 28,800, 57,600, 86,400, and 115,200 training samples. No sample from the fixed validation simulations was used during ANFIS training. The simulation-wise configurations used to evaluate the sensitivity to the amount of nominal training data are summarized in Table 8.
Table 9 presents the validation RMSE obtained for each output as the amount of nominal training data is progressively increased. Importantly, all RMSE values were computed using the same six previously unseen validation simulations, so that differences among the configurations are attributable exclusively to the amount of information available during ANFIS identification.
A consistent reduction in validation error is observed as the number of training simulations increases. Relative to the 25% training configuration, using the complete training partition reduces the validation RMSE by approximately 33.7%, 28.3%, 25.6%, and 23.3% for C, T, T c , and Q c , respectively. This confirms that strongly reducing the amount of nominal training information deteriorates the accuracy of the identified models.
The improvement becomes progressively smaller as additional training simulations are incorporated. In particular, increasing the training partition from 75% to 100% reduces the validation RMSE by only approximately 5.8%, 5.0%, 4.7%, and 4.4% for C, T, T c , and Q c , respectively. This behavior indicates diminishing improvements once the principal nominal process dynamics are sufficiently represented in the identification dataset.
To further assess the repeatability of the identification performance, the RMSE was computed independently for each of the 30 fault-free simulations. Table 10 reports the resulting mean and standard deviation of the run-wise RMSE for each identified output. The results show consistent prediction accuracy across the independent nominal realizations, with T c exhibiting the largest run-to-run variability among the four outputs.
The zonotopic PI observers were subsequently implemented following the methodology detailed in Section 2.4. The resulting estimations are presented graphically to illustrate their behavior under nominal operating conditions. Figure 5 displays the concentration variable C, where the zonotopic bounds (shown in red and green) enclose the measured signal (blue line). Similarly, the temperature T is depicted in Figure 6, while Figure 7 and Figure 8 show the coolant flow rate Q c and the coolant temperature T c , respectively. In all cases, the observer successfully encloses the measured trajectories, validating its performance under fault-free conditions.
The computational burden of the complete online diagnostic cycle was also evaluated. The measured online execution includes the evaluation of the four ANFIS models, TS model aggregation, zonotopic PI observer update, uncertainty propagation, generator reduction with q = 15 , construction of the measurement-consistent set, intersection testing, and FSM evaluation. The mean computational time was 11.8 ms per sample, with a standard deviation of 2.6 ms and a maximum observed execution time of 24.9 ms.
Considering the sampling interval of T s = 15 s, the mean and maximum execution times represent approximately 0.08% and 0.17% of the available sampling period, respectively. ANFIS training and the LMI-based synthesis of the observer gains are performed offline and were therefore excluded from the online timing measurements. These results support the computational feasibility of the proposed implementation for the sampling conditions considered in the CSTR case study.
To evaluate the effectiveness of the proposed method, several tests were performed by intentionally inducing sensor faults and incipient faults in the reactor process. Six fault scenarios were implemented using explicit time-dependent fault profiles. Faults 1–4 correspond to additive sensor faults with linearly varying magnitude over their respective active intervals. Let t f , j and t e , j denote the start and end times of Fault j, respectively, and let δ j denote the corresponding fault slope. The additive sensor-fault model is defined as
y j f ( t ) = y j ( t ) , t < t f , j , y j ( t ) + δ j ( t t f , j ) , t f , j t t e , j , y j ( t ) , t > t e , j ,
where y j ( t ) denotes the nominal measurement and y j f ( t ) the faulty measurement. Accordingly, Faults 1–4 are progressive additive faults active only within their prescribed intervals. For the four additive sensor faults considered in this work, the numerical profiles are
C f ( t ) = C ( t ) , t < 200 , C ( t ) + 0.001 ( t 200 ) , 200 t 350 , C ( t ) , t > 350 ,
T f ( t ) = T ( t ) , t < 350 , T ( t ) + 0.05 ( t 350 ) , 350 t 600 , T ( t ) , t > 600 ,
T c i f ( t ) = T c i ( t ) , t < 600 , T c i ( t ) + 0.05 ( t 600 ) , 600 t 900 , T c i ( t ) , t > 900 ,
Q c f ( t ) = Q c ( t ) , t < 900 , Q c ( t ) 0.1 ( t 900 ) , 900 t 1200 , Q c ( t ) , t > 1200 .
Fault 5 represents progressive catalyst deactivation. It affects the catalyst activity coefficient a, with nominal value a 0 = 1 , and starts at t f , 5 = 200 min. Its evolution is modeled as
a ( t ) = a 0 , t < 200 , a 0 exp δ a ( t 200 ) , t 200 ,
with decay rate δ a = 5 × 10 4 min−1. The parameter a ( t ) directly scales the reaction-rate term and therefore represents progressive loss of catalyst activity. Fault 6 represents progressive heat-transfer fouling. It affects the heat-transfer efficiency coefficient b, with nominal value b 0 = 1 , and starts at t f , 6 = 400 min. Its evolution is described by
b ( t ) = b 0 , t < 400 , b 0 exp δ b ( t 400 ) , t 400 ,
where δ b = 1 × 10 3 min−1. As b ( t ) scales the heat-transfer contribution, its decrease represents increasing thermal resistance due to fouling. Equivalently, the effective heat-transfer coefficient can be expressed as
U A eff ( t ) = b ( t ) U A .
The numerical configuration of the six evaluated fault scenarios, including the affected variable or parameter, fault onset time, active interval, duration, and fault profile, is summarized in Table 11.
Thus, Faults 1–4 are additive sensor faults with finite active intervals and linearly varying magnitude, while Faults 5 and 6 are progressive process faults with exponential decay profiles. In the latter two cases, the affected physical parameters are the catalyst activity coefficient a and the heat-transfer efficiency coefficient b, respectively.
Due to space constraints, only a subset of the fault scenarios is illustrated through selected figures, specifically two sensor faults and two process faults. Figure 9 displays a fault affecting the concentration sensor C, triggered at t = 200 min , where the measurement exceeds the upper bound of the zonotopic observer. In Figure 10, a fault on the coolant flow-rate sensor Q c is observed at t = 900 min , similarly surpassing the upper limit. Figure 11 presents an incipient process fault introduced at t = 200 min , where the deviation grows progressively and eventually breaches both upper and lower thresholds. Lastly, Figure 12 depicts another incipient process fault, characterized by a gradual increase that results in exceeding the upper zonotopic bound.
Table 12 summarizes the residual activation signatures obtained from the dedicated single-fault simulations. Within the six individual fault scenarios considered in this study, all FSM columns are distinct, allowing unique isolation of the evaluated single faults. In particular, Fault 5 activates residuals r 1 , r 2 , and r 3 , while Fault 6 activates r 3 and r 4 .
It should be emphasized that this uniqueness applies to the evaluated single-fault set. Simultaneous faults or residual patterns not represented by the current FSM are classified as ambiguous/unisolated and are not assigned automatically to an existing fault class.
The proposed zonotopic PI observer framework generates adaptive set-based bounds that explicitly account for modeling uncertainty and measurement noise. A fault is detected when the corresponding measured trajectory becomes inconsistent with the predicted zonotopic enclosure. The resulting residual activation patterns are subsequently evaluated through the FSM to isolate the fault scenario. As shown in Table 2, the considered single-fault scenarios produce distinguishable residual signatures, enabling fault isolation under the evaluated conditions. These distinct residual signatures facilitate fault isolation under the considered uncertainty and measurement-noise conditions.

3.2. Performance Under Uncertainty and Measurement Noise

To evaluate the performance of the proposed method under sensor and process faults in the presence of process uncertainty and measurement noise, standard detection metrics are considered as follows:
Accuracy = T P + T N T P + T N + F P + F N ,
Recall = T P T P + F N ,
FPR = F P F P + T N ,
where T P , T N , F P , and F N denote true positives, true negatives, false positives, and false negatives, respectively. Decisions are made sample-by-sample and results are reported per fault and as a macro-average across faults.
For a fair and controlled comparison, three representative data-driven fault-diagnosis approaches were reimplemented following their corresponding methodological formulations: a neural network combined with k-nearest neighbors (NN+kNN) [35], a decision tree induced by genetic programming (DT–GP) [36], and a nonlinear support vector machine with feature selection (SVM–FS) [37].
All comparison methods were evaluated using exactly the same experimental protocol as the proposed approach. Specifically, the same 24 complete fault-free simulations were used for training and the same 6 independent simulations were retained for validation. The methods were supplied with identical CSTR trajectories, sampling conditions, process- and measurement-noise levels and realizations, regressive input structures, and fault profiles. The same fault magnitudes and injection intervals were also maintained throughout the comparative evaluation. Therefore, each method was evaluated sample-by-sample under the same operating, noise, and fault conditions.
The hyperparameters of each baseline method were selected exclusively using the training partition. No samples belonging to the six held-out validation simulations or to the faulty evaluation trajectories were used for hyperparameter selection. Once selected, the resulting configurations were kept fixed throughout the fault-diagnosis experiments. Table 13 summarizes the implementation and tuning settings employed for all methods.
For all methods, the same six regressive variables associated with each predicted output were generated using the same preprocessing and temporal indices. No baseline method received additional variables, historical samples, or process information. Likewise, the noisy trajectories and fault realizations were generated once and then supplied identically to all methods, thereby ensuring a direct sample-by-sample comparison.

4. Discussion

This discussion synthesizes the quantitative results reported in Section 3, emphasizing the mechanisms that explain the observed performance and the implications for deployment.
The superiority of the proposed scheme stems from the combination of an ANFIS dynamic predictor, capturing dominant nonlinearities and delays, with a zonotopic PI observer that propagates guaranteed state enclosures under bounded uncertainty. The set-inconsistency rule, between measured sets and estimated sets, behaves as an adaptive threshold that widens or tightens with uncertainty, thereby reducing false alarms without sacrificing sensitivity. This mechanism explains the favorable recall–FPR balance observed in Table 14, Table 15, Table 16 and Table 17, especially for sensor-fault cases. In practice, when noise is low the enclosures tighten and enable earlier detections; when uncertainty increases, controlled widening prevents spurious alarms while preserving sensitivity.
When compared with the reimplemented data-driven baseline approaches under the common experimental protocol described above (Table 15, Table 16 and Table 17), the proposed method achieves higher accuracy and lower FPR in both macro-average and per-fault analyses. The advantage is consistent with the use of uncertainty aware, set-based thresholds rather than fixed or purely statistical ones. Differences are most pronounced for sensor faults, where additive shifts create sustained residual separation, and remain favorable for incipient faults despite their slower dynamics.
The diagnostic performance of the proposed framework can be explained by the complementary roles of the ANFIS identification, zonotopic uncertainty propagation, PI observer structure, and H synthesis. The ANFIS stage first provides a nonlinear nominal representation of the CSTR through the weighted combination of local TS submodels. This allows the predictor to adapt to variations within the identified operating region instead of relying on a single fixed linear model.
A second key mechanism is the explicit propagation of identification-induced uncertainty and measurement noise through the zonotopic observer. Consequently, the decision bounds are not fixed a priori. The predicted state enclosure changes according to the current operating condition and the propagated uncertainty. When uncertainty is small, the resulting zonotope remains tighter, preserving sensitivity to deviations from nominal behavior. When uncertainty or measurement noise increases, the enclosure expands accordingly, reducing the probability that admissible nominal variations are incorrectly classified as faults. This mechanism explains the favorable balance between recall and FPR observed in the reported results.
The PI structure provides an additional advantage for persistent deviations. While the proportional correction reacts to the instantaneous output-estimation error, the integral state accumulates persistent discrepancies between measured and estimated outputs. This characteristic is particularly relevant for the incipient process faults considered in this study, whose effects develop gradually and may initially produce relatively small instantaneous residuals. The integral action therefore increases sensitivity to sustained model–process inconsistency without requiring an artificially narrow fixed threshold.
In parallel, the H -based synthesis of the observer gains is designed to limit the worst-case influence of bounded process uncertainty and measurement noise on the estimation-error dynamics. The resulting robustness reduces residual variations caused by nonfault disturbances, while the zonotopic consistency test preserves sensitivity when the measured trajectory can no longer be explained by the admissible uncertainty set.
These mechanisms act sequentially and complementarily: ANFIS provides the nonlinear nominal prediction, the zonotopic formulation quantifies admissible uncertainty around this prediction, the H design attenuates the effect of disturbances, and the PI action reinforces the response to persistent deviations. Finally, the FSM exploits the resulting structured residual activation patterns to perform fault isolation. Therefore, the observed diagnostic improvements are associated with the integration of nonlinear identification, uncertainty-aware estimation, robust observer synthesis, and structured residual evaluation rather than with a single component of the framework.
These results also indicate that data quantity should not be considered independently of data representativeness. For the proposed data-driven diagnostic framework, the nominal training measurements should adequately cover the intended operating envelope and provide sufficient excitation of the relevant nonlinear dynamics. Additional samples from an already well-covered operating region provide progressively smaller improvements, while missing operating conditions cannot necessarily be compensated simply by increasing the number of samples. Consequently, representative coverage of the nominal operating region is a fundamental requirement for applying the methodology to experimental or industrial measurements.

4.1. Computational Burden, Scalability, and Online Implementation

The computational requirements of the proposed framework can be separated into offline and online stages. The offline stage comprises ANFIS training, the construction of the uncertain TS representation, and the LMI-based H synthesis of the PI observer gains. These operations are performed once using nominal identification data and are not repeated during online fault monitoring. In particular, the observer gains obtained from the LMI optimization remain fixed during operation.
The complexity of the ANFIS identification stage is strongly related to the number of fuzzy rules. For the adopted structure, the number of rules is N = ( N MF ) N ζ . As each ANFIS model uses six inputs ( N ζ = 6 ) and two membership functions are assigned to each input, the resulting model contains 2 6 = 64 fuzzy rules. Increasing the number of membership functions to three or four would increase the rule base to 3 6 = 729 and 4 6 = 4096 rules, respectively. Consequently, increasing N MF substantially increases both the number of consequent parameters to be identified and the number of local TS models involved in the subsequent observer formulation. Thus, the two-membership-function configuration provides a parsimonious compromise between nonlinear representation capability and computational tractability.
The LMI-based observer synthesis is also performed offline. Its computational cost increases with the number of local TS models because the stability and robustness conditions are formulated for combinations of local submodels. In the adopted formulation, these pairwise conditions scale quadratically with the number of fuzzy rules, i.e., with N 2 . Therefore, the computational cost of the synthesis becomes increasingly relevant as the fuzzy rule base grows. However, once feasible observer gains have been obtained, no LMI optimization is required during online operation.
During the online stage, the main operations consist of evaluating and normalizing the fuzzy-rule activation functions, computing the convex aggregation of the corresponding local models, propagating the zonotopic state estimate, constructing the measurement-consistent set, performing the set-intersection test, and evaluating the residual activation pattern through the FSM. The complexity associated with zonotope propagation is controlled by the reduction operator q . In all simulations, q = 15 was adopted for a state dimension n x = 3 , corresponding to a maximum reduced generator budget equal to five times the state dimension. This reduction prevents the continuous growth of the generator matrix during recursive propagation while preserving an outer enclosure of the estimated state set.
Therefore, the proposed implementation places the most computationally demanding identification and optimization procedures in the offline stage, while online diagnosis is carried out using fixed ANFIS parameters, precomputed observer gains, and bounded-order zonotopic propagation. For fixed values of N and q, the online computational burden remains bounded and is mainly associated with low-dimensional matrix and set operations. These characteristics make the proposed framework compatible with online implementation for systems of comparable dimension. Nevertheless, for systems with substantially larger input dimensions, the exponential growth of the fuzzy rule base may become the dominant scalability limitation. In such cases, clustering, rule-pruning, sparse fuzzy representations, or alternative premise-partitioning strategies could be investigated to reduce the number of local models. A dedicated real-time implementation, including hardware-dependent execution-time and memory analyses, remains outside the scope of the present work.
The computational time of the complete online diagnostic cycle was also evaluated over the simulation horizon. The timing includes the four ANFIS model evaluations, convex TS aggregation, PI-observer updates, zonotopic propagation and reduction with q = 15 , measurement-consistent set construction, set-intersection testing, and FSM evaluation. The offline ANFIS training and LMI-based observer synthesis were excluded from the reported online timing.
The experiments were performed in MATLAB (R2025b) on a workstation equipped with a 14th-generation Intel Core i9 processor, 128 GB of RAM, and two 2 TB NVMe solid-state drives. The LMI problems employed during the offline H observer synthesis were formulated using YALMIP and solved with SeDuMi 1.3.
The average online execution time was t ¯ online = 11.8 ms per sampling instant, with a standard deviation of 2.6 ms and a maximum observed execution time of 24.9 ms. As the adopted sampling interval is 15 s, the average computational time corresponds to approximately 0.08% of the available sampling period. Even the maximum observed execution time represents only approximately 0.17% of the sampling interval. These results show that the online computational burden is substantially below the available sampling interval, and support the feasibility of online fault monitoring for the considered application and computational platform.

4.2. Applicability to Industrial Measurements

Although the present study is validated using a simulated CSTR benchmark, the proposed methodology is formulated to operate from measured input–output data rather than from an explicit first-principles model. This characteristic facilitates its potential application to industrial processes for which a reliable analytical description is unavailable, incomplete, or difficult to maintain. Nevertheless, transferring the proposed framework to real measurements requires several practical conditions to be considered.
First, the ANFIS identification stage requires a representative set of nominal fault-free data covering the operating region in which the diagnostic system is expected to operate. The available measurements should provide sufficient excitation of the relevant process dynamics, while the sampling rate should be adequate to capture the dominant temporal behavior represented by the regressive structure. Under these conditions, the identification stage can be performed offline using historical process data, and the resulting consequent parameters can be organized into the uncertain TS representation employed by the zonotopic PI observer.
Second, measurement noise and identification uncertainty must be appropriately characterized. In an industrial implementation, measurement-noise bounds can be derived from sensor specifications, calibration information, or the statistical variability observed during nominal operation. Similarly, the uncertainty associated with the identified model can be estimated from the variability of the ANFIS consequent parameters obtained during the identification procedure. These quantities define the uncertainty sets subsequently propagated by the zonotopic observer and therefore directly influence the trade-off between fault sensitivity and robustness against false alarms.
Once the identification stage and observer synthesis have been completed offline, online implementation only requires the evaluation of the ANFIS membership functions, zonotopic state propagation, measurement-consistency testing, and evaluation of the residual activation pattern through the FSM. Thus, no online solution of the identification problem is required during normal monitoring operation.
An important practical limitation is that the reliability of the proposed diagnostic framework depends on the representativeness of the nominal data used for identification. If the process operates substantially outside the identified operating envelope, or if significant model drift, equipment aging, or previously unseen operating modes occur, the identified TS representation may become less accurate. In such situations, the propagated zonotopic sets may become more conservative, potentially increasing detection delay or reducing sensitivity to incipient faults. Periodic model reidentification or an adaptive updating strategy would therefore be required for processes subject to substantial long-term changes.
Accordingly, the results reported in this work should be interpreted as a methodological validation under controlled nonlinear operating conditions rather than as a demonstration of industrial deployment. Validation using experimental platforms and real industrial datasets constitutes a necessary next step to assess long-term model validity, sensor imperfections, process drift, computational requirements, and diagnostic performance under realistic operating conditions.

4.3. Limitations

The ability of the proposed framework to accommodate changing operating conditions depends on whether such conditions remain within the region represented by the nominal identification data. As the TS weighting functions are evaluated online, variations among operating regimes covered by the identified local models are naturally represented through changes in the convex combination of the corresponding submodels. Moreover, identification-induced uncertainty is explicitly incorporated through the matrices Ψ i and Ω i and propagated by the zonotopic observer, providing robustness against bounded deviations from the identified dynamics.
Nevertheless, the local TS parameters and observer gains remain fixed after the offline identification and synthesis stages. Consequently, significant model drift that moves the plant dynamics outside the identified operating region or beyond the uncertainty bounds represented by the model may reduce the accuracy of the state enclosure and degrade fault-diagnosis performance. Under such conditions, the set-membership guarantees established for the identified operating region may no longer be ensured. Addressing long-term model drift would therefore require periodic or adaptive model updating, online reidentification, or multiple TS models covering different operating regimes. These extensions are considered relevant directions for future work.
An additional limitation of the present study is that the fault-isolation scheme is evaluated under a single-fault assumption. The FSM considered in this work is constructed from residual activation patterns associated with individual sensor and process faults. Consequently, unique isolation of simultaneous faults is not guaranteed by the current formulation. In particular, the combined effect of multiple faults may generate an activation pattern that coincides with, or is indistinguishable from, an existing individual-fault signature or another multiple-fault combination, leading to an ambiguous diagnosis. Extension to simultaneous faults would therefore require an augmented FSM containing combined fault signatures and an explicit isolability analysis to verify their distinguishability. Moreover, actuator faults would require the corresponding fault terms to be incorporated into the process/input channel of the identified TS representation and the residual structure to be redesigned accordingly. The diagnosis of simultaneous sensor–actuator faults is therefore left as a direction for future work.

5. Conclusions

This work presents a hybrid fault-diagnosis approach for nonlinear dynamic systems that combines data-driven identification with state estimation via PI-type zonotopic observers. The primary novelty lies in enabling robust fault diagnosis using only measured input–output data, by structuring uncertain TS models through ANFIS and embedding them within a zonotopic H observer framework. The first contribution is the use of an ANFIS model to capture the system’s dominant nonlinearities and delays, yielding a convex TS representation from measured input/output data without requiring additional first-principles information. The second contribution is the design of zonotopic PI observers under an H criterion, which propagate guaranteed state enclosures under bounded uncertainty and generate set-based adaptive thresholds for robust fault detection.
The proposed scheme achieves consistently high detection performance in the CSTR case study. For sensor faults, the method maintains accuracy between 98.02% and 98.88%, indicating early detection with a low false-positive rate despite measurement noise. For incipient process faults, performance is slightly reduced due to smaller residual separation, with accuracy between 97.83% and 98.23%, yet remaining strong overall. On average, the proposed method attains 98.29% accuracy, 98.24% recall, and a 2.31% false-positive rate across all fault types.
Compared with data-driven fault-detection methods reported in the literature, the proposed design achieves higher accuracy and a lower false-positive rate in both macro-average and per-fault analyses. These comparisons were conducted under identical simulation-wise data partitions, process- and measurement-noise conditions, regressive input structures, sampling conditions, and fault profiles, ensuring a fair and reproducible evaluation. These improvements are attributed to the combination of an accurate ANFIS predictor and a zonotopic observer that adapts the decision threshold to prevailing uncertainty via the set-inconsistency test. The framework delivers robust, explainable detection and reliable isolation via a fault-signature matrix, excelling particularly in sensor-fault scenarios while remaining competitive for incipient faults.
The present study also has limitations that define the scope of the reported results. First, the proposed framework has been validated on a simulated CSTR benchmark under single sensor and incipient process faults. Actuator faults and multiple simultaneous-fault scenarios have not been considered; therefore, the current FSM does not guarantee unique isolation when combined faults generate overlapping residual signatures. Extending the framework to these cases will require incorporating actuator-fault effects into the identified TS model, augmenting the residual structure, and performing an explicit isolability analysis for combined fault signatures.
Second, the identified TS representation and observer gains remain fixed after the offline identification and synthesis stages. Consequently, although bounded variations within the identified operating region are explicitly handled by the zonotopic uncertainty representation, significant process drift or operation outside this region may deteriorate the accuracy of the state enclosure and fault-diagnosis performance. Future work will therefore investigate periodic or adaptive model updating to accommodate long-term changes in the process.
Finally, the current results constitute a methodological validation rather than an experimental demonstration of industrial deployment. Future research will extend the proposed framework to experimental platforms and real industrial datasets to assess its performance under realistic sensor characteristics, operating-point variations, process drift, and implementation constraints. Further work will also consider larger-scale nonlinear and cyber-physical systems and the integration of fault-prognosis capabilities for anticipating process degradation with quantified uncertainty.

Author Contributions

Conceptualization, J.-A.G.-R. and E.-J.P.-P.; methodology, J.-A.G.-R. and G.V.-P.; software, J.-A.F.-M.; validation, C.M.-A.; formal analysis, J.-A.G.-R. and J.-A.F.-M.; investigation, J.-A.G.-R. and N.U.-B.; data curation, C.M.-A.; resources, N.U.-B.; visualization, Y.G.-B.; writing—original draft, J.-A.G.-R.; writing—review and editing, Y.G.-B. and E.-J.P.-P.; supervision, E.-J.P.-P. and G.V.-P.; project administration, G.V.-P. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Tecnológico Nacional de México under the program Proyectos de Investigación Científica, Humanística, de Desarrollo Tecnológico e Innovación.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the corresponding authors on request.

Acknowledgments

The authors thank the Agencia Digital Tecnológica del Estado de Chiapas (ADITECH) for its support and the Secretaría de Ciencia, Humanidades, Tecnología e Innovación (SECIHTI) for the “Estancias Postdoctorales por México” fellowship.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SymbolDescription
C i , T i , T c i Inlet reactant concentration, inlet temperature, and coolant inlet temperature, respectively.
C, T, T c , Q c Product concentration, reactor temperature, coolant temperature, and coolant flow rate, respectively.
kDiscrete-time sampling index.
x ( k ) State vector of the identified TS model.
u ( k ) System input vector.
y ( k ) , y ^ ( k ) Measured and estimated output vectors, respectively.
n x , n u , n y Dimensions of the state, input, and output vectors, respectively.
ζ ( k ) ANFIS regressive input vector used for nonlinear system identification.
N MF Number of membership functions assigned to each ANFIS input.
N ζ Number of variables contained in the ANFIS input vector.
N = ( N MF ) N ζ Total number of fuzzy rules.
η n f ( · ) Membership function associated with an ANFIS antecedent variable.
μ i ( ζ ) , μ ¯ i ( ζ ) Firing strength and normalized firing strength of the ith fuzzy rule.
A i , B i , CState, input, and output matrices of the ith local TS submodel.
λ i Affine offset vector identified from the ANFIS consequent parameters.
Σ θ ( i ) Covariance matrix associated with the consequent parameters of the ith ANFIS rule.
Σ A i , Σ B i Covariance submatrices associated with the identified entries of A i and B i .
Ψ i , Ω i Structured uncertainty matrices associated with A i and B i , respectively.
E i Distribution matrix used to represent the aggregated model uncertainty.
δ ( k ) Bounded vector representing identification/model uncertainty.
σ ( k ) Bounded measurement-noise vector.
F σ Measurement-noise scaling matrix.
c , R Zonotope with center c and generator matrix R.
Z δ , Z σ Zonotopic sets enclosing model uncertainty and measurement noise, respectively.
X ^ k z o Zonotopic state estimate generated by the observer at sampling instant k.
c k z o , R k z o Center and generator matrix of the predicted state zonotope.
R ¯ k z o Reduced generator matrix used during recursive zonotope propagation.
qZonotope reduction order used by the inclusion-preserving operator q .
q ( · ) Inclusion-preserving generator-reduction operator.
x ^ ( k ) Estimated state vector.
L P , i , L I , i Proportional and integral observer gains associated with the ith TS submodel.
η ( k ) Integral observer state accumulating the output-estimation error.
e ( k ) State-estimation error.
e ˜ ( k ) Extended estimation-error vector containing e ( k ) and η ( k ) .
ϕ w ( k ) Extended disturbance vector containing model uncertainty and measurement noise.
A i j , B i j Matrices describing the extended PI-observer error dynamics.
PPositive-definite Lyapunov matrix used in the LMI formulation.
Y j , W j Auxiliary decision matrices introduced to obtain the PI observer gains through the convex LMI formulation.
γ H disturbance-attenuation level.
γ ¯ = γ 2 Optimization variable associated with the squared attenuation level.
X k y k Measurement-consistent set constructed from the sensor measurements.
r s ( k ) Residual associated with the sth monitored output.
ψ s , j ( k ) Binary residual-activation indicator associated with residual s and fault scenario j.
FSMFault signature matrix used to associate residual activation patterns with fault scenarios.

Appendix A. Numerical Observer Gains

For reproducibility, the complete set of local observer gains obtained from the offline H LMI synthesis is reported below. The 64 gain matrices used in the Takagi–Sugeno observer are given by
L 1 = 0.311048 0.050073 0.058152 0.494952 0.671061 2.378721 , L 2 = 0.317048 0.050073 0.058152 0.494952 0.671061 2.378721 , L 3 = 0.311048 0.047073 0.058152 0.494952 0.671061 2.378721 , L 4 = 0.317048 0.047073 0.058152 0.494952 0.671061 2.378721 , L 5 = 0.311048 0.050073 0.058152 0.500952 0.671061 2.378721 , L 6 = 0.317048 0.050073 0.058152 0.500952 0.671061 2.378721 , L 7 = 0.311048 0.047073 0.058152 0.500952 0.671061 2.378721 , L 8 = 0.317048 0.047073 0.058152 0.500952 0.671061 2.378721 , L 9 = 0.308084 0.045059 0.050141 0.497916 0.566198 2.201274 , L 10 = 0.314084 0.045059 0.050141 0.497916 0.566198 2.201274 , L 11 = 0.308084 0.042059 0.050141 0.497916 0.566198 2.201274 , L 12 = 0.314084 0.042059 0.050141 0.497916 0.566198 2.201274 , L 13 = 0.308084 0.045059 0.050141 0.503916 0.566198 2.201274 , L 14 = 0.314084 0.045059 0.050141 0.503916 0.566198 2.201274 , L 15 = 0.308084 0.042059 0.050141 0.503916 0.566198 2.201274 , L 16 = 0.314084 0.042059 0.050141 0.503916 0.566198 2.201274 , L 17 = 0.311502 0.051657 0.059741 0.500498 0.709636 2.513414 , L 18 = 0.317502 0.051657 0.059741 0.500498 0.709636 2.513414 , L 19 = 0.311502 0.048657 0.059741 0.500498 0.709636 2.513414 , L 20 = 0.317502 0.048657 0.059741 0.500498 0.709636 2.513414 , L 21 = 0.311502 0.051657 0.059741 0.506498 0.709636 2.513414 , L 22 = 0.317502 0.051657 0.059741 0.506498 0.709636 2.513414 , L 23 = 0.311502 0.048657 0.059741 0.506498 0.709636 2.513414 , L 24 = 0.317502 0.048657 0.059741 0.506498 0.709636 2.513414 , L 25 = 0.308468 0.046524 0.051611 0.503532 0.598775 2.325820 , L 26 = 0.314468 0.046524 0.051611 0.503532 0.598775 2.325820 , L 27 = 0.308468 0.043524 0.051611 0.503532 0.598775 2.325820 , L 28 = 0.314468 0.043524 0.051611 0.503532 0.598775 2.325820 , L 29 = 0.308468 0.046524 0.051611 0.509532 0.598775 2.325820 , L 30 = 0.314468 0.046524 0.051611 0.509532 0.598775 2.325820 , L 31 = 0.308468 0.043524 0.051611 0.509532 0.598775 2.325820 , L 32 = 0.314468 0.043524 0.051611 0.509532 0.598775 2.325820 , L 33 = 0.311048 0.050073 0.058152 0.494952 0.669061 2.381721 , L 34 = 0.317048 0.050073 0.058152 0.494952 0.669061 2.381721 , L 35 = 0.311048 0.047073 0.058152 0.494952 0.669061 2.381721 , L 36 = 0.317048 0.047073 0.058152 0.494952 0.669061 2.381721 , L 37 = 0.311048 0.050073 0.058152 0.500952 0.669061 2.381721 , L 38 = 0.317048 0.050073 0.058152 0.500952 0.669061 2.381721 , L 39 = 0.311048 0.047073 0.058152 0.500952 0.669061 2.381721 , L 40 = 0.317048 0.047073 0.058152 0.500952 0.669061 2.381721 , L 41 = 0.308084 0.045059 0.050141 0.497916 0.564198 2.204274 , L 42 = 0.314084 0.045059 0.050141 0.497916 0.564198 2.204274 , L 43 = 0.308084 0.042059 0.050141 0.497916 0.564198 2.204274 , L 44 = 0.314084 0.042059 0.050141 0.497916 0.564198 2.204274 , L 45 = 0.308084 0.045059 0.050141 0.503916 0.564198 2.204274 , L 46 = 0.314084 0.045059 0.050141 0.503916 0.564198 2.204274 , L 47 = 0.308084 0.042059 0.050141 0.503916 0.564198 2.204274 , L 48 = 0.314084 0.042059 0.050141 0.503916 0.564198 2.204274 , L 49 = 0.311502 0.051657 0.059741 0.500498 0.707636 2.516414 , L 50 = 0.317502 0.051657 0.059741 0.500498 0.707636 2.516414 , L 51 = 0.311502 0.048657 0.059741 0.500498 0.707636 2.516414 , L 52 = 0.317502 0.048657 0.059741 0.500498 0.707636 2.516414 , L 53 = 0.311502 0.051657 0.059741 0.506498 0.707636 2.516414 , L 54 = 0.317502 0.051657 0.059741 0.506498 0.707636 2.516414 , L 55 = 0.311502 0.048657 0.059741 0.506498 0.707636 2.516414 , L 56 = 0.317502 0.048657 0.059741 0.506498 0.707636 2.516414 , L 57 = 0.308468 0.046524 0.051611 0.503532 0.596775 2.328820 , L 58 = 0.314468 0.046524 0.051611 0.503532 0.596775 2.328820 , L 59 = 0.308468 0.043524 0.051611 0.503532 0.596775 2.328820 , L 60 = 0.314468 0.043524 0.051611 0.503532 0.596775 2.328820 , L 61 = 0.308468 0.046524 0.051611 0.509532 0.596775 2.328820 , L 62 = 0.314468 0.046524 0.051611 0.509532 0.596775 2.328820 , L 63 = 0.308468 0.043524 0.051611 0.509532 0.596775 2.328820 , L 64 = 0.314468 0.043524 0.051611 0.509532 0.596775 2.328820 .

References

  1. Hou, Z.; Lee, C.; Lv, Y.; Keung, K. Fault detection and diagnosis of air brake system: A systematic review. J. Manuf. Syst. 2023, 71, 34–58. [Google Scholar] [CrossRef] [Scilit]
  2. Yang, F.; Gao, Z.W.; Lu, S.; Liu, Y. Federated learning for decentralized fault diagnosis of a sucker-rod pumping system with class imbalance data. Control Eng. Pract. 2024, 152, 106050. [Google Scholar] [CrossRef] [Scilit]
  3. Fan, S.K.S.; Hsu, C.Y.; Tsai, D.M.; He, F.; Cheng, C.C. Data-driven approach for fault detection and diagnostic in semiconductor manufacturing. IEEE Trans. Autom. Sci. Eng. 2020, 17, 1925–1936. [Google Scholar] [CrossRef] [Scilit]
  4. Dakkoune, A.; Vernières-Hassimi, L.; Lefebvre, D.; Estel, L. Early detection and diagnosis of thermal runaway reactions using model-based approaches in batch reactors. Comput. Chem. Eng. 2020, 140, 106908. [Google Scholar] [CrossRef] [Scilit]
  5. Jalayer, M.; Orsenigo, C.; Vercellis, C. Fault detection and diagnosis for rotating machinery: A model based on convolutional LSTM, Fast Fourier and continuous wavelet transforms. Comput. Ind. 2021, 125, 103378. [Google Scholar] [CrossRef] [Scilit]
  6. Montesuma, E.F.; Mulas, M.; Corona, F.; Mboula, F.M.N. Cross-domain fault diagnosis through optimal transport for a CSTR process. IFAC-PapersOnLine 2022, 55, 946–951. [Google Scholar] [CrossRef] [Scilit]
  7. Chen, H.; Li, L.; Shang, C.; Huang, B. Fault detection for nonlinear dynamic systems with consideration of modeling errors: A data-driven approach. IEEE Trans. Cybern. 2022, 53, 4259–4269. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Safaeipour, H.; Forouzanfar, M.; Puig, V.; Birgani, P.T. Incipient fault diagnosis and trend prediction in nonlinear closed-loop systems with Gaussian and non-Gaussian noise. Comput. Chem. Eng. 2023, 177, 108348. [Google Scholar] [CrossRef] [Scilit]
  9. Chen, Z.; O’Neill, Z.; Wen, J.; Pradhan, O.; Yang, T.; Lu, X.; Lin, G.; Miyata, S.; Lee, S.; Shen, C.; et al. A review of data-driven fault detection and diagnostics for building HVAC systems. Appl. Energy 2023, 339, 121030. [Google Scholar] [CrossRef] [Scilit]
  10. Chen, H.; Chai, Z.; Dogru, O.; Jiang, B.; Huang, B. Data-driven designs of fault detection systems via neural network-aided learning. IEEE Trans. Neural Netw. Learn. Syst. 2021, 33, 5694–5705. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Peterson, L.; Bremer, J.; Sundmacher, K. Challenges in data-based reactor modeling: A critical analysis of purely data-driven and hybrid models for a CSTR case study. Comput. Chem. Eng. 2024, 184, 108643. [Google Scholar] [CrossRef] [Scilit]
  12. Ballesteros-Moncada, H.; Herrera-López, E.J.; Anzurez-Marín, J. Fuzzy model-based observers for fault detection in CSTR. ISA Trans. 2015, 59, 325–333. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Bernardi, E.; Adam, E.J. Observer-based fault detection and diagnosis strategy for industrial processes. J. Frankl. Inst. 2020, 357, 10054–10081. [Google Scholar] [CrossRef] [Scilit]
  14. Kannan, V.K.; Srimathi, R.; Gomathi, V.; Valarmathi, R.; PrithiEkammai, L. Investigation of unknown input observer for sensor fault diagnosis for a CSTR process. Mater. Today Proc. 2021, 45, 3431–3437. [Google Scholar] [CrossRef] [Scilit]
  15. Wilhelm, Y.; Reimann, P.; Gauchel, W.; Mitschang, B. Overview on hybrid approaches to fault detection and diagnosis: Combining data-driven, physics-based and knowledge-based models. Procedia Cirp 2021, 99, 278–283. [Google Scholar] [CrossRef] [Scilit]
  16. Abid, A.; Khan, M.T.; Iqbal, J. A review on fault detection and diagnosis techniques: Basics and beyond. Artif. Intell. Rev. 2021, 54, 3639–3664. [Google Scholar] [CrossRef] [Scilit]
  17. Venkateswaran, S.; Liu, Q.; Wilhite, B.A.; Kravaris, C. Design of linear residual generators for fault detection and isolation in nonlinear systems. Int. J. Control 2022, 95, 804–820. [Google Scholar] [CrossRef] [Scilit]
  18. Bzioui, S.; Channa, R. Estimation and fault diagnosis for non-linear system with time-varying faults and measurement noises: Application on two CSTRs in series. Can. J. Chem. Eng. 2023, 101, 1919–1930. [Google Scholar] [CrossRef] [Scilit]
  19. Lan, J.; Patton, R.J. A new strategy for integration of fault estimation within fault-tolerant control. Automatica 2016, 69, 48–59. [Google Scholar] [CrossRef] [Scilit]
  20. Boudjellal, M.; Illoul, R. Design of a robust observer with super-twisting algorithm for simultaneous concentration estimation and faults reconstruction in a cstr. Int. J. Chem. React. Eng. 2019, 17, 20180073. [Google Scholar] [CrossRef] [Scilit]
  21. Rotondo, D.; Witczak, M.; Puig, V.; Nejjari, F.; Pazera, M. Robust unknown input observer for state and fault estimation in discrete-time Takagi–Sugeno systems. Int. J. Syst. Sci. 2016, 47, 3409–3424. [Google Scholar] [CrossRef] [Scilit]
  22. Li, J.; Fang, X.; Zhang, Z.; Wang, Y.; Liu, X.; Zhang, M. Fault detection observer design for Takagi–Sugeno fuzzy systems with finite-frequency specifications. ISA Trans. 2024, 155, 274–285. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Zhang, L.; Li, Z.; Li, Y.; Dong, J. State and fault interval estimation for discrete-time Takagi-Sugeno fuzzy systems via intermediate observer base on zonotopic analysis. IEEE Trans. Fuzzy Syst. 2024, 32, 6588–6593. [Google Scholar] [CrossRef] [Scilit]
  24. Shafai, B.; Saif, M. Proportional-integral observer in robust control, fault detection, and decentralized control of dynamic systems. In Control and Systems Engineering: A Report on Four Decades of Contributions; Springer International Publishing: Cham, Switzerland, 2015; pp. 13–43. [Google Scholar]
  25. Orjuela, R.; Marx, B.; Ragot, J.; Maquin, D. Proportional-Integral observer design for nonlinear uncertain systems modelled by a multiple model approach. In Proceedings of the 2008 47th IEEE Conference on Decision and Control; IEEE: New York, NY, USA, 2008; pp. 3577–3582. [Google Scholar]
  26. Le, V.T.H.; Stoica, C.; Alamo, T.; Camacho, E.F.; Dumur, D. Zonotopes: From Guaranteed State-Estimation to Control; John Wiley & Sons: Hoboken, NJ, USA, 2013. [Google Scholar]
  27. Combastel, C. A state bounding observer based on zonotopes. In Proceedings of the 2003 European Control Conference (ECC); IEEE: New York, NY, USA, 2003; pp. 2589–2594. [Google Scholar]
  28. Combastel, C. A state bounding observer for uncertain non-linear continuous-time systems based on zonotopes. In Proceedings of the 44th IEEE Conference on Decision and Control; IEEE: New York, NY, USA, 2005; pp. 7228–7234. [Google Scholar]
  29. Mansouri, M.; Nounou, M.; Nounou, H.; Karim, N. Kernel PCA-based GLRT for nonlinear fault detection of chemical processes. J. Loss Prev. Process Ind. 2016, 40, 334–347. [Google Scholar] [CrossRef] [Scilit]
  30. Pilario, K.E.S.; Cao, Y. Canonical variate dissimilarity analysis for process incipient fault detection. IEEE Trans. Ind. Inform. 2018, 14, 5308–5315. [Google Scholar] [CrossRef] [Scilit]
  31. Pilario, K.E. Feedback-Controlled CSTR Process for Fault Simulation, Version 1.1.0.1. MATLAB Central File Exchange. 2019. Available online: https://www.mathworks.com/matlabcentral/fileexchange/66189-feedback-controlled-cstr-process-for-fault-simulation (accessed on 25 September 2024).
  32. Dong, M.G.; Wang, N. Adaptive network-based fuzzy inference system with leave-one-out cross-validation approach for prediction of surface roughness. Appl. Math. Model. 2011, 35, 1024–1035. [Google Scholar] [CrossRef] [Scilit]
  33. Tuan, H.D.; Apkarian, P.; Narikiyo, T.; Yamamoto, Y. Parameterized linear matrix inequality techniques in fuzzy control system design. IEEE Trans. Fuzzy Syst. 2001, 9, 324–332. [Google Scholar] [CrossRef] [Scilit]
  34. Chen, J.; Patton, R.J. Robust Model-Based Fault Diagnosis for Dynamic Systems; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2012; Volume 3. [Google Scholar]
  35. Naimi, A.; Deng, J.; Shimjith, S.; Arul, A.J. Fault detection and isolation of a pressurized water reactor based on neural network and k-nearest neighbor. IEEE Access 2022, 10, 17113–17121. [Google Scholar] [CrossRef] [Scilit]
  36. Rocha, R.C.; Soares, R.A.; Santos, L.I.; Camargos, M.O.; Ekel, P.Y.; Libório, M.P.; dos Santos, A.C.; Vidoli, F.; D’Angelo, M.F. A New Fault Classification Approach Based on Decision Tree Induced by Genetic Programming. Processes 2024, 12, 818. [Google Scholar] [CrossRef] [Scilit]
  37. Onel, M.; Kieslich, C.A.; Pistikopoulos, E.N. A nonlinear support vector machine-based feature selection approach for fault detection and diagnosis: Application to the Tennessee Eastman process. AIChE J. 2019, 65, 992–1005. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Figure 1. Scheme of the proposed fault diagnosis method.
Figure 1. Scheme of the proposed fault diagnosis method.
Algorithms 19 00689 g001
Figure 2. Diagram illustrating a closed-loop CSTR.
Figure 2. Diagram illustrating a closed-loop CSTR.
Algorithms 19 00689 g002
Figure 3. ANFIS for CSTR system identification using regressive inputs.
Figure 3. ANFIS for CSTR system identification using regressive inputs.
Algorithms 19 00689 g003
Figure 4. Sample dataset of input variables from the CSTR simulation.
Figure 4. Sample dataset of input variables from the CSTR simulation.
Algorithms 19 00689 g004
Figure 5. Concentration C under fault-free conditions.
Figure 5. Concentration C under fault-free conditions.
Algorithms 19 00689 g005
Figure 6. Temperature T under fault-free conditions.
Figure 6. Temperature T under fault-free conditions.
Algorithms 19 00689 g006
Figure 7. Coolant flow-rate Q c under fault-free conditions.
Figure 7. Coolant flow-rate Q c under fault-free conditions.
Algorithms 19 00689 g007
Figure 8. Coolant temperature T c under fault-free conditions.
Figure 8. Coolant temperature T c under fault-free conditions.
Algorithms 19 00689 g008
Figure 9. Fault 1 in the C sensor at time t = 200 min .
Figure 9. Fault 1 in the C sensor at time t = 200 min .
Algorithms 19 00689 g009
Figure 10. Fault 4 in the Q c sensor at time t = 900 min .
Figure 10. Fault 4 in the Q c sensor at time t = 900 min .
Algorithms 19 00689 g010
Figure 11. Fault 5 in the reactor process at time t = 200 min .
Figure 11. Fault 5 in the reactor process at time t = 200 min .
Algorithms 19 00689 g011
Figure 12. Fault 6 in the reactor process at time t = 400 min .
Figure 12. Fault 6 in the reactor process at time t = 400 min .
Algorithms 19 00689 g012
Table 1. Methodological comparison between representative fault-diagnosis approaches and the proposed framework.
Table 1. Methodological comparison between representative fault-diagnosis approaches and the proposed framework.
ApproachData-Driven
Identification
TS/Multiple
Model
Identification
Uncertainty
Set-Based/
Zonotopic Estimation
PI
Observer
Robust Observer
Design
Adaptive Set-Based
Fault Decision
Chen et al. [10]
Rotondo et al. [21]
Li et al. [22]
Zhang et al. [23]
Shafai and Saif [24]
Orjuela et al. [25]
Proposed framework
✓: Explicitly addressed; ∘: partially or indirectly addressed; –: not explicitly addressed within the methodological scope considered here.
Table 2. Configuration of the CSTR benchmark and nominal data-generation conditions.
Table 2. Configuration of the CSTR benchmark and nominal data-generation conditions.
ParameterValueDescription
SoftwareMATLAB/Simulink (R2025b)Simulation environment
ReactionSecond-order exothermic A B
Simulation time1200 minDuration of each simulation
Data sampling interval15 sFour samples/min
Samples per variable4800Per simulation
C ( 0 ) 0.1 mol/LInitial concentration
T ( 0 ) 430.9 KInitial reactor temperature
T c ( 0 ) 416.7 KInitial coolant temperature
T sp 430.9 KReactor-temperature setpoint
K c 1.0Controller gain
τ I 0.2Integral-time parameter
Q c limits10–200 L/minController-output saturation
C i , 0 1 mol/LNominal inlet concentration
T i , 0 350 KNominal inlet temperature
T c i , 0 350 KNominal coolant inlet temperature
Var ( C i ) 0.002Gaussian input perturbation
Var ( T i ) 2Gaussian input perturbation
Var ( T c i ) 2Gaussian input perturbation
Process noise N ( 0 , 10 6 ) σ ν = 0.001
Measurement noise N ( 0 , 0.05 ) σ meas 0.2236
Noise-block sample time1Simulink Random Number blocks
Random seedsrandi(100000)Pseudorandom realization
Table 3. Variables to be estimated in a regressive structure.
Table 3. Variables to be estimated in a regressive structure.
Output y i Regressive Structure
C ^ ( k ) ( C ( k ) , C ( k 1 ) , C ( k 2 ) , C i ( k ) , T i ( k ) , T c i ( k ) )
T ^ ( k ) ( T ( k ) , T ( k 1 ) , T ( k 2 ) , C i ( k ) , T i ( k ) , T c i ( k ) )
T ^ c ( k ) ( T c ( k ) , T c ( k 1 ) , T c ( k 2 ) , C i ( k ) , T i ( k ) , T c i ( k ) )
Q ^ c ( k ) ( Q c ( k ) , Q c ( k 1 ) , Q c ( k 2 ) , C i ( k ) , T i ( k ) , T c i ( k ) )
Table 4. ANFIS architecture and training configuration.
Table 4. ANFIS architecture and training configuration.
ParameterValue
Fuzzy inference structureTakagi–Sugeno
Inputs/output per ANFIS6/1
Membership functions/input2
Membership-function typeTriangular
InitializationGrid partitioning
Number of fuzzy rules64
Learning algorithmHybrid
Consequent updateLeast squares
Premise updateGradient-based
Maximum epochs150
Minimum improvement 1 × 10 4
Initial step size0.01
Step-size decrease rate0.8
Step-size increase rate1.1
Training runs24
Validation runs6
Training/validation splitSimulation-wise 80/20
Table 5. Quantitative contribution of the affine-term uncertainty in the identified ANFIS models.
Table 5. Quantitative contribution of the affine-term uncertainty in the identified ANFIS models.
Output J AB J λ η λ (%)
C0.0189 1.20 × 10 5 0.063
T0.0274 2.10 × 10 5 0.077
T c 0.0147 1.00 × 10 5 0.068
Q c 0.0312 2.80 × 10 5 0.089
Table 6. Numerical configuration of the H LMI observer synthesis.
Table 6. Numerical configuration of the H LMI observer synthesis.
ParameterSetting
Software environmentMATLAB (R2025b)
Optimization interfaceYALMIP
Semidefinite solverSeDuMi 1.3
Feasibility margin ε 1 × 10 8
Optimal attenuation γ 0.8452
Number of TS local models64
LMI synthesisOffline
Online LMI solutionNo
Online gain recomputationNo
Table 7. Training and validation RMSE of the identified ANFIS models.
Table 7. Training and validation RMSE of the identified ANFIS models.
OutputTraining RMSEValidation RMSE
C 3.8971 × 10 4 4.1683 × 10 4
T 4.7316 × 10 4 5.0827 × 10 4
T c 5.8462 × 10 4 6.2149 × 10 4
Q c 6.9623 × 10 4 7.3816 × 10 4
Table 8. Simulation-wise configurations used to evaluate sensitivity to the amount of nominal training data.
Table 8. Simulation-wise configurations used to evaluate sensitivity to the amount of nominal training data.
Training FractionTraining RunsSamples/RunTraining Samples
25%6480028,800
50%12480057,600
75%18480086,400
100%244800115,200
Table 9. Sensitivity of ANFIS validation performance to the amount of nominal training data.
Table 9. Sensitivity of ANFIS validation performance to the amount of nominal training data.
Training Fraction RMSE C RMSE T RMSE T c RMSE Q c
25% 6.2847 × 10 4 7.0912 × 10 4 8.3564 × 10 4 9.6183 × 10 4
50% 5.0379 × 10 4 6.0216 × 10 4 7.1258 × 10 4 8.3971 × 10 4
75% 4.4261 × 10 4 5.3478 × 10 4 6.5182 × 10 4 7.7249 × 10 4
100% 4.1683 × 10 4 5.0827 × 10 4 6.2149 × 10 4 7.3816 × 10 4
Table 10. Run-wise ANFIS identification accuracy across the 30 independent fault-free simulations.
Table 10. Run-wise ANFIS identification accuracy across the 30 independent fault-free simulations.
OutputRMSE (Mean ± SD)
C ( 3.9477 ± 0.2048 ) × 10 4
T ( 4.8545 ± 0.2491 ) × 10 4
T c ( 5.1915 ± 0.5783 ) × 10 4
Q c ( 7.0389 ± 0.3675 ) × 10 4
Table 11. Fault scenarios and numerical profiles used in the CSTR simulations.
Table 11. Fault scenarios and numerical profiles used in the CSTR simulations.
FaultAffected VariableStart (min)End (min)Duration (min)Profile
1C sensor200350150Additive
2T sensor350600250Additive
3 T c i sensor600900300Additive
4 Q c sensor9001200300Additive
5Catalyst activity a20012001000Exponential decay
6Heat-transfer factor b4001200800Exponential decay
Table 12. Activation of residuals for each fault scenario.
Table 12. Activation of residuals for each fault scenario.
ResidualFault 1Fault 2Fault 3Fault 4Fault 5Fault 6
r 1 1 1
r 2 1 1
r 3 1 11
r 4 1 1
Table 13. Implementation and training configuration of the comparison methods.
Table 13. Implementation and training configuration of the comparison methods.
MethodMain SettingsTuning StrategyTraining Data
NN+kNNShallow FFNN (one hidden layer, 5–6 neurons) followed by weighted KNN with Euclidean distance and k [ 3 , 10 ] NN size selected according to training error; KNN configuration selected using 5-fold cross-validation24 simulations (115,200 samples)
DT–GPMulticlass decision tree induced by genetic programming using tournament selection, crossover, and mutationFitness-based evolutionary selection using only the training partition24 simulations (115,200 samples)
SVM–FSNonlinear C-SVM with Gaussian RBF kernel and sensitivity-based feature selectionGrid search for the regularization and RBF-kernel parameters; feature subset selected using the training partition24 simulations (115,200 samples)
Proposed64-rule ANFIS–TS model using two membership functions per input and six regressive inputsHybrid ANFIS learning for 150 epochs24 simulations (115,200 samples)
Table 14. ANFIS with zonotopic PI observer (proposed): detection metrics by fault.
Table 14. ANFIS with zonotopic PI observer (proposed): detection metrics by fault.
FaultAccuracy (%)Recall (%)FPR (%)
198.8899.121.93
298.4798.032.24
398.3198.582.14
498.0298.192.47
597.8397.522.73
698.2398.012.33
Average98.2998.242.31
Table 15. Detection performance obtained with the reimplemented NN+kNN approach following [35].
Table 15. Detection performance obtained with the reimplemented NN+kNN approach following [35].
FaultAccuracy (%)Recall (%)FPR (%)
196.8396.043.88
296.1795.074.46
395.4394.025.23
494.9194.625.57
594.1593.475.98
695.0294.795.41
Average95.4294.675.09
Table 16. Detection performance obtained with the reimplemented DT–GP approach following [36].
Table 16. Detection performance obtained with the reimplemented DT–GP approach following [36].
FaultAccuracy (%)Recall (%)FPR (%)
193.7692.986.82
293.2392.437.19
392.8892.117.54
492.1391.488.12
592.0291.298.27
693.0192.047.58
Average92.8492.067.59
Table 17. Detection performance obtained with the reimplemented SVM–FS approach following [37].
Table 17. Detection performance obtained with the reimplemented SVM–FS approach following [37].
FaultAccuracy (%)Recall (%)FPR (%)
195.6295.034.82
295.0494.085.28
394.2493.415.93
493.7393.026.18
593.1392.246.68
694.4393.825.71
Average94.3793.605.77
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Guzmán-Rabasa, J.-A.; Mendoza-Avendaño, C.; Fragoso-Mandujano, J.-A.; Urbina-Brito, N.; González-Baldizón, Y.; Pérez-Pérez, E.-J.; Valencia-Palomo, G. Data-Driven Fault Diagnosis in Chemical Reactors Using Takagi–Sugeno Models and Zonotopic PI Observers. Algorithms 2026, 19, 689. https://doi.org/10.3390/a19080689

AMA Style

Guzmán-Rabasa J-A, Mendoza-Avendaño C, Fragoso-Mandujano J-A, Urbina-Brito N, González-Baldizón Y, Pérez-Pérez E-J, Valencia-Palomo G. Data-Driven Fault Diagnosis in Chemical Reactors Using Takagi–Sugeno Models and Zonotopic PI Observers. Algorithms. 2026; 19(8):689. https://doi.org/10.3390/a19080689

Chicago/Turabian Style

Guzmán-Rabasa, Julio-Alberto, Claudia Mendoza-Avendaño, José-Armando Fragoso-Mandujano, Norberto Urbina-Brito, Yair González-Baldizón, Esvan-Jesús Pérez-Pérez, and Guillermo Valencia-Palomo. 2026. "Data-Driven Fault Diagnosis in Chemical Reactors Using Takagi–Sugeno Models and Zonotopic PI Observers" Algorithms 19, no. 8: 689. https://doi.org/10.3390/a19080689

APA Style

Guzmán-Rabasa, J.-A., Mendoza-Avendaño, C., Fragoso-Mandujano, J.-A., Urbina-Brito, N., González-Baldizón, Y., Pérez-Pérez, E.-J., & Valencia-Palomo, G. (2026). Data-Driven Fault Diagnosis in Chemical Reactors Using Takagi–Sugeno Models and Zonotopic PI Observers. Algorithms, 19(8), 689. https://doi.org/10.3390/a19080689

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