A real-time prediction method and system for state observation error of ADRC extended observer

By using linear regression in the ADRC expansion observer to predict the state error value at the next moment and updating parameters in real time, the problem of slow convergence speed in the existing technology is solved and faster parameter convergence is achieved.

CN114489010BActive Publication Date: 2024-09-06FOSHAN INST OF INTELLIGENT EQUIP TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210086340.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-25
Publication Date
2024-09-06
Estimated Expiration
2042-01-25

AI Technical Summary

Technical Problem

The existing ADRC dilated observer cannot make full use of real-time error information in parameter optimization, resulting in slow convergence and unable to meet the requirements of engineering applications.

Method used

Before the robot enters the next moment of movement, the error values ​​of the three states from the initial moment to the current moment are obtained, and the state error value of the next moment is predicted through least squares fitting of the linear regression equation, and the expanded observer parameters are updated in real time. Reduce the number of iterations.

Benefits of technology

By predicting error values ​​in real time, the parameter convergence speed is significantly accelerated, meeting the rapid convergence requirements of engineering applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489010B
    Figure CN114489010B
Patent Text Reader

Abstract

A real-time prediction method and system for state observation errors of an ADRC extended observer include the following steps: Step S1: before a robot enters into motion at time t+1, error values ​​of three states from the initial time to time t are obtained; Step S2: judging whether the current time t meets the period threshold requirement, if so, executing Step S3, if not, executing Step S4; Step S3: fitting the error values ​​of the three states by using the least square method of linear regression equations to obtain the equation of the fitting line, and executing Step S4; Step S4: substituting the error values ​​of the three states at time t into a prediction function, respectively obtaining predicted values ​​of the state error values ​​of the three states at time t+1; Step S5: inputting the predicted value of the state error value at time t+1 into a parameter updater, predicting the state error value at time t+1 is to reduce the number of the entire update iteration, so that using more accurate error values ​​can reduce the number of iterative updates and accelerate the convergence speed requirement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ADRC extended observers, and in particular to a method and system for real-time prediction of state observation errors of an ADRC extended observer. Background Art

[0002] The active disturbance rejection controller (ADRC) consists of three parts: tracking differentiator (TD), extended state observer (ESO) and nonlinear feedback control factor (NLSEF). The main idea of ​​ADRC is to regard all disturbances and uncertainties in the control system as total disturbances, package them into an extended observer, make unified estimates and compensation, and improve control performance. The role of the extended state observer is to estimate the state of the research object in real time, and use the extended state to make a unified estimate of the total disturbance of the system.

[0003] The selection of the extended state observer parameters directly affects the accuracy of the observed state, determines the error of the observed state, and thus affects the tracking error of the ADRC control system. In order to reduce the impact of the error, the existing technology uses an iterative optimization method to update the extended state observer parameters, which is usually an offline optimization method, that is, the error of the last running trajectory is saved, and the saved error is used to optimize the parameters at this moment during this running trajectory. Moreover, the optimization indicators used in the optimization method usually include the requirements for trajectory error convergence and smooth changes in the control quantity.

[0004] However, the disadvantage of this method is that it cannot fully utilize real-time error information. The offline optimization method uses the error information of the previous running trajectory, but does not use the error information of the current running trajectory, which will greatly reduce the speed of parameter convergence. Even if some technologies mention the use of the error information of the current running trajectory, they only use the error generated at the last moment, and do not fully utilize all the error information generated by the current running trajectory, which will greatly reduce the speed of parameter convergence. Existing technologies often require more than 20 iterations to converge to the expected value, and the convergence speed of this method no longer meets the requirements of current engineering applications. Summary of the invention

[0005] In view of the above-mentioned defects, the purpose of the present invention is to propose a real-time prediction method and system for state observation error of ADRC extended observer, which can make full use of real-time error information and achieve rapid convergence of parameters.

[0006] To achieve this purpose, the present invention adopts the following technical solution: A real-time prediction method for state observation error of ADRC extended observer comprises the following steps:

[0007] Step S1: before the robot enters the movement at time t+1, the error values ​​of the three states from the initial time to time t are obtained;

[0008] Step S2: Determine whether the current time t meets the cycle threshold requirement. If so, execute step S3; if not, execute step S4;

[0009] Step S3: Fit the error values ​​of the three states using the least square method to obtain a linear regression equation, and then execute step S4;

