Industrial robot collision detection method, apparatus, device, and medium

By constructing a generalized state observation model using multi-loop control feedback data from servo drives, external disturbances are decoupled and statistical parameters are updated online. Combined with adaptive thresholds to determine collisions, this overcomes the limitations of single-signal-source detection in existing technologies and enables efficient collision detection for industrial robots in complex environments.

CN123129136APending Publication Date: 2026-11-20GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611240309.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-17
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing industrial robot collision detection software solutions rely on only a single signal source, making it impossible to accurately detect both fast and slow collisions in complex industrial interference environments. This results in a high false alarm rate, affecting production cycle time and equipment reliability.

Method used

By acquiring multi-loop control feedback data from the servo drive, a generalized state observation model is constructed to decouple external disturbance estimates in real time, extract multi-dimensional state features, use the exponential forgetting recursive algorithm to update statistical distribution parameters online, calculate the collision safety index, and combine it with the motion phase adaptive threshold for collision determination.

Benefits of technology

It achieves accurate identification of fast and slow collisions under complex interference, significantly reduces the false alarm rate, improves system safety and reliability, and ensures the safe operation and production continuity of industrial robots under highly dynamic working conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123129136A_ABST
    Figure CN123129136A_ABST
Patent Text Reader

Abstract

The application discloses an industrial robot collision detection method, device, equipment and medium, the method is through collecting the multi-loop control feedback and instruction data of the servo driver, constructing the generalized state observation model to decouple the external disturbance estimate value in real time; combined with the estimate value and the feedback data, a feature vector is constructed by extracting a multi-dimensional state feature; the feature statistical distribution parameters are updated online by using the exponential forgetting recursive algorithm, and a collision safety index is calculated; at the same time, according to the current motion stage, an adaptive collision threshold value is obtained, the safety index is compared with the threshold value to determine the collision and trigger the servo protection. The scheme combines multi-loop data fusion and disturbance decoupling, online statistical modeling and adaptive threshold in stages, effectively overcomes the limitations of single signal detection, and under complex interference, the fast and slow collision is accurately identified, the false alarm rate is significantly reduced, and the system safety and reliability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial robot control technology, and in particular to an industrial robot collision detection method, device, equipment and medium. Background Technology

[0002] In practical production applications, industrial robots often need to work collaboratively with personnel or other equipment in shared spaces. To avoid accidental contact that could damage equipment or injure personnel, collision detection technology has become a core component in ensuring the safe operation of robots. Currently, collision detection is mainly divided into two categories: hardware sensor detection and software algorithm detection. Due to the high cost of hardware sensors and their susceptibility to temperature, humidity, electromagnetic interference, and mechanical wear in industrial environments, software algorithm detection solutions based on data from the servo system have become the mainstream research direction due to their low cost and ease of integration.

[0003] However, existing software collision detection schemes mostly rely on a single signal source for threshold judgment. For example, some schemes identify collisions simply by monitoring changes or abrupt changes in motor current, while others determine collisions based on the difference between theoretical and actual torque calculated using a dynamic model. This single-signal-source detection mechanism has inherent physical limitations under complex industrial conditions: rapid collisions typically manifest as instantaneous steps in the control signal, while slow collisions or gentle compressions manifest as gradual signal drift. If the judgment threshold is set based on only a single signal, the threshold sensitivity often needs to be reduced to capture slow collisions, but this makes the system extremely sensitive to load fluctuations, mechanical friction, transmission clearances, or electromagnetic noise under normal operating conditions; conversely, if the threshold is raised to improve anti-interference capabilities, it is very easy to miss slow collisions or delay the response to rapid collisions.

[0004] Furthermore, the actual operating environment of industrial robots is complex and variable. Factors such as changes in end-effector inertia, nonlinear friction of joints, and power grid fluctuations can all generate disturbance characteristics in a single signal that are highly similar to those of real collisions. Existing solutions lack the ability to fuse and analyze multi-source control data and dynamically decouple them, making it difficult to effectively distinguish between "real external collisions" and "internal system disturbances / environmental noise." This aliasing of signal characteristics and the single-dimensional judgment logic directly lead to a high false alarm rate in detection algorithms under complex operating conditions, frequently triggering unnecessary shutdown protection, and seriously affecting production cycle time and equipment reliability. Therefore, how to overcome the detection bottleneck of a single signal source, achieve both rapid and slow collision recognition in highly turbulent industrial environments, and effectively suppress false alarms has become an urgent technical problem to be solved in this field. Summary of the Invention

[0005] The embodiments of the present invention provide an industrial robot collision detection method, apparatus, device and medium, which aims to solve the technical problem that existing industrial robot collision detection schemes based on software algorithms cannot accurately detect both fast and slow collisions in complex industrial interference environments due to their reliance on a single signal source, resulting in a high false alarm rate.

[0006] In a first aspect, embodiments of the present invention provide an industrial robot collision detection method, the method comprising: The system acquires multi-loop control feedback data and control command data from the servo drive; based on the multi-loop control feedback data and control command data, it constructs a generalized state observation model and obtains an estimated external disturbance value through real-time decoupling; based on the estimated external disturbance value and the multi-loop control feedback data, it extracts multi-dimensional state features and constructs a feature vector for the current moment; it updates the statistical distribution parameters of the feature vector based on an online recursive estimation algorithm and calculates the collision safety index for the current moment based on the statistical distribution parameters; it determines the current motion stage and obtains the adaptive collision threshold corresponding to the motion stage; it compares the collision safety index with the adaptive collision threshold, determines whether a collision has occurred based on the comparison result, and triggers the corresponding servo protection control.

[0007] Secondly, embodiments of the present invention also provide an industrial robot collision detection device, including a unit for performing the industrial robot collision detection method as described above.

[0008] Thirdly, embodiments of the present invention also provide a computer device, the computer device including a memory and a processor connected to the memory; the memory is used to store a computer program; the processor is used to run the computer program stored in the memory to perform the steps of the above-described industrial robot collision detection method.

[0009] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, can implement the steps of the above-described industrial robot collision detection method.

