Next Article in Journal
Hybrid Neural Network Approach with Physical Constraints for Predicting the Potential Occupancy Set of Surrounding Vehicles
Previous Article in Journal
Penalty Strategies in Semiparametric Regression Models
Previous Article in Special Issue
A Family of Newton and Quasi-Newton Methods for Power Flow Analysis in Bipolar Direct Current Networks with Constant Power Loads
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Causal Diagnosability Optimization Design for UAVs Based on Maximum Mean Covariance Difference and the Gray Wolf Optimization Algorithm

College of Coastal Defense Force, Naval Aviation University, Yantai 264001, China
*
Author to whom correspondence should be addressed.
Math. Comput. Appl. 2025, 30(3), 55; https://doi.org/10.3390/mca30030055
Submission received: 8 April 2025 / Revised: 13 May 2025 / Accepted: 13 May 2025 / Published: 14 May 2025
(This article belongs to the Special Issue Applied Optimization in Automatic Control and Systems Engineering)

Abstract

:
Given the growing complexity and variability of application scenarios, coupled with increasing operational demands, unmanned aerial vehicles (UAVs) are prone to faults. To enhance diagnosability and reliability in this context, this study proposes a causal diagnosability optimization strategy based on the Maximum Mean and Covariance Discrepancy (MMCD) metric and the Grey Wolf Optimization (GWO) algorithm. First, a qualitative assessment method for causal diagnosability is introduced, leveraging structural analysis to evaluate the detectability and isolability of faults. Next, residuals are generated using Minimal Structurally Overdetermined (MSO) sets, and a quantitative diagnosability assessment framework is developed based on the MMCD metric. This framework measures the complexity of diagnosability through the analysis of residual deviations under fault conditions. Finally, a diagnosability optimization technique utilizing the GWO algorithm is proposed. This approach minimizes diagnostic system design costs while maximizing its performance. Simulation results for a UAV structural model demonstrate that the proposed strategy achieves a 100% fault detection rate and fault isolation rate while reducing design costs by 70.59%.

1. Introduction

With the continuous development of flight control technology, battery technology, intelligent learning, camera technology, sensor technology, communication technology, power technology, polymer material technology, cloud computing technology, and navigation technology, UAVs have been widely used in the fields of logistics and transportation [1], agricultural plant protection [2], communication relay [3], and military combat. Due to the escalating intensity and difficulty of missions, the requirements for UAVs have intensified in terms of their fulfillment, safety, and reliability. Influenced by factors such as materials, operation, environment, and software, UAVs can suffer from faults, which may lead to their failure [4]. Therefore, it is essential to improve the reliability and diagnosability of UAVs to ensure the fulfillment of their missions.
At present, improving the efficiency of diagnosis systems or the dependability of essential components represents the primary method to increase reliability. On one hand, enhancing the dependability of crucial parts raises the cost of design and does not wholly eliminate faults. Furthermore, the performance of diagnostic systems is often constrained by the limited or imprecise fault information they provide. Even the most precise fault diagnostic techniques are not helpful if the fault information is lacking or inadequate. Therefore, ensuring sufficient fault information is essential for increasing reliability. Diagnosability—like reliability—is a fundamental system design characteristic that reflects the effectiveness of fault diagnosis. Diagnosability not only involves fault information, but also ensures that fault diagnostic duties are completed as efficiently and cheaply as possible [5]. There are two types of diagnosability studies: diagnosability design and diagnosability assessment. Diagnosability assessment studies predominantly assess the advantages and disadvantages of the diagnosis system, while diagnosability design studies primarily refer to a series of optimization designs that improve the performance of the diagnosis system. Diagnosability assessment is a crucial method for evaluating the fault diagnosis ability, as it reflects the content and quality of fault information. It can generally be classified into two categories: qualitative and quantitative. Quantitative assessment largely gauges the complexity of diagnosing faults, whereas qualitative assessment primarily establishes whether a fault can be diagnosed.
Existing research on diagnosability in UAVs has mainly focused on the optimal design of fault diagnosis strategies. The fault diagnosis strategies for UAVs are divided into those relating to hardware and software redundancy [6]. Fault diagnosis based on hardware redundancy mainly ensures the detectability of the equipment by increasing hardware detection equipment. However, the system’s economic cost and structural complexity will increase, and the reliability of the system will be affected. Fault diagnosis methods based on software redundancy can be categorized into analytical model-based, signal processing-based, and knowledge-based methods [7]. However, given recent research progress, the fault diagnosis strategy of UAVs is mainly based on machine learning, artificial intelligence, or fusion algorithms. Iannace [8] proposed an artificial neural network-based fault diagnosis strategy for UAVs. By analyzing the acoustic characteristics of the UAV propellers, he successfully realized three states of the classification diagnosis, including balanced blades, single-tape imbalance, and double-tape imbalance, with 97.63% accuracy. Liang [9] proposed a data-driven fault diagnosis method for fixed-wing UAVs considering multiple operating conditions that significantly improved the fault detection rate and reduced the false alarm rate by incorporating an improved dynamic kernel principal component analysis and a sliding window denoising algorithm. Zhang [10] addressed the problem of fault-constrained flight data for fixed-wing UAVs and proposed a fault diagnosis strategy based on adaptive sharing and knowledge complementation, greatly improving the fault detection rate under small sample constraints. Hua [11] proposed a quadrotor UAV sensor fault diagnosis and fault-tolerant control method based on an improved genetic algorithm and BP neural network. Experiments comparing the three types of algorithms show that the proposed improved strategy has the highest detection rate in noisy environments. It can quickly and accurately identify the faults of sensor jamming and gain abnormality as well as other faults, significantly improving the safety and stability of the UAV system. Overall, existing research on UAV diagnosability has mainly focused on specific faults, complex environments, and algorithm performance improvement. First, all of the above studies have neglected a key issue: the content of fault information provided by the system. If the fault information provided by the system is insufficient or untrue, this leads to the fact that the fault itself cannot be detected and isolated. Thus, even the most accurate fault diagnosis strategy is not useful. Second, all of the above studies have been conducted to diagnose a single fault or a certain class of faults, and lack UAV-wide fault analyses. Therefore, in this paper, from the perspective of quantitative evaluation for the UAV system-wide faults and taking into account the causal constraints through the analysis and optimization of the system structural characteristics, to ensure that the system provides sufficient fault information, which in turn improves the fault diagnosis performance as well as the reliability of the UAV.
Extracting fault data from the system structure is the aim of the model-based fault detection technique known as structural analysis [12]. Through creating a structural model and utilizing the appropriate tools based on graph theory, the structural analysis method significantly lowers the computational cost of fault diagnosis in contrast to other model-based fault diagnosis techniques that necessitate the creation of an accurate mathematical model. This provides a significant benefit for the diagnosability of large-scale and complex control systems. Chen [13] proposed a hybrid structural analysis and convolutional neural network-based diagnosis system that compensates for the problem of fewer training samples for data-driven fault diagnosis methods through combining model-based and data-driven fault diagnosis methods. Cheng [14] proposed a structural analysis-based diagnosis scheme that is applicable to complex systems for short-circuit and sensor faults in the lithium battery system of a hybrid aircraft. Li [15] proposed a structure-based modeling method for real-time fault diagnosis of the pulse rectifier of the traction system. First, a structural analysis model of the traction system is established to examine structural isolation and detectability aspects. Second, the structural model is analyzed and optimized using the resolved redundancy relations under each fault condition, and the optimized model is used to obtain the minimal structurally overdetermined sets (MSOs) for isolating the faults. Finally, using the MSOs, sequence residuals are generated, and diagnostic decisions can be made using the cumulative sum algorithm. Due to its structural characteristics, the structural analysis method can assess diagnosability only from a qualitative perspective. In this study, the direct and sensitive relationship linking MSO to faults is transformed into an indirect connection that utilizes residuals as an intermediary step for fault detection, thereby addressing the limitations of the original approach. This quantitative assessment is achieved by measuring the difference in residuals between faulty and normal operating conditions. Standard measures of the difference between probability distributions include the energy distance [16], modified distance [17], Kullback–Leibler (K-L) scatter [18], Hausdroff distance [19], Ma’s distance [20], Jensen Shannon (JS) scatter [21], Bachmann’s distance [22], Fisher’s information distance [23], and Bayesian error rate [24]. These probability distribution measures generally use the parity space method to design the residuals and, thus, are susceptible to the influence of the window length and the selection of the left null space. As a novel probability distribution measure, MMCD not only compensates for the traditional maximum mean discrepancy (MMD) by incorporating the maximum covariance discrepancy (MCD) when measuring the sample covariance discrepancy, but also ensures the symmetry of the distance metric. Zhang [25] proposed a cross-domain distributional discrepancy assessment method based on MMCD and proved the effectiveness of MMCD in domain adaptation using image classification experiments. Yang [26] proposed an MMCD-based migration joint matching strategy in order to compensate for the MMD loss of statistical information in the migration learning strategy. Therefore, this work provides a quantitative assessment method based on MMCD to measure the ease of fault diagnosis.
The causal relationship embedded in MSO has an impact on residual design. Different redundancy equations are selected, or different perfect matching relationships are embedded in the MSO. When designing residuals, the causal relationship between dynamic variables also changes [27]. The causal relationship also affects the capability of fault diagnosis, to some extent. In residual design, if only the integral operation of dynamic variables occurs, the residual is considered to be integrally causal. Modeling bias, noise interference, beginning value uncertainty, and other issues all impact integral causal residuals, although these effects can be somewhat mitigated. In residual design, if only differential operations on dynamic variables are involved, the residual is considered to be differentially causal. Differential causal residuals are easily affected by system noise, and the higher the order of differentiation is, the greater the degree of influence of noise on the system. Therefore, differential causality should be avoided as much as possible. In residual design, if there are both differential and integral operations, the residual is considered to reflect mixed causality. Mixed causality can take advantage of both integral and differential causality. Thus, this research suggests a quantitative assessment technique for causality diagnosability, which depends on MMCD to quantify the impact of causality on residuals.
The number of MSOs increases exponentially with the structural redundancy of the system. Therefore, not all MSOs should be involved in diagnostic system design due to cost constraints. To balance the causal diagnosability requirement as well as the diagnostic system design cost, the MSOs with the best overall performance must be identified, essentially representing a combinatorial optimization problem. Intelligent algorithms are advantageous in solving optimization problems. At present, the widely used optimization algorithms include the genetic algorithm [28], simulated annealing algorithm [29], ant colony algorithm [30], particle swarm algorithm [31], and artificial bee colony algorithm [32]. The GWO algorithm—a novel intelligent optimization algorithm inspired by the social hierarchy and hunting behavior of gray wolves—performs optimization through processes such as tracking, chasing, encircling, harassing, and attacking the prey of wolves. These behaviors help to guide the algorithm’s search for the optimal solution [33]. To date, GWO algorithms have been developed for feature selection [34], parameter identification [35], reinforcement learning [36], and reliability optimization [37]. Therefore, this study introduces a strategy for optimizing diagnosability using a design approach grounded in the GWO algorithm. In summary, the key contributions of this study are as follows: first, a method for causal diagnosability analysis rooted in structural analysis is introduced; second, a quantitative evaluation strategy for causal diagnosability utilizing MMCD is presented; and, finally, an optimization design strategy for causal diagnosability based on the GWO algorithm is proposed.
To enhance the adaptability and reliability of UAVs performing missions in complex working environments, this study proposes a causal diagnosability optimization design strategy based on the MMCD and GWO algorithms. This strategy effectively guarantees the success rate of UAV execution under various mission requirements through enhancing the system’s fault diagnosis capability. The remainder of this paper is organized as follows. In Section 2, the optimization design strategy for UAV causal diagnosability based on the MMCD and GWO algorithms proposed in this paper is described in detail. First, based on structural analysis, a system structure model is established. Its structural characteristics are analyzed, and causal diagnosability evaluation indices are established. Second, residuals are designed based on MSO, and a quantitative diagnosability evaluation strategy based on the MMCD is proposed. Finally, to take into account the demand for diagnosability as well as the cost of diagnostic system design, a causal diagnosability optimization design model is established, and a diagnosability optimization design strategy based on the GWO algorithm is proposed. In Section 3, based on the UAV structural model, the causal diagnosability is analyzed and optimized from the perspective of quantitative evaluation to verify the reasonableness and effectiveness of the strategy proposed in this paper. Section 4 summarizes the main work of this paper.