[0010] Step S4: Substitute the error values ​​of the three states at time t into the prediction function to obtain the predicted values ​​of the state error values ​​of the three states at time t+1 respectively;

[0011] Step S5: Input the predicted values ​​of the state error values ​​of the three states at time t+1 into the parameter updater to optimize the extended observer parameters in real time.

[0012] Preferably, step S4 includes the following specific steps:

[0013] Whether the previous moment t meets the cycle threshold requirement, if it does, the predicted value of the state error value at time t+1 is predicted by fitting the straight line equation; if it does not, the state error value at the current moment t is used as the predicted value of the state error value at time t+1.

[0014] Preferably, the specific formula for correcting the predicted value of the state error value at time t+1 is as follows:

[0015]

[0016] in, is the correction value of the predicted value of the state error value at time t+1 of the i-th state, and the value range of i is (1, 2, 3). is the predicted value of the state error value of the i-th state at time t+1, a is the acceleration of the robot's motion trajectory, and f(t) is the value of the fitting straight line equation at time t.

[0017] Preferably, the cycle threshold in step S2 is 5 cycles.

[0018] A real-time prediction system for state observation error of an ADRC expansion observer, using the above-mentioned real-time prediction method and system for state observation error of an ADRC expansion observer, comprising: an error value acquisition module, a cycle threshold judgment module, an equation fitting module, a prediction module and an input module;

[0019] The error value acquisition module is used to obtain the error values ​​of the three states from the initial time to the time t before the robot enters the movement at the time t+1;

[0020] The cycle threshold determination module is used to determine whether the current time t meets the cycle threshold requirement;

[0021] The equation fitting module is used to fit the error values ​​of the three states using the least square method of linear regression equation to obtain a fitting straight line equation;

[0022] The prediction module is used to substitute the error values ​​of the three states at time t into the prediction function to obtain the predicted values ​​of the state error values ​​of the three states at time t+1 respectively;

[0023] The input module is used to input the predicted values ​​of the state error values ​​of the three states at time t+1 into the parameter updater to optimize the expanded observer parameters in real time.

[0024] Preferably, it also includes a correction module, which is used to determine the input of the predicted value of the state error value at time t+1. If the input of the predicted value of the state error value at time t+1 is predicted by fitting a straight line equation, the predicted value of the state error value at time t+1 is corrected using the acceleration of the robot's motion trajectory.

[0025] One of the above technical solutions has the following advantages or beneficial effects: predicting the state error value at time t+1 is to reduce the number of update iterations so that the entire parameter can quickly converge to the desired value. If no prediction is performed, the error value used is the error value at the previous moment, and using the predicted real-time error value can reduce the number of iterations. The predicted real-time error value is actually closer to the required error value. In this way, using a more accurate error value can reduce the number of iterative updates and accelerate the convergence speed requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a schematic flow chart of an embodiment of the method of the present invention; DETAILED DESCRIPTION

[0027] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0028] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0029] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0030] like Figure 1 As shown, a real-time prediction method and system for state observation error of ADRC extended observer includes the following steps:

[0031] Step S1: before the robot enters the movement at time t+1, the error values ​​of the three states from the initial time to time t are obtained;

[0032] Step S2: Determine whether the current time t meets the cycle threshold requirement. If so, execute step S3; if not, execute step S4;

[0033] Step S3: Fit the error values ​​of the three states using the least square method to obtain a linear regression equation, and then execute step S4;

[0034] Step S4: Substitute the error values ​​of the three states at time t into the prediction function to obtain the predicted values ​​of the state error values ​​of the three states at time t+1 respectively;

[0035] Step S5: Input the predicted values ​​of the state error values ​​of the three states at time t+1 into the parameter updater to optimize the extended observer parameters in real time.

