A safe control method for torsional motion of soft mirror based on data-driven model
By designing the soft mirror torsional hysteresis system driving model and time delay estimation control law based on the Koopman operator, the chattering and instability problems caused by model errors in the soft mirror torsional motion are solved, and good tracking control performance and safety enhancement are achieved. .
Patent Information
- Application Number
- CN202211119716.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-14
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-09-14
AI Technical Summary
The existing technology has model errors in the torsional motion control of the soft lens, which leads to buffeting and instability, affecting the safety of the torsion of the end of the soft lens.
Design a driving model of the soft mirror torsional hysteresis system based on the Koopman operator, and design the control law through time delay estimation. Combined with the collective filter model to estimate the error in real time, a symbolic function controller is formulated to strengthen the safety boundary constraints.
It improves the tracking control performance and system robustness of the torsional motion of the soft mirror, overcomes the chattering and instability problems caused by errors in the finite-dimensional Koopman operator model, and ensures the safety and stability of the torsion angle.
Smart Images

Figure CN115480485B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of medical robot control, and in particular relates to a soft mirror torsional motion safety control method based on a data-driven model. Background Art
[0002] Endoscopic surgery through the natural cavity of the human body based on soft endoscope operation technology has received widespread attention in recent years as a typical minimally invasive or even non-invasive surgery and has been applied to the diagnosis of various diseases and surgical operations. For the torsional movement of the soft endoscope, due to the discontinuous and complex friction in the guide sheath, the torsional state of the soft endoscope handle end and the end of the soft endoscope will be inconsistent, resulting in the accumulation of torsional deformation of the soft endoscope body in the guide sheath and the increase of torque. When the torque generated by the deformation of the body is greater than the static friction, the torsion angle of the end of the soft endoscope will move with the torsion of the handle.
[0003] The current research on the torsion motion of the soft mirror analyzes the real motion mechanism of the torsion motion of the soft mirror, fits it with a mechanism with similar dynamic characteristics, establishes a physical model with strong interpretability, and adds uncertainty factors to the model. However, the multi-dimensional structure and complex mathematical expressions of the mechanism model make it difficult to design a model-based controller, and it is impossible to compensate for the model error in real time. The use of data-driven models can describe the nonlinear characteristics of the dynamic system with high precision, but in practical applications, the data-driven model based on the finite-dimensional Koopman operator has obvious model errors, which reduces the safety of the torsion motion control of the soft mirror. Summary of the invention
[0004] In order to overcome the shortcomings of the prior art, the present invention provides a method for controlling the torsional motion of a flexible mirror based on a data-driven model. The method overcomes the influence of the vibration and instability caused by the model error defects of the data-driven model of the finite-dimensional Koopman operator on the torsional safety of the flexible mirror end.
[0005] A method for safely controlling the torsional motion of a soft mirror based on a data-driven model includes:
[0006] Step 1: Based on the Koopman operator principle, the soft mirror torsion hysteresis system driving model is designed:
[0007] g(β k+1 ,τ k+1 )=K T g(β k ,τ k )+ε k
[0008] Where A = K T ∈R n×n represents the finite-dimensional Koopman matrix, g(β k ,τk ) and g(β k+1 ,τ k+1 ) is a fixed observation function, ε k ∈R 9×1 The finite-dimensional approximation error of the soft mirror torsion hysteresis system driving model is expressed;
[0009] Step 2: Design the controller, that is, design the control law based on time-delay estimation
[0010] For the soft mirror torsion hysteresis system driving model, the control goal is to operate the end torsion angle of the soft mirror to track the desired target trajectory β d , and the tracking error can converge to zero, and the output should not exceed the safety constraint during soft mirror operation, that is, satisfying β(t)∈(0,ξ), The designed control law is:
[0011]
[0012]
[0013] Among them, τ is the input of the soft mirror torsion hysteresis system, ξ is the preset safety margin, β represents the torsion angle of the soft mirror end, and β d is the target trajectory expected by the end of the soft mirror, e is the tracking error, k p represents the control gain of the controller, sgn is the sign function, z is the auxiliary signal that is always positive, and ||η(d,t)|| represents the boundary of the feasible interval;
[0014]
[0015] The value of this boundary is obtained through the ensemble filter model.
[0016] Compared with the prior art, the present invention has the following beneficial effects:
[0017] 1. The control strategy proposed in the present invention has good tracking control performance and fast transient response, and improves the robustness of the system while strengthening the boundary constraint security of the soft mirror torsion hysteresis system driving model.
[0018] 2. The present invention overcomes the influence of the jitter and instability caused by the model error defects in the data-driven model of the finite-dimensional Koopman operator on the torsional safety of the soft mirror end.
[0019] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments: BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 The posture state diagram of the soft mirror operation robot combined with the present invention;
[0021] Figure 2 A diagram showing the interaction relationship between the rigid joints and the end of the soft mirror manipulation robot combined with the present invention;
[0022] Figure 3 It is a multiple comparison result diagram of the output value of the driving model of the torsion hysteresis system of the soft mirror of the present invention and the real measured value of the torsion angle under variable frequency input signals in different input intervals;
[0023] Figure 4 Multiple comparison results of the estimated value of the dynamic data-driven model, the output value of the Koopman operator model and the actual measured value of the torsion angle under variable frequency input signals in different input intervals;
[0024] Figure 5 It is a relationship diagram of the torsion angle of the end of the soft mirror, the tracking error and the input amount under the control method of the present application, the EMC method and the SMC method under the first experiment in the embodiment;
[0025] Figure 6 It is a relationship diagram of the torsion angle of the end of the soft mirror, the tracking error and the input amount under the control method of the present application, the comparative EMC method and the comparative SMC method under the second experiment in the embodiment;
[0026] Figure 7 This is a relationship diagram between the torsion angle of the soft mirror end, the tracking error and the input amount under the control method of the present application, the comparative EMC method and the comparative SMC method under the third experiment in the embodiment. DETAILED DESCRIPTION
[0027] The following embodiments of the technical solution of the present invention are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.
[0028] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by those skilled in the art to which the present invention belongs.
[0029] In order to more clearly illustrate the implementation process of the present invention, the specific implementation methods of the present invention are introduced as follows.
[0030] like Figure 1-Figure 2 As shown, a method for safely controlling the torsional motion of a soft mirror based on a data-driven model in this embodiment comprises the following steps: designing a driving model,
[0031] First, an improved ensemble filter model is designed:
[0032] The dynamic system is represented by the Koopman operator:
[0033]
[0034] Where g(x k ,τ k )∈R n represents the value of the designed candidate observation function g(·) at time k, A=K T ∈R n×n represents the Koopman matrix of the finite-dimensional approximation, x k ,τ k ∈R r They represent the state and input of the system at time k, respectively. k+1 ∈R m represents the observed value of the system at time k+1, C is a parameter matrix, and v k ∈R n ,w k ∈R m They represent the finite-dimensional approximation error and measurement error of the Koopman operator respectively;
[0035] Without loss of generality, we assume that all system noise is unknown but bounded, and the error bound can be expressed by a feasible set, which is expressed as v k ∈E(0,Q k ),w k ∈E(0,R k ), Q k and R k represents the error bound, and the envelope ellipse E(·,·) is defined as follows:
[0036] E(c,L)={x∈R n |(xc)L -1 (xc)≤1} (2)
[0037] Where c represents the central state of the elliptic feasible set, the envelope matrix L is a positive definite symmetric matrix and determines the size of the corresponding elliptic feasible set E(c,L), so the set element filtering algorithm based on the observation function g(·) can be written as:
[0038]
[0039] in, represents the feasible set ellipsoid shape matrix of the set element filter at different times, and η represents the parameter variable of the ellipsoid shape;
[0040] The update process is:
[0041]
[0042] Among them, ρ represents the parameter variable of the ellipse shape, G k represents the update gain, Wk is the intermediate variable for derivation, δ k To express the recursive calculation index of the singularity degree, the iterative calculation expression is as follows:
[0043]
[0044] Thus, a data-driven ensemble filter model is obtained;
[0045] Then, design a fixed observation function g(β k ,τ k ), define g(β k ,τ k ) is expressed in the following form:
[0046]
[0047] where τ k represents the torsion angle of the handle at time k when the soft mirror is twisted, β k is the torsion angle of the end of the soft mirror at time k, where the observation function g(β k ,τ k ) takes into account the time-varying dynamics and special nonlinearity of the system, and adds the coupling term of state information and control quantity, combining the geometric information of the task with the response information related to the system state. Next, by introducing the Koopman operator, the driving model of the soft mirror torsion hysteresis system is obtained:
[0048] g(β k+1 ,τ k+1 )=K T g(β k ,τ k )+ε k (7)
[0049] Furthermore, the finite-dimensional approximate error estimation of the soft mirror torsion hysteresis system driving model is:
[0050] In order to facilitate the construction of the dynamic model, formula (7) is first sorted out;
[0051]
[0052] Among them, G k is the expanded discrete state vector, y k+1 ∈R 9×1 is the measurement vector of the system
[0053]
[0054] Correspondingly, the parameter matrix K of the discrete system d and C d for:
[0055]
[0056]
[0057] Generally speaking, the input quantity τ of the system k It is assumed to be accurately measurable, and the unknown system error v k ,ω k is bounded. So, further assume that v k ∈E(0,Q k ),w k ∈E(0,R k ) is used to represent the error ε of the soft mirror torsion hysteresis system driving model k and other mixed noise in the system.
[0058] The error ε is estimated in real time based on the ensemble filter algorithm based on the soft mirror torsion hysteresis system driving model. k The predicted value and confidence interval of k ) is the finite-dimensional approximation error ε of the soft mirror torsion hysteresis system driving model k In the estimation interval at time k, it is derived that:
[0059]
[0060] in, is the error ε k The estimated value of represents the error vector The i-th element of Representation Matrix The (9+i,9+i)th element of .
[0061] Next, we design a controller. Based on data sampling technology, we take advantage of the error interval estimation of the ensemble filter and design a robust control method. For the identified and fixed soft mirror torsion hysteresis system drive model, we derive the decoupling form. First, we decompose the observation function vector into:
[0062] g(β k ,τ k )=g1(β k )+g2(β k )τ k (13)
[0063]
[0064] The soft mirror torsional hysteresis system model is expressed as follows:
[0065]
[0066] Where C∈R 9×9 is the identity matrix, y k+1 ∈R 9×1 is the measurement vector of the system. Formula (15) can be expressed as follows based on data sampling technology:
[0067]
[0068]
[0069] In the above formula, ΔT represents the sampling period of the system, K T (1,:) represents K T The first row vector of , similarly ε(t)(1) represents the first element of ε(t), τ(t), β(t), ε(t) represent τ respectively. k ,β k ,ε k In the continuous form within time t∈[kΔT,(k+1)ΔT], k is a non-negative integer, that is:
[0070]
[0071] Therefore, the bound on the model error η(d,t) can be rewritten as follows:
[0072]
[0073] in express The continuous form at time t∈[kΔT,(k+1)ΔT];
[0074] For the soft mirror torsion motion system drive model, the control goal is to operate the end torsion angle of the soft mirror to track the desired target trajectory β d , and the tracking error can converge to zero. In the implementation application, the output should not exceed the safety constraint of the soft mirror operation, that is, satisfying β(t)∈(0,ξ), ξ is the preset safety margin, using the finite-dimensional approximate error of the soft mirror torsion motion system driving model The estimated value of , combined with the real-time estimation result of the feasible interval of the model error, the designed control law is:
[0075]
[0076] This safety-enhanced tracking controller further compensates for hysteresis effects in the system and can also reduce the impact of uninitialized workspace on the accuracy of the reference data-driven model.
[0077] Among them, τ is the input of the soft mirror torsion hysteresis system, ξ is the preset safety margin, β represents the torsion angle of the soft mirror end, and βd is the target trajectory expected by the end of the soft mirror, e is the tracking error, k p represents the control gain of the controller, sgn is the sign function, z is the auxiliary signal which is always positive, and ||η(d,t)|| represents the boundary of the feasible interval described in formula (19).
[0078] Furthermore, in order to prove that the closed-loop system of the controller proposed in this embodiment is exponentially stable for the target trajectory, a stability proof is performed:
[0079] First, select the candidate Lyapunov function as:
[0080]
[0081] V iBLF is the integration barrier Lyapunov function:
[0082]
[0083] Since z is always positive, the V iBLF ≥0
[0084] Taking the derivative of V, we can get:
[0085]
[0086] where λ = min{2k p ,2}, and it can be deduced that V(t) converges exponentially to 0. Accordingly, in the entire control process, So it can be inferred
[0087]
[0088] Here we consider the system output constraint β∈(0,ξ), and combine the above conclusions to get:
[0089]
[0090] Therefore, through further analysis, we can see that the maximum invariant set It only contains the equilibrium trajectory points of the closed-loop system. Therefore, according to the LaSalle invariant set principle, the closed-loop system using the controller proposed in this embodiment is exponentially stable with respect to the target trajectory.
[0091] The following is further described in conjunction with the embodiments:
[0092] Example 1: In order to verify the effectiveness of the soft mirror torsion hysteresis system driving model based on the Koopman operator proposed in this embodiment, the entire input range of the input angle τ is divided into three parts in the experiment, namely [30,75]deg, [30,50]deg, and [55,75]deg, and the fitting accuracy of the soft mirror torsion hysteresis system driving model is tested in different working ranges. First, the model is identified to verify the approximation accuracy of the soft mirror torsion hysteresis system driving model based on the Koopman operator (Formula (7)) to the real system. The data used for identification is obtained by experimentally collecting a swept frequency triangle wave signal in three intervals, as shown in FIG. Figure 3 As shown by the solid line, the data used in this group of identification takes into account different working ranges and different working frequencies. The comparison results between the output value of the soft mirror torsion hysteresis system driving model obtained after identification and the actual torsion angle of the system are shown in Figure 3 Shown: The output value β of the Koopman operator model Model (Solid line) and the actual measured value of the torsion angle β Real (The dotted line indicates) Multiple comparison results under variable frequency input signals in different input intervals (the proximal angle scanning rate gradually increases from 0.025 rad / s to 0.2 rad / s; top layer: τ∈[30,75]deg; middle layer: τ∈[30,50]deg; bottom layer: τ∈[55,75]deg) show that the identified soft mirror torsion hysteresis system drive model cannot accurately describe the system's hysteresis loop, and the deviation between the output value of the traditional Koopman operator model and the actual torsion angle increases with the increase of input frequency. Next, the performance of the soft mirror torsion hysteresis system drive model is tested. The parameters of the ensemble filter method used in the proposed hysteresis system drive model and the subsequent controller (Formula (20)) are adjusted to:
[0093]
[0094] In order to quantitatively evaluate the fitting accuracy of the driving model after the ensemble filter and the observation function (Formula (6)) of the data-based soft mirror torsion hysteresis system driving model proposed in this embodiment are combined, the following two model fitting indices are defined here for comparison:
[0095]
[0096]
[0097] The experimental results of the soft mirror torsion hysteresis system driving model verification are as follows Figure 4 The estimated value β of the driving model in this embodiment is shown as Est (short dashed line), the output value β of the Koopman operator model Model(dotted line) and the true measured value of the torsion angle β Real (Solid line) Multiple comparison results under variable frequency input signals in different input ranges (the near-end angular scanning rate gradually increases from 0.025 rad / s to 0.2 rad / s); top layer: τ∈[30,75]deg; middle layer: τ∈[30,50]deg; bottom layer: τ∈[55,75]deg). Figure 4 It can be seen that the active modeling technology based on the Koopman operator proposed in this embodiment successfully reduces the finite-dimensional approximation error of the candidate observation vector (Formula (6)). The comparison results of the corresponding quantitative indicators (Formula (26)) and (Formula (27)) are listed in Table 1.
[0098] Table 1: Correspondence Figure 4 Statistics of indicators in the data and
[0099]
[0100] It is not difficult to find that the average model approximation deviation of the soft mirror torsional hysteresis system driving model is reduced by more than 8 times, and the active modeling method greatly improves the accuracy of the finite-dimensional Koopman operator model.
[0101] Example 2
[0102] In order to test the performance of the control method proposed in this embodiment, three groups of comparative experiments were conducted on the ureteroscope operation robot platform to control only the torsional motion of the soft endoscope. In order to ensure the performance of the controller, after experimental testing and adjustment, the control gain of the controller (Formula (20)) proposed in this embodiment was selected as k p =1.8, the preset safety margin ξ=41, and the required estimator parameters are the same as those in (Formula (25)) (It should be noted here that 41deg is selected as the safety constraint of the system in the experiment to observe the safety enhancement performance of the proposed controller). In order to conduct comparative experiments, the sliding mode control (SMC) method and the exact model control (EMC) method are selected to compare with the control strategy proposed in this embodiment. The specific expressions of the two selected comparative methods based on the proposed data-driven model are as follows:
[0103] 1. Sliding mode controller
[0104]
[0105] Where k1 represents the positive control gain, For a satisfaction A normal number.
[0106] 2. Accurate model controller
[0107]
[0108] After many experiments and adjustments, the control parameters in the controller (Formula (20)) are selected as: k1 = k p =1.8, It is worth mentioning here that the control quantity of the system is the proximal torsion angle, and the position control response speed of the servo motor is not very fast, so the selected sliding mode controller does not need to approximate the sign function. In order to demonstrate the positioning and tracking performance of the method proposed in this application, experiments are conducted under the following conditions.
[0109] In Experiment 1, a fixed stabilization target was set for the end of the soft mirror to test the positioning control accuracy of the proposed controller. In order to further verify the tracking control performance of the proposed control method, in Experiments 2 and 3, a time-varying tracking trajectory with continuous speed (sine wave trajectory) and a time-varying tracking trajectory with sudden speed changes (triangular wave trajectory) were set to test the performance of the proposed control strategy under different trajectory tracking conditions. In summary, the comparative experimental results of the three cases can jointly verify the effectiveness and robustness of the proposed controller.
[0110] Experiment 1: Calming experiment: The expected value of the torsion angle at the end of the soft mirror is set to 30 degrees.
[0111] Experiment 2: Sine wave tracking experiment: The frequency, initial phase, amplitude and offset of the target sinusoidal tracking trajectory are set to 0.025Hz, -π / 2, 10deg, 30deg respectively, and their expressions are as follows:
[0112]
[0113] Experiment 3: Triangle wave tracking experiment: The frequency, initial phase, amplitude and offset of the target triangle wave tracking trajectory are set to 0.025 Hz, -π / 2, 10 deg, and 30 deg, respectively.
[0114] In order to quantify the control performance of the method proposed in this application, this patent defines the following four performance indicators:
[0115] The average value of the absolute tracking error |e| during the entire control process is
[0116] e var : The variance of the tracking error during the entire control process, that is
[0117] |e| max : The maximum tracking error after 2s, i.e. |e|max =max t>2 {|e|}
[0118] e rg : Tracking error range after 2s, i.e. |e| rg =max t>2 {e}-min t>2 {e}
[0119] The experimental results of positioning control in Experiment 1 are as follows: Figure 5 As shown (reference trajectory: black horizontal dotted line; method proposed in this application: solid line; EMC method: dotted line; SMC method: short dotted line), from Figure 5 It can be seen that by using the proposed control method, the torsion angle β can quickly reach the preset target angle of 30 degrees within 2 seconds. In addition, the control strategy proposed in this application has very little jitter in the stabilization control of the torsion motion of the soft mirror, and there is almost no overshoot and residual error. In comparison, the adjustment speed of the two comparison methods is much slower, and there are obvious oscillations and overshoots. This is mainly due to the existence of the time-varying approximation error of the reference data-driven model, and the input angles of the precise model control and the sliding mode control with steady-state boundaries will continue to fluctuate. The statistical results of the quantitative indicators corresponding to Experiment 1 are shown in Table 2,
[0120] Table 2: Performance indicators in Experiment 1
[0121]
[0122] The average value of the absolute positioning error of the control method proposed in this application is is 0.4deg, while the corresponding index of the comparison method is greater than 1.2deg, and the range of residual error is e rg It is three times that of the proposed method. The proposed safety enhancement control method introduces feedback inhibition terms to make the maximum positioning residual |e| max It is only 0.8 degrees, which is much smaller than the at least 3.5 degrees in the comparison method. In addition, the smoothness index e of the proposed control method var Therefore, the control strategy proposed in this application can ensure the stability of stabilization control, and the residual error of positioning control is very small, and its static performance is superior to that of traditional sliding mode controller.
[0123] The experimental results of Experiment 2 and Experiment 3 are as follows Figure 6 (reference trajectory: black dashed line; method proposed in this application: solid line; EMC method: dotted line; SMC method: short dashed line) and Figure 7As shown (reference trajectory: black dotted line; method proposed in this application: solid line; comparison EMC method: dotted line; comparison SMC method: short dotted line). For the target trajectory of sine wave or triangle wave, the tracking process of the proposed control method is very smooth, with almost no jitter and overshoot, and the torsion angle β at the end of the soft mirror can track the two target trajectories well, with a high-precision tracking effect; on the contrary, the two comparison methods have obvious tracking errors and system jitters during the tracking process. In particular, there is an obvious overshoot phenomenon in the comparison experimental results, and the maximum value of the state quantity exceeds the given safety boundary of 41deg. From Figure 6 and 7 It can also be seen that due to the existence of the feedback inhibition term, the tracking result of the proposed safety enhancement control method always satisfies the safety boundary constraint β(t)<41deg of the torsion angle, and its input angle τ(t) is significantly reduced compared with the two comparison methods when the terminal torsion angle is close to the safety boundary.
[0124] The statistical results of the quantitative indicators corresponding to the tracking experiment are shown in Tables 3 and 4.
[0125] Table 3: Performance indicators in Experiment 2
[0126]
[0127] Table 4: Performance indicators in Experiment 3
[0128]
[0129] It can be seen from Table 3 and Table 4 that the average value of the absolute tracking error of the control method proposed in this application is The corresponding indicators of the control methods are all greater than 1.1deg, which has a larger steady-state tracking error, and the tracking error range is e rg is at least twice that of the proposed control method. In addition, the maximum value of the steady-state tracking error of the proposed method |e| max The maximum tracking error of the comparison method is almost twice that of the proposed method. In particular, the smoothness index e of the tracking result var It also reflects that the proposed method has smaller oscillations during steady-state tracking. In summary, it can be seen that the control strategy proposed in this application has satisfactory tracking control performance and fast transient response, and can also improve the robustness of the system while strengthening the boundary constraint safety of the soft mirror torsion hysteresis system drive model.
[0130] The present invention has been disclosed as above with preferred implementation cases, but it is not used to limit the present invention. Any technician familiar with the profession can make slight changes or modifications to equivalent implementation cases with equivalent changes by using the above-disclosed structures and technical contents without departing from the scope of the technical solution of the present invention, which still fall within the scope of the technical solution of the present invention.
Claims
1. A method for safely controlling the torsional motion of a soft mirror based on a data-driven model, characterized in that: Include: Step 1: Based on the Koopman operator, the soft mirror torsion hysteresis system driving model is designed: g(β k+1 ,t k+1 )=K T g(β k ,t k )+e k Among them, K T ∈R n×n represents the finite-dimensional Koopman matrix, g(β k ,τ k ) and g(β k+1 ,τ k+1 ) is a fixed observation function, ε k ∈R 9×1 represents the finite-dimensional approximation error of the soft mirror torsion hysteresis system driving model; τ k represents the torsion angle of the handle at time k when the soft mirror is twisted, β k is the torsion angle of the end of the soft mirror at time k, τ k+1 represents the torsion angle of the handle at time k+1 when the soft mirror is twisted, β k+1 is the torsion angle of the end of the soft mirror at time k+1; Step 2: Design the controller, that is, design the control law based on time-delay estimation For the soft mirror torsion hysteresis system driving model, the control goal is to operate the end torsion angle of the soft mirror to track the desired target trajectory β d , and the tracking error can converge to zero, and the output should not exceed the safety constraint during soft mirror operation, that is, satisfy The designed control law is: Among them, τ is the input of the soft mirror torsion hysteresis system, ξ is the preset safety margin, β represents the torsion angle of the soft mirror end, and β d is the target trajectory expected by the end of the soft mirror, e is the tracking error, k p represents the control gain of the controller, sgn is the sign function, z is the auxiliary signal that is always positive, η(d,t) represents the boundary of the model error, and ||η(d,t)|| represents the boundary of the feasible interval; ΔT represents the sampling period of the system, and the value of this boundary is obtained through the set membership filter model.
2. The method for safely controlling the torsional motion of a soft lens based on a data-driven model according to claim 1, characterized in that: The dynamic driving model of the soft mirror torsion hysteresis system in step 1 is obtained by the following process: First, design the set membership filter model: The dynamic system is represented by the Koopman operator: Where g(x k ,τ k )∈R n represents the value of the designed candidate observation function g() at time k, A=K T ∈R n×n represents the Koopman matrix of the finite-dimensional approximation, x k ,τ k ∈R r They represent the state and input of the system at time k, respectively. k+1 ∈R m represents the observed value of the system at time k+1, C is a parameter matrix, and v k ∈R n ,w k ∈R m They represent the finite-dimensional approximation error and measurement error of the Koopman operator respectively; Assume that the system noise is unknown but bounded, and the error limit can be expressed by a feasible set, which is expressed as v k ∈E(0,Q k ),w k ∈E(0,R k ), Q k and R k represents the error bound, and the envelope ellipse E(·,·) is defined as follows: E(c,L)={x∈R n |(x-c)L -1 (x-c)≤1} (2) Where c represents the central state of the elliptic feasible set, the envelope matrix L is a positive definite symmetric matrix and determines the size of the corresponding elliptic feasible set E(c,L), so the set membership filtering algorithm based on the observation function g() is written as: in, represents the ellipsoid shape matrix of the feasible set of set membership filtering at different times, and η represents the parameter variable of the ellipsoid shape; The update process is: Among them, ρ represents the parameter variable of the ellipse shape, G k represents the update gain, W k is the intermediate variable for derivation, δ k To express the recursive calculation index of the singularity degree, the iterative calculation expression is as follows: Thus, a data-driven set membership filter model is obtained; Then, design a fixed observation function g(β k ,τ k ), define g(β k ,τ k ) is expressed in the following form: where τ k represents the torsion angle of the handle at time k when the soft mirror is twisted, β k is the torsion angle of the end of the soft mirror at time k. By introducing the Koopman operator, the driving model of the soft mirror torsion hysteresis system is obtained: g(β k+1 ,t k+1 )=K T g(β k ,t k )+e k (7)。 3. The method for safely controlling the torsional motion of a soft lens based on a data-driven model according to claim 2, characterized in that: Step 1 also includes the finite-dimensional approximate error estimation of the soft mirror torsion hysteresis system drive model: Formula (7) is rearranged to obtain: in, is the expanded discrete state vector, y k+1 ∈R 9×1 is the measurement vector of the system Correspondingly, the parameter matrix K of the discrete system d and C d for: The error ε is estimated in real time using the set membership filter algorithm based on the soft mirror torsion hysteresis system drive model. k The predicted value and confidence interval of k ) is the finite-dimensional approximation error ε of the soft mirror torsion hysteresis system driving model k In the estimation interval at time k, it is derived that: in, is the error ε k The estimated value of represents the error vector The i-th element of Representation Matrix The (9+i,9+i)th element of .
4. The method for safely controlling the torsional motion of a soft lens based on a data-driven model according to claim 3, characterized in that: The controller design process of step 2 is as follows: for the identified and fixed soft mirror torsion hysteresis system drive model, the decoupling form is derived, and the observation function vector is first decomposed into: g(β k ,t k )=g1(β k )+g2(β k )t k (13) The soft mirror torsional hysteresis system model is expressed as follows: Where C∈R 9×9 is the identity matrix, y k+1 ∈R 9×1 is the measurement vector of the system, and formula (15) is expressed as follows based on data sampling technology: In the above formula, ΔT represents the sampling period of the system, K T (1,:) represents K T The first row vector of , similarly ε(t)(1) represents the first element of ε(t), τ(t), β(t), ε(t) represent τ respectively. k ,β k ,ε k In the continuous form within time t∈[kΔT,(k+1)ΔT], k is a non-negative integer, that is: Therefore, the bound η(d,t) of the model error can be rewritten as follows: in express The continuous form at time t∈[kΔT,(k+1)ΔT]; For the soft mirror torsion motion system drive model, the control goal is to operate the end torsion angle of the soft mirror to track the desired target trajectory β d , and the tracking error can converge to zero, and the output should not exceed the safety constraint during soft mirror operation, that is, satisfy ξ is the preset safety margin, using the finite-dimensional approximation error of the soft mirror torsion motion system driving model The estimated value of , combined with the real-time estimation result of the feasible interval of the model error, the designed control law is: Among them, τ is the input of the soft mirror torsion hysteresis system, β represents the torsion angle of the soft mirror end, and β d is the target trajectory expected by the end of the soft mirror, e is the tracking error, k p represents the control gain of the controller, sgn is the sign function, z is the auxiliary signal which is always positive, and ||η(d,t)|| represents the boundary of the feasible interval described in formula (19).