[0010] Compared with the prior art, the beneficial effects of the present invention are: In the technical solution of this invention, the industrial robot collision detection method collects multi-loop control feedback and command data from the servo driver to construct a generalized state observation model and decouple external disturbance estimates in real time. It then combines these estimates with feedback data to extract multi-dimensional state features and construct a feature vector. An exponential forgetting recursive algorithm is used to update the feature statistical distribution parameters online and calculate the collision safety index. Simultaneously, an adaptive collision threshold is obtained based on the current motion stage, and the safety index is compared with the threshold to determine a collision and trigger servo protection. This solution, through multi-loop data fusion and disturbance decoupling, combined with online statistical modeling and staged adaptive thresholding, effectively overcomes the limitations of single-signal detection, accurately identifies both fast and slow collisions under complex interference, significantly reduces the false alarm rate, and improves system safety and reliability. Attached Figure Description

[0011] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 A flowchart of the industrial robot collision detection method provided by the present invention; Figure 2 This is a first sub-flowchart of the industrial robot collision detection method provided by the present invention. Figure 3 This is a second sub-flowchart of the collision detection method for industrial robots provided by the present invention; Figure 4 This is the third sub-flowchart of the collision detection method for industrial robots provided by the present invention; Figure 5 The fourth sub-flowchart of the collision detection method for industrial robots provided by the present invention; Figure 6 The fifth sub-flowchart of the collision detection method for industrial robots provided by the present invention; Figure 7 The sixth sub-flowchart of the collision detection method for industrial robots provided by the present invention; Figure 8 A schematic block diagram of a unit of the industrial robot collision detection device provided by the present invention; Figure 9 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation

[0013] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. 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.

[0014] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0015] It should also be understood that the terminology used in this specification is for the purpose of describing embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0016] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0017] To address the technical problem that existing collision detection schemes for industrial robots based on software algorithms rely on only a single signal source, resulting in a high false alarm rate due to their inability to accurately detect both fast and slow collisions in complex industrial interference environments, this invention discloses a collision detection method for industrial robots.

[0018] Reference Figures 1 to 7 The industrial robot collision detection method includes the following steps: S110: Obtain multi-loop control feedback data and control command data from the servo driver; S120. Based on the multi-loop control feedback data and control command data, a generalized state observation model is constructed, and external disturbance estimates are obtained in real time through decoupling. S130. Based on the external disturbance estimate and the multi-loop control feedback data, extract multi-dimensional state features and construct the feature vector for the current moment. S140. Update the statistical distribution parameters of the feature vector based on the online recursive estimation algorithm, and calculate the collision safety index at the current moment based on the statistical distribution parameters. S150. Determine the current motion stage and obtain the adaptive collision threshold corresponding to the motion stage. S160. Compare the collision safety index with the adaptive collision threshold, and determine whether a collision has occurred based on the comparison result and trigger the corresponding servo protection control.

[0019] First, the digital control unit inside the servo driver synchronously acquires position loop feedback data, speed loop feedback data, and current loop control command data of the servo system at a preset high-frequency control cycle. The acquired continuous physical signals undergo analog-to-digital conversion and discretization sampling to form multi-loop control feedback data and control command data for the current control cycle. Based on this multi-loop control feedback data and control command data, the system constructs a generalized state observation model to obtain real-time estimates of external disturbances through decoupling.

[0020] Specifically, the external disturbance torque caused by external collisions or sudden load changes is introduced as an extended state variable into the discrete state-space equation of the servo motor, extending the original second-order electromechanical system into a third-order generalized system. The forward Euler method is used in the digital controller for discretization, yielding the extended state transition matrix and input matrix.

[0021] Based on the position loop feedback data and control command data in the multi-loop control feedback data, the system utilizes a fully-dimensional Luenberger observer structure for state prediction and introduces a feedback correction term based on the position prediction error to correct the observer state in real time. The extended state variable estimate output by the observer is the real-time reconstructed external disturbance estimate. The external disturbance estimate effectively isolates the internal dynamic response generated by the coupling of the motor's own electromagnetic torque and mechanical inertia, accurately characterizing the equivalent collision torque applied externally.

[0022] After obtaining the external disturbance estimate, the system extracts multi-dimensional state features based on the external disturbance estimate and multi-loop control feedback data to construct the feature vector for the current moment. Specifically, the absolute deviation between the position loop feedback data and the position estimate output by the generalized state observation model is calculated to obtain the position compliance feature, which reflects the degree of compliance of the system after being disturbed. Simultaneously, the velocity deviation between the velocity loop feedback data and the velocity estimate output by the generalized state observation model is calculated, and the velocity damping anomaly feature is calculated based on the historical standard deviation of the velocity deviation within a short-time sliding window. The velocity damping anomaly feature is used to quantify the degree of abnormal oscillation in the velocity response. The position compliance feature, velocity damping anomaly feature, and external disturbance estimate are combined sequentially to form the three-dimensional feature vector for the current moment.

[0023] To adapt to the non-stationary operating conditions of industrial robots, the system updates the statistical distribution parameters of the feature vectors online based on an exponential forgetting recursive algorithm. By introducing a forgetting factor, the system recursively calculates the mean estimate of the feature vectors and recursively updates the feature covariance matrix based on an exponentially weighted sliding window. This ensures that the weights of historical data decay exponentially over time, thereby guaranteeing that the statistical distribution parameters can dynamically track the normal fluctuation range of the current operating conditions. Based on the updated mean estimate and feature covariance matrix, the system calculates the residual vector between the current feature vector and the mean estimate, and uses the residual vector and the inverse of the feature covariance matrix to calculate the Mahalanobis distance. This Mahalanobis distance is used as the collision safety index at the current moment. The calculation of the Mahalanobis distance effectively eliminates the interference of dimensional differences and correlations between multidimensional features, providing a dimensionless statistical deviation measure.

[0024] While calculating the collision safety index in real time, the system determines the current motion stage and obtains the corresponding adaptive collision threshold. Specifically, it performs second-order differentiation on the preset position command trajectory issued by the upper controller to obtain the theoretical acceleration, and dynamically divides the industrial robot's operation into acceleration, constant speed, and deceleration stages based on the sign of the theoretical acceleration. During the initial threshold self-learning stage of the system deployment, the industrial robot executes a complete no-load task cycle. The system records the historical maximum collision safety index for each motion stage in real time, multiplies the recorded maximum value by the user-preset sensitivity coefficient, generates the adaptive collision threshold corresponding to each motion stage, and stores it in the parameter array.