[0036] Because of the relationship between the state observation error and the trajectory characteristics, the state observation error has a high correlation with the trajectory speed. This application is based on the least squares fitting of the linear regression equation, and adjusts the predicted value according to the trajectory acceleration characteristics to achieve a more accurate prediction of the state observation error. Considering that real-time prediction is required in actual engineering, the method for predicting the state in this application adopts an existing simple algorithm to implement, which can speed up the calculation. Therefore, before the robot enters the movement at time t+1, the error values ​​of the three states at time t are obtained. The acquisition of the error value is a common technology of existing ADRC, so it is not repeated in this application. Then the error values ​​of the three states are fitted by the least squares method of the linear regression equation to obtain the value of the straight line equation. Here, the number of fitting points of the linear regression equation (i.e., the period) needs to be considered. If the number of fitting points of the regression equation is too small, it will affect the fitting effect, resulting in a deviation in the value of the straight line equation. In this case, the effect of not fitting is better than the effect after fitting. Therefore, if the current moment t does not meet the cycle threshold requirement, the error values ​​of the three states are directly substituted into the prediction function as the predicted value of the final state error value at time t+1. After the current moment t meets the cycle threshold requirement, the error values ​​of the three states are fitted by the least squares method of the linear regression equation to obtain the fitted straight line equation value, and then the fitted straight line equation value is used to predict the predicted value of the state error value at time t+1. The predicted value can be obtained by training the existing prediction model. Substituting the fitted straight line equation value into the prediction model can obtain the predicted value of the state error value at time t+1. Then, the predicted value of the state error value at time t+1 is substituted into the parameter updater to optimize the expanded observer in real time. In this process, the real-time error value at the next moment (t+1) can be returned to the prediction model to correct the prediction model. The accuracy of the prediction model is guaranteed, thereby also ensuring the accuracy of the real-time optimization of the expanded observer. The purpose of predicting the state error value at time t+1 is to reduce the number of update iterations so that the entire parameter can converge quickly to the desired value. If no prediction is made, the error value used is the error value at the previous moment. Using the predicted real-time error value can reduce the number of iterations. The predicted real-time error value will actually be closer to the required error value. Using a more accurate error value can reduce the number of iterative updates and speed up the convergence speed requirements.

[0037] Preferably, step S4 includes the following specific steps:

[0038] Whether the previous moment t meets the cycle threshold requirement, if it does, the predicted value of the state error value at time t+1 is predicted by fitting the straight line equation; if it does not, the state error value at the current moment t is used as the predicted value of the state error value at time t+1.

[0039] The linear regression equation is f(t)=zx+y, where z and y are coefficients, and x is the error value of the three states at time t. z and y can be obtained by the least square method. The three states are observations of position, velocity and acceleration.

[0040] Preferably, the step S5 further includes the following specific steps:

[0041] Determine the input of the predicted value of the state error value at time t+1. If the input of the predicted value of the state error value at time t+1 is predicted by fitting the straight line equation, use the acceleration of the robot's motion trajectory to correct the predicted value of the state error value at time t+1.

[0042] Since the robot will have a certain acceleration when it moves after it meets the cycle requirements, the accuracy of the prediction can be effectively improved by correcting the predicted value of the state error value at time t+1 through acceleration. When the robot movement does not meet the cycle requirements, it means that the robot is at the beginning of the movement, and its acceleration value is quite small and can be ignored. Therefore, when the robot movement does not meet the cycle requirements, there is no need to correct the predicted value of the state error value at time t+1.

[0043] Preferably, the specific formula for correcting the predicted value of the state error value at time t+1 is as follows:

[0044]

[0045] in, is the correction value of the predicted value of the state error value at time t+1 of the i-th state, and the value range of i is (1, 2, 3). is the predicted value of the state error value of the i-th state at time t+1, a is the acceleration of the robot's motion trajectory, and f(t) is the value of the fitting straight line equation at time t.

[0046] Preferably, the cycle threshold in step S2 is 5 cycles.

[0047] A real-time prediction system for state observation error of an ADRC expansion observer, using the above-mentioned real-time prediction method and system for state observation error of an ADRC expansion observer, comprising: an error value acquisition module, a cycle threshold judgment module, an equation fitting module, a prediction module and an input module;

[0048] The error value acquisition module is used to obtain the error values ​​of the three states from the initial time to the time t before the robot enters the movement at the time t+1;

[0049] The cycle threshold determination module is used to determine whether the current time t meets the cycle threshold requirement;

[0050] The equation fitting module is used to fit the error values ​​of the three states using the least square method of linear regression equation to obtain a fitting straight line equation;

[0051] The prediction module is used to substitute the error values ​​of the three states at time t into the prediction function to obtain the predicted values ​​of the state error values ​​of the three states at time t+1 respectively;

[0052] The input module is used to input the predicted values ​​of the state error values ​​of the three states at time t+1 into the parameter updater to optimize the expanded observer parameters in real time.