2. Proposed Methodology

To improve the reliability as well as causal diagnosability of UAVs, this study proposes a diagnosability optimization design strategy based on the MMCD and GWO algorithms. The logic of the proposed approach is shown in Figure 1. First, based on structural analysis, the relevant graph theory tools of Dulmage–Mendelsohn (DM) decomposition and matching are used to analyze the structural characteristics of the system based on its structural characteristics and establish the evaluation index of causal diagnosability. Second, based on MSO-designed system residuals, the problem of quantitatively evaluating diagnosability is transformed into analyzing the probability distribution differences of residuals, and a quantitative diagnosability assessment strategy based on MMCD is proposed. Finally, a diagnosability optimization design strategy based on the GWO algorithm is proposed to reduce the cost of the diagnostic system.

2.1. Causal Diagnosability Based on Structural Analysis

2.1.1. Structural Model

With its collection of variables  V , set of constraint equations  E , and edges  A ¯ , the structure of a system  M  may be expressed as a graph  G E , V , A ¯ . If variable  v j  appears in equation  e i , it means that an edge  e i , v j  exists between node  e i  and node  v j  of  G E , V , A ¯ . The set of edges can be denoted as  A ¯ = e i , v j | e i E , v j V , v j   i s   i n e i . For ease of presentation,  G E , V , A ¯  can also be represented by its correlation matrix  A , where  A i , j = 1  if an edge  e i , v j  exists between nodes  e i  and  v j , and  A i , j = 0  otherwise.
The mathematical model of the system  M 1  is expressed as:
e 1 : x ˙ 1 = 2 x 1 + x 3 + x 5 e 5 : x ˙ 5 = 5 x 5 + u + f 5 e 2 : x ˙ 2 = 3 x 2 + x 4 + f 1 e 6 : y 1 = x 1 e 3 : x ˙ 3 = x 3 + x 5 + f 2 + f 3 e 7 : y 2 = x 2 e 4 : x ˙ 4 = 4 x 4 + f 4 e 8 : y 3 = x 3
where  X 1 = x i , x ˙ i  are the unknown state variables,  F 1 = f 1 , f 2 , f 3 , f 4  are the system faults, and  Z 1 = u , y 1 , y 2 , y 3  are the known variables. To distinguish between  x ˙ i  and  x i  in the structural model of  M 1 , the constraint equations are added here:
e j : x ˙ i = d d t x i , i = 1 , 2 , , 5 ; j = 9 , 10 , , 13
G E , V , A ¯  of  M 1  is shown in Figure 2. In Figure 2, the variables are represented by the columns of the association matrix of  M 1 , and the rows indicate the equations. Among them, ‘•’ represents standard edges, ‘D’ represents edges related to  x ˙ i  in the added constraint equations, and ‘I’ represents edges related to  x i  in the added constraint equations. The structural analysis exclusively focuses on the structure associated with the unknown variable  X , i.e., the blue part in Figure 1. For ease of description, the structural model associated with  X  is defined here as  G E , X , A ¯ .

2.1.2. Causal Diagnosability