[0025] Upon entering the formal collision detection phase, the system automatically calls the corresponding adaptive collision threshold based on the current motion stage and compares the real-time calculated collision safety index with the adaptive collision threshold. If the collision safety index is greater than or equal to the adaptive collision threshold, a collision is determined to have occurred, and the servo protection control logic is immediately triggered to execute servo lock-up or flexible retraction to cut off power output. If the collision safety index is less than the adaptive collision threshold, the system is determined to be in a safe operating state, returns to the initial data acquisition step, and continues to cycle through the above detection process in the next control cycle.

[0026] The industrial robot collision detection method provided by this invention integrates native multi-loop control data from servo drives and utilizes a generalized state observation model to achieve real-time decoupling of external disturbance torque. It then extracts positional compliance, velocity damping anomalies, and external force residuals to form a multi-dimensional feature vector. Combining an exponential forgetting recursive algorithm to update statistical distribution parameters online and calculate Mahalanobis distance as a collision safety index, along with an adaptive threshold self-learning mechanism based on motion phase division, it achieves dynamic collision state determination and servo protection triggering. This method eliminates the reliance on additional hardware sensors and overcomes the shortcomings of traditional single-signal detection in handling both fast and slow collisions under complex industrial interference. Through multi-source feature fusion and online statistical modeling, it significantly improves the sensitivity and anti-interference capability of collision detection, effectively reducing false alarm and false negative rates, and ensuring the operational safety and production continuity of industrial robots under highly dynamic and highly disturbed conditions.

[0027] In one embodiment, step S110 includes: S111: Synchronously acquire position loop feedback data, speed loop feedback data, and current loop control commands from the servo system; S112. Discretize the position loop feedback data, the speed loop feedback data, and the current loop control command. S113. Based on the result of the discretization process, obtain the multi-loop control feedback data and control command data for the current control cycle.

[0028] During operation, the servo drive synchronously samples position loop feedback data, speed loop feedback data, and current loop control commands under the same hardware clock trigger. Specifically, the servo drive reads the motor rotor angle in real time using a high-precision encoder as position loop feedback data, obtains speed loop feedback data by performing differential operations on the position loop feedback data or calling the built-in speed observer, and simultaneously reads the q-axis current setpoint of the current loop as the current loop control command. This synchronous acquisition mechanism ensures that the position loop feedback data, speed loop feedback data, and current loop control commands are strictly aligned on the time axis, eliminating phase delays and data misalignments caused by asynchronous sampling.

[0029] After completing synchronous acquisition, the system discretizes the position loop feedback data, speed loop feedback data, and current loop control commands. Since the physical motion and electromagnetic response of the servo motor are continuous-time processes, while the digital controller can only process discrete sequences, discretization converts the continuous signal into a digital sequence through an analog-to-digital converter and a digital sample-and-hold circuit. The system truncates and quantizes the continuous signal at equal intervals with a fixed sampling period, consistent with the servo system's control cycle. During discretization, the system performs low-pass filtering and coordinate transformation on the acquired raw signals, converting the three-phase current data to the q-axis component in a rotating coordinate system and converting the encoder-feedback mechanical angles into radian position data. Based on the discretization results, the system extracts the position loop feedback data, speed loop feedback data, and current loop control commands for the current control cycle, encapsulates them into multi-loop control feedback data and control command data for the current control cycle, and caches them in the digital controller's memory for direct use by the subsequent generalized state observation model.

[0030] The scheme in this embodiment improves the temporal consistency and numerical stability of multi-source control data, laying a reliable data foundation for high-precision external disturbance decoupling and multi-dimensional feature extraction.

[0031] In one embodiment, step S120 includes: S121. External disturbance torque is introduced as an extended state variable into the discrete state space equation of the servo system to construct a third-order generalized state observation model. S122. Based on the position loop feedback data and the control command data in the multi-loop control feedback data, state prediction is performed using the third-order generalized state observation model, and feedback correction is performed based on the position prediction error. S123. Output the estimated value of the extended state variable as the estimated value of the external disturbance.

[0032] In the dq coordinate system, the continuous-time motion equation of the permanent magnet synchronous motor, based on Newton's second law, is expressed as: Where J is the total moment of inertia of the system, including the moment of inertia of the motor rotor itself and the equivalent moment of inertia of the load referred to the motor shaft, and the unit is 1. ; The motor angular velocity, in units of ; The torque constant of the motor is expressed in units of 1000 ppm. ; This is the q-axis current, in units of B is the viscous damping coefficient, in units of... ; External load torque, in units of This includes all external torques acting on the motor shaft, such as collision force and friction force. In particular, to focus on the core problem of collision detection, the industrial robot collision detection method of this invention treats viscous damping B as an uncertainty of the system, which is absorbed and compensated by the feedback correction mechanism of the generalized state observation model, thereby simplifying the model structure.

[0033] Define the angular position of the motor The first state variable is the angular velocity of the motor. As the second state variable, and the q-axis current command as the control input, the state-space equation in the continuous time domain is obtained as follows: in For angular position, Angular velocity, To control the input, This is the normalized external disturbance acceleration.

[0034] In practical digital controllers, the system uses the forward Euler method to discretize the continuous-time state-space equations, resulting in a discrete-time state-space model: Considering that in typical robot collision scenarios, the external disturbance torque is a relatively slow-changing physical quantity relative to the extremely short sampling period, the system assumes that the external disturbance torque remains approximately constant between two adjacent sampling periods, i.e.: Based on this assumption, the system will handle unknown external disturbance torques. As a new extended state variable By introducing the concept, the original second-order system is extended into a third-order generalized system, and the equations of the extended system are constructed: And simplified using matrix notation: in, This is the expanded system state transition matrix. This is the expanded input matrix.

[0035] Subsequently, the position loop feedback data and control command data in the multi-loop control feedback data are executed, and the state prediction is performed using a third-order generalized state observation model, and feedback correction is performed based on the position prediction error.

