Robot teaching data quality evaluation and training sample screening method and system
By introducing robot dynamics constraints and sensor event labeling, combined with closed-loop adjustments based on policy training feedback, the problems of low efficiency and disconnection from physical constraints in robot teaching data screening are solved, achieving efficient and reliable training sample screening and ensuring the physical executability of robot imitation learning.
Patent Information
- Application Number
- CN202611383349.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2046-09-08
AI Technical Summary
In existing technologies, the methods for screening robot teaching data are inefficient and highly subjective, making it difficult to maintain consistency in large-scale data construction. Furthermore, screening schemes based on statistical indicators fail to effectively consider the physical constraints of the robot itself and sensor events, resulting in insufficient physical executability of training samples.
By introducing robot dynamics constraints, physical events are automatically labeled based on sensor hard thresholds, and the closed-loop adjustment of the screening threshold is driven by the physical boundary crossing rate feedback after strategy training, thus achieving deep coupling screening of teaching samples.
It improves the physical authenticity and automated screening efficiency of teaching data, reduces the waste of effective data, lowers the physical risks of robot deployment, and enhances the engineering efficiency and consistency of large-scale teaching data.
Smart Images

Figure CN122903770B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of robot learning technology, specifically relating to a method and system for evaluating the quality of robot teaching data and screening training samples. Background Technology
[0002] Robot imitation learning typically involves collecting state, action, and sensor data during manual or remote teaching to construct training samples, and then using supervised learning, behavior cloning, offline reinforcement learning, or hybrid policy learning methods to train the control policy. As the size of the robot policy network increases, the quantity and quality of the teaching data have an increasingly significant impact on model performance.
[0003] In existing technologies, there are two main approaches to filtering teaching data. The first is manual offline filtering, where engineers or operators manually delete failed segments, paused segments, and collision segments based on task videos, trajectory curves, or task results. The second is automatic filtering based on statistical indicators, using metrics such as mean, variance, trajectory smoothness, peak velocity, and sample length to determine the quality of samples.
[0004] However, all of the aforementioned existing technical solutions have significant drawbacks. Manual offline screening relies on experience, is inefficient, highly subjective, and difficult to maintain consistency in large-scale data construction. While automated screening schemes based on statistical indicators improve automation, they often only focus on the numerical distribution on the surface of the data, failing to incorporate the robot's driving capabilities, dynamic boundaries, sensor alarms, and execution feasibility into the screening logic.
[0005] Therefore, there is an urgent need for a method and system for evaluating the quality of robot teaching data and screening training samples, which can deeply integrate data quality evaluation with the robot's physical constraints, on-site sensor events, and post-training executability feedback, and overcome the problems of low efficiency of existing manual screening, disconnect between statistical screening and robot physical constraints, insufficient identification of abnormal physical events, and lack of closed-loop optimization in the training process. Summary of the Invention
[0006] The technical problem to be solved by this invention is to provide a method and system for evaluating the quality of robot teaching data and selecting training samples. By incorporating robot dynamic constraints into the teaching data quality scoring, automatically labeling physical events based on sensor hard thresholds, and using the physical boundary crossing rate feedback after strategy training to drive the closed-loop adjustment of the selection threshold, a deep coupling between teaching sample selection and the robot's real physical execution capabilities is achieved.
[0007] This invention provides a method for evaluating the quality of teaching data and selecting training samples for robots, comprising the following steps: Step 1: Obtain the teaching raw data, which includes at least the robot joint angle sequence, joint velocity sequence, control command sequence, and at least one of the following: motor current, torque feedback, encoder speed, and end effector force sensor data that are time-synchronized with the joint angle sequence, joint velocity sequence, and control command sequence. Step 2: The teaching raw data is segmented at the task level or segment level to form data units to be evaluated. Each data unit contains the start time, end time, task label and multi-sensor data after time synchronization. Step 3: Calculate multidimensional quality indicators for each data unit. These indicators include at least a task completion score, a dynamic smoothness score, and an execution efficiency score. The dynamic smoothness score is based on the joint angle trajectory jerk, calculated as follows: perform smoothing differentiation on each joint angle trajectory to obtain velocity, acceleration, and jerk; integrate the jerk over time to obtain the jerk integral term; input the joint angle trajectory into the robot dynamics model to estimate the joint driving torque; compare the joint driving torque with a preset safe torque threshold to calculate a torque utilization penalty term. When the actual torque exceeds the safe torque threshold... A penalty is applied when the full torque threshold is reached, and no penalty is applied when it is not exceeded. The integral term of the jerk and the penalty term of the torque utilization rate are multiplied by weighting coefficients and then summed. The sum is then substituted into the exponential decay function, and the result is normalized to the [0,1] interval to obtain the dynamic smoothness score, which characterizes the physical executability of the trajectory. The torque utilization rate penalty term is used to quantify the degree to which the joint driving torque exceeds the safety threshold. The larger the value of the torque utilization rate penalty term, the more the joint torque exceeds the safety boundary, and there is a risk of torque saturation or overload. The task completion score, dynamic smoothness score and execution efficiency score are weighted and summed to obtain the total score of the data unit to be evaluated. Step 4: Perform physical event marking on the data unit based on sensor hard thresholds, including identifying collision intervention events, abnormal stop events, overload events and follow-up failure events by monitoring motor current, joint torque, encoder speed and / or end force signals, and marking the corresponding time or time window with event tags; Step 5: Generate a training sample filtering list, and remove all data units whose total score is lower than the preset threshold as described in Step 3; for data units whose total score reaches the preset threshold but contain the physical event marker, perform truncation or weight reduction processing on the corresponding sub-segments according to the preset physical window, with the event occurrence time as the center, to obtain a clean training sample set. Step 6: Train the robot strategy model using the pure training sample set, and statistically analyze the physical boundary violation rate of the strategy output in the training rounds or verification rounds. The physical boundary violation rate includes the joint torque violation rate, joint velocity violation rate, joint acceleration violation rate and / or collision warning trigger rate. Step 7: When the physical boundary out-of-bounds rate exceeds the preset out-of-bounds threshold, increase the sample quality admission threshold and / or expand the truncation window for abnormal events to tighten the data entry; when the physical boundary out-of-bounds rate is lower than the preset out-of-bounds threshold and the sample coverage is insufficient, relax the admission threshold or shorten the window to form a closed-loop update mechanism. Furthermore, the total score of the data unit to be evaluated is obtained by weighted summation of the task completion score, dynamic smoothness score, and execution efficiency score, specifically calculated using the following formula:
[0008] in, For the total score, Rate the task completion rate. To score the smoothness of the dynamics, Scoring based on execution efficiency, , , These are the weighting coefficients for the task completion score, dynamic smoothness score, and execution efficiency score, respectively. + + = 1.
[0009] Furthermore, in step 3, the dynamic smoothness score is calculated as follows: perform smoothing differentiation on the trajectory of each joint angle to obtain velocity, acceleration, and jerk; estimate the joint driving torque based on the robot dynamics model; calculate the jerk integral term and torque utilization penalty term, and then obtain the dynamic smoothness score through weighted normalization.
[0010] Furthermore, in step 3, the task completion score is calculated based on at least one of the following indicators: whether the capture was successful, whether the target placement was completed, and whether a safety shutdown occurred. The execution efficiency score is calculated based on the comparison between the actual task completion time and the preset reference time.
[0011] Furthermore, in step 4, the triggering conditions for the collision intervention event include: the motor current feedback exceeding a preset multiple of the rated current threshold, the joint torque feedback exceeding the safe torque threshold, or the end force / torque exceeding the safe threshold.
[0012] Furthermore, in step 4, the triggering condition for the abnormal stagnation event is: when there is a valid motion command, the encoder speed continuously falls below the speed resolution threshold for a preset duration.
[0013] Furthermore, in step 4, the triggering condition for the following failure event is: when there is a valid motion command, the encoder speed is continuously lower than the preset speed resolution threshold for a preset duration, and the joint torque feedback or motor current feedback deviates abnormally from the normal following state.
[0014] Furthermore, in step 1, the original teaching data comes from manual traction teaching, master-slave remote operation teaching, or teaching pendant programming playback.
[0015] Furthermore, in step 2, the task-level or segment-level segmentation is to segment according to a single complete task, or to decompose a task into multiple sub-stages to form data units respectively.
[0016] This invention also provides a system for evaluating the quality of teaching data and screening training samples for robots, comprising: The data acquisition module is configured to acquire teaching raw data, which includes at least one of the following: robot joint angle sequence, joint velocity sequence, control command sequence, and motor current, torque feedback, encoder speed, and end effector force sensor data that are time-synchronized with the joint angle sequence, joint velocity sequence, and control command sequence. The data segmentation module is configured to segment the teaching raw data at the task level or segment level to form data units to be evaluated. Each data unit contains the start time, end time, task label and time-synchronized multi-sensor data. The quality assessment module is configured to calculate multi-dimensional quality indicators for each data unit. These multi-dimensional quality indicators include at least a task completion score, a dynamic smoothness score, and an execution efficiency score. The dynamic smoothness score is based on joint angular trajectory jerk, and its calculation method is as follows: perform smoothing differentiation on each joint angular trajectory to obtain velocity, acceleration, and jerk; perform time integration on the jerk to obtain the jerk integral term; input the joint angular trajectory into the robot dynamics model to estimate the joint driving torque; compare the joint driving torque with a preset safe torque threshold to calculate a torque utilization penalty term, wherein when the actual torque... A penalty is incurred when the safe torque threshold is exceeded, and no penalty is incurred when it is not exceeded. The integral term of the jerk and the penalty term of the torque utilization rate are multiplied by weighting coefficients respectively and then summed. The sum is then substituted into the exponential decay function, and the result is normalized to the [0,1] interval to obtain the dynamic smoothness score, which characterizes the physical executability of the trajectory. The torque utilization rate penalty term is used to quantify the degree to which the joint driving torque exceeds the safe threshold. The larger the value of the torque utilization rate penalty term, the more the joint torque exceeds the safety boundary, and there is a risk of torque saturation or overload. The task completion score, dynamic smoothness score and execution efficiency score are weighted and summed to obtain the total score of the data unit to be evaluated. The event marking module is configured to perform physical event marking on the data unit based on sensor hard thresholds, including identifying collision intervention events, abnormal stop events, overload events and follow failure events by monitoring motor current, joint torque, encoder speed and / or end force signals, and marking the corresponding time or time window with event markers; The sample filtering module is configured to generate a training sample filtering list, and to remove the data units whose total score is lower than a preset threshold. For data units whose total score reaches the preset threshold but contain the physical event marker, the corresponding sub-segments are truncated or weighted according to a preset physical window centered on the event occurrence time to obtain a clean training sample set. The training and feedback statistics module is configured to train the robot strategy model using the pure training sample set and to statistically analyze the physical boundary violation rate of the strategy output in the training round or the verification round. The physical boundary violation rate includes the joint torque violation rate, the joint velocity violation rate, the joint acceleration violation rate and / or the collision warning trigger rate. The closed-loop adjustment module is configured to tighten the data entry by increasing the sample quality admission threshold and / or expanding the truncation window for abnormal events when the physical boundary out-of-bounds rate exceeds a preset out-of-bounds threshold; and to relax the admission threshold or shorten the truncation window for abnormal events when the physical boundary out-of-bounds rate is lower than the preset out-of-bounds threshold and the sample coverage is insufficient, thereby forming a closed-loop update mechanism.
[0017] The present invention provides a method for evaluating the quality of teaching data and selecting training samples for robots, which, compared with the prior art, has at least the following advantages: Existing teaching data screening schemes generally only focus on the numerical statistical characteristics of the trajectory, such as surface indicators like mean, variance, and smoothness, neglecting the physical constraints faced by the robot when actually executing the taught trajectory. This invention introduces a dynamic smoothness score, integrating robot body dynamics information such as joint drive torque estimation, torque utilization, and saturation risk into the quality evaluation system. It can identify teaching trajectory segments that appear continuous and smooth on the mathematical curve but are actually unstable in real robots due to near-saturation joint torque or excessive acceleration. If such segments are not filtered and included in the training set, the imitation learning strategy will learn action patterns beyond the robot's driving capabilities, causing torque overshoot, impacts, jitter, or attitude drift during deployment. This invention solves this problem at the data source, ensuring that the screened teaching samples are consistent with the robot's actual physical execution capabilities, significantly improving the physical authenticity of the training data.
[0018] During robot teaching, manual traction and master-slave teleoperation inevitably lead to abnormal events such as collisions, stalls, overloads, and follow-up failures. Traditional solutions rely on engineers reviewing task videos or trajectory curves segment by segment, manually annotating and deleting these abnormal segments. This is inefficient, subjective, and difficult to maintain consistency in large-scale teaching data construction. This invention uses hard threshold monitoring of motor current, joint torque, encoder speed, and end effector force signals to automatically identify and mark collision intervention events, abnormal stall events, overload events, and follow-up failure events. This mechanism transforms the original manual segment-by-segment anomaly identification work into an automated process, significantly improving the efficiency of large-scale teaching data processing. At the same time, hard threshold triggering ensures the objectivity and reproducibility of anomaly marking, avoiding subjective differences in manual screening, and enabling teaching data collected by different batches and operators to be cleaned according to a unified standard.
[0019] Robot teaching data acquisition is costly, and in a complete teaching task, only a few moments often exhibit anomalies, while the execution quality of most other segments is likely acceptable. Existing solutions, if filtering by entire segments, easily discard entire segments of teaching data due to local anomalies, resulting in a significant waste of valuable information. This invention employs a two-layer screening mechanism: a total score threshold filter combined with event window truncation or weighting. The first layer eliminates teaching tasks with poor overall quality based on the multidimensional quality total score. The second layer, for teaching segments that meet the total score but contain physical event markers, performs truncation or weighting only on the preset window surrounding the moment the anomaly occurs, retaining the normal execution segment within that segment uncontaminated by the anomaly. This mechanism ensures the cleanliness of training samples, avoiding the misleading influence of anomalies on policy learning, while maximizing the retention of high-quality teaching information and reducing the waste of valuable data. It possesses significant engineering value under the constraints of high robot teaching data acquisition costs.
[0020] Existing dataset construction processes for imitation learning generally lack closed-loop optimization mechanisms. Data selection thresholds are typically set once by human experience, and even after training, if the strategy frequently exceeds its limits on the robot, there is rarely a reverse correction of the data entry criteria. This invention establishes a closed-loop linkage between the joint torque exceeding its limits, joint velocity exceeding its limits, joint acceleration exceeding its limits, and collision warning trigger rate output after strategy training, and the data selection entry threshold and event truncation window. When the exceeding rate is too high, the data entry is tightened; when the exceeding rate decreases and sample coverage is insufficient, the entry is appropriately widened. This closed-loop mechanism makes the quality entry threshold of teaching data no longer a static empirical value, but rather adaptively convergent based on the physical executability feedback of the strategy on the real robot, gradually adjusting the selected training sample set to a range that matches the actual driving capabilities of the target robot. This mechanism directly links the preprocessing of robot teaching data with the performance of strategy deployment, effectively reducing the physical risks such as collisions, overloads, and safety shutdowns caused by strategy output exceeding limits when directly deploying from teaching learning to the real robot, providing reliable data assurance for the safe and efficient deployment of robot imitation learning strategies.
[0021] In summary, this invention closely addresses the specific needs of robot teaching and learning. Teaching data commonly contains trajectory segments that appear executable but actually exceed the robot's physical boundaries. Physical events such as collisions and stalls inevitably occur during teaching, and there is a physical executability gap between strategy training and real-world deployment. This invention combines dynamic constraint evaluation, automatic sensor event labeling, and a training feedback loop to form a complete solution for quality assessment and sample selection specifically tailored to the characteristics of robot teaching data. This ensures the physical executability of imitation learning strategies from the data source, reduces robot deployment risks, and improves the automation level and efficiency of large-scale teaching data engineering. Attached Figure Description
[0022] Figure 1 This is a schematic diagram of the method flow of the present invention; Figure 2 This is a flowchart illustrating step 3 of the method of the present invention; Figure 3 This is a schematic diagram illustrating the calculation of the joint angle trajectory in the method of the present invention; Figure 4 This is a flowchart illustrating step 5 of the method of the present invention; Figure 5 This is a flowchart illustrating steps 6 and 7 of the method of the present invention; Figure 6 This is a schematic diagram of motor current monitoring in the method of the present invention; Figure 7 This is a schematic diagram of encoder speed monitoring in the method of the present invention; Figure 8 This is a schematic diagram of the event truncation window in the method of the present invention. Detailed Implementation
[0023] 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 a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0024] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0025] Furthermore, in this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0026] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection, an electrical connection, a physical connection, or a wireless communication connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two elements or the interaction between two elements, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0027] Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but only if they are feasible for those skilled in the art. If the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.
[0028] like Figures 1-8 As shown, the present invention provides a method for evaluating the quality of teaching data and selecting training samples for a robot, comprising the following steps: Step 1: Acquire the raw teaching data. The raw data includes at least the robot joint angle sequence, joint velocity sequence, control command sequence, and at least one of the following: motor current, torque feedback, encoder speed, and end effector force sensor data that are time-synchronized with the joint angle sequence, joint velocity sequence, and control command sequence. By collecting data from multiple sensors, this step provides a multi-dimensional information foundation for subsequent quality scoring and physical event recognition. This allows the quality evaluation to not only rely on the numerical curve of the trajectory but also to correlate with the physical feedback of the robot during execution, avoiding the one-sidedness of evaluation caused by a single data source.
[0029] Step 2: The raw teaching data is segmented at the task level or segment level to form data units to be evaluated. Each data unit includes the start time, end time, task label, and multi-sensor data after time synchronization. Through task-level or segment-level segmentation, this step achieves refined management of the teaching data, enabling subsequent quality scoring and filtering to be performed on units with clear task semantics. This can accurately identify tasks that fail as a whole, while retaining sub-stages with normal quality within the same task, avoiding the waste of the entire data segment due to local anomalies.
[0030] Step 3: Calculate multidimensional quality indicators for each data unit. These indicators include at least a task completion score, a dynamic smoothness score, and an execution efficiency score. The dynamic smoothness score is based on the joint angle trajectory jerk, calculated as follows: perform smoothing differentiation on each joint angle trajectory to obtain velocity, acceleration, and jerk; integrate the jerk over time to obtain the jerk integral term; input the joint angle trajectory into the robot dynamics model to estimate the joint driving torque; compare the joint driving torque with a preset safe torque threshold to calculate a torque utilization penalty term, where a penalty term is generated when the actual torque exceeds the safe torque threshold. Penalty is applied if the limit is not exceeded; the integral term of the jerk and the penalty term of the torque utilization rate are multiplied by weighting coefficients and summed, then substituted into the exponential decay function, and the result is normalized to the [0,1] interval to obtain the dynamic smoothness score, which characterizes the physical executability of the trajectory. The torque utilization rate penalty term quantifies the degree to which the joint driving torque exceeds the safety threshold. The larger the value of the torque utilization rate penalty term, the more the joint torque exceeds the safety boundary, indicating a risk of torque saturation or overload. By introducing the dynamic model into the smoothness evaluation, this step can identify trajectory segments that appear numerically continuous and smooth but are actually close to or at risk of saturation in the joint torque. If such segments are used for training, the strategy may learn action patterns that exceed the robot's physical boundaries, causing torque overshoot, impact, or jitter during deployment. After introducing dynamic constraints, the smoothness score can more realistically reflect the physical executability of the trajectory on the robot body.
[0031] The task completion score, dynamic smoothness score, and execution efficiency score are weighted and summed to obtain the total score of the data unit to be evaluated. By merging the scores of the three dimensions into a single total score through weighted summation, this step provides a unified and comparable quantitative threshold for the subsequent overall screening of data units, simplifies the filtering logic, and retains the flexibility of adjustable weights of each dimension to adapt to different task requirements.
[0032] Step 4: Perform physical event labeling on the data unit based on sensor hard thresholds. This includes identifying collision intervention events, abnormal stall events, overload events, and follow-up failure events by monitoring motor current, joint torque, encoder speed, and / or end force signals, and marking the corresponding time or time window with event tags. Through the event labeling mechanism triggered by sensor hard thresholds, this step can automatically and efficiently identify physical events such as collisions, stalls, overloads, and follow-up failures that actually occur during the teaching process. This replaces the manual inspection method of engineers reviewing videos or curves segment by segment in the traditional solution, significantly improving the work efficiency and labeling consistency of large-scale data processing.
[0033] Step 5: As Figure 4 As shown, a training sample filtering list is generated, and data units with total scores below a preset threshold as described in step 3 are completely removed. For data units with total scores reaching the preset threshold but containing the physical event markers, the corresponding sub-segments are truncated or weighted according to a preset physical window centered on the event occurrence time, resulting in a clean training sample set. The filtering is divided into two levels: the first level removes all data units with total scores below the preset threshold obtained in step 3; the second level, for data units with total scores reaching the threshold but containing physical event markers, the corresponding sub-segments are truncated or weighted according to a preset physical window centered on the event occurrence time. Through the dual-layer screening mechanism of total score threshold filtering plus event window truncating or weighting, this step can not only remove data units with low task completion, poor execution efficiency, or poor dynamic quality, but also retain the normal execution intervals in high-quality tasks that have not been contaminated by abnormal events. This ensures the cleanliness of the training samples while minimizing the waste of effective data and improving data utilization.
[0034] Step 6: As Figure 5As shown, the robot strategy model is trained using the pure training sample set, and the physical boundary violation rate of the strategy output is statistically analyzed in the training or verification rounds. The physical boundary violation rate includes the joint torque violation rate, joint velocity violation rate, joint acceleration violation rate, and / or collision warning trigger rate. By continuously monitoring the physical boundary violation of the strategy output during the training or verification phase, this step directly introduces the driving limit of the robot body into the strategy performance evaluation, which can quantitatively measure the physical executability of the strategy trained on the current screened training sample set, and provide an objective quantitative feedback signal for the subsequent optimization of data screening criteria.
[0035] Step 7: When the physical boundary out-of-bounds rate exceeds the preset out-of-bounds threshold, increase the sample quality admission threshold and / or expand the truncation window for abnormal events to tighten the data entry; when the physical boundary out-of-bounds rate is lower than the preset out-of-bounds threshold and the sample coverage is insufficient, relax the admission threshold or shorten the truncation window for abnormal events, thereby forming a closed-loop update mechanism; by establishing a closed-loop linkage between the physical out-of-bounds rate after policy training and the data screening criteria, this step enables the quality admission threshold of the teaching data to no longer be statically set by human experience, but to be adaptively optimized based on the executability feedback of the policy in actual deployment, gradually converging the training sample set to a range that matches the robot's real physical capabilities, effectively reducing the physical risks such as collisions and shutdowns caused by policy output out-of-bounds when directly deploying from simulation training to the real robot.
[0036] The present invention provides a method for evaluating the quality of teaching data and selecting training samples for robots, which, compared with the prior art, has at least the following advantages: Existing teaching data screening schemes generally only focus on the numerical statistical characteristics of the trajectory, such as surface indicators like mean, variance, and smoothness, neglecting the physical constraints faced by the robot when actually executing the taught trajectory. This invention introduces a dynamic smoothness score, integrating robot body dynamics information such as joint drive torque estimation, torque utilization, and saturation risk into the quality evaluation system. It can identify teaching trajectory segments that appear continuous and smooth on the mathematical curve but are actually unstable in real robots due to near-saturation joint torque or excessive acceleration. If such segments are not filtered and included in the training set, the imitation learning strategy will learn action patterns beyond the robot's driving capabilities, causing torque overshoot, impacts, jitter, or attitude drift during deployment. This invention solves this problem at the data source, ensuring that the screened teaching samples are consistent with the robot's actual physical execution capabilities, significantly improving the physical authenticity of the training data.
[0037] During robot teaching, manual traction and master-slave teleoperation inevitably lead to abnormal events such as collisions, stalls, overloads, and follow-up failures. Traditional solutions rely on engineers reviewing task videos or trajectory curves segment by segment, manually annotating and deleting these abnormal segments. This is inefficient, subjective, and difficult to maintain consistency in large-scale teaching data construction. This invention uses hard threshold monitoring of motor current, joint torque, encoder speed, and end effector force signals to automatically identify and mark collision intervention events, abnormal stall events, overload events, and follow-up failure events. This mechanism transforms the original manual segment-by-segment anomaly identification work into an automated process, significantly improving the efficiency of large-scale teaching data processing. At the same time, hard threshold triggering ensures the objectivity and reproducibility of anomaly marking, avoiding subjective differences in manual screening, and enabling teaching data collected by different batches and operators to be cleaned according to a unified standard.
[0038] Robot teaching data acquisition is costly, and in a complete teaching task, only a few moments often exhibit anomalies, while the execution quality of most other segments is likely acceptable. Existing solutions, if filtering by entire segments, easily discard entire segments of teaching data due to local anomalies, resulting in a significant waste of valuable information. This invention employs a two-layer screening mechanism: a total score threshold filter combined with event window truncation or weighting. The first layer eliminates teaching tasks with poor overall quality based on the multidimensional quality total score. The second layer, for teaching segments that meet the total score but contain physical event markers, performs truncation or weighting only on the preset window surrounding the moment the anomaly occurs, retaining the normal execution segment within that segment uncontaminated by the anomaly. This mechanism ensures the cleanliness of training samples, avoiding the misleading influence of anomalies on policy learning, while maximizing the retention of high-quality teaching information and reducing the waste of valuable data. It possesses significant engineering value under the constraints of high robot teaching data acquisition costs.
[0039] Existing dataset construction processes for imitation learning generally lack closed-loop optimization mechanisms. Data selection thresholds are typically set once by human experience, and even after training, if the strategy frequently exceeds its limits on the robot, there is rarely a reverse correction of the data entry criteria. This invention establishes a closed-loop linkage between the joint torque exceeding its limits, joint velocity exceeding its limits, joint acceleration exceeding its limits, and collision warning trigger rate output after strategy training, and the data selection entry threshold and event truncation window. When the exceeding rate is too high, the data entry is tightened; when the exceeding rate decreases and sample coverage is insufficient, the entry is appropriately widened. This closed-loop mechanism makes the quality entry threshold of teaching data no longer a static empirical value, but rather adaptively convergent based on the physical executability feedback of the strategy on the real robot, gradually adjusting the selected training sample set to a range that matches the actual driving capabilities of the target robot. This mechanism directly links the preprocessing of robot teaching data with the performance of strategy deployment, effectively reducing the physical risks such as collisions, overloads, and safety shutdowns caused by strategy output exceeding limits when directly deploying from teaching learning to the real robot, providing reliable data assurance for the safe and efficient deployment of robot imitation learning strategies.
[0040] In summary, this invention closely addresses the specific needs of robot teaching and learning. Teaching data commonly contains trajectory segments that appear executable but actually exceed the robot's physical boundaries. Physical events such as collisions and stalls inevitably occur during teaching, and there is a physical executability gap between strategy training and real-world deployment. This invention combines dynamic constraint evaluation, automatic sensor event labeling, and a training feedback loop to form a complete solution for quality assessment and sample selection specifically tailored to the characteristics of robot teaching data. This ensures the physical executability of imitation learning strategies from the data source, reduces robot deployment risks, and improves the automation level and efficiency of large-scale teaching data engineering.
[0041] In one embodiment, the total score of the data unit to be evaluated is obtained by weighted summation of the task completion score, dynamic smoothness score, and execution efficiency score, specifically calculated using the following formula:
[0042] in, For the total score, Rate the task completion rate. To score the smoothness of the dynamics, Scoring based on execution efficiency, , , These are the weighting coefficients for the task completion score, dynamic smoothness score, and execution efficiency score, respectively. + + = 1.
[0043] like Figure 2 As shown, this embodiment assigns adjustable weight coefficients to the quality scores of the three dimensions and merges them into a single total score. This allows for flexible adaptation of the emphasis on teaching data quality in different task scenarios by adjusting the weights. For example, in high-precision assembly tasks, the weight of the dynamic smoothness score can be appropriately increased to prioritize the elimination of trajectory segments with the risk of torque saturation. In production tasks with strict cycle time requirements, the weight of the execution efficiency score can be increased to prioritize the selection of teaching samples with reasonable cycle time. Simultaneously, the output in the form of a total score provides a concise and unified judgment basis for the threshold filtering in subsequent step 5, avoiding the logical complexity and difficulty in threshold adjustment caused by judging multiple indicators separately.
[0044] In one embodiment, in step 3, the dynamic smoothness score is calculated as follows: perform smoothing differentiation on the trajectory of each joint angle to obtain velocity, acceleration and jerk; estimate the joint driving torque according to the robot dynamics model; calculate the jerk integral term and torque utilization penalty term, and then obtain the dynamic smoothness score through weighted normalization.
[0045] In this embodiment, the jerk integral term measures the impact of the trajectory, while the torque utilization penalty term measures the degree to which the joint driving torque approaches saturation or overload. This embodiment incorporates both the jerk index and the torque utilization estimated by the dynamic model into the smoothness evaluation, enabling the score to comprehensively reflect the smoothness of the trajectory at the kinematic level and its physical executability at the dynamic level. Traditional solutions rely solely on kinematic indices such as jerk to evaluate trajectory quality, failing to identify kinematically smooth trajectory segments whose torque is approaching or exceeding the limits of joint driving capability. By introducing the torque utilization penalty term, these teaching segments, which might trigger torque saturation, overload alarms, or follow-up failures on real robots, are assigned lower dynamic smoothness scores, thus being accurately identified and eliminated in subsequent filtering stages. This effectively prevents imitation learning strategies from learning action patterns beyond the robot's physical boundaries from the data.
[0046] In one embodiment, such as Figure 3 As shown, the calculation process for the dynamic smoothness score is as follows: Based on joint angle trajectory q ( t The input is used as the basis for parallel computation in two branches.
[0047] The first branch is the integral term of jerk: based on the joint angle trajectory. q ( t Starting from ), the joint angle trajectory is calculated sequentially through smooth numerical differentiation. q ( t Differentiating the derivative yields the angular velocity. , by angular velocity Differentiating gives the angular acceleration Then by angular acceleration Differentiation yields the jerk. jerk ( t Integrating the square of the jerk over time yields the jerk integral term. J jerk ,in .
[0048] The second branch is a torque utilization penalty term: adjusting the joint angle trajectory. q ( t Input the robot's dynamics model and estimate the driving torque of each joint. τ j (t) ;Will τ j ( t ) and the preset safe torque threshold τ safe.j Compare and calculate the torque utilization penalty term. P τ ,in This means that a penalty is only incurred when the actual torque exceeds the safe torque threshold; no penalty is incurred if the actual torque does not exceed it.
[0049] Multiply the results of the two branches by the weighting coefficients α and β respectively, sum them, and then substitute them into the exponential decay function. The result is normalized to the [0,1] interval. The larger the value, the smoother the motion and the higher the physical executability.
[0050] accelerometer integral term J jerk Used to quantify the degree of motion abrupt changes in a trajectory J jerk A higher value indicates more frequent or more dramatic acceleration changes in the joint angle trajectory, which can easily cause shocks and jitters during execution, thus deducting points from the smoothness score; torque utilization penalty item. P τ Used to quantify the extent to which the joint driving torque exceeds the safety threshold. P τ The larger the value, the closer the joint torque is to or even exceeds the safety boundary, indicating a risk of torque saturation or overload, which will also deduct points from the smoothness score.
[0051] The above calculations rely on two supporting modules, including a robot dynamics model that provides a safe torque threshold τ. safeThe joint torque limit is used to determine whether there is a risk of saturation in the current estimated torque; the differential calculation module calculates the angular velocity, angular acceleration and jerk sequentially from the joint angular trajectory q(t) through smooth numerical differentiation.
[0052] This embodiment quantifies the degree of motion abrupt changes in the trajectory through an acceleration integral term and quantifies the safety margin of joint actuation capability through a torque utilization penalty term, fusing both within a single exponential decay function. A larger acceleration integral term indicates frequent or drastic acceleration changes in the trajectory, making it prone to impacts and jitter during execution; a larger torque utilization penalty term indicates that the joint actuation torque is closer to or even exceeds the safety boundary, posing a risk of torque saturation or overload. The use of an exponential decay function ensures that a deterioration in either metric leads to a rapid decrease in the smoothness score, effectively penalizing high-risk trajectories. This dual-branch structure comprehensively characterizes the physical executability of the taught trajectory on the robot body from both kinematic and dynamic dimensions, overcoming the shortcomings of traditional solutions that rely solely on kinematic metrics.
[0053] In one embodiment, in step 3, the task completion score is calculated based on at least one of the following indicators: whether the capture was successful, whether the target placement was completed, and whether a safety shutdown occurred. The execution efficiency score is calculated based on the comparison between the actual task completion time and the preset reference time.
[0054] Specifically, the task completion score reflects the execution result of the teaching task at the task level. For grasping and placing tasks, if the target object is successfully grasped and placed in the target position without a safety stop during the teaching process, the task completion score is high; if grasping fails, placement fails, or a safety stop is triggered midway, the task completion score is low. The execution efficiency score reflects the time-level rationality of the teaching task. It compares the actual completion time of the task with the preset reference time. The closer the actual time is to the reference time, or the less it exceeds the allowable deviation range of the reference time, the higher the execution efficiency score; if the actual time is too long or too short, a lower score may be assigned.
[0055] This embodiment quantifies the evaluation of teaching data units from two dimensions: task completion and execution efficiency, considering both task success and reasonable execution rhythm. Task completion scoring directly identifies task samples that fail or are abnormally interrupted during the teaching process. If such samples are used for imitation learning training, they can mislead the strategy into learning incorrect task execution logic. Execution efficiency scoring filters out teaching segments with abnormal execution rhythms, such as excessive time consumption due to operator hesitation or repeated adjustments, or safety risks caused by hasty actions, preventing the strategy from learning inefficient or unstable execution rhythms. These two metrics, along with dynamic smoothness scoring, complement each other, forming a complete teaching data quality evaluation system from three dimensions: task outcome, time rationality, and physical executability.
[0056] In one embodiment, in step 4, the triggering conditions for the collision intervention event include: the motor current feedback exceeding a preset multiple of the rated current threshold, the joint torque feedback exceeding the safe torque threshold, or the end force / torque exceeding the safe threshold.
[0057] Specifically, motor current feedback directly reflects the load on the joint motors. When the robot's end effector or arm collides or gets stuck with external forces, the motor needs to output additional torque to maintain movement or hold its position, causing a sudden increase in current. Using a preset multiple of the rated current as the trigger condition allows for rapid capture of the current spike at the moment of collision. Joint torque feedback measures torque directly from the joint output. When the torque exceeds the safe torque threshold, it indicates that the load on the joint has exceeded the design safety range. For robots equipped with end effector force / torque sensors, an end effector force / torque exceeding the safety threshold directly indicates that the end effector or the manipulated object has been subjected to abnormal external forces.
[0058] The three triggering conditions described above can be used individually or in combination. A collision intervention event is considered to have occurred when any one of the conditions is met. Figure 4 As shown, once the event is marked, the corresponding time and its surrounding windows will be truncated or downgraded in step 5.
[0059] This embodiment uses sensor signals at three levels—motor current, joint torque, and end effector force / torque—to jointly monitor collision intervention events, forming a complete collision perception chain from the drive end to the output end and then to the end effector. Motor current signals have the fastest response speed, capturing the transient characteristics of collisions; joint torque signals directly reflect the force state of the joints and are directly comparable to the safety boundaries in the robot's dynamics model; and end effector force / torque signals provide the most direct contact force information in the operating space. The combined use of these three signals can cover robot platforms with different installation locations and sensor configurations, while also providing redundancy and reducing the risk of missed or false detections. Automatically marking collision intervention events and removing them from training samples effectively prevents the imitation learning strategy from mislearning collision response actions as normal operating behavior, thereby reducing the risk of secondary collisions caused by misoperation during strategy deployment.
[0060] In one embodiment, in step 4, the triggering condition for the abnormal stagnation event is: when there is a valid motion command, the encoder speed continuously falls below the speed resolution threshold for a preset duration.
[0061] Specifically, the triggering condition includes two necessary conditions, both of which must be met simultaneously for it to be considered an abnormal stagnation event. The first condition is "the existence of a valid motion command," meaning the robot controller is sending a non-zero motion command to the joint actuator, expecting the joint to produce a corresponding rotation or movement. The second condition is "the encoder speed is continuously lower than the speed resolution threshold for a preset duration," meaning the joint movement speed actually measured by the encoder is lower than the minimum speed value that the encoder can resolve for a continuous period of time, indicating that the joint is actually in a stagnant state.
[0062] If both of the above conditions are met simultaneously, it means that the controller has issued a motion command, but the joint has not produced the expected effective movement, reflecting an abnormal situation such as external obstruction, joint mechanical jamming, motor stalling, transmission mechanism failure, or serious following error. This event corresponds to... Figure 7 In the encoder speed monitoring branch, when the event is detected, the corresponding time and window will be marked and processed in step 5.
[0063] This embodiment combines the presence of "motion commands" and the absence of "actual motion" as the criteria for abnormal stagnation, accurately distinguishing between normal and abnormal pauses in robot tasks. During teaching, the operator may intentionally pause actions due to thinking or adjustment; in this case, there are no motion commands and this should not be misjudged as abnormal. Abnormal stagnation occurs when the robot should move but fails to do so due to external obstacles or its own malfunction. If such segments are retained in the training samples, the imitation learning strategy may learn the erroneous pattern of "issuing a command and waiting to pass without producing effective motion," or output invalid actions in similar scenarios, causing the task to freeze. By automatically identifying and removing abnormal stagnation segments, the negative impact of such misleading samples on strategy training is effectively avoided. At the same time, the preset duration setting can filter out brief speed fluctuations, preventing false triggering due to sensor noise or transient disturbances.
[0064] In one embodiment, the preset physical window is set as follows: it is extended forward and backward by a preset time length, centered on the time of the event; wherein the sampling period is 10ms, the current threshold for the collision intervention event is set to 1.2 times the rated current, the duration threshold for the abnormal stagnation event is set to 300ms, and the window extension time before and after the event is 0.5s each.
[0065] Specifically, such as Figure 8 As shown, when a collision intervention event or abnormal stop event is detected in step 4 at a certain moment, a window is extended forward by 0.5 seconds as the starting point and backward by 0.5 seconds as the ending point. All data within this window is truncated or downweighted in step 5. This window extension time is set proportionally to the mechanical time constant of the robot joint, the drive response delay, and the control cycle to ensure that the associated impact range before and after the abnormal event is covered.
[0066] This embodiment achieves determinism and reproducibility in event recognition and window truncation by setting explicit hard threshold parameters for different types of physical events. The current threshold for collision intervention events is set to 1.2 times the rated current, effectively capturing real collision and overload events while avoiding false triggers caused by normal load fluctuations. The duration threshold for abnormal stagnation events is set to 300ms, eliminating instantaneous fluctuations in encoder speed or sensor noise interference, ensuring a response only to genuine, sustained stagnation. Extending the window by 0.5s before and after each event removes the force buildup process before the collision, the residual oscillation after the collision, and the resistance accumulation phase before stagnation, avoiding the retention of ambiguous data between normal and abnormal transition zones. If this ambiguous data is used for training, it can easily lead to unstable transitional actions output by the imitation learning strategy in similar scenarios, increasing deployment uncertainty. Through the parameterized window truncation described above, the risk of the strategy mislearning collision recovery actions or jamming transition processes as normal operating behavior is significantly reduced, improving the cleanliness of training samples and the safety of strategy deployment.
[0067] In one embodiment, in step 4, the triggering condition for the following failure event is: when there is a valid motion command, the encoder speed is continuously lower than the preset speed resolution threshold for a preset duration, and the joint torque feedback or motor current feedback deviates abnormally from the normal following state.
[0068] Specifically, the triggering condition includes three necessary conditions, all of which must be met simultaneously for a tracking failure event to be recognized. The first condition is "the existence of a valid motion command," meaning the robot controller is sending a non-zero motion command to the joint actuator. The second condition is "the encoder speed remains below the speed resolution threshold for a preset duration," meaning the actual joint movement speed cannot reach a measurable level for a continuous period. The third condition is "an abnormal deviation in joint torque feedback or motor current feedback compared to the normal tracking state." This abnormal deviation includes two situations: one is abnormally high torque or current, indicating that the actuator is outputting a large torque but the joint still cannot move effectively, usually caused by mechanical jamming or external obstruction; the other is abnormally low torque or current, indicating that the actuator is not generating the required driving torque, possibly caused by actuator failure, communication interruption, or loss of enable.
[0069] Compared to abnormal stall events, the judgment of follow-up failure events adds the condition of abnormal deviation in torque or current. Abnormal stall events focus on the phenomenon of "having a command but not moving" itself, while follow-up failure events further require confirmation of whether the feedback signal on the drive side is also abnormal, so as to more accurately locate the cause of the fault.
[0070] This embodiment, by adding an auxiliary judgment condition of abnormal torque or current deviation, can more accurately distinguish different types of anomalies during robot teaching. Simply relying on encoder speed below a threshold to determine stagnation may misclassify some fine operations that are following normally but at extremely low speeds as anomalies. Introducing the abnormal deviation condition of torque or current feedback triggers marking only when the drive-side feedback also exhibits abnormal characteristics, reducing the false detection rate. Simultaneously, distinguishing between abnormally high and abnormally low deviations provides richer information for subsequent fault diagnosis, such as differentiating whether the following failure is caused by mechanical jamming or a drive system malfunction. Removing such segments from the training samples avoids the imitation learning strategy learning the erroneous association of "no drive response or abnormal response after issuing a command, but still able to complete the task," improving the robustness and safety of the strategy in actual deployment.
[0071] In one embodiment, in step 1, the original teaching data comes from manual traction teaching, master-slave remote operation teaching, or teach pendant programming playback.
[0072] Specifically, manual traction teaching refers to the operator directly dragging the robot's end effector or joints to make the robot move along the target task trajectory. During this process, the robot records the angles, speeds, and sensor feedback data of each joint. Master-slave teleoperation teaching refers to the operator remotely controlling the slave robot to perform tasks through the master operating device. The system synchronously collects master commands and slave status and feedback data. Teach pendant programming playback refers to the operator writing or jogging motion command sequences through the teach pendant, which are then automatically played back and executed by the robot, and relevant data is collected.
[0073] This embodiment covers three mainstream teaching data acquisition methods in current robot imitation learning, making the method of this invention adaptable to a wide range of data sources. The raw data generated by different teaching methods differ in noise characteristics, trajectory smoothness, and physical event distribution: manual traction teaching data typically has a smoother trajectory but may contain high-frequency noise from hand tremors; master-slave teleoperation teaching data may introduce time lag between instructions and feedback due to communication delays; teach pendant programming playback data is kinematically regular but lacks real interactive force information. This method, by uniformly receiving teaching data from the above multiple sources in step 1 and combining it with the synchronous processing and quality assessment of multi-sensor data in subsequent steps, can uniformly measure and filter the data characteristics introduced by different acquisition methods. It eliminates the need to develop separate preprocessing procedures for each teaching method, significantly reducing the engineering complexity of integrating multi-source teaching data.
[0074] In one embodiment, in step 2, the task-level or segment-level segmentation is to segment according to a single complete task, or to decompose a task into multiple sub-stages to form data units respectively.
[0075] Specifically, task-level segmentation refers to treating a single, complete task execution process as a data unit. For example, a complete process of approaching the target—grabbing—transporting—placing—leaving corresponds to one data unit, containing all time-series data from the start to the end of the task. Fragment-level segmentation refers to decomposing a complex task into multiple sub-stages according to the execution sequence and semantics, with each sub-stage forming a separate data unit. For example, an assembly task can be decomposed into multiple sub-stages such as approach—pre-alignment—insertion—holding—exit, with each sub-stage independently serving as a data unit to be evaluated.
[0076] This embodiment provides two segmentation methods: task-level and segment-level. This allows the granularity of data unit division to flexibly adapt to the evaluation needs of tasks with varying complexity. Task-level segmentation is suitable for tasks with short processes, unclear sub-stage boundaries, or those requiring only overall evaluation, enabling rapid assessment of the overall quality of the entire teaching segment. Segment-level segmentation is suitable for tasks with longer processes and clearly defined sub-stage semantics, allowing for independent quality scoring and physical event labeling for each sub-stage. This enables more refined processing in the subsequent filtering step 5—when a physical event is triggered in a sub-stage, only the abnormal sub-stage and its surrounding data are removed, while other sub-stages with normal quality within the same task are retained. This refined segmentation and filtering strategy, given the high cost of robot teaching data acquisition, minimizes the waste of effective teaching data, and has significant engineering value, especially in complex multi-stage tasks such as assembly and insertion.
[0077] This invention also provides a system for evaluating the quality of teaching data and screening training samples for robots, comprising: The data acquisition module is configured to acquire teaching raw data, which includes at least one of the following: robot joint angle sequence, joint velocity sequence, control command sequence, and motor current, torque feedback, encoder speed, and end effector force sensor data that are time-synchronized with the joint angle sequence, joint velocity sequence, and control command sequence. The data segmentation module is configured to segment the teaching raw data at the task level or segment level to form data units to be evaluated. Each data unit contains the start time, end time, task label and time-synchronized multi-sensor data. The quality assessment module is configured to calculate multi-dimensional quality indicators for each data unit. These multi-dimensional quality indicators include at least a task completion score, a dynamic smoothness score, and an execution efficiency score. The dynamic smoothness score is based on joint angular trajectory jerk, and its calculation method is as follows: perform smoothing differentiation on each joint angular trajectory to obtain velocity, acceleration, and jerk; perform time integration on the jerk to obtain the jerk integral term; input the joint angular trajectory into the robot dynamics model to estimate the joint driving torque; compare the joint driving torque with a preset safe torque threshold to calculate a torque utilization penalty term, wherein when the actual torque... A penalty is incurred when the safe torque threshold is exceeded, and no penalty is incurred when it is not exceeded. The integral term of the jerk and the penalty term of the torque utilization rate are multiplied by weighting coefficients respectively and then summed. The sum is then substituted into the exponential decay function, and the result is normalized to the [0,1] interval to obtain the dynamic smoothness score, which characterizes the physical executability of the trajectory. The torque utilization rate penalty term is used to quantify the degree to which the joint driving torque exceeds the safe threshold. The larger the value of the torque utilization rate penalty term, the more the joint torque exceeds the safety boundary, and there is a risk of torque saturation or overload. The task completion score, dynamic smoothness score and execution efficiency score are weighted and summed to obtain the total score of the data unit to be evaluated. The event marking module is configured to perform physical event marking on the data unit based on sensor hard thresholds, including identifying collision intervention events, abnormal stop events, overload events and follow failure events by monitoring motor current, joint torque, encoder speed and / or end force signals, and marking the corresponding time or time window with event markers; The sample filtering module is configured to generate a training sample filtering list, and to remove the data units whose total score is lower than a preset threshold. For data units whose total score reaches the preset threshold but contain the physical event marker, the corresponding sub-segments are truncated or weighted according to a preset physical window centered on the event occurrence time to obtain a clean training sample set. The training and feedback statistics module is configured to train the robot strategy model using the pure training sample set and to statistically analyze the physical boundary violation rate of the strategy output in the training round or the verification round. The physical boundary violation rate includes the joint torque violation rate, the joint velocity violation rate, the joint acceleration violation rate and / or the collision warning trigger rate. The closed-loop adjustment module is configured to tighten the data entry by increasing the sample quality admission threshold and / or expanding the truncation window for abnormal events when the physical boundary out-of-bounds rate exceeds a preset out-of-bounds threshold; and to relax the admission threshold or shorten the truncation window for abnormal events when the physical boundary out-of-bounds rate is lower than the preset out-of-bounds threshold and the sample coverage is insufficient, thereby forming a closed-loop update mechanism.
[0078] The above description is merely an embodiment and does not constitute any limitation on the present invention. Any person skilled in the art can make many possible variations, modifications, or alterations to the technical solutions of the present invention without departing from the scope of the present invention. Therefore, any simple modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention, without departing from the scope of the present invention, should fall within the protection scope of the present invention.
Claims
1. A method for evaluating the quality of teaching data and selecting training samples for a robot, characterized in that, Includes the following steps: Step 1: Obtain the teaching raw data, which includes at least the robot joint angle sequence, joint velocity sequence, control command sequence, and at least one of the following: motor current, torque feedback, encoder speed, and end effector force sensor data that are time-synchronized with the joint angle sequence, joint velocity sequence, and control command sequence. Step 2: The teaching raw data is segmented at the task level or segment level to form data units to be evaluated. Each data unit contains the start time, end time, task label and multi-sensor data after time synchronization. Step 3: Calculate multidimensional quality indicators for each data unit. These indicators include at least a task completion score, a dynamic smoothness score, and an execution efficiency score. The dynamic smoothness score is calculated as follows: Perform smooth differentiation on each joint angle trajectory to obtain velocity, acceleration, and jerk. Integrate the jerk over time to obtain the jerk integral term. Input the joint angle trajectory into the robot dynamics model to estimate the joint driving torque. Compare the joint driving torque with a preset safe torque threshold and calculate a torque utilization penalty term. A penalty is applied when the joint driving torque exceeds the safe torque threshold; no penalty is applied when it does not exceed it. Multiply the jerk integral term and the torque utilization penalty term by weighting coefficients and sum them. Substitute the sum into an exponential decay function and normalize the result to the [0,1] interval to obtain the dynamic smoothness score. The torque utilization penalty term quantifies the degree to which the joint driving torque exceeds the safe threshold. Finally, weighted sum the task completion score, dynamic smoothness score, and execution efficiency score to obtain the total score for the data unit to be evaluated. Step 4: Perform physical event marking on the data unit based on sensor hard thresholds, including identifying collision intervention events, abnormal stop events, overload events, and follow-up failure events by monitoring motor current, joint torque, encoder speed, and end force signals, and marking the corresponding time or time window with event tags; Step 5: Generate a training sample filtering list, and remove all data units whose total score is lower than the preset threshold as described in Step 3; for data units whose total score reaches the preset threshold but contain the physical event marker, perform truncation processing on the corresponding sub-segments according to the preset physical window with the event occurrence time as the center, to obtain a clean training sample set; Step 6: Train the robot strategy model using the pure training sample set, and statistically analyze the physical boundary violation rate of the strategy output in the training rounds or verification rounds. The physical boundary violation rate includes the joint torque violation rate, joint velocity violation rate, joint acceleration violation rate and / or collision warning trigger rate. Step 7: When the physical boundary out-of-bounds rate exceeds the preset out-of-bounds threshold, increase the sample quality admission threshold and / or expand the truncation window for abnormal events to tighten the data entry; when the physical boundary out-of-bounds rate is lower than the preset out-of-bounds threshold and the sample coverage is insufficient, relax the admission threshold or shorten the truncation window for abnormal events, thereby forming a closed-loop update mechanism.
2. The method for evaluating the quality of teaching data and selecting training samples for a robot according to claim 1, characterized in that, The total score of the data unit to be evaluated is obtained by weighted summation of the task completion score, dynamic smoothness score, and execution efficiency score, specifically calculated using the following formula: in, For the total score, Rate the task completion rate. To score the smoothness of the dynamics, Scoring based on execution efficiency, , , These are the weighting coefficients for the task completion score, dynamic smoothness score, and execution efficiency score, respectively. + + = 1.
3. The method for evaluating the quality of teaching data and selecting training samples for a robot according to claim 1 or 2, characterized in that, In step 3, the task completion score is calculated based on at least one of the following indicators: whether the capture was successful, whether the target was placed, and whether a safety shutdown occurred. The execution efficiency score is calculated based on the comparison between the actual task completion time and the preset reference time.
4. The method for evaluating the quality of teaching data and selecting training samples for a robot according to claim 1, characterized in that, In step 4, the triggering conditions for the collision intervention event include: the motor current feedback exceeding a preset multiple of the rated current threshold, the joint torque feedback exceeding the safe torque threshold, or the end force / torque exceeding the safe threshold.
5. The method for evaluating the quality of teaching data and selecting training samples for a robot according to claim 1, characterized in that, In step 4, the triggering condition for the abnormal stop event is: when there is a valid motion command, the encoder speed continuously falls below the speed resolution threshold for a preset duration.
6. The method for evaluating the quality of teaching data and selecting training samples for a robot according to claim 1, characterized in that, In step 4, the triggering condition for the following failure event is: when there is a valid motion command, the encoder speed is continuously lower than the preset speed resolution threshold for a preset duration, and the joint torque feedback or motor current feedback deviates abnormally from the normal following state.
7. The method for evaluating the quality of teaching data and selecting training samples for a robot according to claim 1, characterized in that, In step 1, the original teaching data comes from manual traction teaching, master-slave remote operation teaching, or teaching pendant programming playback.
8. The method for evaluating the quality of teaching data and selecting training samples for a robot according to claim 1, characterized in that, In step 2, the task-level or segment-level segmentation is to segment according to a single complete task, or to decompose a task into multiple sub-stages to form data units respectively.
9. A system for evaluating the quality of teaching data and selecting training samples for a robot, characterized in that, include: The data acquisition module is configured to acquire teaching raw data, which includes at least one of the following: robot joint angle sequence, joint velocity sequence, control command sequence, and motor current, torque feedback, encoder speed, and end effector force sensor data that are time-synchronized with the joint angle sequence, joint velocity sequence, and control command sequence. The data segmentation module is configured to segment the teaching raw data at the task level or segment level to form data units to be evaluated. Each data unit contains the start time, end time, task label and time-synchronized multi-sensor data. The quality assessment module is configured to calculate multidimensional quality indicators for each data unit. These multidimensional quality indicators include at least a task completion score, a dynamic smoothness score, and an execution efficiency score. The dynamic smoothness score is calculated as follows: smoothing differentiation is performed on each joint angle trajectory to obtain velocity, acceleration, and jerk; the jerk is integrated over time to obtain a jerk integral term; the joint angle trajectory is input into the robot dynamics model to estimate the joint driving torque; the joint driving torque is compared with a preset safe torque threshold to calculate a torque utilization penalty term, where a penalty is applied when the joint driving torque exceeds the safe torque threshold, and no penalty is applied when it does not exceed it; the jerk integral term and the torque utilization penalty term are multiplied by weighting coefficients and summed, then substituted into an exponential decay function to normalize the result to the [0,1] interval to obtain the dynamic smoothness score, where the torque utilization penalty term quantifies the degree to which the joint driving torque exceeds the safe threshold; and the task completion score, dynamic smoothness score, and execution efficiency score are weighted and summed to obtain the total score of the data unit to be evaluated. The event marking module is configured to perform physical event marking on the data unit based on sensor hard thresholds, including identifying collision intervention events, abnormal stop events, overload events and follow failure events by monitoring motor current, joint torque, encoder speed and end force signals, and marking the corresponding time or time window with event marks; The sample filtering module is configured to generate a training sample filtering list, and to remove the data units whose total score is lower than a preset threshold. For data units whose total score reaches the preset threshold but contain the physical event marker, the corresponding sub-segments are truncated according to a preset physical window centered on the event occurrence time to obtain a clean training sample set. The training and feedback statistics module is configured to train the robot strategy model using the pure training sample set and to statistically analyze the physical boundary violation rate of the strategy output in the training round or the verification round. The physical boundary violation rate includes the joint torque violation rate, the joint velocity violation rate, the joint acceleration violation rate and / or the collision warning trigger rate. The closed-loop adjustment module is configured to tighten the data entry by increasing the sample quality admission threshold and / or expanding the truncation window for abnormal events when the physical boundary out-of-bounds rate exceeds a preset out-of-bounds threshold; and to relax the admission threshold or shorten the window when the physical boundary out-of-bounds rate is lower than the preset out-of-bounds threshold and the sample coverage is insufficient, thereby forming a closed-loop update mechanism.
Citation Information
Patent Citations
Robot model training method, robot control method and system
CN122253190A
Training data generation method and system based on multi-priority data source
CN122615429A