The DM decomposition method [38] is frequently employed for structural analysis. The association matrix  A  is divided into an upper triangular form by the DM decomposition, as shown in Figure 3a. The shaded elements in Figure 3a contain ‘0’ and ‘1’, and the blanks contain only ‘0’. The light-colored dashed line in the figure represents the maximum matching [27]. Matching refers to a set of edge sets that are not in the same row and column in the structural model.  M  is divided into three parts after DM decomposition: the structurally underdetermined part  M = E , X , where  E < X ; the structurally exactly determined part  M 0 = E 0 , X 0 , where  E 0 = X 0 ; and the structurally overdetermined part  M + = E + , X + , where  E + > X + . A set of Hall components  G i  exist in  M 0 . Due to the resolved redundancy relations embedded in it [12],  M +  is the key to the structural analysis and the diagnostic focus. The DM decomposition of  M 1  is shown schematically in Figure 3b, demonstrating that  M 1 = M 1 + . Here,  +  and  0  are defined as the operators that obtain the structurally overdetermined and structurally exactly determined subsystems, respectively.
E  is said to be properly structurally overdetermined (SO) if  E > Q X E , where  Q X E  represents the unknown variables embedded in  E . If  E  is SO, this implies that a structurally overdetermined portion is present in the DM decomposition. Further, if  E = E + , it implies that  E  is properly structurally overdetermined (PSO). If  E = E + , for  e E E \ e s . t . E \ e = E \ e + . This states that a subset of the proper structurally overdetermined set  E , PSO, exists. Furthermore,  E  is said to be an MSO if  E  is SO and there is no  E E , such that  E  is SO. The structural redundancy of MSO is 1, which is a minimal unit for diagnosability. Using the MSO method shown in the literature [39], the MSOs of  M 1  can be obtained as  M S O 1 = e 3 , e 5 , e 8 , e 11 , e 13 M S O 2 = e 2 , e 4 , e 7 , e 10 , e 12 M S O 3 = e 1 , e 5 , e 6 , e 8 , e 9 , e 13 M S O 4 = e 1 , e 3 , e 6 , e 8 , e 9 , e 11 M S O 5 = e 1 , e 3 , e 5 , e 6 , e 9 , e 11 , e 13 .
Based on the MSO, the residuals are designed using the sequential residual method to analyze diagnosis. Taking  M S O 2  as an example, residuals  r 1  and  r 2  are designed using  e 4  and  e 7  as redundant equations, respectively. Figure 4a and Figure 5a show the computation flow of  r 1  and  r 2 , where the circles represent variables, the bars represent constraint equations, the red bars represent dynamic equations, and the arrows represent the computation flow. As shown in Figure 4a, the calculation process of  r 1  is as follows: first, use  e 7  to solve for the unknown variable  x 2 ; then use  e 10  to solve for  x ˙ 2 ; then use  e 2  to solve for  x 4 ; then use  e 12  to solve for  x ˙ 4 ; and finally use  e 4  to obtain  r 1 .
r 1 : = y ¨ 2 + 7 y ˙ 2 + 12 y 2 f ˙ 1 4 f 1 f 4
Figure 4b shows the structural model of  M S O 2 \ e 4 , and it can be seen that  M S O 2 \ e 4 = M S O 2 \ e 4 0 . The Hall component in the black border in Figure 4b is its maximum matching, i.e.,  e 7 , x 2 , e 10 , x ˙ 2 , e 2 , x 4 , e 12 , x ˙ 4 . Comparing the two panels in Figure 4, it is observed that the process of solving for the unknown variables in Figure 4a is consistent with the matching process shown in Figure 4b. The matching variables are the solution variables of the matching equations. Because the matching contains only the differential edge ‘D’,  r 1  is differentially causal. Causality here refers to integral and differential operations between dynamic variables. When no fault occurs,  r 1 = 0 . As  f 1  appears in  e 2  and  f 4  appears in  e 4 r 1 0  when either  f 1  or  f 4  occurs. For ease of description, let ‘int’ denote integral causality, ‘der’ denote differential causality, and ‘mix’ denote mixed causality.
In the computational flow of  r 2  shown in Figure 5a, two differential loops appear. One is the differential loop  e 4 , e 12  consisting of  e 4  and  e 12 , and the other is the differential loop  e 2 , e 10  consisting of  e 2  and  e 10 . Integral operations can break the differential loop. First, based on the differential loop  e 4 , e 12 , one obtains  x 4 = f 4 4 1 e 4 x 4 + C e 4 x 4  such that  x 4 = h f 4 . Second, based on the differential loop  e 2 , e 10 , one obtains  x 2 = f 1 + h f 4 3 1 e 3 x 2 + C 1 e 3 x 2  such that  x 2 = h f 1 , f 4 . Finally, based on the redundant equation  e 7 , one obtains  r 2 , which is expressed as follows:
r 2 = h f 1 , f 4 y 2
Figure 5b shows the corresponding structural model of  M S O 2 \ e 7 , which is structurally exactly determined. The Hall components of  M S O 2 \ e 7  are  G 1 = e 12 , x 4 , e 12 , d x 4 , e 4 , x 4 , e 4 , d x 4  and  G 2 = e 10 , x 2 , e 10 , d x 2 , e 2 , x 2 , e 2 , d x 2 . Because  G 1 > 1  and  G 2 > 1 , differential loops exist for  G 1  and  G 2 . Since differential loops can only be broken by integral operations,  r 2  is integrally causal. Because  r 2  and  r 1  involve the same constraint equations, the sensitivity of  r 2  to faults is the same as that of  r 1 .
For  M S O 2 , when  e 2 e 10 , and  e 12  are sequentially selected as the redundant equations, the causal matching relationship is shown in Figure 6. As shown in the figure, when  e 2  is a redundant equation,  M S O 2  is mixed causal. When  e 10  is a redundant equation,  M S O 2  is integrally causal. When  e 12  is a redundant equation,  M S O 2  is differentially causal. Therefore, the causality of MSO is related to its maximum matching. In addition to the matching edge ‘•’, if its maximal matching exists only in the differential edge ‘D’, it is differentially causal. If its maximal matching exists only in the integral edge ‘I’, it is integrally causal. If its maximal matching contains both integral and differential edges or only the standard edge ‘•’, then it is mixed causal. Equations (3) and (4) demonstrate that the duplicate MSO has the same sensitivity relation to faults, although its causal relations are different.
Therefore, the fault  f  is said to be structurally detectable if and only if
M S O ,   s . t .   e f M S O
where  e f  is the equation affected by  f . For example, for  M 1 e f 1 = e 2  and  e f 2 = e f 3 = e 3 . Further, the faults  f i  and  f j  are said to be structurally isolable if and only if
M S O ,   s . t .   e f i M S O e f j M S O
The  M S O s = M S O 1 , M S O 2 , , M S O s  is known, and the set of faults is  F = f 1 , f 2 , , f g . The fault signature matrix (FSM)  F S M = f m i j g × s  is built based on Equation (5) as follows:
f m i j = 1 ,   i f   e f i M C R j 0 ,   o t h e r w i s e
The fault isolation matrix (FIM)  F I M = f i j g × g  is built based on Equation (6) as follows:
f i j = 0 ,   i f   M C R k ,   s . t .   e f i M C R k e f j M C R k 1 ,   o t h e r w i s e
Based on the FSM, the fault detection rate (FDR) can be obtained as follows:
F D R = i = 1 g o r f m i g
where  o r f m i  refers to the logical or operation between the i-th row of data in the FSM. Based on FIM, the fault isolation rate (FIR) can be obtained as follows:
F I R = 1 i = 1 g j = 1 . i j g f i j g g 1
Taking  M 1  as an example, the MSOs in which integral causality is implied are  M S O 1 , M S O 2 , M S O 3 , M S O 5 , and their FSM and FIM are shown in Figure 7a and Figure 8a. Based on Equations (9) and (10), the FDR of  M 1  under the integral causality condition is  F D R 1 = 100 % , and the FIR is  F I R 1 = 70 % . The MSOs of  M 1 , which imply differential causality, are  M S O 1 , M S O 2 , M S O 3 , M S O 4 , and their FSM and FIM are shown in Figure 7b and Figure 8b. Based on Equations (9) and (10), it can be seen that the FDR under differential causality condition is  F D R 2 = 100 %  and  F I R 2 = 80 % . The MSOs in  M 1  that imply mixed causality are  M S O 1 , M S O 2 , M S O 3 , M S O 4 , M S O 5 , and the FSM under mixed causality is shown in Figure 7c, in which  F D R 3 = 100 % . The FIM under mixed causality is shown in 8c, where  F I R 3 = 80 % . Here, the FDR is consistent under any causal constraints. The diagnosability results of mixed causality and differential causality are consistent, but the number of MSOs under different causal constraints is inconsistent.

2.2. Quantitative Assessment of Diagnosability Based on MMCD

The structural analysis method can only qualitatively analyze the diagnosability. Thus, this paper proposes a quantitative assessment method based on MMCD by fusing the advantages of MMD and MCD. MMCD not only compensates for the defects of MMD in measuring the covariance differences but also ensures the symmetry of the distance metric.

2.2.1. MMCD

MMD and MCD are both metrics formulated within a reproducible Hilbert space  . MMD quantitatively describes the distance between probability distributions by calculating the mean difference in Hilbert space.
Definition 1 (MMD).
It is known that random variables  x  and  y  on the inner volume space  X  obey probability distributions  p  and  q , respectively. Thus, the MMD between  x  and  y  is expressed as follows:
M M D p , q , = sup h H E x h x E y h y = μ p μ q = t r K M
where
K = K X X K X Y K Y X K Y Y
M i j = 1 n 2 , x i , x j X 1 m 2 , x i , x j Y 1 m n , o t h e r i s e
In addition,  E x  and  E y  denote the expectations of  x  and  y  , respectively;  H  is the fundamental function  h : X  of  ;  μ p  and  μ q  represent the mean map of  p  and  q  on  , respectively;  K X X i j = k x i , x j ,  K X Y i j = k x i , y j ,  K Y Y i j = k y i , y j  , and  k x , y  are regenerated kernels of  .
Through calculating the maximum covariance difference in Hilbert space, MCD provides a quantitative representation of the separation between probability distributions.
Definition 2 (MCD).
It is known that random variables  x  and  y  on the inner volume space  X  obey probability distributions  p  and  q  , respectively. Thus, the MCD between  x  and  y  is expressed as follows:
M C D p , q , = sup a 1 i , j I a i j cov e i x , e j x cov e i y , e j y = C p C q H S = t r K Z K Z
where
cov e i x , e j x = E x e i x , e j x E x e i x E x e j x
Z i j = 1 n 1 n 2 , i = j , x i X 1 n 2 , i j , x i X , x j X 1 m 2 1 m , i = j , x i Y 1 m 2 , i j , x i Y , x j Y 0 , o t h e r w i s e
In addition,  a = i , j I a i j 2 1 / 2 ;  e i  is the orthonormal basis of  ;  C p  is the covariance operator on  ;  H S  is the Hilbert–Schmidt (HS) paradigm; and  X = x 1 , , x n  and  Y = y 1 , , y m  are the finite number of observations sampled sequentially from distributions  p  and  q  , respectively.
Through combining the differences between MCD and MMD in Hilbert space, MMCD provides a quantitative description of the distance between probability distributions.
Definition 3 (MMCD).
It is known that random variables   x  and  y  on the inner volume space  X  obey probability distributions  p  and  q  , respectively. Thus, the MMCD between  x  and  y  is expressed as follows:
M M C D p , q , = μ p μ q 2 + β C p C q H S 2 1 / 2 = t r K M + β t r K Z K Z
where  β 0 , 1 .
Comparison of Equations (11), (14), and (17) shows that MMCD can take into account the mean difference and covariance difference of the probability distribution. Analyzing numerically, we find that  M M C D p , q , > M M D p , q ,  and  M M C D p , q , > M C D p , q , . Therefore, the MMCD can measure the probability distribution differences more fully. As  M M C D p , q , = M M C D q , p , , the MMCD also satisfies the symmetry constraint.