[0036] The system is designed with a fully dimensional Romberg observer for a third-order generalized system. The observer equation is expressed as: in This is the observer's estimate of the generalized state vector. The observer gain vector, It is an output prediction based on observer estimation. This represents the expanded system output matrix. Its function is to expand the state vector Extract the system's output prediction value from (including position, velocity, and external disturbance estimates). In this scheme, the system output is position feedback, therefore The specific format is [1,0,0], used to extract location estimates. .

[0037] Expanding the observer equations, we obtain the term-by-term update formula for the observer estimates: In the above formula, the system utilizes the position loop feedback data from the multi-loop control feedback data. The position estimate output by the third-order generalized state observation model The position prediction error is calculated, and then multiplied by the corresponding gain coefficient in the observer gain vector. , , It provides real-time feedback correction for the predicted state of position, velocity, and external disturbance torque.

[0038] After the fully dimensional Romberg observer is operating stably, the system directly extracts the estimated value of the third state variable. Define it as the residual of external force. The formula is expressed as: This allows the equivalent disturbance torque caused by external collisions to be decoupled from the composite signal in real time and used as an estimate of the external disturbance.

[0039] The solution in this embodiment does not require the addition of a physical torque sensor. The industrial robot can rely solely on the multi-loop control feedback data and control command data of the servo system itself to decouple the pure external disturbance estimate in real time with high accuracy and low latency in complex industrial operating environments. This lays the core data foundation for subsequent accurate extraction of multi-dimensional state features and the realization of highly robust collision detection.

[0040] In one embodiment, step S130 includes: S131. Calculate the absolute deviation between the position loop feedback data and the position estimate output by the third-order generalized state observation model to obtain the position compliance characteristics. S132. Calculate the velocity deviation between the velocity loop feedback data and the velocity estimate output by the third-order generalized state observation model, and calculate the velocity damping anomaly characteristics based on the historical fluctuation level of the velocity deviation. S133. Combine the positional compliance feature, the velocity damping anomaly feature, and the external disturbance estimate to construct the feature vector for the current moment.

[0041] When calculating the absolute deviation between the position loop feedback data and the position estimate output by the third-order generalized state observation model to obtain the position compliance characteristics, the system extracts the position loop feedback data from the multi-loop control feedback data. and the position estimate output by the third-order generalized state observation model And calculate the position loop feedback data. With location estimate The absolute deviation between them yields the positional compliance characteristics. The calculation formula is expressed as:

[0042] Positional Flexibility Features The difference between the actual physical location and the normal location predicted by the generalized observer model was measured, reflecting the system's compliant response to external disturbances; when there is no collision, the model prediction tracks the actual feedback well, demonstrating positional compliance characteristics. The difference is very small; when a collision occurs, even if the position loop begins to adjust, there will still be a deviation between the model prediction and the actual feedback caused by the unknown external force, therefore the position compliance feature... It can provide compliant state information that has been filtered and compensated by the observer.

[0043] The velocity deviation between the velocity loop feedback data and the velocity estimate output by the third-order generalized state observation model is calculated, and the velocity damping anomaly characteristics are calculated based on the historical fluctuation level of the velocity deviation. The system first extracts the velocity loop feedback data from the multi-loop control feedback data. And the velocity estimate output by the third-order generalized state observation model Calculate speed loop feedback data Compared with speed estimates speed deviation between The calculation formula is expressed as:

[0044] The system updates the historical fluctuation level of the velocity deviation e_v(k), i.e., the historical standard deviation, in real time through a short-term sliding window. The calculation formula is expressed as: in, The length of the sliding window. This represents the historical average of the velocity deviation within the sliding window. This is used to obtain historical fluctuation levels. Subsequently, the system calculates the velocity damping anomaly characteristics. The calculation formula is expressed as:

[0045] Velocity damping anomaly characteristics Used to assess the degree of anomalousness of the current velocity deviation relative to historical normal fluctuation levels; during a collision, the velocity response exhibits violent, abnormal damped oscillations, leading to velocity deviation. The instantaneous increase causes abnormal velocity damping characteristics. A significant increase. It should be noted that... It is a dimensionless ratio that exhibits adaptive normalization properties.

[0046] The system will use the positional compliance features calculated above. Abnormal characteristics of velocity damping And the estimated external disturbance obtained from the decoupling steps in the preceding steps, i.e., the external force residual. Combine them to construct the three-dimensional feature vector at the current time. The combination formula is expressed as:

[0047] The above three-dimensional feature vectors This constitutes all the feature data for collision detection within the current control cycle. The three dimensions of features are physically independent but complementary in their collision representation: external disturbance estimate... It directly senses the additional load torque caused by the collision from the torque dimension, exhibiting outstanding sensitivity to hard collisions with large impact forces; positional compliance characteristics. It reflects the degree of mismatch between model predictions and actual motion caused by collisions from the position dimension, and has a good ability to capture persistent positional deviations after collisions; velocity damping anomaly characteristics. Detecting abnormal velocity fluctuations caused by collisions from the velocity dimension also demonstrates a sensitive response to velocity deviations that gradually accumulate during slow collisions. The synergistic effect of these three dimensions of features results in a multidimensional feature vector. It can accurately detect both fast and slow collisions in complex industrial interference environments, overcoming the inherent defect of existing single-signal source solutions that cannot comprehensively judge collision events due to relying on only a single dimension of information.

[0048] The feature vector is completed within each control cycle. After the feature vector is constructed, the servo drive device sends the feature vector to the next processing flow, which is to update the statistical distribution parameters of the feature vector online based on the exponential forgetting recursive algorithm, and calculate the collision safety index at the current moment based on the statistical distribution parameters.

[0049] In this embodiment, a high-dimensional feature vector is constructed by deeply fusing feedback deviations from the position loop and velocity loop, as well as external disturbance estimates. This vector includes positional compliance features, velocity damping anomaly features, and external disturbance estimates. This approach overcomes the limitations of traditional methods that rely solely on a single current or torque signal. It comprehensively characterizes the system's dynamic response during a collision from three physical dimensions: positional hysteresis deformation, abnormal velocity oscillations, and external forces. This provides rich and highly discriminative feature data for subsequent anomaly detection based on statistical models.