[0053] Preferably, it also includes a correction module, which is used to determine the input of the predicted value of the state error value at time t+1. If the input of the predicted value of the state error value at time t+1 is predicted by fitting a straight line equation, the predicted value of the state error value at time t+1 is corrected using the acceleration of the robot's motion trajectory.

[0054] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0055] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A real-time prediction method for state observation error of ADRC extended observer, It is characterized in that The following steps are involved: Step S1: before the robot enters the movement at time t+1, the error values ​​of the three states from the initial time to time t are obtained; Step S2: Determine whether the current time t meets the cycle threshold requirement. If so, execute step S3; if not, execute step S4; Step S3: Fit the error values ​​of the three states using the least square method to obtain a linear regression equation, and then execute step S4; Step S4: Substitute the error values ​​of the three states at time t into the prediction function to obtain the predicted values ​​of the state error values ​​of the three states at time t+1 respectively; Step S5: input the predicted values ​​of the state error values ​​of the three states at time t+1 into the parameter updater to optimize the extended observer parameters in real time; Consider the number of fitting points of the linear regression equation. If the number of fitting points of the regression equation is too small, the fitting effect will be affected, resulting in deviations in the value of the straight line equation. In this case, the effect of not fitting is better than the effect after fitting. Therefore, if the current moment t does not meet the period threshold requirement, the error values ​​of the three states are directly substituted into the prediction function as the final predicted value of the state error value at time t+1. After the current moment t meets the period threshold requirement, the error values ​​of the three states are fitted with the linear regression equation by the least squares method to obtain the fitted straight line equation value, and then the fitted straight line equation value is predicted to obtain the predicted value of the state error value at time t+1.

2. According to claim 1, a real-time prediction method for state observation error of ADRC extended observer, It is characterized in that The step S5 also includes the following specific steps: Determine the input of the predicted value of the state error value at time t+1. If the input of the predicted value of the state error value at time t+1 is predicted by fitting the straight line equation, use the acceleration of the robot's motion trajectory to correct the predicted value of the state error value at time t+1.

3. According to claim 2, a real-time prediction method for state observation error of ADRC extended observer, It is characterized in that The specific formula for correcting the predicted value of the state error value at time t+1 is as follows: in, is the correction value of the predicted value of the state error value at time t+1 of the i-th state, and the value range of i is (1, 2, 3). is the predicted value of the state error value of the i-th state at time t+1, a is the acceleration of the robot's motion trajectory, and f(t) is the value of the fitting straight line equation at time t.

4. According to the real-time prediction method of state observation error of ADRC extended observer according to claim 1, the cycle threshold in step S2 is 5 cycles.

5. A real-time prediction system for state observation error of an ADRC extended observer, using a real-time prediction method for state observation error of an ADRC extended observer according to any one of claims 1 to 4, It is characterized in that include: When the error value acquisition module, the cycle threshold judgment module, the equation fitting module, the prediction module and the input module; The error value acquisition module is used to obtain the error values ​​of the three states from the initial time to the time t before the robot enters the movement at the time t+1; The cycle threshold determination module is used to determine whether the current time t meets the cycle threshold requirement; The equation fitting module is used to fit the error values ​​of the three states using the least square method of linear regression equation to obtain a fitting straight line equation; The prediction module is used to substitute the error values ​​of the three states at time t into the prediction function to obtain the predicted values ​​of the state error values ​​of the three states at time t+1 respectively; The input module is used to input the predicted values ​​of the state error values ​​of the three states at time t+1 into the parameter updater to optimize the expanded observer parameters in real time; Consider the number of fitting points of the linear regression equation. If the number of fitting points of the regression equation is too small, the fitting effect will be affected, resulting in deviations in the value of the straight line equation. In this case, the effect of not fitting is better than the effect after fitting. Therefore, if the current moment t does not meet the period threshold requirement, the error values ​​of the three states are directly substituted into the prediction function as the final predicted value of the state error value at time t+1. After the current moment t meets the period threshold requirement, the error values ​​of the three states are fitted with the linear regression equation by the least squares method to obtain the fitted straight line equation value, and then the fitted straight line equation value is predicted to obtain the predicted value of the state error value at time t+1.

6. The ADRC extended observer state observation error real-time prediction system according to claim 5, It is characterized in that It also includes a correction module, which is used to determine the input of the predicted value of the state error value at time t+1. If the input of the predicted value of the state error value at time t+1 is predicted by fitting a straight line equation, the predicted value of the state error value at time t+1 is corrected using the acceleration of the robot's motion trajectory.