2.2.2. Quantitative Assessment

The sensitivity that exists between MSO and faults may be transformed into a leapfrog connection between residuals and faults using MSO design residuals. When there is no fault, the noise affects  r , and the probability distribution of  r  and the noise are identical. When a fault occurs,  r  is affected by the fault, and the distribution of  r  is different. Subject to causality constraints, the distribution of  r  is also different for causal relationships. Here, a quantitative assessment technique based on MMCD is suggested to gauge how sensitive residuals are to faults. Based on  M S O s = M S O 1 , M S O 2 , , M S O s , the residuals  R = r 1 , r 2 , , r s  are designed. The faults are known to be  F = f 1 , f 2 , , f g , such that  N F  represents the no-fault mode. Assume that the probability distribution of  R  is  p N F  when no fault occurs, which is denoted as  R p N F , and the probability distribution of  R  is  p f i  when the fault  f i  occurs, which is denoted as  R p f i . Relying on MMCD, the detection complexity  D f i , N F  of  f i  is expressed as follows:
D f i , N F = M M C D p f i , p N F ,
The isolation complexity  D f i , f j  for  f i  and  f j  is expressed as follows:
D f i , f j = M M C D p f i , p f j ,
Due to uncertainties such as noise and interference,  D f i , N F > 0  cannot be used to determine whether  f i  occurs, and  D f i , f j > 0  cannot determine whether  f i  and  f j  can be isolated. Thus, it is essential to establish the detectability limit  σ D  and isolability limit  σ I  to judge the diagnosability. In NF, the residual  R 1  and  R 2  of multiple repeated experiments are taken, and their probability distributions are  p N F  and  q N F , respectively. The diagnosability limit is expressed as follows:
σ D = max i M M C D p N F , 0 ,
σ I = max i M M C D p N F , q N F ,
where  max i  indicates the maximum value taken from several experiments. Therefore, if  D f i , N F > σ D , it means that  f i  can be detected, and the larger  D f i , N F σ D  is, the more straightforward it is to detect  f i . If  D f i , f j > σ I , it means that the  f i  can be isolated from  f j , and the larger  D f i , f j σ I  is, the lower the isolation difficulty of  f i  and  f j .
Based on Equation (19), a quantitative assessment matrix  D  is established:
D = D f 1 , N F D f 1 , f 1 D f 1 , f 2 D f 1 , f g D f 2 , N F D f 2 , f 1 D f 2 , f 2 D f 2 , f g D f g , N F D f g , f 1 D f g , f 2 D f g , f g
where  D f i , N F  indicates the detection complexity of the diagnostic system  R  for  f i , and  D f i , f j  indicates the isolation complexity of  R  for  f i  and  f j i , j = 1 , 2 , , g . Given that MMCD has symmetry,  D f i , f j = D f j , f i . As a single fault itself does not need to be considered for isolation,  D f i , f i = 0 . Based on Equations (20)~(22), the fault diagnosis matrix  D d = d i j g × g + 1  is established.
d i j = 1 ,   i f   D f i , N F > σ D j = 1 1 ,   i f   D f i , f j σ I D f i , f i = 0 0 ,   o t h e r w i s e
Based on  D d , the FDR is expressed as follows:
F D R = i = 1 g d i 1 g
The FIR is expressed as follows:
F I R = 1 i = 1 g j = 2 , i j g + 1 d i j g g 1

2.3. Diagnosability Optimization Design Using GWO Algorithm

2.3.1. Optimization Design Model

The number of MSOs grows exponentially with increasing redundancy in the system structure. Thus, to save design costs while designing the diagnostic system, it is necessary to optimize the optimal MSO from MSOs for diagnostic system design. Taking the causality constraints and diagnostic requirements into account, the steps of the diagnostic optimal design model are as follows:
  • Step 1: Build the system structure model  G E , X , A ¯ ;
  • Step 2: Using the causal MSO algorithm from the literature [27], obtain the  M S O s = M S O 1 , M S O 2 , , M S O s  under different causal conditions;
  • Step 3: Design the residual set  R c o n = r 1 , r 2 , , r w  that satisfies the diagnosability requirement;
  • Step 4: Construct the vector  c = c i 1 × w ;
c i = 1 ,   i f   r i   i s   s e l e c t e d 0 ,   o t h e r w i s e
Then, the optimized diagnostic system is  R : = R c o n . c . Based on MMCD, a quantitative assessment matrix  D  is established for  R .
  • Step 5: Assume that the design cost of  R c o n  is  γ = γ i 1 × w . Then, the design cost of  R  is expressed as follows:
c o s t = i = 1 w γ i c i
In summary, the diagnostic optimization model can be expressed as follows:
m i n   c o s t = i = 1 b γ i c i
s . t .     D D r e q
where  D r e q  represents the quantitative demand matrix, typically the diagnosability limit  σ .

2.3.2. Diagnosability Optimization Design Strategy Based on the GWO Algorithm

The GWO algorithm is a new type of pack intelligence optimization algorithm that mimics the hunting behavior and social hierarchy of gray wolf packs. Individual wolves are generally divided into four classes; namely,  α β δ , and  ω  wolves. Among them, the  α  wolf is the leader, representing the optimal solution in the population, and is the supreme ruler and manager of the wolf pack. The  β  and  δ  wolves represent the second- and third-best solutions in the population, and the remaining solutions are regarded as  ω  wolves.
The optimization process of the GWO algorithm is divided into three steps: first, searching and tracking the prey; second, hunting and encircling the prey until the prey stops moving; and finally, attacking the prey. The position update formula for the wolves searching and surrounding prey is expressed as follows:
X t + 1 = X p t A D
where
D = C X p t X t
In the above equation,  t  is the current iteration number,  X p  is the prey position,  X  is the gray wolf position, and  A  and  C  are the coefficient vectors of the algorithm.
A = 2 a r a n d 1 a
C = 2 r a n d 2
Here,  r a n d 1  and  r a n d 2  are random vectors between  0 , 1 , and  a  is the tuning parameter, which is expressed as follows:
a = 2 1 t t max
where  t max  is the maximum number of iterations and  A 2 a , 2 a C 0 , 2 .
The position of the  ω  wolf is based on the positions of  α  wolf,  β  wolf, and  δ  wolf. Therefore, once the positions of  α  wolf,  β  wolf, and  δ  wolf have been determined, the location of the prey can be determined based on the distance between them.
X α t + 1 = X α t A 1 C 1 X α t X t X β t + 1 = X β t A 2 C 2 X β t X t X δ t + 1 = X δ t A 3 C 3 X δ t X t X ω t + 1 = j = α , β , δ w j X j t + 1
Here,  w j  is the weighting factor for  α β , and  δ  wolves.
w j = f X j t f X α t + f X β t + f X δ t
In the above equation,  f X j t  denotes the acclimatization value of the j-th gray wolf individual in the t-th generation.
The optimal design strategy for causal diagnosability based on the GWO algorithm is outlined below.
  • Step 1: For parameter initialization, set the gray wolf population as  N = 50 , maximum iteration number  t max = 20 , and parameters  a A , and  C . The parameters of MMCD are selected from the optimal parameter settings verified in the literature [40];
  • Step 2: Based on Equation (26), initialize the position of the gray wolf population  X ;
  • Step 3: If the constraints shown in Equation (29) are satisfied, calculate its fitness value based on Equation (28); otherwise, its fitness value is infinity. Second, determine the  α  wolf,  β  wolf, and  δ  wolf according to the merit of fitness;
  • Step 4: Update the location of the gray wolf population based on Equation (35);
  • Step 5: Update the parameters  a A , and  C ;
  • Step 6: Judge whether the maximum number of iterations has been reached. If so, stop the algorithm and return as the optimal solution  X α ; otherwise, return to step 3.

3. Results and Analysis

In this section, causal diagnosability is optimally designed based on the fixed-wing UAV structural model. Section 3.1 establishes the UAV structural model and analyzes its structural characteristics and its causal diagnosability. In Section 3.2, based on the MSO, the system residuals are designed, and the influencing factors of diagnosability are studied in a simulation scenario. In Section 3.3, based on the MMCD, the probability distribution difference of fault residuals is measured to evaluate quantitatively the system’s diagnosability. In Section 3.4, to minimize the cost of the diagnostic system design under the premise of maximizing the system’s diagnosability requirements, the optimal diagnostic system is optimized based on the GWO algorithm for the diagnosability of the UAV.

3.1. Causal Diagnosability of Fixed-Wing UAVs

