Multi-working-condition temperature drift self-adaptive compensation method for intelligent harmonic reducer
By setting multiple temperature sensors in the harmonic reducer and combining a thermoelastic coupling model and a residual compensation model, the problems of temperature drift compensation accuracy and stability of the harmonic reducer under multiple operating conditions are solved, achieving higher compensation accuracy and operational consistency.
Patent Information
- Application Number
- CN202611234977.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-14
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies cannot accurately characterize the non-uniform temperature distribution inside harmonic reducers, leading to a decrease in compensation accuracy under various operating conditions. Furthermore, they are highly dependent on training data, making it difficult to guarantee operational stability.
By setting multiple temperature sensors on the inner wall of the flexible wheel near the wave generator side, the outer wall of the flexible wheel, and the rigid wheel, radial and axial temperature gradient characteristics and average temperature characteristics are constructed. Combined with the flexible wheel thermoelastic coupling model and residual compensation model, the physical compensation amount is calculated and joint compensation is performed to adapt to temperature drift under different working conditions.
It improves the accuracy and operational stability of temperature drift compensation, reduces reliance on training data, and ensures consistency of compensation under multiple operating conditions.
Smart Images

Figure CN123159073A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of precision transmission technology, specifically to an adaptive compensation method for temperature drift under multiple operating conditions in intelligent harmonic reducers. Background Technology
[0002] Harmonic reducers are widely used in robot joint drive systems, achieving high-precision transmission through flexible wheels, rigid wheels, and wave generators. With increasing demands for robot force control and safety, integrating MEMS strain sensors in situ onto the flexible wheels for torque sensing has become a common approach. In this type of structure, the raw strain signal output by the MEMS strain sensor includes not only the effective strain component caused by the transmitted torque but also the drift component caused by temperature changes. Existing technologies typically use a single temperature signal for linear compensation or directly fit the relationship between temperature and torque based on a data model.
[0003] Existing technologies using a single temperature signal for compensation can only reflect the impact of overall temperature rise on sensor output, failing to characterize the non-uniform temperature distribution caused by multiple heat sources within the harmonic reducer. This leads to decreased compensation accuracy under various operating conditions. When using a pure data model for compensation, the model is heavily reliant on training data, making it prone to error accumulation during changes in operating conditions or long-term operation. All of the above methods struggle to simultaneously ensure both compensation accuracy and operational stability under different temperature distribution conditions. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides an adaptive compensation method for temperature drift under multiple operating conditions in intelligent harmonic reducers, which solves the problems of existing technologies being unable to accurately characterize the influence of non-uniform temperature distribution and being highly dependent on training data.
[0005] To achieve the above objectives, the present invention provides the following technical solution: an intelligent harmonic reducer multi-condition temperature drift adaptive compensation method, comprising the following steps: S1. Acquire the raw strain signal from the MEMS strain sensor integrated in situ on the flexible wheel, and acquire the first temperature signal, the second temperature signal, and the third temperature signal respectively set on the near-wave generator side of the inner wall of the flexible wheel, the outer wall of the flexible wheel, and the rigid wheel. S2. Based on the first temperature signal, the second temperature signal, and the third temperature signal, construct radial temperature gradient characteristics, axial temperature gradient characteristics, and average temperature characteristics; S3. Based on the preset flexible wheel thermoelastic coupling model, calculate the physical compensation amount corresponding to the original strain signal according to the radial temperature gradient characteristics, the axial temperature gradient characteristics and the average temperature characteristics. S4. Compensate the original strain signal according to the physical compensation amount to obtain the initial compensated strain signal; S5. Under known reference torque conditions or zero load conditions, determine the residual based on the initial compensation strain signal, and update the residual compensation model parameters using the residual. S6. Under actual operating conditions, the original strain signal is jointly compensated according to the physical compensation amount and the residual compensation amount corresponding to the residual compensation model parameters, and the compensated torque value is output.
[0006] Preferably, the radial temperature gradient feature is constructed from the difference between the first temperature signal and the second temperature signal; The axial temperature gradient feature is constructed from the difference between the average of the first temperature signal and the second temperature signal and the third temperature signal. The average temperature feature is constructed from the average of the first temperature signal, the second temperature signal, and the third temperature signal.
[0007] Preferably, the flexible wheel thermoelastic coupling model includes a sensor integrated temperature coefficient, a radial temperature gradient strain coupling coefficient, and an axial temperature gradient strain coupling coefficient, which are determined through temperature cycling tests during the factory calibration phase.
[0008] Preferably, the zero-load condition is identified by the following method: the motor drive current is continuously less than a preset multiple of the no-load current, the joint angular velocity is continuously less than a preset speed threshold, and the duration of the condition exceeds a preset minimum duration.
[0009] Preferably, the residual compensation model is an online incremental learning model, which adopts an online sequential extreme learning machine model.
[0010] Preferably, the number of hidden layer nodes in the online sequential extreme learning machine model is adaptively adjusted based on the statistical characteristics of the residuals; When the residual variance exceeds a preset upper limit threshold, the number of hidden layer nodes is increased; When the residual variance remains below the preset lower limit threshold and exceeds the preset time, redundant hidden layer nodes are pruned.
[0011] Preferably, the update of the residual compensation model parameters adopts a version management mechanism; Each time the residual compensation model parameters are updated, the residual compensation model parameters before the update are stored as a historical version; If the updated residual compensation model parameters cause the compensation accuracy to drop beyond a preset threshold, roll back to the previous valid version.
[0012] Preferably, a multi-condition temperature drift adaptive compensation system for an intelligent harmonic reducer, based on the aforementioned multi-condition temperature drift adaptive compensation method for an intelligent harmonic reducer, includes: MEMS strain sensors are integrated in situ onto a flexible wheel to output raw strain signals; The first temperature sensor is located on the inner wall of the flexible wheel near the wave generator side and is used to output the first temperature signal; The second temperature sensor is located on the outer wall of the flexible wheel and is used to output a second temperature signal; The third temperature sensor is installed on the rigid wheel and is used to output the third temperature signal; The signal processing unit is connected to the MEMS strain sensor, the first temperature sensor, the second temperature sensor and the third temperature sensor, and is used to execute the above-mentioned intelligent harmonic reducer multi-condition temperature drift adaptive compensation method. A storage module, connected to the signal processing unit, is used to store the parameters of the flexible wheel thermoelastic coupling model and the residual compensation model.
[0013] Preferably, an electronic device includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the above-described intelligent harmonic reducer multi-condition temperature drift adaptive compensation method.
[0014] Preferably, a computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the above-described intelligent harmonic reducer multi-condition temperature drift adaptive compensation method.
[0015] This invention provides a multi-condition temperature drift adaptive compensation method for intelligent harmonic reducers. It has the following beneficial effects: 1. The present invention acquires a first temperature signal, a second temperature signal, and a third temperature signal by setting multiple temperature sensors on the near-wave generator side of the inner wall of the flexible wheel, the outer wall of the flexible wheel, and the rigid wheel, and constructs radial temperature gradient characteristics, axial temperature gradient characteristics, and average temperature characteristics, so that the temperature characteristics can simultaneously characterize the overall temperature rise and non-uniform temperature distribution state, thereby improving the accuracy of temperature drift compensation under multiple operating conditions.
[0016] 2. This invention calculates the physical compensation amount based on the flexible wheel thermoelastic coupling model, and combines the residual compensation model to correct the residual error in the initial compensation strain signal, so that the compensation process simultaneously considers the modelable temperature drift component and the unmodelable error component, thereby reducing the dependence on training data and improving the operational stability.
[0017] 3. This invention updates the residual compensation model parameters under zero load conditions or known reference torque conditions, enabling the model parameters to be adjusted according to changes in operating conditions, thereby improving the consistency of compensation under different operating conditions. Attached Figure Description
[0018] Figure 1 This is a flowchart of the overall method of the present invention. Detailed Implementation
[0019] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] Please see the appendix Figure 1 This invention provides a multi-condition temperature drift adaptive compensation method for intelligent harmonic reducers, comprising the following steps: S1. Acquire the raw strain signal from the MEMS strain sensor integrated in situ on the flexible wheel, and acquire the first temperature signal, the second temperature signal, and the third temperature signal respectively set on the near-wave generator side of the inner wall of the flexible wheel, the outer wall of the flexible wheel, and the rigid wheel. S2. Based on the first temperature signal, the second temperature signal, and the third temperature signal, construct radial temperature gradient characteristics, axial temperature gradient characteristics, and average temperature characteristics; S3. Based on the preset flexible wheel thermoelastic coupling model, calculate the physical compensation amount corresponding to the original strain signal according to the radial temperature gradient characteristics, axial temperature gradient characteristics and average temperature characteristics. S4. Compensate the original strain signal according to the physical compensation amount to obtain the initial compensated strain signal; S5. Under known reference torque conditions or zero load conditions, determine the residuals based on the initial compensation strain signal, and use the residuals to update the parameters of the residual compensation model. S6. Under actual operating conditions, the original strain signal is jointly compensated based on the physical compensation amount and the residual compensation amount corresponding to the residual compensation model parameters, and the compensated torque value is output.
[0021] The radial temperature gradient feature is constructed from the difference between the first temperature signal and the second temperature signal; The axial temperature gradient feature is constructed from the difference between the average of the first and second temperature signals and the third temperature signal. The average temperature characteristic is constructed from the average of the first temperature signal, the second temperature signal, and the third temperature signal.
[0022] Specifically, the signal processing unit synchronously acquires the original strain signal, the first temperature signal, the second temperature signal, and the third temperature signal in each sampling cycle. The original strain signal is output by a MEMS strain sensor integrated in situ on the flexible wheel, the first temperature signal is output by a first temperature sensor located on the inner wall of the flexible wheel near the wave generator side, the second temperature signal is output by a second temperature sensor located on the outer wall of the flexible wheel, and the third temperature signal is output by a third temperature sensor located on the rigid wheel.
[0023] The signal processing unit performs time alignment processing on the original strain signal, the first temperature signal, the second temperature signal, and the third temperature signal. The time alignment processing adopts a unified sampling clock and a unified timestamp marking method, so that the original strain signal, the first temperature signal, the second temperature signal, and the third temperature signal within the same sampling period correspond to the reducer operating state at the same moment.
[0024] After time alignment, the signal processing unit performs preprocessing on the first, second, and third temperature signals. Preprocessing includes analog-to-digital conversion, zero-bias correction, and low-pass filtering. Zero-bias correction eliminates static bias in the temperature sensors, and low-pass filtering suppresses high-frequency measurement noise. The raw strain signals undergo filtering with the same sampling period as the first, second, and third temperature signals to ensure consistent data timing for the input signals in subsequent compensation calculations.
[0025] After preprocessing, the signal processing unit constructs radial temperature gradient features based on the first and second temperature signals; constructs axial temperature gradient features based on the first, second, and third temperature signals; and constructs average temperature features based on the first, second, and third temperature signals. The radial temperature gradient features characterize the temperature difference between the inner wall of the flexible wheel near the wave generator side and the outer wall of the flexible wheel; the axial temperature gradient features characterize the temperature difference between the flexible wheel region and the rigid wheel region; and the average temperature features characterize the overall temperature rise corresponding to the original strain signal.
[0026] In this embodiment, the radial temperature gradient feature is constructed from the difference between the first temperature signal and the second temperature signal; the axial temperature gradient feature is constructed from the difference between the average of the first temperature signal and the second temperature signal and the third temperature signal; and the average temperature feature is constructed from the average of the first temperature signal, the second temperature signal, and the third temperature signal. The signal processing unit repeats the above feature construction steps in each sampling period and outputs the radial temperature gradient feature, axial temperature gradient feature, and average temperature feature corresponding to the current sampling period to the flex wheel thermoelastic coupling model.
[0027] To prevent abnormal temperature samples from directly participating in compensation calculations, the signal processing unit performs range determination on the first, second, and third temperature signals before constructing the radial, axial, and average temperature features. The range determination uses the temperature sensor calibration range and the system's preset operating temperature range as boundaries. When any temperature signal exceeds its corresponding boundary, the signal processing unit retains the valid temperature signal from the previous sampling period for feature construction in the current sampling period and records the abnormal state of that sampling period. The abnormal state does not change the definition of the radial, axial, and average temperature features.
[0028] After constructing the radial temperature gradient features, axial temperature gradient features, and average temperature features, the signal processing unit uses the radial temperature gradient features, axial temperature gradient features, and average temperature features as temperature feature inputs within the same compensation period, and sends them along with the original strain signal into the subsequent compensation calculation process.
[0029] Furthermore, the flexible wheel thermoelastic coupling model includes the sensor integrated temperature coefficient, radial temperature gradient strain coupling coefficient, and axial temperature gradient strain coupling coefficient. The sensor integrated temperature coefficient, radial temperature gradient strain coupling coefficient, and axial temperature gradient strain coupling coefficient are determined through temperature cycling tests during the factory calibration phase.
[0030] Specifically, the flexible wheel thermoelastic coupling model is used to describe the influence of average temperature characteristics, radial temperature gradient characteristics, and axial temperature gradient characteristics on the temperature drift component of the original strain signal. The flexible wheel thermoelastic coupling model takes the average temperature characteristics, radial temperature gradient characteristics, and axial temperature gradient characteristics as inputs and the thermal strain compensation corresponding to the physical compensation amount as output.
[0031] In this embodiment, the flexible wheel thermoelastic coupling model is expressed by the following equation:
[0032] in, This represents the thermal strain compensation amount corresponding to the physical compensation amount. Indicates the average temperature characteristic. Indicates radial temperature gradient characteristics. Indicates the axial temperature gradient characteristics. Indicates the overall temperature coefficient of the sensor. This represents the radial temperature gradient strain coupling coefficient. This represents the axial temperature gradient strain coupling coefficient.
[0033] In this solution, for the Type 14 intelligent harmonic reducer, the sensor's overall temperature coefficient α s Preferably, the radial temperature gradient strain coupling coefficient β is -0.023% / ℃.r Preferably, the axial temperature gradient strain coupling coefficient β is -0.015% / ℃. a The preferred value is -0.008% / ℃.
[0034] The sensor's overall temperature coefficient, radial temperature gradient strain coupling coefficient, and axial temperature gradient strain coupling coefficient are determined during the factory calibration phase. During factory calibration, a preset temperature cycle condition is applied to the intelligent harmonic reducer, and raw strain signals, a first temperature signal, a second temperature signal, and a third temperature signal are collected under conditions with no external torque or a known reference torque. Based on the collected data, a correspondence between temperature characteristics and thermal strain compensation is established, and the sensor's overall temperature coefficient, radial temperature gradient strain coupling coefficient, and axial temperature gradient strain coupling coefficient are calculated. These coefficients are then written to a storage module and retrieved by the signal processing unit during operation.
[0035] Within each sampling period, the signal processing unit substitutes the average temperature characteristics, radial temperature gradient characteristics, and axial temperature gradient characteristics of the current period into the flexible wheel thermoelastic coupling model to obtain the physical compensation amount for the current period. The physical compensation amount has the same data dimension and the same compensation period as the original strain signal. The physical compensation amount is determined solely by the average temperature characteristics, radial temperature gradient characteristics, axial temperature gradient characteristics, as well as the sensor's overall temperature coefficient, radial temperature gradient strain coupling coefficient, and axial temperature gradient strain coupling coefficient.
[0036] To ensure consistency in calculations during operation, the signal processing unit performs calculations on the physical compensation amount using a fixed model structure and a fixed parameter set. Different models of intelligent harmonic reducers correspond to different sensor integrated temperature coefficients, radial temperature gradient strain coupling coefficients, and axial temperature gradient strain coupling coefficients, but the input and output terms of the flexible wheel thermoelastic coupling model remain consistent, both including average temperature characteristics, radial temperature gradient characteristics, axial temperature gradient characteristics, and physical compensation amount.
[0037] In one embodiment, the signal processing unit caches the physical compensation amount in the compensation register according to the sampling period, and simultaneously sends the physical compensation amount and the original strain signal corresponding to the current period to the subsequent initial compensation strain signal calculation module. The compensation register simultaneously stores the average temperature characteristics, radial temperature gradient characteristics, and axial temperature gradient characteristics of the current period, which are used for updating the residual compensation model parameters and joint compensation output.
[0038] Furthermore, the residual compensation model is an online incremental learning model, which adopts an online sequential extreme learning machine model.
[0039] Specifically, after obtaining the original strain signal and physical compensation amount for the current sampling period, the signal processing unit performs a compensation calculation between the original strain signal and the physical compensation amount. The compensation calculation is performed by subtracting the physical compensation amount from the original strain signal to obtain the initial compensated strain signal for the current sampling period.
[0040] The initial compensation strain signal and the original strain signal are stored using the same sampling period, timestamp, and signal format. The signal processing unit writes the initial compensation strain signal into a buffer for subsequent residual determination, residual compensation model parameter updates, and real-time joint compensation calculations. A corresponding initial compensation strain signal is generated for each sampling period, and the initial compensation strain signal corresponds one-to-one with the average temperature characteristics, radial temperature gradient characteristics, and axial temperature gradient characteristics.
[0041] The initial compensated strain signal characterizes the strain measurement results after the modelable temperature drift component has been eliminated in the flexspline thermoelastic coupling model. The initial compensated strain signal still contains residual error components caused by individual product differences, long-term service variations, local thermal coupling deviations, and instantaneous operating condition changes. These residual error components are used as the learning object for the residual compensation model in subsequent processes.
[0042] In one embodiment, the signal processing unit performs a stability determination on the initial compensation strain signal. The stability determination is based on the change in the initial compensation strain signal within adjacent sampling periods. When the change in the initial compensation strain signal exceeds a preset boundary, the signal processing unit marks that sampling period as a transient change period. The transient change period still participates in the real-time joint compensation calculation, but is not directly used for updating the residual compensation model parameters. This processing method ensures that the updated samples of the residual compensation model parameters correspond to the stable operating conditions.
[0043] The residual compensation model is used to estimate the residual error components in the initial compensated strain signal and output the residual compensation amount. The residual compensation model takes the data of the current sampling period as its input and outputs the residual compensation amount corresponding to the current sampling period. The residual compensation amount has the same data dimension and the same compensation period as the initial compensated strain signal.
[0044] In this embodiment, the inputs to the residual compensation model include the initial compensation strain signal, average temperature characteristics, radial temperature gradient characteristics, and axial temperature gradient characteristics. The signal processing unit combines the initial compensation strain signal, average temperature characteristics, radial temperature gradient characteristics, and axial temperature gradient characteristics into an input vector within each sampling period, and calculates the residual compensation amount based on the currently valid residual compensation model parameters.
[0045] The residual compensation model is updated under either a known reference torque condition or a zero-load condition. Under the known reference torque condition, the signal processing unit determines the residual based on the difference between the initial compensated strain signal and the reference strain value corresponding to the reference torque. Under the zero-load condition, the signal processing unit determines the residual based on the deviation of the initial compensated strain signal from the zero-strain reference value. The residual is input as supervisory information for the current sampling period into the residual compensation model to update its parameters.
[0046] After the residual compensation model parameters are updated, the signal processing unit writes the updated residual compensation model parameters into the current valid parameter area, and calculates the residual compensation amount according to the updated residual compensation model parameters in subsequent sampling periods. The residual compensation amount is used to correct the residual error components in the initial compensated strain signal, and acts together with the physical compensation amount on the original strain signal in real-time joint compensation calculation.
[0047] The construction and updating of the residual compensation model are performed using an online incremental approach. This online incremental approach means that during system operation, the signal processing unit sequentially receives new initial compensation strain signals, new average temperature characteristics, new radial temperature gradient characteristics, new axial temperature gradient characteristics, and new residuals according to the sampling period, and performs single-cycle or multi-cycle cumulative parameter corrections based on the currently valid residual compensation model parameters. Updating the residual compensation model parameters does not affect the model structure and parameter set of the flexible wheel thermoelastic coupling model.
[0048] To maintain consistency between model input and output, the residual compensation model uses the same input and output definitions across the three phases: construction, update, and compensation. The construction phase generates initial model parameters, the update phase corrects the residual compensation model parameters, and the compensation phase outputs the residual compensation amount. The execution entity for all three phases is a signal processing unit, and the residual compensation model parameters are stored in a storage module.
[0049] Furthermore, the zero-load condition is identified as follows: the motor drive current is continuously less than a preset multiple of the no-load current, the joint angular velocity is continuously less than a preset speed threshold, and the duration of this condition exceeds a preset minimum duration.
[0050] Specifically, the signal processing unit acquires the motor drive current and joint angular velocity in real time, and determines whether the current operating condition meets the zero-load condition based on the motor drive current and joint angular velocity. The determination conditions for the zero-load condition include: the motor drive current is continuously less than a preset multiple of the no-load current, the joint angular velocity is continuously less than a preset speed threshold, and the above two conditions are continuously met for a period of time exceeding a preset minimum duration. The signal processing unit determines the current operating condition to be a zero-load condition only when all three conditions are met simultaneously.
[0051] The preset multiple of the no-load current, the preset speed threshold, and the preset minimum duration are written into the control parameter table during system initialization. The signal processing unit continuously monitors the motor drive current and joint angular velocity according to a sliding time window. If any sampling point within the sliding time window does not meet the above judgment conditions, the zero-load condition judgment will not be triggered in the current time window. When all sampling points within the sliding time window meet the above judgment conditions, the signal processing unit outputs a zero-load condition flag.
[0052] When the zero-load condition flag is active, the signal processing unit reads the initial compensation strain signal within the corresponding time window and determines the residual based on the deviation of the initial compensation strain signal from the zero-strain reference value. The zero-strain reference value is determined during the factory calibration stage and stored in the storage module. The signal processing unit writes the input vector and residual within the current time window into the update buffer of the residual compensation model and triggers the residual compensation model parameter update process.
[0053] Under the known reference torque condition, the signal processing unit receives the reference torque value output by the external reference measurement module, determines the reference strain value based on the relationship between the reference torque value and the sensor calibration, and determines the residual based on the difference between the initial compensation strain signal and the reference strain value. After obtaining the residual, the signal processing unit executes the same parameter update process as under the zero-load condition. Therefore, the trigger source for updating the residual compensation model parameters includes two methods: zero-load condition triggering and known reference torque condition triggering.
[0054] To prevent repeated updates of the residual compensation model parameters within the same zero-load condition window, the signal processing unit marks the current zero-load condition window as processed after each update. This processed state remains in effect until the motor drive current or joint angular velocity leaves the zero-load condition judgment range. Only when the window re-enters and again meets the zero-load condition judgment conditions will the signal processing unit perform the next update of the residual compensation model parameters.
[0055] Furthermore, the number of hidden layer nodes in the online sequential extreme learning machine model is adaptively adjusted based on the statistical characteristics of the residuals. When the residual variance exceeds a preset upper limit threshold, the number of hidden layer nodes is increased; When the residual variance remains below the preset lower limit threshold and exceeds the preset time, redundant hidden layer nodes are pruned.
[0056] Specifically, the residual compensation model employs an online sequential limit learning machine (OLLM) model. The OLLM model comprises an input layer, hidden layers, and an output layer. The input layer receives an input vector consisting of the initial compensation strain signal, average temperature characteristics, radial temperature gradient characteristics, and axial temperature gradient characteristics. The output layer outputs the residual compensation amount corresponding to the current input vector. The hidden layer is used to establish a nonlinear mapping relationship between the input vector and the residual compensation amount.
[0057] During the model initialization phase, the signal processing unit establishes the initial parameters of the online sequential extreme learning machine model using factory calibration data or sample data collected during the initial operation phase. The initial parameters include the connection parameters from the input layer to the hidden layer, the hidden layer node parameters, and the output layer parameters. After initialization, the online sequential extreme learning machine model enters the online sequential update phase.
[0058] During the online sequential update phase, the signal processing unit feeds the new input vector and the new residuals into the online sequential extreme learning machine model in chronological order. The model recursively updates itself based on the residual compensation model parameters retained from the previous cycle and the newly added samples in the current cycle, obtaining new residual compensation model parameters. The updated residual compensation model parameters are immediately used to calculate the residual compensation amount in subsequent sampling cycles.
[0059] In this embodiment, the signal processing unit adaptively adjusts the number of hidden layer nodes in the online sequential extreme learning machine model based on the statistical characteristics of the residuals. Specifically, the signal processing unit calculates the variance of the residuals over multiple consecutive sampling periods and compares the statistical results with preset upper and lower thresholds. When the residual variance exceeds the preset upper threshold, the signal processing unit increases the number of hidden layer nodes and updates the residual compensation model parameters based on the newly added hidden layer nodes. When the residual variance remains below the preset lower threshold for an extended period, the signal processing unit prunes redundant hidden layer nodes and reorganizes the residual compensation model parameters corresponding to the remaining hidden layer nodes.
[0060] The operation of adding hidden layer nodes includes allocating storage space for the new hidden layer nodes, establishing parameters for the new hidden layer nodes, integrating the new hidden layer nodes into the current model structure, and performing parameter reshaping. The operation of pruning redundant hidden layer nodes includes determining the nodes to be pruned based on their contribution, removing the parameters of the nodes to be pruned, and re-establishing the parameter index table after pruning. The above adjustment process is completed by the signal processing unit within the model update window, without changing the definition of the input and output layers.
[0061] To maintain the continuity of the real-time compensation process, the signal processing unit continues to output the residual compensation amount using the previously valid residual compensation model parameters during the adaptive adjustment of the number of hidden layer nodes. Once the node adjustment and parameter resetting are complete, the signal processing unit switches the reset residual compensation model parameters to the currently valid parameters. This switching is performed at the sampling period boundary, ensuring that only one set of currently valid parameters corresponds to the same sampling period.
[0062] Furthermore, the update of the residual compensation model parameters adopts a version management mechanism; After each update of the residual compensation model parameters, the residual compensation model parameters before the update are stored as a historical version; If the updated residual compensation model parameters cause the compensation accuracy to drop beyond a preset threshold, roll back to the previous valid version.
[0063] Specifically, before each residual compensation model parameter update, the signal processing unit copies and stores the previous residual compensation model parameters as a historical version. These historical versions are numbered sequentially according to their update time and written to the storage module. The currently valid parameter area always stores the most recently evaluated and confirmed residual compensation model parameters.
[0064] After a residual compensation model parameter update is completed, the signal processing unit evaluates the updated compensation effect within a preset evaluation window. The preset evaluation window consists of continuous sampling periods. Within the preset evaluation window, the signal processing unit calculates the residual error index after compensation and compares it with the baseline error index corresponding to the parameters before the update. When the compensation accuracy decreases beyond a preset threshold, the signal processing unit performs a rollback operation, rewriting the residual compensation model parameters of the previous valid version into the current valid parameter area.
[0065] After the rollback operation is complete, the signal processing unit clears the temporary parameters corresponding to this failed update and records the rollback event in the parameter management table. The parameter management table records the update time, the version number before the update, the version number after the update, the evaluation window number, and the rollback flag. This recording method is used for subsequent model maintenance and does not change the calculation method of residual compensation in the real-time compensation process.
[0066] In this implementation, the storage module sets an upper limit on the number of historical versions. When the number of historical versions reaches the upper limit, the signal processing unit deletes the earliest historical version in order of update time, while maintaining continuous storage of the current valid parameter area and the most recent historical version areas. Regardless of changes in the number of historical versions, the current valid version, the previous valid version, and the version to be evaluated in this evaluation of the residual compensation model parameters remain readable and writable.
[0067] The parameter version management mechanism is executed separately from the update process of the online sequential extreme learning machine model. That is, the online sequential extreme learning machine model is responsible for generating new residual compensation model parameters, while the parameter version management mechanism is responsible for saving, evaluating, verifying, and rolling back the residual compensation model parameters. Both parts are controlled by the signal processing unit and exchange data through the storage module.
[0068] The signal processing unit sequentially executes the following steps within each sampling period: acquiring the original strain signal, the first temperature signal, the second temperature signal, and the third temperature signal; constructing radial temperature gradient characteristics, axial temperature gradient characteristics, and average temperature characteristics; calculating the physical compensation amount based on the flexible wheel thermoelastic coupling model; obtaining the initial compensation strain signal based on the physical compensation amount; calculating the residual compensation amount based on the currently effective residual compensation model parameters; completing the joint compensation operation based on the physical compensation amount and the residual compensation amount; and outputting the compensated torque value based on the joint compensation result.
[0069] The joint compensation operation takes the original strain signal as input and uses physical compensation and residual compensation as compensation terms. The signal processing unit first performs physical compensation on the original strain signal to obtain the initial compensated strain signal; then it performs residual compensation on the initial compensated strain signal to obtain the joint compensated strain signal. The joint compensated strain signal is converted into a compensated torque value through sensor calibration relationships.
[0070] The sensor calibration relationship is determined during the factory calibration stage and stored in the storage module. During operation, the signal processing unit directly calls the sensor calibration relationship to complete the conversion of the strain signal after joint compensation into the compensated torque value. The compensated torque value corresponds one-to-one with the current sampling period and carries the same timestamp as the original strain signal.
[0071] When the residual compensation model parameter update trigger condition is met within the sampling period, the signal processing unit executes the residual compensation model parameter update and parameter version management process after outputting the torque value after compensation for the current period. In this way, the real-time output of the current sampling period uses the valid residual compensation model parameters before the update, and the updated and confirmed residual compensation model parameters begin to be used in the next sampling period. This maintains consistency in the compensation calculation process within the same sampling period.
[0072] The compensated torque value can be output to the host controller via a bus interface, serial interface, or industrial communication interface. The output data frame includes at least the compensated torque value, the current sampling period number, and a status flag. The status flag indicates whether a zero-load condition determination occurred in the current sampling period, whether residual compensation model parameter updates were performed, and whether parameter rollback occurred. The output of the status flag does not change the calculation method of the compensated torque value.
[0073] During continuous operation, the signal processing unit repeatedly executes the aforementioned real-time joint compensation and torque value output process. Each sampling cycle independently completes the acquisition of the original strain signal, construction of temperature characteristics, calculation of physical compensation, generation of the initial compensation strain signal, calculation of residual compensation, and output of the compensated torque value. This forms a continuous compensation process oriented towards multiple operating conditions.
[0074] A multi-condition temperature drift adaptive compensation system for an intelligent harmonic reducer, based on the aforementioned multi-condition temperature drift adaptive compensation method for an intelligent harmonic reducer, includes: MEMS strain sensors are integrated in situ onto a flexible wheel to output raw strain signals; The first temperature sensor is located on the inner wall of the flexible wheel near the wave generator side and is used to output the first temperature signal; The second temperature sensor is located on the outer wall of the flexible wheel and is used to output a second temperature signal; The third temperature sensor is installed on the rigid wheel and is used to output the third temperature signal; The signal processing unit is connected to the MEMS strain sensor, the first temperature sensor, the second temperature sensor and the third temperature sensor, and is used to execute the above-mentioned intelligent harmonic reducer multi-condition temperature drift adaptive compensation method. The storage module, connected to the signal processing unit, is used to store the parameters of the flex wheel thermoelastic coupling model and the residual compensation model.
[0075] Specifically, the system includes a MEMS strain sensor, a first temperature sensor, a second temperature sensor, a third temperature sensor, a signal processing unit, and a storage module. The MEMS strain sensor is mounted on the flexible wheel and is used to output the raw strain signal; the first temperature sensor is mounted on the inner wall of the flexible wheel near the wave generator side and is used to output the first temperature signal; the second temperature sensor is mounted on the outer wall of the flexible wheel and is used to output the second temperature signal; the third temperature sensor is mounted on the rigid wheel and is used to output the third temperature signal.
[0076] The MEMS strain sensor, the first temperature sensor, the second temperature sensor, and the third temperature sensor are connected to the signal processing unit via analog signal lines or digital communication interfaces. The signal processing unit receives the raw strain signal, the first temperature signal, the second temperature signal, and the third temperature signal, and internally performs data acquisition, time alignment, temperature feature construction, physical compensation calculation, residual compensation calculation, and outputs the compensated torque value.
[0077] In this embodiment, the signal processing unit includes a processor, an analog-to-digital converter (ADC), and a communication interface module. The ADC is used to convert the analog signal output by the MEMS strain sensor into a digital signal, and to convert the analog signals output by the first, second, and third temperature sensors into digital signals. For temperature sensors using digital interfaces, the signal processing unit directly acquires the first, second, and third temperature signals through the corresponding digital communication interface.
[0078] The processor is used to perform temperature feature construction, flexible wheel thermoelastic coupling model calculation, initial compensation strain signal generation, residual compensation model calculation, zero-load condition identification, residual compensation model parameter update, and joint compensation calculation. The processor executes the above operation process cyclically according to a fixed sampling period, so that each sampling period corresponds to a set of compensated torque values output.
[0079] In this scheme, the processor is preferably a microcontroller or a digital signal processor, with a preferred clock frequency of 100MHz to 400MHz. The resolution of the analog-to-digital conversion module is preferably 16-bit to 24-bit, and the sampling rate is preferably not lower than the sampling frequency of the original strain signal. A unified system clock is set inside the signal processing unit for synchronous sampling control of the original strain signal, the first temperature signal, the second temperature signal, and the third temperature signal.
[0080] The storage module is connected to the signal processing unit and is used to store the model parameters of the flexible wheel thermoelastic coupling model and the residual compensation model parameters. The storage module includes non-volatile storage units and volatile storage units. The non-volatile storage units are used to store the sensor's overall temperature coefficient α obtained from factory calibration. s Radial temperature gradient strain coupling coefficient β r and axial temperature gradient strain coupling coefficient β a The system also stores historical versions of the residual compensation model parameters; the volatile storage unit stores the original strain signal, first temperature signal, second temperature signal, third temperature signal, radial temperature gradient characteristics, axial temperature gradient characteristics, average temperature characteristics, physical compensation amount, initial compensation strain signal, and residual compensation amount for the current sampling period.
[0081] The signal processing unit interacts with the storage module via an internal data bus. The processor reads the flex-wheel thermoelastic coupling model parameters and the currently valid residual compensation model parameters from the non-volatile memory, and performs compensation calculations by calling the parameters in each sampling period. After the residual compensation model parameters are updated, the processor writes the updated residual compensation model parameters to the non-volatile memory, and saves historical versions according to the version management mechanism.
[0082] The communication interface module is used to output the compensated torque value and status information to external devices. The communication interface module includes a serial communication interface or an industrial bus interface. The serial communication interface is preferably a UART or SPI interface, and the industrial bus interface is preferably a CAN bus or RS485 interface. The communication interface module synchronously sends the compensated torque value and status flags according to the sampling period. The status flags indicate whether the current sampling period is under zero-load conditions and whether residual compensation model parameter updates have been performed.
[0083] In one embodiment, the signal processing unit is connected to the drive motor controller and is used to acquire motor drive current and joint angular velocity information. The motor drive current and joint angular velocity serve as input signals for zero-load condition determination, and are read by the signal processing unit to execute the zero-load condition identification process. The motor drive current is preferably acquired through a current sampling circuit, and the joint angular velocity is preferably calculated using an encoder or a position sensor.
[0084] To ensure system stability, the signal processing unit executes an initialization process upon startup. This initialization process includes reading the parameters of the flexible wheel thermoelastic coupling model and the residual compensation model from the non-volatile memory, initializing the online sequential extreme learning machine model structure, establishing a sampling period timer, and starting the analog-to-digital conversion module and the communication interface module. After initialization, the system enters the periodic compensation calculation and torque output state.
[0085] During continuous operation, the signal processing unit repeatedly executes the data acquisition, temperature feature construction, physical compensation calculation, residual compensation calculation, and joint compensation output process according to a preset sampling period. The storage module synchronously updates the residual compensation model parameters and their historical versions during operation, maintaining the correspondence between the current valid parameters and historical versions. The above hardware structure and execution process together realize the multi-condition temperature drift adaptive compensation method for intelligent harmonic reducers.
[0086] An electronic device includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the above-mentioned intelligent harmonic reducer multi-condition temperature drift adaptive compensation method.
[0087] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described intelligent harmonic reducer multi-condition temperature drift adaptive compensation method.
[0088] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A multi-condition temperature drift adaptive compensation method for intelligent harmonic reducers, characterized in that, Includes the following steps: S1. Acquire the raw strain signal from the MEMS strain sensor integrated in situ on the flexible wheel, and acquire the first temperature signal, the second temperature signal, and the third temperature signal respectively set on the near-wave generator side of the inner wall of the flexible wheel, the outer wall of the flexible wheel, and the rigid wheel. S2. Based on the first temperature signal, the second temperature signal, and the third temperature signal, construct radial temperature gradient characteristics, axial temperature gradient characteristics, and average temperature characteristics; S3. Based on the preset flexible wheel thermoelastic coupling model, calculate the physical compensation amount corresponding to the original strain signal according to the radial temperature gradient characteristics, the axial temperature gradient characteristics and the average temperature characteristics. S4. Compensate the original strain signal according to the physical compensation amount to obtain the initial compensated strain signal; S5. Under known reference torque conditions or zero load conditions, determine the residual based on the initial compensation strain signal, and update the residual compensation model parameters using the residual. S6. Under actual operating conditions, the original strain signal is jointly compensated according to the physical compensation amount and the residual compensation amount corresponding to the residual compensation model parameters, and the compensated torque value is output.
2. The intelligent harmonic reducer multi-condition temperature drift adaptive compensation method according to claim 1, characterized in that, The radial temperature gradient feature is constructed from the difference between the first temperature signal and the second temperature signal; The axial temperature gradient feature is constructed from the difference between the average of the first temperature signal and the second temperature signal and the third temperature signal. The average temperature feature is constructed from the average of the first temperature signal, the second temperature signal, and the third temperature signal.
3. The intelligent harmonic reducer multi-condition temperature drift adaptive compensation method according to claim 1, characterized in that, The flexible wheel thermoelastic coupling model includes a sensor integrated temperature coefficient, a radial temperature gradient strain coupling coefficient, and an axial temperature gradient strain coupling coefficient. The sensor integrated temperature coefficient, the radial temperature gradient strain coupling coefficient, and the axial temperature gradient strain coupling coefficient are determined through temperature cycling tests during the factory calibration phase.
4. The intelligent harmonic reducer multi-condition temperature drift adaptive compensation method according to claim 1, characterized in that, The zero-load condition is identified as follows: the motor drive current is continuously less than a preset multiple of the no-load current, the joint angular velocity is continuously less than a preset speed threshold, and the duration of this condition exceeds a preset minimum duration.
5. The intelligent harmonic reducer multi-condition temperature drift adaptive compensation method according to claim 1, characterized in that, The residual compensation model is an online incremental learning model, which adopts an online sequential extreme learning machine model.
6. The intelligent harmonic reducer multi-condition temperature drift adaptive compensation method according to claim 5, characterized in that, The number of hidden layer nodes in the online sequential extreme learning machine model is adaptively adjusted based on the statistical characteristics of the residuals. When the residual variance exceeds a preset upper limit threshold, the number of hidden layer nodes is increased; When the residual variance remains below the preset lower limit threshold and exceeds the preset time, redundant hidden layer nodes are pruned.
7. The intelligent harmonic reducer multi-condition temperature drift adaptive compensation method according to claim 1, characterized in that, The parameters of the residual compensation model are updated using a version management mechanism; Each time the residual compensation model parameters are updated, the residual compensation model parameters before the update are stored as a historical version; If the updated residual compensation model parameters cause the compensation accuracy to drop beyond a preset threshold, roll back to the previous valid version.
8. A multi-condition temperature drift adaptive compensation system for an intelligent harmonic reducer, characterized in that, The intelligent harmonic reducer multi-condition temperature drift adaptive compensation method according to any one of claims 1-7 includes: MEMS strain sensors are integrated in situ onto a flexible wheel to output raw strain signals; The first temperature sensor is located on the inner wall of the flexible wheel near the wave generator side and is used to output the first temperature signal; The second temperature sensor is located on the outer wall of the flexible wheel and is used to output a second temperature signal; The third temperature sensor is installed on the rigid wheel and is used to output the third temperature signal; The signal processing unit is connected to the MEMS strain sensor, the first temperature sensor, the second temperature sensor and the third temperature sensor, and is used to execute the intelligent harmonic reducer multi-condition temperature drift adaptive compensation method according to any one of claims 1 to 7. A storage module, connected to the signal processing unit, is used to store the parameters of the flexible wheel thermoelastic coupling model and the residual compensation model.
9. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the intelligent harmonic reducer multi-condition temperature drift adaptive compensation method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the multi-condition temperature drift adaptive compensation method for the intelligent harmonic reducer according to any one of claims 1 to 7.