[0050] In one embodiment, step S140 includes: S141. The mean estimate of the feature vector is recursively updated based on the exponential forgetting recursive least squares algorithm, and the feature covariance matrix is ​​recursively updated based on the exponential weighted sliding window, which together serve as the statistical distribution parameter. S142. Calculate the residual vector between the feature vector at the current time and the mean estimate; S143. Calculate the Mahalanobis distance based on the residual vector and the feature covariance matrix, and use the Mahalanobis distance as the collision safety index.

[0051] The system recursively updates the mean estimate of the feature vector using an exponential forgetting recursive least squares algorithm, and recursively updates the feature covariance matrix using an exponentially weighted sliding window, both serving as statistical distribution parameters. The system treats the current feature vector as an observation and recursively updates its mean estimate using the exponential forgetting recursive least squares algorithm. During the update process, the system first calculates the current gain vector based on the previous time-instance estimation uncertainty matrix and the first forgetting factor, expressed by the following formula: in, This is the uncertainty matrix for the previous time step, representing the uncertainty in estimating the mean value. As the first forgetting factor, This is the identity matrix. Next, the system updates the mean estimate based on the gain vector, calculated using the following formula: in, The feature vector at the current time. This is an estimate of the mean value at the previous moment.

[0052] The system updates the estimation uncertainty matrix, and the calculation formula is expressed as follows:

[0053] When the operating conditions are stable, estimate the uncertainty matrix. It will tend to a small matrix; when the operating conditions change gradually, the first forgetting factor Reduce the weight of the old data to estimate the uncertainty matrix. This will increase accordingly, enabling the algorithm to adapt to non-stationary conditions. Simultaneously, the system maintains an online exponentially weighted sliding window and recursively updates the feature covariance matrix reflecting the correlation between features based on the second forgetting factor. The system first defines the weighted residual vector: Then, the feature covariance matrix is ​​updated based on the exponentially weighted recursive formula, which is expressed as follows: in, The second forgetting factor, i.e., the forgetting factor for covariance update, is typically between 0.95 and 0.999. A value closer to 1 indicates better smoothing, while a smaller value results in a faster response. The updated mean estimate and the characteristic covariance matrix together serve as statistical distribution parameters.

[0054] It should be noted that the forgetting factor of the mean estimate... Forgetting factor of the feature covariance matrix They can be set independently, and their physical functions differ: the forgetting factor for the mean estimate. The forgetting factor of the feature covariance matrix controls the drift tracking speed of the normal baseline. The tracking speed is controlled within the normal fluctuation range. By independently adjusting two forgetting factors, the adaptive capability of the collision detection method to changes in the operating condition baseline and changes in operating condition fluctuations can be optimized, flexibly adapting to the needs of different application scenarios.

[0055] Calculate the residual vector between the current eigenvector and the mean estimate. The system uses the current eigenvector... Subtract the mean estimate at the current time. The residual vector representing the degree to which the current state deviates from the center of the normal operating condition is calculated, i.e. .

[0056] The Mahalanobis distance is calculated based on the residual vector and the feature covariance matrix, and is used as a collision safety index. The system calculates the Mahalanobis distance based on the residual vector and the feature covariance matrix, and the calculation formula is expressed as follows:

[0057] The system uses the calculated Mahalanobis distance as the collision safety index at the current moment. Mahalanobis distance takes into account the correlation between multidimensional state features and their respective scale differences. It is a dimensionless statistical distance that can accurately measure the degree of deviation of the current state from the normal operating manifold.

[0058] Within each control cycle, the servo drive calculates the collision safety index. Then, the subsequent processes of motion phase determination, adaptive collision threshold acquisition, and collision determination begin.

[0059] In this embodiment, the industrial robot collision detection method introduces an exponential forgetting recursive least squares algorithm and an exponentially weighted sliding window to achieve real-time, dynamic tracking of the mean and covariance matrix of feature vectors under normal operating conditions. Furthermore, it utilizes Mahalanobis distance to transform the joint offset of multi-dimensional features into a single collision safety index. This embodiment effectively overcomes the limitations of fixed thresholds and single-feature judgment, enabling the system to adapt to non-stationary operating conditions and gradual disturbances during robot operation. While eliminating differences in the dimensions of various features, it fully exploits the coupling correlation between multi-dimensional features, thus providing a highly robust quantitative indicator for subsequent high-precision collision determination.

[0060] In one embodiment, step S150 includes: S151. Calculate the theoretical acceleration according to the preset position command trajectory, and divide the robot operation process into multiple motion stages according to the sign of the theoretical acceleration; S152. During the threshold self-learning stage, record the historical maximum collision safety index under each of the motion stages. S153. Based on the recorded historical maximum collision safety index, and combined with a preset sensitivity coefficient, generate an adaptive collision threshold corresponding to each of the motion stages.

[0061] The servo driver or host controller performs a first-order derivative of the preset position command trajectory to obtain the theoretical velocity, and then performs a second-order derivative of the theoretical velocity to obtain the theoretical acceleration. Based on the sign of the theoretical acceleration, the system dynamically divides the operation of the industrial robot into multiple motion stages, typically including an acceleration stage with theoretical acceleration greater than zero, a constant velocity stage with theoretical acceleration equal to zero, and a deceleration stage with theoretical acceleration less than zero.

[0062] Because industrial robots exhibit significant differences in their dynamic characteristics, joint load inertia response, and internal transmission friction states at different motion stages, the baseline disturbance levels and characteristic fluctuation ranges generated during normal operation vary at each stage. Dividing operating conditions using theoretical acceleration symbols allows for precise matching of the robot's actual dynamic boundaries, providing clear stage identifiers for subsequent setting of differentiated thresholds.

[0063] After the system completes the phase division, it enters the threshold self-learning phase to obtain the adaptive collision thresholds corresponding to each motion phase. Specifically, when the industrial robot is deployed for the first time, the end effector is replaced, or the running trajectory is changed, the user enables the threshold self-learning function to control the robot to execute a complete idle task cycle. During the self-learning operation, the system calculates and outputs the collision safety index at each moment in real time, and at the same time, it classifies and maps the collision safety index to the corresponding phase buffer according to the motion phase to which the current moment belongs.