For simulation verification in this research, the fixed-wing UAV model  M U A V  from the literature [27] is utilized, and the mathematical model is expressed as follows:
x ˙ = A x + B u + F y = C x
where  x = x 1 , x 2 , , x 7 T  are the system states,  u = u 1 , u 2 T  are the system inputs,  F = f 1 , f 2 , f 3 , f 4 , f 5 , f 6 , f 7 T  are the system faults, and  y = y 1 , y 2 , y 3 T  are the system outputs.
A = 0.28 0 32.90 9.81 0 5.43 0 0.10 8.325 3.75 0 0 0 28.64 0.37 0 0.64 0 0 9.49 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 5
B = 0 0 0 0 0 20 0 0 0 0 0 0 0 10 T
C = 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0
The structural model of  M U A V  and the DM decomposition schematic are shown in Figure 9. As shown in Figure 9a, the dynamic constraint equation shown in Equation (2) is also added to the structural model of  M U A V . As shown in Figure 9b,  M U A V = M U A V + .
Using the search method reported in the literature [27], the MSOs of  M U A V  can be obtained as shown in Figure 10. The rows of the matrix in Figure 10 illustrate the MSOs, the columns illustrate the equations, and the elements of the matrix contain {‘int’, ‘der’, ‘mixed’} as well as empty elements. The empty element of the matrix means that the equation corresponding to the column in which the position is located is not among the MSOs corresponding to its row. If the element of the matrix is not empty (i.e., {‘int’, ‘der’, ‘mixed’}), it means that the equation corresponding to the column where the position is located is in the MSO corresponding to the row. As an example,  M S O 1 = e 3 , e 5 , e 6 , e 8 , e 10 , e 13 , e 15 , e 16 . Further, suppose the matrix element is ‘int’(‘der’, ‘mixed’). In this case, it means that when the equation corresponding to the column in which the position is located is selected as the redundant equation, MSO is integrally (differential, mixed) causal. Taking  M S O 1  as an example, if  e 6 e 8 , and  e 10  are selected as redundant equations, the causal relationships are shown in Figure 11. As shown in Figure 11a, when  e 6  is chosen as the redundant equation, the maximum matching relation of  M S O 1  contains only ‘D’ except for the normal edges, so it is differentially causal. Similarly, when  e 8  is a redundant equation,  M S O 1  is mixed causal; when  e 10  is a redundant equation,  M S O 1  is integrally causal.
Based on Figure 10, the integrally causal MSOs of  M U A V  are  i n t M S O s = M S O 1 , M S O 3 , M S O 6 , M S O 8 , M S O 13 , M S O 14 , M S O 17 . Based on Equations (7) and (8), the FSM and FIM of  i n t M S O s  are established as shown in Figure 12. The dot in the figure represents matrix element 1. As shown in Figure 12a, under the integral causality condition,  F D R 4 = 100 % . From Figure 12b,  F I R 4 = 57.14 % . Based on Figure 10, the differential causal MSOs are  d e r M S O s = M S O 1 , M S O 2 , M S O 5 , M S O 7 , M S O 16 . The FSM and FIM of  d e r M S O s  are shown in Figure 13, with  F D R 5 = 100 %  and  F I R 5 = 71.43 % . Based on Figure 10, the mixed causal MSOs can be obtained as  m i x M S O s = M S O 1 , M S O 2 , , M S O 17 . The diagnosability result of  m i x M S O s  is shown in Figure 14, with  F D R 6 = 100 % , and  F I R 6 = 85.71 % . It can be found that the diagnosability is different under different causal constraints, with the best diagnosability obtained under mixed causal constraints and the worst diagnosability obtained under integral causal constraints. This further validates the effect of causality on diagnosability.

3.2. Diagnosability Impact Factor Analysis

To verify the diagnosability of different faults and the responsiveness linking MSOs to faults, the sequential residual method is used for residual design. Figure 15a displays the simulation results of  M U A V  without fault, where  r e f 1  and  r e f 2  are the reference input signals. When  f 2  occurs, the simulation results of  M U A V  are shown in Figure 15b, and all the system faults are slope faults as shown in the figure. The used simulation software was MATLAB (2021b version). The initial state of the system is  x 0 = 0 1 × 7 T , and noise is not considered here. Based on  M S O 1  ( M S O 3 M S O 6 ),  e 10  ( e 9 e 8 ) is selected as the redundancy equation to design the residual  r 1 int  ( r 2 int r 3 int ). As shown in Figure 10, the residuals  r 1 int , r 2 int , r 3 int  are integrally causal, and Figure 16a displays each residual’s simulation results. Figure 16a shows that  r 1 int  jumps when faults  f 3 , f 5 , f 6  occur, which is consistent with the mapping relationship between  M S O 1  and faults shown in Figure 12a. This further verifies the reasonableness and validity of the causal diagnosability. Comparing the residuals in the figure, it can be observed that when the fault occurs, the exact causal residuals are inconsistent in the degree of jump to the fault. For example, the magnitude and direction of the jumps of  r 1 int  to  f 3 , f 5 , f 6  are inconsistent. The larger the degree of the leap of the residual to the fault is, the stronger the diagnostic ability of the residual to the fault and the better the diagnosable performance.
To verify the effect of causality on diagnosability, here, based on  M S O 1 , equations  e 6 e 8 , and  e 10  are selected as redundant equations to design the residuals  r 1 d e r r 1 m i x , and  r 1 int , respectively. As shown in Figure 11 r 1 d e r r 1 m i x , and  r 1 int  are differentially causal, mixed causal, and integrally causal, respectively, and the simulation results are shown in Figure 16b. Figure 16b shows that the residuals with the same MSO design have different causality, and their sensitivity to faults differs. For  f 3 f 5 , and  f 6 , the jump of  r 1 int  is significantly more potent than the other two residuals. Therefore,  r 1 int  is more sensitive to the fault than  r 1 m i x  and  r 1 d e r . This means that the integral diagnosability of  M S O 1  is stronger than the other causal diagnosability.
To verify the effect of MSO on diagnosability, the sensitivity relationships of residuals  r 1 int r 2 int , and  r 3 int  to faults  f 3  and  f 6  are verified here, as shown in Figure 16c. Based on Figure 12a, the sensitivity relationship with  f 3  and  f 6  exists for  r 1 int r 2 int , and  r 3 int . Figure 16c shows that for  f 3  and  f 6 , the jump of  r 1 int  is much more significant than that for  r 2 int  and  r 3 int . This indicates that the sensitivity of different MSOs to the faults is not the same, and their diagnosability also differs.
To confirm how residuals affect diagnosability, the residuals  r 7 d e r 1 r 7 d e r 2 , and  r 7 d e r 3  are designed based on  M S O 7 , and equations  e 1 e 3 , and  e 9  are selected as redundant equations, respectively. From Figure 9 r 7 d e r 1 r 7 d e r 2 , and  r 7 d e r 3  are differentially causal, and the simulation results of the residuals for  f 1 f 3 , and  f 5  are shown in Figure 16d. Figure 13a shows that  M S O 7  has a sensitive relationship with  f 1 f 3 , and  f 5 . As shown in Figure 16d, when the selected redundancy equation is  e 3 , the differential residual  r 7 d e r 2  designed based on  M S O 7  has the most significant jump and the strongest diagnostic performance. Therefore, different residuals have different impacts on diagnosability.
In summary, faults, causality, MSO, and residuals all have an impact on the diagnosability, and changes in any of these factors can alter the fault diagnostic ability of the residuals, which subsequently affects the diagnosability.

3.3. MMCD-Based Diagnosability Quantitative Assessment

