Optimal fault-tolerant control method and system for output feedback of modular robot with multi-sensor failure
By introducing low-pass filters and neural networks, the mapping relationship between sensor faults and actuator faults is established, dynamic information is identified online, and an augmented system is constructed to solve the HJB equation, which solves the difficulty of sensor fault-tolerant control in modular robots. Achieving fast response and efficient fault tolerance.
Patent Information
- Application Number
- CN202410566263.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-05-09
AI Technical Summary
As the number of reconstructed modules increases in modular robots, dynamic programming methods are difficult to effectively solve the HJB equation, resulting in difficulty in sensor fault-tolerant control.
A low-pass filter is introduced to establish the mapping relationship between sensor faults and actuator faults, and the neural network is used to identify dynamic information online to construct an augmented system and design the optimal control law. The adaptive judgment neural network with collaborative update weights is used to solve the HJB partial differential. equation to achieve approximately optimal fault-tolerant control.
It improves the rapid response of fault observation, reduces fault tolerance time, realizes effective fault tolerance control of various types of sensor faults, reduces design costs, and improves the stability and intelligence of the system.
Smart Images

Figure CN118288291B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of robot fault-tolerant control, and in particular to an optimal fault-tolerant control method and system for output feedback of a modular robot with multi-sensor faults. Background Art
[0002] Modular robots are a new type of robot that is highly adaptable and flexible. The structure of the robot can be decomposed into multiple independent modules, each of which has specific functions and tasks. These modules can be combined and disassembled according to the requirements of different tasks, thus achieving rapid customization and flexible configuration.
[0003] Sensors are an indispensable component in modular robot systems and are also the most prone to failure. When a sensor fails, directly observing it may not be able to obtain its true state value, which may cause the sensor to output an erroneous signal that misleads the control system, and may even cause serious consequences to the system more easily than actuator failure or other failures. Therefore, it is urgent to develop fault-tolerant control strategies to ensure the reliability and safety of modular robot systems with sensor failures. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention provides an optimal fault-tolerant control method and system for output feedback of a modular robot with multi-sensor failures, which solves the technical problem that as the number of reconstructed modules in the modular robot increases, the dynamic programming method will cause the "curse of dimensionality", making it more difficult to solve the HJB equation.
[0005] To solve the above technical problems, the present invention provides the following technical solutions: an optimal fault-tolerant control method for output feedback of a modular robot with multi-sensor failures, the method comprising the following steps:
[0006] S1. Introduce a low-pass filter to establish a mapping relationship between sensor failure and actuator failure, and construct a fusion robot system state and low-pass filter output based on the mapping relationship The augmented system is used to characterize the sensor failure f in the robot system. s ;
[0007] S2. Establish dynamic information for online identification of the robot system based on the input / output data of the neural network and the robot system Faulty sensor s Joint output fault observer;
[0008] S3, according to the tracking error e r , reference trajectory and low pass filter output An augmented tracking system is constructed to realize tracking control combined with an output-type fault observer to identify sensor faults online. s ;
[0009] S4, design includes sensor failure s Estimated value of Cost function with discount factor α And according to the cost function The optimal control law u is used to characterize the augmented tracking system. * HJB partial differential equation;
[0010] S5. Using the adaptive judgment neural network with coordinated weight update to solve the HJB partial differential equation, we can obtain the approximate optimal fault-tolerant control law.
[0011] S6. Approximate optimal fault-tolerant control law It is applied in robotic systems to achieve optimal fault-tolerant control of the output feedback of modular robots.
[0012] Furthermore, in step S1, the specific process includes the following steps:
[0013] S11. Determine the state space equation containing the state of the robot system based on the dynamic model of the modular robot system, namely:
[0014]
[0015] In the formula, x(t) and y(t) are the state and output of the robot system respectively; is the time derivative of x(t); f s (t) is the sensor fault; g(x(t)) is the control coefficient matrix of the robot system; u(t) is the control input of the robot system; and denote the identity matrix and the zero matrix with appropriate dimensions respectively; represents a nonlinear function;
[0016] S12. Determine the unified representation of sensor failure according to the sensor failure type and determine the low-pass filter output Right now:
[0017]
[0018] In the above formula, a(t) represents drift fault and deviation fault; b represents stuck fault; κ represents sensor effectiveness factor; represents the identity matrix with appropriate dimensions;
[0019] S13, converting the sensor fault into a "pseudo" actuator fault for observation and establishing a mapping relationship;
[0020] S14. Define the state of the augmented system as And the augmented system is constructed according to the mapping relationship. The mathematical model of the augmented system is as follows:
[0021]
[0022] In the formula,
[0023]
[0024] In the above formula, is the time derivative of η(t); is the output of the augmented system; f s (t) is sensor failure.
[0025] Furthermore, in step S2, the specific process includes the following steps:
[0026] S21, using a single hidden layer neural network Solving the control system matrix of the robot system Among them, the control system matrix Through the neural network The partial derivative about u is:
[0027]
[0028] in,
[0029]
[0030] In the above formula, represents the weight vector; represents the activation function, l s Represents the number of neurons in the hidden layer; ε F is the neural network approximation error; is the weight vector An estimated value of
[0031] S22, based on the control coefficient matrix The output observer of the robot system in a fault-free state is established. The expression of the output observer is:
[0032]
[0033] In the above formula, is the state vector of the observer; is the output of the observer; is the positive definite observer gain matrix; is the reconstruction error of the robot system; P F is a matrix; is the adaptive robust term;
[0034] S23. Calculate the reconstruction error of the robot system And determine the neural network The weight update condition of ;
[0035] S24, based on reconstruction error The augmented system is reconstructed based on the weight update condition, and a joint output fault observer is constructed based on the output observer.
[0036] Furthermore, in step S23, the reconstruction error The calculation formula is:
[0037]
[0038] in,
[0039]
[0040]
[0041]
[0042] In the formula, for The upper bound of is a higher-order infinitesimal term;
[0043] The weight update condition of the neural network is:
[0044]
[0045] In the above formula, γ F is the learning rate of the observer.
[0046] Further, in step S24, the reconstructed augmented system is:
[0047]
[0048] In the formula, is the state of the robot system after reconstruction;
[0049] The joint output type fault observer is as follows:
[0050]
[0051] In the above formula, is the observer gain matrix; Is the sensor fault sThe estimated value of .
[0052] Furthermore, in step S3, the expression of the augmented tracking system is:
[0053]
[0054] In the formula,
[0055]
[0056] In the above formula, represents a matrix with appropriate dimensions that stabilizes the system; g(e r +x d ) represents the control coefficient matrix after the tracking state transformation; Represents the nonlinear term after tracking state transformation; Expressed as a differential function; is η a The time derivative of (t); y a To augment the output of the tracking system; represents the identity matrix with appropriate dimensions; represents a zero matrix of appropriate dimension.
[0057] Furthermore, in step S4, the specific process includes the following steps:
[0058] S41. Define the nominal augmented tracking system based on the augmented system in the fault-free state and design the cost function Cost Function for:
[0059]
[0060] in,
[0061]
[0062]
[0063] In the above formula, and All represent positive definite symmetric matrices with appropriate dimensions; α represents the discount factor; is the fault estimation value of the combined output sensor; e -α(τ-t) represents the exponential term containing the discount factor; u(τ) and are u and The form under the integral variable; η a (t) to augment the status of the tracking system; T is the transpose operation of the vector;
[0064] S42. According to the cost function Solving for the optimal cost function And the optimal control law u * , where the optimal cost function for:
[0065]
[0066] Optimal control law u * for:
[0067]
[0068] S43. Based on the optimal cost function And the optimal control law u * Determine the HJB partial differential equation. The expression of the HJB partial differential equation is:
[0069]
[0070] and
[0071] In the above formula, η a (t) and η a Equivalence; is the optimal cost function About η a The partial derivative of For the matrix The inverse of is the unique solution of the HJB partial differential equation; u * is the optimal control law.
[0072] Further, in step S5, the approximate optimal fault-tolerant control law The calculation formula is:
[0073]
[0074] in,
[0075] In the above formula, The ideal weight An estimated value of is the activation function θ c (η a ) About η a The partial derivative of is g(e r +x d ) is an estimated value.
[0076] The technical solution also provides a modular robot output feedback optimal fault-tolerant control system, which applies the approximate optimal fault-tolerant control law to the robot system to form an output feedback optimal fault-tolerant control system, which includes:
[0077] A fault mapping module, wherein the fault mapping module uses a low-pass filter to establish a mapping relationship between a sensor fault and an actuator fault, and constructs an augmented system that integrates a robot system state and an output of the low-pass filter according to the mapping relationship;
[0078] A joint output observer module, wherein the joint output observer module establishes a joint output fault observer for online identification of dynamic information and sensor faults of the robot system according to the input / output data of the neural network and the robot system;
[0079] An augmented tracking system module, wherein the augmented tracking system module constructs an augmented tracking system according to the tracking error, the reference trajectory and the low-pass filter output, and designs a cost function that explicitly includes a fault estimate and a discount factor;
[0080] The evaluation network module uses an adaptive evaluation neural network that collaboratively updates weights to solve the HJB partial differential equation to obtain an approximate optimal fault-tolerant control law; finally, the obtained approximate optimal fault-tolerant control law is applied to a modular robot system to form an output feedback optimal fault-tolerant control system.
[0081] By means of the above technical solution, the present invention provides a method and system for optimal fault-tolerant control of modular robot output feedback with multi-sensor failures, which has at least the following beneficial effects:
[0082] 1. The method proposed in the present invention is suitable for solving the fault-tolerant control problem of various types of sensor fault systems, can achieve satisfactory fault-tolerant control effects, meet application requirements, and reduce design costs.
[0083] 2. The present invention introduces the fault observation error and its differential variable to jointly constitute a joint output type fault observer with an adaptive update law for online regulation, thereby improving the rapid responsiveness of fault observation and reducing the fault tolerance time.
[0084] 3. The evaluation neural network adopted in the present invention is simple in design, intelligent and adaptive. The stability of the weight error of the evaluation neural network is improved from consistent and ultimately bounded to asymptotically stable over a large range, which can achieve satisfactory fault-tolerant control effects and meet application requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0086] Figure 1 The schematic diagram of the optimal fault-tolerant control method for output feedback of a modular robot of the present invention;
[0087] Figure 2 The software program flow chart of the modular robot output feedback optimal fault-tolerant control system of the present invention. DETAILED DESCRIPTION
[0088] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods, so that the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0089] Modular robots are a new type of robot with high adaptability and flexibility. The structure of the robot can be decomposed into multiple independent modules, each of which has specific functions and tasks. These modules can be combined and disassembled according to the requirements of different tasks, so as to achieve rapid customization and flexible configuration. The concept of modular robots originated from the thinking about the limitations of traditional robots, aiming to break through the limitations of their single function and difficulty in adapting to the requirements of diversified tasks. In practical applications, modular robots involve a wide range of fields, including industrial production, medical and health care, military defense, and exploration science. They play an important role in these fields and provide flexible and effective solutions for various tasks.
[0090] Sensors are an indispensable component in modular robot systems and are also the most prone to failure. When a sensor fails, directly observing it may not be able to obtain its true state value, which may cause the sensor to output an erroneous signal that misleads the control system, and may even cause serious consequences to the system more easily than actuator failure or other failures. Therefore, it is urgent to develop fault-tolerant control strategies to ensure the reliability and safety of modular robot systems with sensor failures.
[0091] Furthermore, from the perspective of optimizing system energy consumption, taking into account the stability and optimality of the fault system, studying the optimal fault-tolerant control method of modular robots with system optimization capabilities is also an important problem that needs to be solved urgently. However, for strongly nonlinear systems such as modular robots, the dynamic programming method is one of the classic methods to solve the optimal control problem. Generally speaking, this method requires an accurate system model and obtains the optimal control of the system by solving the Hamilton-Jacobi-Bellman (HJB) equation. At the same time, as the number of reconfigurable modules in the modular robot increases, the dynamic programming method will cause the "curse of dimensionality" problem, making it more difficult to solve the HJB equation. Therefore, the adaptive dynamic programming method that combines neural networks, dynamic programming and reinforcement learning has become an effective solution.
[0092] In summary, for modular robot systems with sensor failures, it is necessary to develop an output feedback optimal fault-tolerant control scheme to solve the problem of multiple sensor failure types, considering the situation of multiple sensor failures in the system, including position sensors, speed sensors, and concurrent failures of the two.
[0093] Based on the technical problems existing in the above-mentioned prior art, please refer to Figure 1-Figure 2 This embodiment proposes an optimal fault-tolerant control method for output feedback of a modular robot with multi-sensor faults. This embodiment introduces a joint output fault observer that is adjusted online by an adaptive update law, which improves the rapid responsiveness of fault observation and reduces the fault-tolerant time. At the same time, the judgment neural network used is simple in design, intelligent and adaptive. The stability of the weight error of the judgment neural network is improved from uniformly ultimately bounded to asymptotically stable over a large range, which can achieve a satisfactory fault-tolerant control effect and meet application requirements. The method comprises the following steps:
[0094] S1. Introduce a low-pass filter to establish a mapping relationship between sensor failure and actuator failure, and construct a fusion robot system state and low-pass filter output based on the mapping relationship The augmented system is used to characterize the sensor failure f in the robot system. s In this embodiment, a low-pass filter is introduced and the output signal of the low-pass filter is used to replace the sensor signal, thereby converting the sensor fault into a "pseudo" actuator fault, thereby establishing a mapping relationship between the sensor fault and the actuator fault. The specific process includes the following steps:
[0095] S11, determining a state space equation containing the state of the robot system based on a dynamic model of the modular robot system;
[0096] In this embodiment, the dynamic model of the n-DOF modular robot system is:
[0097]
[0098] In the formula, is the joint displacement vector; is the inertia matrix; are the Coriolis force and centrifugal force terms; is the gravity term; is the joint control torque; are the velocity and acceleration vectors of the joints, respectively.
[0099] The input of the robot system When a sensor failure occurs in the robot system, it can be expressed in the form of the following state space equation according to the dynamic model:
[0100]
[0101] and,
[0102]
[0103]
[0104] Where f(x i ) and g(x i ) is the state representation of the robot system. In order to facilitate the design of the output observer later, equation (2) is transformed into:
[0105]
[0106] In the formula, x 1 (t) and x 2 (t) are the state vectors of the robot system; The state vector x is 1 (t) and x 2 The time derivative of (t); is the time derivative of the state vector x(t); x(t) and y(t) are the state and output of the robot system respectively; f s (t) is the sensor fault; g(x(t)) is the control coefficient matrix of the robot system; u(t) is the control input of the robot system; and denote the identity matrix and the zero matrix with appropriate dimensions respectively; Represents a nonlinear function.
[0107] S12. Determine the unified representation of sensor failure according to the sensor failure type and determine the low-pass filter output Considering the various types of faults that may occur in sensors, including stuck faults, deviation faults, drift faults, and gain faults, their fault models are as follows:
[0108]
[0109] The above four types of faults are uniformly characterized as follows:
[0110]
[0111] Where a(t) represents drift fault and deviation fault; b represents stuck fault; κ represents sensor effectiveness factor; represents the identity matrix with appropriate dimensions.
[0112] S13, converting the sensor fault into a "pseudo" actuator fault for observation and establishing a mapping relationship; In order to accurately measure the sensor fault, establish a mapping relationship between the sensor fault and the actuator fault, convert the sensor fault into a "pseudo" actuator fault for observation, and introduce a first-order low-pass filter as follows:
[0113]
[0114] In the formula, is the output of the low-pass filter; represents a matrix with appropriate dimensions that stabilizes the system; x s is the state vector of the low-pass filter; y is the output of the robot system, that is, the output of equation (2), which is equivalent to y(t).
[0115] S14. Define the state of the augmented system as And build an augmented system according to the mapping relationship; based on equations (3) and (6), define the state of the augmented system as So we get the apparent sensor fault f s The augmented system, the mathematical model of the augmented system is as follows:
[0116]
[0117] In the formula,
[0118]
[0119] In the above formula, is the time derivative of η(t); is the output of the augmented system; f s (t) is sensor failure.
[0120] This embodiment introduces a low-pass filter, establishes a mapping relationship between sensor failure and actuator failure, converts the sensor failure into a "pseudo" actuator failure, and constructs an augmented system that integrates the robot system state and the low-pass filter output. This solves the problem that when a sensor fails, its true state value cannot be directly observed, thereby improving the applicability of the present invention.
[0121] S2. Establish dynamic information for online identification of the robot system based on the input / output data of the neural network and the robot system Faulty sensor s A joint output fault observer; in step S2, the specific process includes the following steps:
[0122] S21, using a single hidden layer neural network Solving the control system matrix of the robot system In order to reduce the design cost, in this embodiment, a single hidden layer neural network is used to establish an output observer to reconstruct the dynamic model of the robot system and obtain the control system matrix First, let It can be expressed in the form of neural network as:
[0123]
[0124] Where, F(x(t),u(t)) is a nonlinear composite term; represents the weight vector; represents the activation function, l s Represents the number of neurons in the hidden layer; ε F is the neural network approximation error.
[0125] definition is the weight vector The estimated value of is:
[0126]
[0127] In the formula, Furthermore, the control coefficient matrix Through The partial derivative about u is:
[0128]
[0129] S22, based on the control coefficient matrix Establish the output observer of the robot system in the fault-free state; obtain the control coefficient matrix Then, for the fault-free robot system, that is, formula (3) (sensor fault f s=0), based on formula (9), the output observer is established as:
[0130]
[0131] In the formula, is the state vector of the observer; is the output of the observer; is the positive definite observer gain matrix; is the reconstruction error of the robot system; P F is a matrix; is an adaptive robust term and satisfies the following update conditions:
[0132]
[0133] In the formula, the learning rate is a positive constant, P F It can be obtained by the following Lyapunov equation, namely:
[0134]
[0135] In the formula, is a positive definite symmetric matrix.
[0136] S23. Calculate the reconstruction error of the robot system And determine the neural network The weight update condition of ; Combining equations (3) and (11), we can get the reconstruction error of the robot system for:
[0137]
[0138] In order to reduce the conservatism of the output observer, the activation function θ in the above formula F (z) can be expanded through Taylor series and expressed as:
[0139]
[0140] Furthermore, the reconstruction error of the robot system can be rewritten as:
[0141]
[0142] in,
[0143]
[0144]
[0145]
[0146] In the formula, for The upper bound of is a higher order infinitesimal term.
[0147] Therefore, the weight update conditions of the neural network are designed as follows:
[0148]
[0149] In the formula, γ F is the learning rate of the observer.
[0150] Assumption 1: Overall approximation error of the output observer The norm is bounded, that is, there is an unknown normal constant satisfy
[0151] S24, based on reconstruction error The augmented system is reconstructed based on the weight update condition, and a joint output fault observer is constructed based on the output observer. In this embodiment, a joint output fault observer is established on the basis of the output observer to estimate the sensor fault online. First, the augmented system is reconstructed based on equations (9) and (10):
[0152]
[0153] In the formula, is the state of the robot system after reconstruction.
[0154] Therefore, after reconstructing the augmented system, the joint output fault observer constructed on the basis of the output observer is as follows:
[0155]
[0156] In the above formula, is the observer gain matrix; Is the sensor fault s The estimated value of .
[0157] Calculate the estimated value of the output of the joint output fault observer And the reconstruction error of the robot system is calculated based on the reconstructed augmented system Design Estimates The adaptive update law is as follows:
[0158]
[0159] In the formula, γ s , β η are the learning rates of the observers; is the observation error. ηis a matrix and can be obtained by the following Lyapunov equation, namely:
[0160]
[0161] In the formula, is a positive definite symmetric matrix.
[0162] Combining equations (18) and (19), the reconstruction error of the robot system can be obtained as:
[0163]
[0164] In the formula, Sensor failure f s The estimation error.
[0165] Assumption 2: Sensor failure f s The norm is bounded, that is, there is an unknown positive constant γ s1 , satisfying ||f s ||≤γ s1 .
[0166] Assumption 3: Sensor Fault f s The estimated error e s The norm is bounded, that is, there is an unknown positive constant γ s2 , satisfying ||e s ||≤γ s2 .
[0167] Assumption 4: Sensor Fault f s The time derivative of The norm is bounded, that is, there is an unknown positive constant γ sM ,satisfy
[0168] In the joint output type fault observer structure established in this embodiment, a single neural network is used in combination with an adaptive robust term to construct the control coefficient matrix through partial differential operation, which simplifies the training process. In addition, the fault observation error and its differential variable are integrated to form an adaptive update law to achieve online adjustment, thereby improving the rapid responsiveness of fault observation and reducing the fault tolerance time.
[0169] S3, according to the tracking error e r , reference trajectory and low pass filter output An augmented tracking system is constructed to realize tracking control combined with an output-type fault observer to identify sensor faults online. s ; To achieve sensor failure f s The optimal tracking control of the robot system is defined as:
[0170]
[0171] In the formula, is a differential function; x d and are the state vector and output vector of the robot system respectively; y d is the output of the reference trajectory system.
[0172] This embodiment adopts the output feedback control method, where the output tracking error is defined as e r =yy d , thus defining the state of the augmented tracking system as Combining the mathematical model of the augmented system in equation (7), the augmented tracking system can be described as:
[0173]
[0174] In the formula,
[0175]
[0176] In the above formula, represents a matrix with appropriate dimensions that stabilizes the system; g(e r +x d ) represents the control coefficient matrix after the tracking state transformation; Represents the nonlinear term after tracking state transformation; Expressed as a differential function; is η a The time derivative of (t); y a To augment the output of the tracking system; represents the identity matrix with appropriate dimensions; represents a zero matrix of appropriate dimension.
[0177] S4, design includes sensor failure s Estimated value of Cost function with discount factor α And according to the cost function The optimal control law u is used to characterize the augmented tracking system. * HJB partial differential equation; in step S4, the specific process includes the following steps:
[0178] S41. Define the nominal augmented tracking system based on the augmented system in the fault-free state and design the cost function ; Due to the estimated value It is obtained by the output of the joint output fault observer. Next, the above fault-tolerant control problem is transformed into the optimal stabilization problem of the augmented tracking system. The augmented tracking system of formula (24) is in a fault-free state, that is, the sensor fault f s =0, so the nominal augmented tracking system is defined as:
[0179]
[0180] Designing an Improved Cost Function for:
[0181]
[0182] in,
[0183]
[0184]
[0185] In the above formula, and All represent positive definite symmetric matrices with appropriate dimensions; α represents the discount factor; is the fault estimation value of the combined output sensor; e -α(τ-t) represents the exponential term containing the discount factor; u(τ) and are u and The form under the integral variable; η a (t) to augment the status of the tracking system; T is the transpose operation of the vector. It is worth emphasizing that the above cost function It also characterizes the status of the robot system, control input and fault information.
[0186] S42. According to the cost function Solving for the optimal cost function And the optimal control law u * ; In this embodiment, if equation (26) is continuously differentiable, then:
[0187]
[0188] In the formula,
[0189] For the nominal augmented tracking system (25), the Hamiltonian function is defined as:
[0190]
[0191] Then, the optimal cost function for:
[0192]
[0193] According to the Bellman optimality principle, the HJB partial differential equation can be obtained as:
[0194]
[0195] Then we get the optimal control law u * for:
[0196]
[0197] S43. Based on the optimal cost function And the optimal control law u * Determine the HJB partial differential equation; if the HJB partial differential equation of equation (30) has a unique solution Based on the optimal control law u * , the HJB partial differential equation can be further expressed as:
[0198]
[0199] and
[0200] In the above formula, η a (t) and η a Equivalence; is the optimal cost function About η a The partial derivative of For the matrix The inverse of ; α represents the discount factor; is the unique solution of the HJB partial differential equation; u * is the optimal control law.
[0201] S5. Using the adaptive judgment neural network with coordinated weight update to solve the HJB partial differential equation, we can obtain the approximate optimal fault-tolerant control law. In this embodiment, the HJB equation is solved by constructing an adaptive judgment neural network with collaborative update weights. Therefore, a single hidden layer neural network is used to approximate the cost function as follows:
[0202]
[0203] In the formula, P c , They represent the ideal weight vector of the neural network, the neuron activation function, the number of hidden layer neurons and the approximate error of the evaluation network respectively. So, we can transform (33) to η a The derivative is:
[0204]
[0205] In the formula, and are the gradients of the approximate errors of the activation function and the evaluation network, respectively. Combining equations (28), (29), (32) and (34), the Hamiltonian function of equation (28) can be rewritten as:
[0206]
[0207] Due to the ideal weight If unknown, define for The estimated value of , so the judgment neural network is expressed as:
[0208]
[0209] Its gradient for:
[0210]
[0211] Based on equations (10) and (37), the optimal control law u corresponding to equation (31) is * It can be approximated as:
[0212]
[0213] in,
[0214] In the above formula, is the approximate optimal fault-tolerant control law; The ideal weight The estimated value of R -1 For the matrix The inverse of is the activation function θ c (η a ) About η a The partial derivative of is g(e r +x d ) is an estimated value.
[0215] Accordingly, the Hamiltonian function of equation (35) is approximated as:
[0216]
[0217] Therefore, the weighted approximation error is defined as Combining equation (35) and equation (39), we have
[0218]
[0219] In the formula,
[0220] From formula (32), we can see that Therefore, formula (40) is further transformed into:
[0221]
[0222] In the formula, And assume that ∈ a The norm is bounded, that is, there is an unknown positive constant Υ M , satisfying ||∈ a ||≤Υ M However, in order to make Then we need to let E h → 0. Therefore, the gradient descent algorithm is used to minimize the objective function Then the collaborative update law is designed as follows:
[0223]
[0224] and
[0225]
[0226] Combining equations (41)-(43), the collaborative weight approximation error of the evaluation network is With estimated value Update by the following conditions respectively:
[0227]
[0228] and
[0229]
[0230] In the formula,
[0231] In the formula, γ c ,γ m ,β c are all learning parameters for judging the neural network; sgn(·) is a symbolic function; robust term For M The estimated value of .
[0232] This embodiment adopts an adaptive evaluation mechanism for collaboratively updating weights to solve the approximate solution of the HJB partial differential equation and obtains an approximate optimal fault-tolerant control law, which not only ensures the asymptotic stability of the evaluation network weight error and improves its stability performance, but also realizes the optimal active fault-tolerant control of the system under multi-sensor faults.
[0233] S6. Approximate optimal fault-tolerant control law The method proposed in this embodiment is applicable to solving the fault-tolerant control problem of various types of sensor failure systems, can achieve satisfactory fault-tolerant control effect, meet application requirements, and reduce design costs.
[0234] The method proposed in this embodiment is suitable for solving the fault-tolerant control problem of various types of sensor fault systems, can achieve satisfactory fault-tolerant control effects, meet application requirements, and reduce design costs.
[0235] This embodiment introduces the fault observation error and its differential variable to jointly form a joint output type fault observer with an adaptive update law for online regulation, thereby improving the rapid responsiveness of the fault observation and reducing the fault tolerance time.
[0236] This embodiment also proposes a modular robot output feedback optimal fault-tolerant control system with multi-sensor faults, by approximating the optimal fault-tolerant control law The system is applied to the robot system to form an output feedback optimal fault-tolerant control system, which consists of a fault mapping module, a joint output observer module, an augmented tracking system module and a judgment network module.
[0237] The fault mapping module uses a low-pass filter to establish a mapping relationship between sensor faults and actuator faults, and builds an augmented system that integrates the robot system state and the low-pass filter output based on the mapping relationship;
[0238] The joint output observer module establishes a joint output fault observer for online identification of dynamic information and sensor faults of the robot system according to the input / output data of the neural network and the robot system;
[0239] The augmented tracking system module constructs an augmented tracking system based on the tracking error, reference trajectory and low-pass filter output, and designs a cost function that explicitly contains the fault estimation value and discount factor;
[0240] The judgment network module uses an adaptive judgment neural network with collaborative weight updates to solve the HJB partial differential equation to obtain an approximate optimal fault-tolerant control law; finally, the obtained approximate optimal fault-tolerant control law is applied to the modular robot system to form an output feedback optimal fault-tolerant control system.
[0241] In this embodiment, the software implementation of the optimal fault-tolerant control system and method of modular robot output feedback with multiple sensor failures is as follows:
[0242] The present invention has a modular robot output feedback optimal fault-tolerant control system and method with multiple sensor faults. The software is written in MATLAB language to generate .m files. The program design idea and implementation process are as follows Figure 2 shown.
[0243] The output feedback optimal fault-tolerant control adopts the augmented tracking system, i.e., Equation (24), the improved cost function, i.e., Equation (29), the joint output observer, i.e., Equation (11) and Equation (19), the collaborative update law of the evaluation network weight, i.e., Equation (42) and Equation (43), and the adaptive update law of the sensor fault observer, i.e., Equation (20). Then, under the action of the fault-tolerant control law, i.e., Equation (38), the system can achieve the optimal fault-tolerant control of the system.
[0244] The structural design of the software implementation is as follows: Based on the output observer, i.e., equation (11), a 3-14-1 (indicating the number of neurons in each layer) neural network structure is used to reconstruct the dynamics of the system, and the activation function of the network adopts a Gaussian function. The sensor fault observer, i.e., equation (19), is established based on the output observer, i.e., equation (11), and the relevant parameters are selected in the same way. The judgment network adopts a 4-10-1 (indicating the number of neurons in each layer) neural network structure, and the coordinated update law of its weights is as shown in equations (42) and (43).
[0245] By clicking the "Run" button, the control method can be triggered. First, by introducing a low-pass filter and using its output signal to replace the sensor signal, the mapping relationship between sensor fault and actuator fault is established, and an augmented system that integrates the system state and the filter output is constructed. Secondly, considering the design cost, a joint output observer is established to online identify the system dynamics and sensor faults by combining the neural network with the input / output data of the system. Then, the augmented tracking system is constructed using the tracking error dynamics, the reference trajectory dynamics, and the filter output, and a cost function containing the fault estimate and the discount factor is designed. Finally, the adaptive judgment structure with coordinated weight update is used to solve the HJB partial differential equation to obtain the optimal safety strategy to achieve the output feedback optimal fault-tolerant control of the modular robot. The results can be saved in Word, Excel, or chart format.
[0246] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, so the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0247] The above implementation methods have been described in detail. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. An optimal fault-tolerant control method for output feedback of modular robots with multi-sensor faults, It is characterized in that The method comprises the following steps: S1. Introduce a low-pass filter to establish a mapping relationship between sensor failure and actuator failure, and construct a fusion robot system state and low-pass filter output based on the mapping relationship Augmented system to characterize sensor failures in robotic systems The specific process includes the following steps: S11. Determine the state space equation containing the state of the robot system based on the dynamic model of the modular robot system, namely: ; In the formula, and are the state and output of the robot system respectively; for The time derivative of It is a sensor failure; is the control coefficient matrix of the robot system; Provides control input for the robotic system; ; and denote the identity matrix and the zero matrix with appropriate dimensions respectively; represents a nonlinear function; S12. Determine the unified representation of sensor failure according to the sensor failure type and determine the low-pass filter output ,Right now: ; In the above formula, Indicates drift fault and deviation fault; Indicates a stuck fault; represents the sensor effectiveness factor; represents the identity matrix with appropriate dimensions; S13, converting the sensor fault into a "pseudo" actuator fault for observation and establishing a mapping relationship; S14. Define the state of the augmented system as , and build an augmented system based on the mapping relationship. The mathematical model of the augmented system is as follows: ; In the formula, ; ; ; ; ; In the above formula, for The time derivative of To augment the output of the system; The sensor is faulty; is the state vector of the low-pass filter; Represent a matrix with the appropriate dimension that stabilizes the system; S2. Establish dynamic information for online identification of the robot system based on the input / output data of the neural network and the robot system Faulty sensor The joint output fault observer is: and That is, the state representation of the robot system. The specific process includes the following steps: S21, using a single hidden layer neural network Solving the control system matrix of the robot system , where the control system matrix Through the neural network about The partial derivative of is obtained, that is: ; in, In the above formula, ; represents the weight vector; represents the activation function, represents the number of neurons in the hidden layer; is the weight vector An estimated value of S22, based on the control system matrix The output observer of the robot system in a fault-free state is established. The expression of the output observer is: ; In the above formula, is the state vector of the observer; is the output of the observer; is the positive definite observer gain matrix; ; is a matrix; is the adaptive robust term; S23. Calculate the reconstruction error of the robot system , and determine the neural network The weight update condition, reconstruction error The calculation formula is: , in, ; ; ; In the formula, for The upper bound of is a higher-order infinitesimal term; for The derivative of is the neural network approximation error; is the overall approximation error of the output observer; The weight update condition of the neural network is: , In the above formula, is the learning rate of the observer; S24, based on reconstruction error The augmented system is reconstructed by the weight update condition, and a joint output fault observer is constructed based on the output observer. The reconstructed augmented system is: ; In the formula, , is the state of the robot system after reconstruction; The joint output type fault observer is as follows: ; In the above formula, is the observer gain matrix; It is a sensor failure An estimated value of S3, according to the tracking error , reference trajectory and low pass filter output Construct an augmented tracking system to achieve tracking control combined with output-type fault observer to identify sensor faults online ,in, is the output vector of the robot system; is the output of the reference trajectory system, and the expression of the augmented tracking system is: ; In the formula, ; In the above formula, Represent a matrix with the appropriate dimension that stabilizes the system; Represents the control coefficient matrix after tracking state transformation; Represents the nonlinear term after tracking state transformation; Expressed as a differential function; for The time derivative of To augment the output of the tracking system; , represents the identity matrix with appropriate dimensions; ; represents a zero matrix of appropriate dimension; is the tracking error; is the state vector of the robot system; S4. Design shows sensor failure Estimated value of With discount factor The cost function , and according to the cost function The optimal control law is used to characterize the augmented tracking system. The HJB partial differential equation includes the following steps: S41. Define the nominal augmented tracking system based on the augmented system in the fault-free state and design the cost function , the cost function for: ; in, ; ; In the above formula, and All represent positive definite symmetric matrices of appropriate dimension; represents the discount factor; is the fault estimation value of the sensor; represents the exponential term containing the discount factor, , are the integral variable and the time variable respectively; and They are and In the form of integration variables; To augment the status of the tracking system; is the transpose operation of the vector; is the differential element; S42. According to the cost function Solving for the optimal cost function And the optimal control law , where the optimal cost function for: ; Optimal Control Law for: ; in, is the optimal cost function about The partial derivative of S43. Based on the optimal cost function And the optimal control law Determine the HJB partial differential equation. The expression of the HJB partial differential equation is: ; and , in the above formula, and Equivalence; For the matrix The inverse of is the unique solution to the HJB partial differential equation; S5. Using the adaptive judgment neural network with coordinated weight update to solve the HJB partial differential equation, we can obtain the approximate optimal fault-tolerant control law. , approximate optimal fault-tolerant control law The calculation formula is: ; in, ; In the above formula, The ideal weight An estimated value of is the activation function about The partial derivative of for An estimated value of For the matrix The inverse of S6. Approximate optimal fault-tolerant control law It is applied in robotic systems to achieve optimal fault-tolerant control of the output feedback of modular robots.
2. A system for implementing the modular robot output feedback optimal fault-tolerant control method as described in claim 1 above, It is characterized in that The approximate optimal fault-tolerant control law is applied to the robot system to form an output feedback optimal fault-tolerant control system, which includes: A fault mapping module, wherein the fault mapping module uses a low-pass filter to establish a mapping relationship between a sensor fault and an actuator fault, and constructs an augmented system that integrates a robot system state and an output of the low-pass filter according to the mapping relationship; A joint output observer module, wherein the joint output observer module establishes a joint output fault observer for online identification of dynamic information and sensor faults of the robot system according to the input / output data of the neural network and the robot system; An augmented tracking system module, wherein the augmented tracking system module constructs an augmented tracking system according to the tracking error, the reference trajectory and the low-pass filter output, and designs a cost function that explicitly includes a fault estimate and a discount factor; The evaluation network module uses an adaptive evaluation neural network that collaboratively updates weights to solve the HJB partial differential equation to obtain an approximate optimal fault-tolerant control law; finally, the obtained approximate optimal fault-tolerant control law is applied to a modular robot system to form an output feedback optimal fault-tolerant control system.