[0064] After the robot completes a full task cycle, the system extracts the historical maximum collision safety index for each of the acceleration, constant speed, and deceleration phases. Then, the system multiplies the historical maximum collision safety index recorded for each phase by a user-preset sensitivity coefficient to generate the adaptive collision threshold for each motion phase. The calculation relationship can be expressed as follows: in, For the first The adaptive collision threshold for each motion phase, where D_{M,\max}^{(i)} is the historical maximum collision safety index recorded for that phase. This is a preset sensitivity coefficient. The sensitivity coefficient is typically set by the user based on the actual safety level and production line cycle time requirements, used to reserve a reasonable safety margin based on the historical maximum normal fluctuation value. The generated adaptive collision thresholds are stored as an array in the servo driver's non-volatile memory, with each index position corresponding one-to-one with the motion stage, for direct retrieval in subsequent formal detection stages.

[0065] In this example, the operating conditions are accurately divided using theoretical acceleration symbols, and a threshold self-learning mechanism is used to dynamically record the historical maximum collision safety index for each stage. Finally, a stage-specific adaptive collision threshold is generated using a sensitivity coefficient. This solution abandons the traditional fixed threshold or manual experience-based calibration method, effectively solving the problem that a single threshold cannot adapt to different dynamic conditions such as robot acceleration / deceleration and constant speed. Furthermore, the self-learning mechanism automatically captures the upper limit of disturbances during normal operation at each stage, and the sensitivity coefficient reserves a safety margin, allowing the collision judgment benchmark to adaptively adjust according to the actual operating trajectory and load characteristics.

[0066] In one embodiment, step S160 includes: S161. During the collision detection phase, the corresponding adaptive collision threshold is called according to the motion phase at the current moment to determine whether the collision safety index is greater than or equal to the adaptive collision threshold. S162. If the judgment result is yes, then a collision is determined to have occurred and servo lock-up protection is triggered. S163. If the judgment result is negative, then proceed to the next control cycle for cyclic detection.

[0067] During the collision detection phase, the corresponding adaptive collision threshold is invoked based on the current motion stage. Specifically, the servo driver continuously parses the theoretical acceleration sign of the preset position command trajectory during real-time operation and maps the current motion stage index to this sign in real time. The system reads the adaptive collision threshold that strictly corresponds to the motion stage index from internal memory, ensuring that the judgment benchmark is accurately matched with the current dynamic conditions. Subsequently, the system compares the real-time calculated collision safety index with the invoked adaptive collision threshold to determine whether the collision safety index is greater than or equal to the adaptive collision threshold. This comparison logic is executed frequently in each control cycle of the servo controller. By dynamically matching stage-specific thresholds, it effectively eliminates the interference of normal feature drift caused by robot acceleration / deceleration inertial forces, changes in gravity components, or load fluctuations on the judgment results, ensuring the adaptability of the judgment benchmark to the current dynamic conditions.

[0068] If the comparison result is yes, meaning the collision safety index is greater than or equal to the adaptive collision threshold, the system determines that the industrial robot has collided and immediately triggers servo lock-up protection. Specifically, once the judgment logic confirms the collision state, the servo driver will bypass the conventional position and speed control links and directly execute the underlying safety protection command. Protection actions typically include immediately cutting off the motor PWM drive signal, activating the mechanical brake, or executing an emergency stop deceleration curve to lock the joint movement in a very short time, preventing the collision torque from being further transmitted to the mechanical transmission chain or peripheral equipment. This servo lock-up protection mechanism is tightly coupled with a high-frequency detection cycle, ensuring extremely low response delay from the jump in multi-dimensional characteristic anomalies to power cut-off, minimizing physical damage and personnel safety risks caused by the collision.

[0069] If the comparison result is negative, meaning the collision safety index is less than the adaptive collision threshold, the system determines that the current operating state is within a safe range and directly enters the cyclic detection of the next control cycle. Specifically, after completing the threshold comparison and safety status confirmation for the current cycle, the servo driver does not perform any protective intervention. Instead, it seamlessly returns the control flow to the data acquisition step, continuously and synchronously acquiring multi-loop control feedback data and control command data within the preset control cycle, and repeatedly executing the entire process of decoupling the generalized state observation model, extracting multi-dimensional state features, updating statistical distribution parameters, and calculating the collision safety index. This cyclic detection mechanism ensures the continuity and real-time nature of collision monitoring, enabling the system to maintain uninterrupted safety monitoring throughout the robot's entire task cycle. At the same time, the periodic refresh effectively filters out single instantaneous noise or minor disturbances, avoiding false triggers.

[0070] This embodiment directly applies the dynamic working condition division and threshold self-learning results to the real-time judgment process, overcoming the shortcomings of fixed thresholds in complex trajectory operation, which have high false alarm rates or high false negative rates. The immediate intervention of the servo lock-up protection mechanism ensures the safety of equipment and personnel after a collision, while the cyclic detection logic ensures the continuity and low latency of the monitoring process.

[0071] Based on the above embodiments, it can be concluded that the industrial robot collision detection method of the present invention can be widely applied in the field of industrial automated logistics where safety requirements are extremely high and operating conditions are complex and changeable. The following uses two typical scenarios, intelligent warehousing collaborative picking and automated loading and unloading palletizing, as examples for illustration.

[0072] In intelligent warehousing collaborative picking scenarios, this method can be used for high-frequency human-machine collaborative operations between robotic arms, mobile robots, and logistics workers on logistics sorting lines or in front of shelves. Without the need for expensive external torque sensors, the system directly utilizes multi-loop control data from the servo driver's underlying layer to construct a generalized state observation model for real-time decoupling from external disturbances. During the frequent start-stop processes of the robotic arm's high-speed grasping and placement of logistics boxes, the system effectively filters false alarms caused by inertial torque fluctuations due to normal acceleration and deceleration by identifying theoretical acceleration to divide the motion stages and applying adaptive collision thresholds. When a logistics worker accidentally enters the work area or a mobile robot experiences a minor collision, the system instantly and accurately identifies rapid rigid collisions by fusing multi-dimensional feature vectors of positional flexibility, velocity damping anomalies, and external force residuals, and calculating a collision safety index using Mahalanobis distance. This process not only significantly reduces the hardware deployment cost of logistics automation equipment but also ensures absolute safety in human-machine hybrid operation environments, guaranteeing the efficient and continuous operation of warehousing and logistics.