Structural analysis can only qualitatively analyze the diagnosability, so this paper proposes a quantitative assessment method based on MMCD. As shown in Figure 12, there are a total of seven integral causal MSO; namely,  i n t M S O s = M S O 1 , M S O 3 , M S O 6 , M S O 8 , M S O 13 , M S O 14 , M S O 17 . As shown in Figure 10, two integral causal residuals can be designed for each integral causal MSO. The integral causal residual of the  i n t M S O s  is  R int = r 1 int 1 , r 1 int 2 , r 3 int 3 , r 3 int 4 , r 6 int 5 , r 6 int 6 , r 8 int 7 , r 8 int 8 , r 13 int 9 , r 13 int 10 , r 14 int 11 , r 14 int 12 , r 17 int 13 , r 17 int 14 . Based on MMCD, the fault detection matrix  D 1  for  R int  can be obtained, as shown in Figure 17a. The first seven columns reflect the faults, the final column represents the diagnosability limit ( σ ), and the rows of  D 1  represent the residuals. For example,  D 1 r 1 int 1 , f 1 = 0.0064  represents the diagnosability of  r 1 int 1  for  f 1 , and  D 1 r 1 int 1 , σ = 0.00352  represents the diagnosability limit of  r 1 int 1 . As  D 1 r 1 int 1 , σ > D 1 r 1 int 1 , f 1 r 1 int 1  cannot diagnose  f 1 . Further, as  D 1 r 1 int 1 , f 3 > D 1 r 1 int 1 , f 5 > D 1 r 1 int 1 , f 6 > D 1 r 1 int 1 , f 4 > D 1 r 1 int 1 , σ > D 1 r 1 int 1 , f 7 > D 1 r 1 int 1 , f 2 > D 1 r 1 int 1 , f 1 r 1 int 1  can diagnose  f 3 , f 4 , f 5 , f 6 . The sensitivity of  r 1 int 1  to the faults is  f 3 > f 5 > f 6 > f 4 . From a qualitative point of view,  r 1 int 1  cannot diagnose fault  f 4 . However, a coupling relationship exists between the states. When a fault occurs in one state, it affects the changes in other states because the fault is transmissible. Therefore, from a quantitative point of view,  r 1 int 1  can diagnose  f 4 . This also reflects the advantage of quantitative assessment.
As shown in Figure 17a, comparing the fault diagnostic values of the residuals of the same MSO design, it can be found that the diagnosability is the same for the integrally causal residuals based on  M S O 1 , M S O 3 , M S O 8 , M S O 17 . However, the diagnosability of the integrally causal residuals based on  M S O 6 , M S O 13 , M S O 14  designs is different. For comparative analysis, the mixed causal residual  R 1 m i x = r 1 m i x 1 , r 1 m i x 2 , r 1 m i x 3 , r 1 m i x 4 , r 1 m i x 5  is designed based on  M S O 1 . The differentially causal residual  R 7 d e r = r 7 d e r 1 , r 7 d e r 2 , r 7 d e r 3  and the mixed causal residual  R 7 m i x = r 7 m i x 1 , r 7 m i x 2 , r 7 m i x 3 , r 7 m i x 4 , r 7 m i x 5 , r 7 m i x 6  are designed based on  M S O 7 . The fault diagnosis matrix  D 2  for residual  R 1 mi x , R 7 d e r , R 7 m i x  is shown in Figure 17b. The comparative analysis reveals that the fault diagnosis capabilities of  R 1 m i x R 7 d e r , and  R 7 m i x  are different. Therefore, most of the fault diagnosis capabilities in the same causal residuals based on the same MSO design are inconsistent.
To further verify the effect of causality on diagnosability, here, based on  M S O 1 e 6 e 8 , and  e 10  are selected as redundant equations, and the differential causal residuals  r 1 d e r , the mixed causal residuals  r 1 m i x , and the integral causal residuals  r 1 int  are sequentially designed. The fault diagnostic capability matrix  D 3  of  r 1 d e r , r 1 m i x , r 1 int  is shown in Figure 17c. As  D 3 r 1 int , f 3 D 3 r 1 int , σ > D 3 r 1 m i x , f 3 D 3 r 1 m i x , σ > D 3 r 1 d e r , f 3 D 3 r 1 d e r , σ , the fault diagnosis capability of  r 1 int  is more potent than that of  r 1 d e r  and  r 1 m i x . Therefore, the influence of causality must be taken into account in the design of the diagnostic system.
When  R 1 = r 1 int 1 , r 1 int 2 , r 3 int 3 , r 3 int 4  in Figure 17a is selected as the diagnostic system, the fault diagnosis matrix  D 4  of  R 1  is displayed in Figure 17d. Here, the detectability limit  σ D 1 = 0.0555 , and the isolability limit  σ I 1 = 0 . As  D 4 f 4 , N F > D 4 f 5 , N F > D 4 f 3 , N F > D 4 f 6 , N F > D 4 f 7 , N F > D 4 f 2 , N F > σ D 1 > D 4 f 1 , N F R 1  can diagnose all faults except  f 1 , which is consistent with the sensitivity of  M S O 1  and  M S O 3  to faults, as shown in Figure 12a. The fault detection rate of  R 1  is  F D R 7 = 85.71 % . As fault diagnosis is a prerequisite for fault isolation,  D 4 f 1 , > σ I 1  and  D 4 , f 1 > σ I 1  are meaningless. As  D 4 f i , f j > σ I 1 i j , and  i , j = 2 , , 7 , the fault isolation rate of  R 1  is  F I R 7 = 71.43 % . As shown in Figure 11a, from a qualitative assessment point of view,  R 1  does not guarantee that the faults  f 2 , f 4 , f 7  are isolated from each other or that the faults  f 3 , f 6  are isolated from each other. However, from the perspective of quantitative assessment, the faults in  f 3 , f 6  and  f 2 , f 4 , f 7  are isolated from each other. As shown in Figure 16, the sensitivity of the same residuals to different faults and the degree of jump of different residuals when the same fault occurs are different. Based on MMCD, this difference can be quantitatively characterized, which is not possible with qualitative assessment.

3.4. Diagnosability Optimization Design Based on the GWO Algorithm

To fully consider the causal diagnosability difference of the residuals of the same MSO design, it is necessary to determine the residuals with the most considerable diagnosability ability in the residual set of the same MSO design based on MMCD before optimization of the diagnosability design. First, based on each  M S O i = e j  in  M S O s = M S O 1 , M S O 2 , , M S O 17 , take any one of the equations  e j  design residuals  R i = r i j  in turn. Second, based on MMCD, calculate the fault detection matrix  D i  of  R i . Then, calculate the fault diagnostic capability  D r i j = d r i j  of the residual  R i = r i j .
d r i j = k = 1 7 ε D i r i j , f k σ r i j
Here,
ε α = α ,   i f   α > 0 0 ,   o t h e r w i s e
Then, the residual  r i  corresponding to the maximum value  max D r i j  in  D r i j  is found. Finally, the set of candidate residuals is obtained as  R c o n = r 1 , r 2 , , r 17 . The causality of  R c o n  and the selected redundancy equations are shown in Figure 18a, and Figure 18b displays its fault diagnosis performance matrix  D 6 . The matrix  D 5 , as shown in Figure 18a, has rows representing each MSO and columns representing causality. For example,  D 5 M S O 1 , int = e 10  indicates that when  M S O 1  chooses  e 10  as the redundant equation, the diagnostic performance of the designed residual is maximized, and the residual is integrally causal. Here, the optimal residuals are mixed causal except for the optimal residuals of  M S O 1 , which are integrally causal.
To fulfill the diagnosability and the cost of the diagnostic system, this paper uses the diagnosability optimization design strategy based on the GWO algorithm and selects the residual set  R  of  R c o n  with the best comprehensive performance. For comparison and evaluation, this study employs the simulated annealing (SA), genetic (GA), and sine-cosine (SCA) algorithms for analysis. Let  γ i = 1 , and the diagnosability optimization results are illustrated in Figure 19.
Figure 19a shows the fitness curves of each algorithm. The GWO algorithm achieves the optimal value in the second iteration, which is advantageous in terms of the optimization searching speed compared with other algorithms. In terms of optimization accuracy, both the GWO algorithm and the SCA achieved the optimal value. Figure 19b,c show the FSM and FIM of the MSO corresponding to the optimized residuals. Combined with Figure 18a, it can be observed that the GWO algorithm optimizes the  M S O 1 , M S O 2 , M S O 7 , M S O 9 , M S O 14  to design the residuals  R = r 1 , r 2 , r 7 , r 9 , r 14 , and all the residuals are mixed causal except for  r 1 , which is integrally causal. From a qualitative assessment point of view, based on Figure 19b,  F D R 8 = 100 %  can be obtained. Based on Figure 19c,  F I R 8 = 85.71 %  can be obtained.
Using MMCD, the quantitative assessment matrix  D 7  of  r 1 , r 2 , r 7 , r 9 , r 14  can be obtained as shown in Figure 19d, where the detectability limit  σ D 2 = 0.1891  and the isolation limit  σ I 1 = 0.0428 . Based on  D 7  and Equation (27), its fault diagnosis matrix  D 8  is established as shown in Figure 19e. Therefore, from the perspective of quantitative assessment,  F D R 9 = 100 %  and  F I R 9 = 100 % > F I R 8  can be obtained. Comparing Figure 19e with Figure 19c, it is observed that  f 2 , f 4 , f 7  are not isolated from each other in the qualitative assessment. However, in the quantitative assessment, they can indeed be isolated. This is mainly due to the fact that the residuals are not sensitive to the faults. From the causality of the optimized residuals, it can be seen that mixed causality accounts for 80% of the residuals, which further reflects the advantage of mixed causality. From the results of the quantitative optimization, the overall cost of optimization is reduced by 70.59%, and the system achieves a 100% fault detection rate and fault isolation rate. This further demonstrates the advantages of the quantitative assessment.

4. Summary

To improve UAV reliability and diagnosability, this study suggested a causal diagnosability optimization design approach based on the MMCD and GWO algorithms. First, this study offers a qualitative approach to causal diagnosability evaluation based on structural analysis; second, to measure the ease of fault diagnosis, it presents a quantitative approach to causal diagnosability evaluation using the MMCD; and third, to balance the need for diagnosability and the cost of diagnostic system design, it suggests a design strategy to maximize causal diagnosability using the GWO algorithm. According to simulation findings, the enhanced diagnostic system maintains 100% fault isolation and detection rates while reducing design costs by 70.59%.
Furthermore, the findings of the causal diagnosability evaluation indicate that, first, the diagnosability varies depending on the causality. Under mixed causal constraints, diagnosability performs the best among them. Second, different evaluation techniques have various diagnoses. This is mostly because faults and residuals have different sensitivity levels, and the quantitative evaluation successfully captures and quantifies these sensitivity variations. This explains why the quantitative assessment isolates flaws that the qualitative review cannot identify.
Future studies might examine how interference and noise affect diagnosability. Furthermore, optimizing the diagnosability of the structurally precise and poorly defined subsystems is possible.

Author Contributions

Conceptualization, X.G. and X.S.; formal analysis, X.G. and X.S.; investigation, X.G. and X.S.; writing—original draft preparation, X.G. and X.S.; writing—review and editing, X.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Mohsan, S.A.H.; Khan, M.A.; Noor, F.; Ullah, I.; Alsharif, M.H. Towards the Unmanned Aerial Vehicles (UAVs): A Comprehensive Review. Drones 2022, 6, 147. [Google Scholar] [CrossRef]
  2. del Cerro, J.; Cruz Ulloa, C.; Barrientos, A.; de León Rivas, J. Unmanned Aerial Vehicles in Agriculture: A Survey. Agronomy 2021, 11, 203. [Google Scholar] [CrossRef]
  3. Ghamari, M.; Rangel, P.; Mehrubeoglu, M.; Tewolde, G.S.; Sherratt, R.S. Unmanned Aerial Vehicle Communications for Civil Applications: A Review. IEEE Access 2022, 10, 102492–102531. [Google Scholar] [CrossRef]
  4. Zuo, Z.; Liu, C.; Han, Q.-L.; Song, J. Unmanned Aerial Vehicles: Control Methods and Future Challenges. IEEE/CAA J. Autom. Sin. 2022, 9, 601–614. [Google Scholar] [CrossRef]
  5. Gu, X.; Shi, X. A review of research on diagnosability of control systems. Energy Rep. 2024, 11, 2174–2188. [Google Scholar] [CrossRef]
  6. Fourlas, G.K.; Karras, G.C. A Survey on Fault Diagnosis Methods for UAVs. In Proceedings of the 2021 International Conference on Unmanned Aircraft Systems (ICUAS), Athens, Greece, 15–18 June 2021; pp. 394–403. [Google Scholar] [CrossRef]
  7. Fourlas, G.K.; Karras, G.C. A Survey on Fault Diagnosis and Fault-Tolerant Control Methods for Unmanned Aerial Vehicles. Machines 2021, 9, 197. [Google Scholar] [CrossRef]
  8. Iannace, G.; Ciaburro, G.; Trematerra, A. Fault Diagnosis for UAV Blades Using Artificial Neural Network. Robotics 2019, 8, 59. [Google Scholar] [CrossRef]
  9. Liang, S.; Zhang, S.; Huang, Y.; Zheng, X.; Cheng, J.; Wu, S. Data-driven fault diagnosis of FW-UAVs with consideration of multiple operation conditions. ISA Trans. 2022, 126, 472–485. [Google Scholar] [CrossRef]
  10. Zhang, Y.; Li, S.; Zhang, A.; An, X. FW-UAV fault diagnosis based on knowledge complementary network under small sample. Mech. Syst. Signal Process. 2024, 215, 111418. [Google Scholar] [CrossRef]
  11. Hua, L.; Zhang, J.; Li, D.; Xi, X.; Shah, M.A. Sensor Fault Diagnosis and Fault Tolerant Control of Quadrotor UAV Based on Genetic Algorithm. J. Sens. 2022, 2022, 8626722. [Google Scholar] [CrossRef]
  12. Gu, X.; Shi, X. A Review of Research on Diagnosability of Control Systems Based on Structural Analysis. Appl. Sci. 2023, 13, 12241. [Google Scholar] [CrossRef]
  13. Chen, Z.; Xu, J.; Peng, T.; Yang, C. Graph Convolutional Network-Based Method for Fault Diagnosis Using a Hybrid of Measurement and Prior Knowledge. IEEE Trans. Cybern. 2022, 52, 9157–9169. [Google Scholar] [CrossRef] [PubMed]
  14. Cheng, Y.; D’Arpino, M.; Rizzoni, G. Fault Diagnosis in Lithium-ion Battery of Hybrid Electric Aircraft based on Structural Analysis. In Proceedings of the 2022 IEEE Transportation Electrification Conference & Expo (ITEC), Anaheim, CA, USA, 15–17 June 2022; pp. 997–1004. [Google Scholar] [CrossRef]
  15. Li, X.; Xu, J.; Chen, Z.; Xu, S.; Liu, K. Real-Time Fault Diagnosis of Pulse Rectifier in Traction System Based on Structural Model. IEEE Trans. Intell. Transp. Syst. 2022, 23, 2130–2143. [Google Scholar] [CrossRef]
  16. Yin, C.; He, Z.; Wang, J.; Zhou, H. A method for fault diagnosability evaluation of spacecraft control system. In Proceedings of the 2016 Joint International Information Technology, Mechanical and Electronic Engineering, Xi’an, China, 4–5 October 2016; Xu, B., Chen, Y.N., Zhao, L.H., Eds.; Atlantis Press: Paris, France, 2016; Volume 59, pp. 611–614. [Google Scholar]
  17. Cui, Y.; Shi, J.; Wang, Z. System-level operational diagnosability analysis in quasi real-time fault diagnosis: The probabilistic approach. J. Process Control 2014, 24, 1444–1453. [Google Scholar] [CrossRef]
  18. Cheng, Y.; Liu, Y.; Yang, S.; Wu, J. Multi-sensor optimal placement of rotor-bearing system based on fault diagnosability. Proc. Inst. Mech. Eng. Part C J. Mech. Eng. Sci. 2023, 237, 1510–1521. [Google Scholar] [CrossRef]
  19. Reppa, V.; Timotheou, S.; Polycarpou, M.M.; Panayiotou, C. Performance Index for Optimizing Sensor Fault Detection of a Class of Nonlinear Systems. IFAC-PapersOnLine 2018, 51, 1387–1394. [Google Scholar] [CrossRef]
  20. Fu, F.; Xue, T.; Wu, Z.; Wang, D. A Fault Diagnosability Evaluation Method for Dynamic Systems Without Distribution Knowledge. IEEE Trans. Cybern. 2022, 52, 5113–5123. [Google Scholar] [CrossRef]
  21. Wang, Z.; Tang, Z.; Chen, F. Quantitative Evaluation of Sensor Fault Diagnosability of F-16 High Maneuvering Fighter. In Proceedings of the 2022 IEEE 5th International Conference on Automation, Electronics and Electrical Engineering (AUTEEE), Shenyang, China, 18–20 November 2022; pp. 102–108. [Google Scholar] [CrossRef]
  22. Liu, Q.; Wang, Z.; Zhang, J.; Zhou, D. Necessary and Sufficient Conditions for Fault Diagnosability of Linear Open- and Closed-Loop Stochastic Systems Under Sensor and Actuator Faults. IEEE Trans. Autom. Control 2022, 67, 4178–4185. [Google Scholar] [CrossRef]
  23. Qu, R.; Jiang, B.; Cheng, Y. Research on the Diagnosability of a Satellite Attitude Determination System on a Fault Information Manifold. Appl. Sci. 2022, 12, 12835. [Google Scholar] [CrossRef]
  24. Stiefelmaier, J.; Gienger, A.; Böhm, M.; Sawodny, O.; Tarín, C. A Bayesian Approach to Fault Diagnosability Analysis in Adaptive Structures. IFAC-PapersOnLine 2022, 55, 347–352. [Google Scholar] [CrossRef]
  25. Zhang, W.; Zhang, X.; Lan, L.; Luo, Z. Maximum Mean and Covariance Discrepancy for Unsupervised Domain Adaptation. Neural Process Lett. 2020, 51, 347–366. [Google Scholar] [CrossRef]
  26. Yang, C.; Jia, M.; Li, Z.; Gabbouj, M. Enhanced hierarchical symbolic dynamic entropy and maximum mean and covariance discrepancy-based transfer joint matching with Welsh loss for intelligent cross-domain bearing health monitoring. Mech. Syst. Signal Process. 2022, 165, 108343. [Google Scholar] [CrossRef]
  27. Gu, X.; Shi, X. Diagnosability-optimization design of fixed-wing unmanned aerial vehicle based on causal matching and tree seed algorithm. Meas. Control 2024, 00202940241307629. [Google Scholar] [CrossRef]
  28. Katoch, S.; Chauhan, S.S.; Kumar, V. A review on genetic algorithm: Past, present, and future. Multimed. Tools Appl. 2021, 80, 8091–8126. [Google Scholar] [CrossRef]
  29. Cunha, M.; Marques, J. A New Multiobjective Simulated Annealing Algorithm—MOSA-GR: Application to the Optimal Design of Water Distribution Networks. Water Resour. Res. 2020, 56, e2019WR025852. [Google Scholar] [CrossRef]
  30. Li, W.; Yan, X.; Huang, Y. Cooperative-Guided Ant Colony Optimization with Knowledge Learning for Job Shop Scheduling Problem. Tsinghua Sci. Technol. 2024, 29, 1283–1299. [Google Scholar] [CrossRef]
  31. Gad, A.G. Particle Swarm Optimization Algorithm and Its Applications: A Systematic Review. Arch. Comput. Methods Eng. 2022, 29, 2531–2561. [Google Scholar] [CrossRef]
  32. Kaya, E.; Gorkemli, B.; Akay, B.; Karaboga, D. A review on the studies employing artificial bee colony algorithm to solve combinatorial optimization problems. Eng. Appl. Artif. Intell. 2022, 115, 105311. [Google Scholar] [CrossRef]
  33. Qiu, Y.; Yang, X.; Chen, S. An improved gray wolf optimization algorithm solving to functional optimization and engineering design problems. Sci. Rep. 2024, 14, 14190. [Google Scholar] [CrossRef]
  34. Pan, H.; Chen, S.; Xiong, H. A high-dimensional feature selection method based on modified Gray Wolf Optimization. Appl. Soft Comput. 2023, 135, 110031. [Google Scholar] [CrossRef]
  35. Wang, J.; Xu, Y.-P.; She, C.; Xu, P.; Bagal, H.A. Optimal parameter identification of SOFC model using modified gray wolf optimization algorithm. Energy 2022, 240, 122800. [Google Scholar] [CrossRef]
  36. Emary, E.; Zawbaa, H.M.; Grosan, C. Experienced Gray Wolf Optimization Through Reinforcement Learning and Neural Networks. IEEE Trans. Neural Netw. Learn. Syst. 2018, 29, 681–694. [Google Scholar] [CrossRef] [PubMed]
  37. Kumar, A.; Pant, S.; Ram, M. System Reliability Optimization Using Gray Wolf Optimizer Algorithm. Qual. Reliab. Eng. Int. 2017, 33, 1327–1335. [Google Scholar] [CrossRef]
  38. Dulmage, A.L.; Mendelsohn, N.S. Coverings of Bipartite Graphs. Can. J. Math. 1958, 10, 517–534. [Google Scholar] [CrossRef]
  39. Krysander, M.; Aslund, J.; Nyberg, M. An Efficient Algorithm for Finding Minimal Overconstrained Subsystems for Model-Based Diagnosis. IEEE Trans. Syst. Man Cybern. A 2008, 38, 197–206. [Google Scholar] [CrossRef]
  40. Gu, X.; Shi, X. Diagnosability-optimized design of unmanned aerial vehicles based on structural analysis and maximum mean covariance differences. Measurement 2024, 238, 115334. [Google Scholar] [CrossRef]