[0073] In automated loading and unloading palletizing applications, this method can be used for compliant handling and abnormal jamming detection in automated palletizing of heavy logistics parcels or container loading and unloading systems. For example, when a robotic arm carries large logistics parcels of varying shapes and weights into a narrow vehicle compartment, the system uses an exponential forgetting recursive algorithm to update the statistical distribution parameters of the feature vector online, adaptively handling non-stationary operating conditions caused by sudden load changes and complex frictional forces. When the parcel experiences slow compression, jamming, or soft collisions with the compartment walls, the system, through continuously accumulated position compliance deviations and external disturbance estimates, can keenly detect slow collision characteristics that are difficult to detect with a single current signal, and promptly trigger servo lock-up or compliant retreat protection. Operators can not only avoid damage to the robotic arm reducer due to overload, but also effectively prevent the crushing and breakage of logistics goods, improving the robustness of the automated loading and unloading system and the integrity rate of the goods.

[0074] As can be seen from the above applications, the method of the present invention supports high real-time detection without additional sensors, resists complex interference, and takes into account both fast and slow collisions in high-frequency, variable-load, and human-machine interaction logistics scenarios such as intelligent warehousing and automated loading and unloading. It has good practical value and development prospects.

[0075] Figure 8 This is a schematic block diagram of an industrial robot collision detection device 600 provided in an embodiment of the present invention. Figure 8 As shown, corresponding to the above-described industrial robot collision detection method, the present invention also provides an industrial robot collision detection device 600. This industrial robot collision detection device 600 includes a unit for executing the above-described industrial robot collision detection method, and the device can be configured in terminals such as vehicle-mounted industrial control computers, dedicated positioning controllers, and embedded edge computing modules.

[0076] Specifically, please refer to Figure 8 The industrial robot collision detection device 600 includes: The data acquisition unit 610 is used to acquire multi-loop control feedback data and control command data of the servo driver; The disturbance decoupling unit 620 is used to construct a generalized state observation model based on the multi-loop control feedback data and control command data, and to obtain the estimated value of external disturbance in real time through decoupling. The feature construction unit 630 is used to extract multi-dimensional state features based on the external disturbance estimate and the multi-loop control feedback data, and construct the feature vector at the current moment. The index calculation unit 640 is used to update the statistical distribution parameters of the feature vector based on the online recursive estimation algorithm, and to calculate the collision safety index at the current moment based on the statistical distribution parameters. The threshold acquisition unit 650 is used to determine the current motion stage of the operation and acquire the adaptive collision threshold corresponding to the motion stage. The collision determination unit 660 is used to compare the collision safety index with the adaptive collision threshold, determine whether a collision has occurred based on the comparison result, and trigger the corresponding servo protection control.

[0077] In one embodiment, the data acquisition unit 610 includes: The synchronous acquisition unit is used to synchronously acquire position loop feedback data, speed loop feedback data, and current loop control commands from the servo system. A discretization processing unit is used to discretize the position loop feedback data, the speed loop feedback data, and the current loop control command. The periodic data acquisition unit is used to acquire the multi-loop control feedback data and control command data of the current control cycle based on the result of the discretization process.

[0078] In one embodiment, the disturbance decoupling unit 620 includes: The observation model construction unit is used to introduce the external disturbance torque as an extended state variable into the discrete state space equation of the servo system to construct a third-order generalized state observation model. The state prediction and correction unit is used to perform state prediction based on the position loop feedback data and the control command data in the multi-loop control feedback data, using the third-order generalized state observation model, and to perform feedback correction based on the position prediction error. An estimation output unit is used to output the estimated value of the extended state variable as the estimated value of the external disturbance.

[0079] In one embodiment, the feature construction unit 630 includes: The location feature calculation unit is used to calculate the absolute deviation between the location loop feedback data and the location estimate output by the third-order generalized state observation model, and to obtain the location compliance feature. The velocity characteristic calculation unit is used to calculate the velocity deviation between the velocity loop feedback data and the velocity estimate output by the third-order generalized state observation model, and to calculate the velocity damping anomaly characteristics based on the historical fluctuation level of the velocity deviation. The feature vector combination unit is used to combine the position compliance feature, the velocity damping anomaly feature, and the external disturbance estimate to construct the feature vector at the current moment.

[0080] In one embodiment, the exponent calculation unit 640 includes: The parameter update unit is used to recursively update the mean estimate of the feature vector based on the exponential forgetting recursive least squares algorithm, and recursively update the feature covariance matrix based on the exponential weighted sliding window, which together serve as the statistical distribution parameters. The residual calculation unit is used to calculate the residual vector between the feature vector at the current time and the mean estimate. The safety index calculation unit is used to calculate the Mahalanobis distance based on the residual vector and the feature covariance matrix, and use the Mahalanobis distance as the collision safety index.

[0081] In one embodiment, the threshold acquisition unit 650 includes: The stage division unit is used to calculate the theoretical acceleration according to the preset position command trajectory, and divide the robot operation process into multiple motion stages according to the sign of the theoretical acceleration; An index recording unit is used to record the historical maximum collision safety index for each of the aforementioned motion stages during the threshold self-learning phase. The threshold generation unit is used to generate an adaptive collision threshold for each motion stage based on the recorded historical maximum collision safety index and a preset sensitivity coefficient.

[0082] In one embodiment, the collision determination unit 660 includes: The threshold judgment unit is used to determine whether the collision safety index is greater than or equal to the adaptive collision threshold by calling the corresponding adaptive collision threshold according to the motion stage at the current moment during the collision detection stage. The protection trigger unit is used to determine that a collision has occurred and trigger the servo lock-up protection if the judgment result is yes; The loop control unit is used for loop detection, which proceeds to the next control cycle if the judgment result is negative.