Figure 1. The logical lineage of the proposed strategy.
Figure 1. The logical lineage of the proposed strategy.
Mca 30 00055 g001
Figure 2. The structural model of  M 1 .
Figure 2. The structural model of  M 1 .
Mca 30 00055 g002
Figure 3. DM decomposition. (a) DM decomposition diagram. (b) DM decomposition of  M 1 .
Figure 3. DM decomposition. (a) DM decomposition diagram. (b) DM decomposition of  M 1 .
Mca 30 00055 g003
Figure 4. Differential causal residual  r 1 . (a) The computation flow of  r 1 . (b) Differential matching.
Figure 4. Differential causal residual  r 1 . (a) The computation flow of  r 1 . (b) Differential matching.
Mca 30 00055 g004
Figure 5. Differential causal residual  r 2 . (a) The computation flow of  r 2 . (b) Integral matching.
Figure 5. Differential causal residual  r 2 . (a) The computation flow of  r 2 . (b) Integral matching.
Mca 30 00055 g005
Figure 6. Causal relation of  M S O 2 . (a) Mixed causality. (b) Integral causality. (c) Differential causality.
Figure 6. Causal relation of  M S O 2 . (a) Mixed causality. (b) Integral causality. (c) Differential causality.
Mca 30 00055 g006
Figure 7. Fault signature matrix of  M 1 . (a) Integral causality. (b) Differential causality. (c) Mixed causality.
Figure 7. Fault signature matrix of  M 1 . (a) Integral causality. (b) Differential causality. (c) Mixed causality.
Mca 30 00055 g007
Figure 8. Fault isolability matrix of  M 1 . (a) Integral causality. (b) Differential causality. (c) Mixed causality.
Figure 8. Fault isolability matrix of  M 1 . (a) Integral causality. (b) Differential causality. (c) Mixed causality.
Mca 30 00055 g008
Figure 9. The structural analysis of  M U A V . (a) Structural model. (b) DM decomposition.
Figure 9. The structural analysis of  M U A V . (a) Structural model. (b) DM decomposition.
Mca 30 00055 g009
Figure 10. The MSOs and causality of  M U A V .
Figure 10. The MSOs and causality of  M U A V .
Mca 30 00055 g010
Figure 11. The causal matching relationships of  M S O 1 . (a) Differential causal matching. (b) Mixed causal matching. (c) Integral causal matching.
Figure 11. The causal matching relationships of  M S O 1 . (a) Differential causal matching. (b) Mixed causal matching. (c) Integral causal matching.
Mca 30 00055 g011
Figure 12. Diagnosability analysis results of  i n t M S O s . (a) Fault signature matrix. (b) Fault isolation matrix.
Figure 12. Diagnosability analysis results of  i n t M S O s . (a) Fault signature matrix. (b) Fault isolation matrix.
Mca 30 00055 g012
Figure 13. Diagnosability analysis results of  d e r M S O s . (a) Fault signature matrix. (b) Fault isolation matrix.
Figure 13. Diagnosability analysis results of  d e r M S O s . (a) Fault signature matrix. (b) Fault isolation matrix.
Mca 30 00055 g013
Figure 14. Diagnosability analysis results of  m i x M S O s . (a) Fault signature matrix. (b) Fault isolation matrix.
Figure 14. Diagnosability analysis results of  m i x M S O s . (a) Fault signature matrix. (b) Fault isolation matrix.
Mca 30 00055 g014
Figure 15. Simulation run results for  M U A V . (a) Normal operation. (b f 2  occurs.
Figure 15. Simulation run results for  M U A V . (a) Normal operation. (b f 2  occurs.
Mca 30 00055 g015
Figure 16. Diagnosability impact factor analysis. (a) Fault. (b) Causality. (c) MSO. (d) Residual.
Figure 16. Diagnosability impact factor analysis. (a) Fault. (b) Causality. (c) MSO. (d) Residual.
Mca 30 00055 g016
Figure 17. MMCD-based quantitative assessment of diagnosability. (a) Integral causality. (b) Differential and mixed causation. (c) Causal comparison. (d) Diagnosability quantitative assessment.
Figure 17. MMCD-based quantitative assessment of diagnosability. (a) Integral causality. (b) Differential and mixed causation. (c) Causal comparison. (d) Diagnosability quantitative assessment.
Mca 30 00055 g017aMca 30 00055 g017b
Figure 18. Causal diagnosability of  R c o n . (a) Causality. (b) Fault diagnosis matrix of  R c o n .
Figure 18. Causal diagnosability of  R c o n . (a) Causality. (b) Fault diagnosis matrix of  R c o n .
Mca 30 00055 g018
Figure 19. Diagnosability optimization results based on the GWO algorithm. (a) Fitness curves. (b) Fault signature matrix. (c) Fault isolation matrix. (d) Diagnosability quantitative assessment matrix. (e) Fault diagnosis matrix.
Figure 19. Diagnosability optimization results based on the GWO algorithm. (a) Fitness curves. (b) Fault signature matrix. (c) Fault isolation matrix. (d) Diagnosability quantitative assessment matrix. (e) Fault diagnosis matrix.
Mca 30 00055 g019
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

Gu, X.; Shi, X. Causal Diagnosability Optimization Design for UAVs Based on Maximum Mean Covariance Difference and the Gray Wolf Optimization Algorithm. Math. Comput. Appl. 2025, 30, 55. https://doi.org/10.3390/mca30030055

AMA Style

Gu X, Shi X. Causal Diagnosability Optimization Design for UAVs Based on Maximum Mean Covariance Difference and the Gray Wolf Optimization Algorithm. Mathematical and Computational Applications. 2025; 30(3):55. https://doi.org/10.3390/mca30030055

Chicago/Turabian Style

Gu, Xuping, and Xianjun Shi. 2025. "Causal Diagnosability Optimization Design for UAVs Based on Maximum Mean Covariance Difference and the Gray Wolf Optimization Algorithm" Mathematical and Computational Applications 30, no. 3: 55. https://doi.org/10.3390/mca30030055

APA Style

Gu, X., & Shi, X. (2025). Causal Diagnosability Optimization Design for UAVs Based on Maximum Mean Covariance Difference and the Gray Wolf Optimization Algorithm. Mathematical and Computational Applications, 30(3), 55. https://doi.org/10.3390/mca30030055

Article Metrics

Back to TopTop