[0083] The aforementioned industrial robot collision detection device 600 can be implemented as a computer program, which can, for example... Figure 9 It runs on the computer device shown.

[0084] Please see Figure 9 , Figure 9 This is a schematic block diagram of a computer device 500 provided in an embodiment of this application. The computer device 500 can be a terminal or a server. The terminal can be an electronic device with communication functions, such as a vehicle-mounted industrial control computer, a dedicated positioning controller, or an embedded edge computing module. The server can be a standalone server or a server cluster composed of multiple servers.

[0085] See Figure 9 The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.

[0086] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform an industrial robot collision detection method.

[0087] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.

[0088] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute an industrial robot collision detection method.

[0089] This network interface 505 is used for network communication with other devices. Those skilled in the art will understand that... Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0090] The processor 502 is used to run a computer program 5032 stored in a memory to implement the steps of the above method.

[0091] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0092] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0093] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to perform the steps of the above-described method.

[0094] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.

[0095] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0096] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0097] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0098] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0099] It should be noted that any AI models, software tools, or components not belonging to this company appearing in the embodiments of this application are merely illustrative examples and do not represent actual use. All user personal information involved in the embodiments of this application has been authorized (with the knowledge and consent) by the relevant parties or has been fully authorized by all parties, and the executing entity may obtain it through various legal and compliant means. The collection, storage, use, processing, transmission, provision, and disclosure of the information, data, and signals involved all comply with relevant laws and regulations and do not violate public order and good morals.

[0100] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A collision detection method for industrial robots, characterized in that, The method includes: Acquire multi-loop control feedback data and control command data from the servo driver; Based on the multi-loop control feedback data and control command data, a generalized state observation model is constructed, and external disturbance estimates are obtained in real time through decoupling. Based on the external disturbance estimate and the multi-loop control feedback data, multi-dimensional state features are extracted to construct the feature vector for the current moment. The statistical distribution parameters of the feature vector are updated based on the online recursive estimation algorithm, and the collision safety index at the current moment is calculated based on the statistical distribution parameters. Determine the current motion stage and obtain the adaptive collision threshold corresponding to the motion stage; The collision safety index is compared with the adaptive collision threshold, and the result of the comparison determines whether a collision has occurred and triggers the corresponding servo protection control.

2. The industrial robot collision detection method according to claim 1, characterized in that, The steps for acquiring multi-loop control feedback data and control command data of the servo driver include: Synchronously acquire position loop feedback data, speed loop feedback data, and current loop control commands from the servo system; The position loop feedback data, the velocity loop feedback data, and the current loop control command are discretized. Based on the result of the discretization process, the multi-loop control feedback data and control command data for the current control cycle are obtained.

3. The industrial robot collision detection method according to claim 2, characterized in that, The steps of constructing a generalized state observation model based on the multi-loop control feedback data and control command data, and obtaining the estimated value of external disturbances in real time through decoupling, include: External disturbance torque is introduced as an extended state variable into the discrete state space equation of the servo system to construct a third-order generalized state observation model. Based on the position loop feedback data and the control command data in the multi-loop control feedback data, the third-order generalized state observation model is used to predict the state, and feedback correction is performed based on the position prediction error. Output the estimated value of the extended state variable as the estimated value of the external disturbance.

4. The industrial robot collision detection method according to claim 3, characterized in that, The step of extracting multi-dimensional state features and constructing the feature vector for the current moment based on the external disturbance estimate and the multi-loop control feedback data includes: The absolute deviation between the position loop feedback data and the position estimate output by the third-order generalized state observation model is calculated to obtain the position compliance characteristics. Calculate the velocity deviation between the velocity loop feedback data and the velocity estimate output by the third-order generalized state observation model, and calculate the velocity damping anomaly characteristics based on the historical fluctuation level of the velocity deviation; The positional compliance feature, the velocity damping anomaly feature, and the external disturbance estimate are combined to construct the feature vector for the current moment.

5. The industrial robot collision detection method according to claim 1, characterized in that, The steps of updating the statistical distribution parameters of the feature vector based on the online recursive estimation algorithm and calculating the collision safety index at the current moment based on the statistical distribution parameters include: The mean estimate of the feature vector is recursively updated based on the exponential forgetting recursive least squares algorithm, and the feature covariance matrix is ​​recursively updated based on the exponential weighted sliding window, which together serve as the statistical distribution parameter. Calculate the residual vector between the feature vector at the current moment and the mean estimate; The Mahalanobis distance is calculated based on the residual vector and the feature covariance matrix, and the Mahalanobis distance is used as the collision safety index.

6. The industrial robot collision detection method according to claim 1, characterized in that, The step of determining the current motion stage and obtaining the adaptive collision threshold corresponding to the motion stage includes: The theoretical acceleration is calculated based on the preset position command trajectory, and the robot's operation process is divided into multiple motion stages according to the sign of the theoretical acceleration; During the threshold self-learning phase, the historical maximum collision safety index is recorded for each of the aforementioned motion phases; Based on the recorded historical maximum collision safety index, an adaptive collision threshold corresponding to each of the motion stages is generated by combining it with a preset sensitivity coefficient.

7. The industrial robot collision detection method according to claim 6, characterized in that, The step of comparing the collision safety index with the adaptive collision threshold, and determining whether a collision has occurred and triggering the corresponding servo protection control based on the comparison result, further includes: During the collision detection phase, the corresponding adaptive collision threshold is invoked according to the current motion phase to determine whether the collision safety index is greater than or equal to the adaptive collision threshold. If the judgment result is yes, then a collision is determined to have occurred and servo lock-up protection is triggered; If the result is negative, the cycle of detection will begin in the next control cycle.

8. An industrial robot collision detection device, characterized in that, It includes a unit for performing the industrial robot collision detection method as described in any one of claims 1 to 7.

9. A computer device, characterized in that, The computer device includes a memory and a processor connected to the memory; the memory is used to store a computer program; the processor is used to run the computer program stored in the memory to perform the steps of the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which includes program instructions that, when executed by a processor, can implement the steps of the method as described in any one of claims 1 to 7.