A mechanical arm control method and device, computer equipment and storage medium
By performing multiple motion reasoning operations in the vision-language-action strategy model, low-confidence or motion jump actions of the robotic arm are identified and safety processing is performed. This solves the problem of insufficient risk action recognition in existing robotic arm control methods and improves the safety and stability of the robotic arm.
Patent Information
- Application Number
- CN202611331882.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing robotic arm control methods lack the ability to identify operational risks in model output actions, making it difficult to handle risky actions in a timely manner, thus affecting the safety and stability of the robotic arm.
While keeping the current multimodal observation data unchanged, multiple action inferences are performed using a vision-language-action policy model. By determining the discreteness of candidate actions and motion accelerometers, bad cases with low confidence or motion jumps are identified and safety measures are implemented.
This improves the safety and stability of the robotic arm's operation, reduces the execution of low-confidence or sudden motion actions, and ensures the reliability of the robotic arm.
Smart Images

Figure CN123169059A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of robot control technology, and more specifically, to a robotic arm control method, device, computer equipment, and storage medium. Background Technology
[0002] In recent years, with the development of artificial intelligence and robotics technologies, vision-language-motion models have been increasingly applied to robotic arm control. These models can generate robotic arm movements based on task instructions, environmental images, and the robotic arm's state, enabling the robotic arm to perform tasks such as object grasping, assembly, handling, and manipulation.
[0003] In practical applications, the operating environment of robotic arms is complex and variable. The actions generated by the model may be affected by environmental changes, incomplete observation information, or the model's own reasoning characteristics, resulting in inaccurate actions, abrupt changes in actions, or reasoning failures. If risky actions are sent directly to the robotic arm, it may cause the robotic arm to vibrate, collide, or experience operational interruptions. Existing robotic arm control methods still lack the ability to identify operational risks in model-output actions, making it difficult to handle risky actions in a timely manner, thus affecting the safety and stability of robotic arm operation. Summary of the Invention
[0004] This application provides at least one robotic arm control method, device, computer equipment, and storage medium.
[0005] In a first aspect, embodiments of this application provide a robotic arm control method, including:
[0006] The current inference action is generated by the vision-language-action policy model based on the current multimodal observation data of the robotic arm; While keeping the current multimodal observation data unchanged, the vision-language-action policy model is used to perform multiple action inferences to obtain multiple candidate actions, and the confidence of the current action inference is determined based on the dispersion of the multiple candidate actions. Based on the current reasoning action, the previous reasoning action, and the corresponding reasoning time interval, determine the motion acceleration corresponding to the current reasoning action; The current inference action is determined as a bad case based on the confidence level and the accelerometer, wherein the current inference action is determined to be a bad case when at least one of the conditions of the confidence level being lower than the confidence threshold and the accelerometer being higher than the accelerometer threshold is met. In response to determining that the current inference action is a bad case, the corresponding security processing is performed on the current inference action according to the conditions that are met.
[0007] In one optional implementation, the step of performing multiple action inferences using the vision-language-action policy model to obtain multiple candidate actions, and determining the confidence level of the current action inference based on the discreteness of the multiple candidate actions, includes: When the vision-language-action policy model is in inference mode, a random deactivation layer in the vision-language-action policy model is enabled; The vision-language-action policy model is used to perform N action inferences on the current multimodal observation data to obtain N candidate actions, where N is an integer greater than 1; Calculate the average action of the N candidate actions and the action variance of the N candidate actions in each action dimension; The action variance is normalized, and the confidence level is determined based on the normalized action variance. The confidence level decreases as the action variance increases.
[0008] In one optional implementation, the method further includes: Obtain the task verification set corresponding to the target task; The confidence level of each verification sample in the task verification set is determined using the vision-language-action strategy model, and the confidence distribution is obtained. The confidence threshold is determined based on the preset quantiles of the confidence distribution.
[0009] In one optional implementation, the current reasoning action and the previous reasoning action are joint-space actions or Cartesian-space actions; The step of determining the motion acceleration corresponding to the current reasoning action based on the current reasoning action, the previous reasoning action, and the corresponding reasoning time interval includes: Calculate the change in action between the current reasoning action and the previous reasoning action; The motion jerk is determined based on the ratio of the change in motion to the inference time interval; The step of performing corresponding security processing on the current reasoning action based on the established conditions includes: In response to the confidence level being lower than the confidence threshold, the current inference action is blocked; In response to the motion acceleration exceeding the acceleration threshold, the robotic arm is controlled to stop operating.
[0010] In one optional implementation, the method further includes: Call the action reasoning interface of the vision-language-action strategy model to capture runtime errors generated during action reasoning; In response to the capture of the runtime error, the current action reasoning is determined to be a bad case of reasoning decoding failure, and the security processing corresponding to the bad case of reasoning decoding failure is executed; The runtime error includes a tensor reshaping runtime error, and the safety handling includes at least one of stopping the issuance of motion commands, controlling the robotic arm to switch to a compliant operation mode, and controlling the robotic arm to stop running.
[0011] In one optional implementation, the method further includes: In response to determining that the current inference action is a bad case or determining that the current action inference is a bad case of inference decoding failure, the sliding data window is captured based on the corresponding action inference time to obtain bad case data; Add bad case type tags and case metadata to the bad case data, and store the bad case data after adding the bad case type tags and case metadata; The bad case data includes multimodal observation data, robotic arm status data, and motion inference results within the sliding data window. The bad case type label is used to characterize low-confidence bad cases, motion jump bad cases, or inference decoding failure bad cases. The case metadata includes at least one of timestamp, task number, and environmental parameters.
[0012] In one optional implementation, the method further includes: Identify faulty action segments from the bad case data; Obtain the corrected action segment obtained by locally correcting the faulty action segment; Align the faulty action segment and the corrective action segment according to the timestamp; Based on the multimodal observation data corresponding to the fault action segment, the fault action segment as a rejection action, and the corrected action segment as a preferred action, a preference training sample is generated.
[0013] In one optional implementation, the method further includes: Obtain a reference strategy model and a strategy model to be optimized with the same parameters, freeze the model parameters of the reference strategy model, and use the preference training samples to perform direct preference optimization on the strategy model to be optimized. A confidence prediction head is set at the output of the observation encoder of the policy model to be optimized. The confidence prediction head is trained using training samples with successful case labels or bad case labels. The confidence prediction head is used to determine the prediction confidence based on the observation features output by the observation encoder and does not participate in the generation of inference actions. The optimized strategy model and the trained confidence prediction head are deployed to the robotic arm.
[0014] Secondly, embodiments of this application also provide a robotic arm control device, comprising: The acquisition module is used to acquire the current inference action generated by the vision-language-action strategy model based on the current multimodal observation data of the robotic arm; The confidence determination module is used to perform multiple action inferences using the vision-language-action policy model while keeping the current multimodal observation data unchanged, to obtain multiple candidate actions, and to determine the confidence of the current action inference based on the dispersion of the multiple candidate actions. The accelerometer determination module is used to determine the motion accelerometer corresponding to the current inference action based on the current inference action, the previous inference action, and the corresponding inference time interval. The judgment module is used to determine whether the current inference action is a bad case based on the confidence level and the accelerometer, wherein the current inference action is determined to be a bad case when at least one of the conditions of the confidence level being lower than the confidence threshold and the accelerometer being higher than the accelerometer threshold is met; The processing module is configured to, in response to determining that the current inference action is a bad case, perform corresponding security processing on the current inference action based on the conditions that are met.
[0015] Thirdly, embodiments of this application also provide a computer device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, the steps of the first aspect above, or any possible implementation of the first aspect, are performed.
[0016] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps described in the first aspect or any possible implementation of the first aspect.
[0017] The robotic arm control method, device, computer equipment, and storage medium provided in this application, while keeping the current multimodal observation data unchanged, utilize a vision-language-action strategy model to perform multiple action inferences. The confidence level of the current action inference is determined based on the dispersion of the multiple candidate actions obtained. This allows for the quantification of the reliability of the current inferred action without the vision-language-action strategy model directly outputting a confidence level, enabling timely identification of low-confidence inference actions. Simultaneously, motion jerk is determined based on the current inference action, the previous inference action, and the corresponding inference time interval, enabling the identification of abnormal motion jumps between adjacent inference actions. Therefore, it is possible to determine whether the current inference action is a bad case from both the model inference reliability and the robotic arm motion variation perspectives, and to execute corresponding safety processing based on the relevant judgment conditions. This reduces the occurrence of low-confidence actions or actions with sudden motion changes being executed by the robotic arm, improving the safety and stability of robotic arm operation.
[0018] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this application and, together with the specification, serve to explain the technical solutions of this application. It should be understood that the following drawings only show some embodiments of this application and should not be considered as limiting the scope. For those skilled in the art, other related drawings can be obtained from these drawings without creative effort.
[0020] Figure 1 A flowchart of a robotic arm control method provided in an embodiment of this application is shown; Figure 2 A flowchart of another robotic arm control method provided in an embodiment of this application is shown; Figure 3 A schematic diagram of a robotic arm control device provided in an embodiment of this application is shown; Figure 4 A schematic diagram of a computer device provided in an embodiment of this application is shown. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0022] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0023] In this document, the term "and / or" merely describes a relationship, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0024] Research has revealed that the operating environment of robotic arms is complex and variable. Model-generated actions may be affected by environmental changes, incomplete observation information, or the model's own reasoning characteristics, leading to inaccurate actions, abrupt changes in action, or reasoning failures. Sending risky actions directly to the robotic arm could cause it to vibrate, collide, or experience operational interruptions. Current robotic arm control methods are insufficient in identifying operational risks in model-output actions, making it difficult to address risky actions in a timely manner, thus affecting the safety and stability of robotic arm operation.
[0025] Based on the above research, this application provides a robotic arm control method, device, computer equipment, and storage medium. While keeping the current multimodal observation data unchanged, it utilizes a vision-language-action strategy model to perform multiple action inferences. The confidence level of the current action inference is determined based on the dispersion of the obtained candidate actions. This allows for the quantification of the reliability of the current inferred action without the vision-language-action strategy model directly outputting the confidence level, enabling timely identification of low-confidence inference actions. Simultaneously, the motion jerk is determined based on the current inference action, the previous inference action, and the corresponding inference time interval, enabling the identification of abnormal motion jumps between adjacent inference actions. Therefore, it is possible to determine whether the current inference action is a bad case from both the model inference reliability and the robotic arm motion variation perspectives, and to execute corresponding safety measures based on the relevant judgment conditions. This reduces the occurrence of low-confidence actions or actions with sudden motion changes being executed by the robotic arm, improving the safety and stability of the robotic arm operation.
[0026] To facilitate understanding of this embodiment, a robotic arm control method disclosed in this application will first be described in detail. This application provides a robotic arm control method applicable to a robotic arm control system configured with a Vision-Language-Action (VLA) strategy model. The robotic arm control system may include a robotic arm, a control terminal, an image acquisition device, and a state acquisition device. The image acquisition device may include a wrist camera located at the end effector of the robotic arm and a side-view camera located outside the robotic arm, used to acquire images of the robotic arm's operating environment. The state acquisition device is used to acquire the joint states, end effector states, and gripper states of the robotic arm. The control terminal is used to run the VLA strategy model and generate inferred actions for controlling the robotic arm based on multimodal observation data such as task instructions, environmental images, and robotic arm states.
[0027] In some implementations, the VLA policy model can be a policy model built based on a diffusion model or a flow matching model. For example, the VLA policy model can adopt... The model can represent or generate robotic arm movements using a Fast-space Action Sequence Tokenization (FAST) architecture. The robotic arm can be an industrial robotic arm or a collaborative robotic arm, such as the UR7e collaborative robotic arm. The specific models and robotic arms described above are merely examples, and the embodiments in this application are not limited thereto.
[0028] The robotic arm control method provided in this application is generally executed by a computer device with certain computing capabilities, such as a robotic arm control system or a control terminal of a robotic arm control system. In some possible implementations, the robotic arm control method can be implemented by a processor calling computer-readable instructions stored in memory.
[0029] See Figure 1 The diagram shows a flowchart of a robotic arm control method provided in an embodiment of this application. The method includes steps S101 to S105, wherein: S101. Obtain the current inference action generated by the vision-language-action strategy model based on the current multimodal observation data of the robotic arm.
[0030] The current multimodal observation data refers to the observation data received by the VLA policy model at the current action inference moment, and may include at least one of the following: task instructions corresponding to the target task, environmental images of the robotic arm's working environment, robotic arm state data, and gripper state data. The task instructions may be text instructions or text obtained through speech recognition of voice instructions; the environmental images may include at least one of the following: wrist camera images, side-view camera images, depth images, and point cloud data; the robotic arm state data may include at least one of the following: joint position, joint velocity, joint acceleration, end-effector pose, and end-effector motion state; and the gripper state data may include at least one of the following: gripper opening / closing state, gripping force, and gripper position.
[0031] For example, when the objective task is "to put green tape into the yellow drawer", the current multimodal observation data can include the corresponding task instructions, an environmental image containing green tape and a yellow drawer, the current position and speed of each joint of the robotic arm, and the current opening and closing state of the gripper.
[0032] The control terminal inputs the current multimodal observation data into the VLA policy model, which then encodes and infers the action from the data to obtain the current inferred action. The current inferred action can be a joint space action or a Cartesian space action. Joint space actions can include the target joint position, joint position change, joint velocity, or joint acceleration corresponding to each robotic arm joint. Cartesian space actions can include the target pose, pose change, motion velocity, or motion acceleration of the robotic arm's end effector. The current inferred action can also include gripper control actions such as gripper opening, gripper closing, or maintaining the current gripper state.
[0033] The current inference action is the action to be executed generated by the VLA policy model based on the current multimodal observation data. Before bad case detection is completed for the current inference action, the current inference action can be temporarily withheld from the robotic arm to avoid undetected inference actions directly driving the robotic arm to run.
[0034] S102. While keeping the current multimodal observation data unchanged, perform multiple action inferences using the vision-language-action policy model to obtain multiple candidate actions, and determine the confidence level of the current action inference based on the discreteness of the multiple candidate actions.
[0035] Maintaining the current multimodal observation data unchanged means that the task instructions, environmental images, robotic arm state data, and gripper state data input into the VLA policy model remain the same throughout multiple action inference processes. Therefore, the differences between candidate actions obtained from multiple action inferences primarily reflect the inference uncertainty of the VLA policy model itself, rather than being caused by environmental changes or robotic arm state changes between different action inference moments.
[0036] In some implementations, a random dropout layer can be enabled within the VLA policy model when it is in inference mode, and the same current multimodal observation data can be repeatedly forwarded N times to obtain N candidate actions, where N is an integer greater than 1. During each forward propagation, the neurons randomly shut down in the random dropout layer may differ, causing the VLA policy model to obtain candidate actions with certain differences under the same input conditions.
[0037] Forward propagation refers to the process of inputting the current multimodal observation data into the VLA policy model, and then sequentially processing the current multimodal observation data through each network layer of the VLA policy model until the output candidate actions are calculated. N forward propagations are only used to obtain N candidate actions and do not mean that the robotic arm needs to perform N actions.
[0038] For example, N can be determined based on the single inference time of the VLA policy model, the computing power of the control terminal, and the control cycle of the robotic arm. For instance, N can be set to 3, 5, or other integers greater than 1. In one example, N equals 5. By balancing inference time and confidence estimation stability, multiple action inferences can meet the timing requirements of the robotic arm control process.
[0039] Let the candidate action obtained from the i-th action reasoning be denoted as . N candidate actions constitute the action candidate set. , We can first calculate the average action of the N candidate actions, and then calculate the action variance of the N candidate actions in each action dimension. For the j-th action dimension, we can calculate the deviation of the action value of the N candidate actions in this action dimension from the corresponding action value of the average action, and determine the action variance of this action dimension based on the sum of the squares of each deviation.
[0040] Action variance is used to characterize the degree of dispersion of multiple candidate actions in the corresponding action dimension. The smaller the action variance, the more consistent the candidate actions output by the VLA policy model under the same current multimodal observation data, and the lower the uncertainty of the current action inference; the larger the action variance, the greater the difference between multiple candidate actions, and the higher the uncertainty of the current action inference.
[0041] Since different motion dimensions may have different dimensions and value ranges, the motion variance for each motion dimension can be normalized separately. For example, the motion variance can be normalized to a value range of 0 to 1 based on the variance range of the corresponding motion dimension in the task validation set, or based on the rated motion range of the corresponding motion dimension of the robotic arm.
[0042] Furthermore, the uncertainty corresponding to the current action inference can be obtained by weighted summation of the normalized variances of multiple actions based on the importance of each action dimension; alternatively, the maximum value among the normalized action variances can be used as the uncertainty corresponding to the current action inference to highlight significant divergences in any action dimension. Subsequently, this uncertainty can be inversely mapped to obtain the confidence level of the current action inference. For example, the confidence level can be obtained by subtracting the normalized uncertainty from 1, resulting in a confidence level ranging from 0 to 1. Thus, the confidence level decreases as the dispersion of candidate actions increases.
[0043] In other implementations, deep ensemble or test-time augmentation can be used to perform multiple action inferences on the same current multimodal observation data, and the confidence level can be determined based on the candidate actions obtained from the multiple action inferences. Deep ensemble can use multiple VLA policy models with different model parameters to generate candidate actions respectively; test-time augmentation can perform different data augmentation processes on the current multimodal observation data without changing the semantics of the current scene, and generate candidate actions based on the results of the different augmentation processes.
[0044] In some implementations, a task validation set corresponding to the target task can be pre-obtained, and the confidence level of each validation sample in the task validation set can be determined using a VLA policy model to obtain a confidence level distribution. A confidence threshold is then determined based on preset quantiles of the confidence level distribution. These preset quantiles can be determined based on the allowable false positive or false negative ratio.
[0045] For example, a preset proportion of normal validation samples can be used to ensure that the confidence level is not lower than a confidence threshold. When this preset proportion is 95%, the confidence threshold can be determined based on the corresponding lower quantile in the confidence distribution. If action variance or uncertainty is used as the threshold calibration object, the uncertainty threshold can also be determined based on the 95th quantile of the uncertainty distribution, and then converted into the corresponding confidence threshold. In one example, the confidence threshold can be set to 0.4. The specific value of the confidence threshold can be dynamically calibrated based on the target task, VLA strategy model, and robotic arm operating environment.
[0046] S103. Determine the motion acceleration corresponding to the current reasoning action based on the current reasoning action, the previous reasoning action, and the corresponding reasoning time interval.
[0047] At the current action inference moment, the previous inference action generated at the previous action inference moment can be read from the cache, and the inference time interval between the current action inference moment and the previous action inference moment can be obtained. The amount of action change between the current inference action and the previous inference action can be calculated, and the motion jerk corresponding to the current inference action can be determined based on the ratio of the amount of action change to the inference time interval.
[0048] In this embodiment, motion jerk is used to characterize the degree of motion jump between adjacent reasoning actions. When the reasoning action is represented in the form of acceleration, the motion jerk can be obtained based on the difference between the acceleration corresponding to the current reasoning action and the acceleration corresponding to the previous reasoning action, as well as the reasoning time interval. When the reasoning action is represented in the form of joint position, joint velocity, end-effector pose, or end-effector velocity, the reasoning action can first be converted into an acceleration representation according to the kinematic relationship of the corresponding action space, and then the motion jerk can be determined based on the acceleration change at the time of reasoning of adjacent actions and the reasoning time interval.
[0049] For joint space actions, the joint jerk of each joint can be determined separately, and the maximum value or norm of each joint jerk can be used as the jerk of the current inference action. For Cartesian space actions, the jerk of the end effector in the translation and rotation dimensions can be determined separately, and the jerk of the current inference action can be determined based on the jerk of each dimension.
[0050] The aforementioned jerk threshold can be determined based on the robotic arm's rated motion parameters and a preset safety factor. Rated motion parameters may include at least one of maximum joint velocity, maximum joint acceleration, maximum end effector velocity, and maximum end effector acceleration. A corresponding jerk reference value can be calculated based on the rated motion parameters and the robotic arm's control cycle, and then the jerk threshold can be determined based on the preset safety factor. In one example, the preset safety factor can be set to 80%. Separate jerk thresholds can be set for joint space movements and Cartesian space movements.
[0051] In other implementations, the presence of motion risk in the current reasoning action can be determined by combining joint torque, end effector force, or collision detection signals. For example, when the motion acceleration exceeds an acceleration threshold, or the joint torque exceeds a torque threshold, it can be determined that the current reasoning action has a motion jump risk.
[0052] S104. Determine whether the current inference action is a bad case based on the confidence level and the accelerometer, wherein the current inference action is determined to be a bad case when at least one of the conditions of the confidence level being lower than the confidence threshold and the accelerometer being higher than the accelerometer threshold is met.
[0053] The confidence level of the current action inference is compared with a confidence threshold, and the motion accelerometer corresponding to the current inferred action is compared with an accelerometer threshold. The current inferred action is determined to be a bad case if at least one of the following conditions is met: the confidence level is below the confidence threshold, or the motion accelerometer is above the accelerometer threshold.
[0054] When the confidence level is below the confidence threshold, it indicates that the multiple candidate actions generated by the VLA policy model for the same current multimodal observation data have a high degree of dispersion, and the reliability of the current inference action is low. This current inference action can be identified as a low-confidence bad case. Low-confidence bad cases may be caused by factors such as differences between the current scene and the training data distribution, occlusion of the target object, changes in ambient lighting, or ambiguity in the current task. Therefore, low-confidence bad cases can be used to characterize suspected out-of-distribution (OOD) scenes, but a low confidence level does not necessarily mean that the current scene is an out-of-distribution scene.
[0055] When the motion jerk exceeds the jerk threshold, it indicates a significant motion jump between the current inference action and the previous inference action, and the current inference action can be identified as a motion jump bad case. When the confidence level is below the confidence threshold and the motion jerk exceeds the jerk threshold, both a low-confidence bad case flag and a motion jump bad case flag can be added to the current inference action simultaneously. Alternatively, the primary bad case type corresponding to the current inference action can be determined according to a preset bad case priority.
[0056] When the confidence level is not lower than the confidence threshold and the motion jerk is not higher than the jerk threshold, it can be determined that the current inference action passes the bad case detection, and the current inference action is sent to the robotic arm to control the robotic arm to perform the corresponding action.
[0057] S105. In response to determining that the current inference action is a bad case, perform corresponding security processing on the current inference action according to the condition that is met.
[0058] When the confidence level is below the confidence threshold, the current inference action can be intercepted, i.e., the current inference action can be stopped or discarded, to prevent the robotic arm from executing actions with low reliability. Alternatively, the robotic arm can be controlled to maintain its current pose, waiting for the re-acquisition of multimodal observation data and for the action inference to be performed again.
[0059] When the jerk exceeds the jerk threshold, the current inference action can be stopped, and the robotic arm can be controlled to decelerate and stop or trigger an emergency stop to avoid jitter, joint overload, or collision due to sudden changes in movement. When both bad case criteria corresponding to the confidence level and jerk are met, the robotic arm can be controlled according to the higher safety level.
[0060] In some implementations, a pre-established correspondence between different bad case types and different safety handling methods can be established. Safety handling methods may include at least one of the following: stopping the issuance of action commands, discarding the current inference action, maintaining the current pose of the robotic arm, controlling the robotic arm to switch to a compliant operation mode, controlling the robotic arm to decelerate and stop, and controlling the robotic arm to lock its axis for an emergency stop. The control terminal can determine the corresponding safety handling method from the above safety handling methods based on the bad case type, the bad case risk level, and the current operating state of the robotic arm.
[0061] Furthermore, anomaly monitoring can be performed on the action inference process of the VLA policy model. Specifically, the action inference interface of the VLA policy model can be invoked to capture runtime errors generated during action inference. In a VLA policy model using the FAST architecture, runtime errors can include tensor reshaping runtime errors. For example, when the size of the input image, point cloud, or other multimodal data does not match the model's preset input size, the number of elements in the tensor within the model may not match the shape of the target tensor, thus generating a tensor reshaping runtime error.
[0062] In response to a captured runtime error, the current motion inference can be identified as a bad case of inference decoding failure. Since a valid current inferred motion may not be generated when inference decoding fails, the issuance of motion commands can be stopped, and the robotic arm can be controlled to maintain its current pose, switch to compliant operation mode, or stop operation according to the corresponding risk level. In one example, a graded safety strategy can be adopted in sequence according to the risk level: discarding the current faulty motion, switching to zero-force compliant mode, and locking axis emergency stop.
[0063] In some implementations, in response to identifying low-confidence bad cases, motion jump bad cases, or inference decoding failure bad cases, a sliding data window can be captured based on the corresponding action inference time to obtain bad case data. The sliding data window can cover multiple data frames before and after the bad case occurs. For example, 10 frames of data before the bad case occurs and 30 frames of data after the bad case occurs can be captured.
[0064] Bad case data can include wrist camera images, side-view camera images, depth images, point cloud data, robotic arm joint states, end effector states, gripper states, and motion inference results within a sliding data window. For low-confidence bad cases and motion jump bad cases, the motion inference results can include the original inferred action output by the VLA policy model and multiple candidate actions; for inference decoding failure bad cases, the motion inference results can include the corresponding runtime error information.
[0065] Bad case data can be tagged with bad case type labels and case metadata. Bad case type labels can include low confidence labels, motion jump labels, and inference / decoding failure labels. Case metadata can include at least one of the following: timestamp, task number, task stage, environmental parameters, robot arm identifier, and VLA policy model version. Environmental parameters can include at least one of the following: illumination intensity, target object position, target object pose, and operating device status. Bad case data with added labels and metadata can be stored in a local structured database or in the LeRobot data format or other robot learning data formats.
[0066] In some implementations, bad case data can be periodically exported from a structured database and visualized. Target bad case data, including faulty action segments, is identified from the bad case data, and corrected action segments obtained by partially correcting these faulty action segments are acquired. Partial correction refers to correcting only the action range that caused task failure or posed a safety risk; non-faulty action segments in the target bad case data can be retained without re-collecting the complete task trajectory.
[0067] Corrected motion segments can be obtained through manual drag-and-drop teaching, teleoperation, trajectory planning, or other robotic arm teaching methods. For example, the UR7e robotic arm can be controlled to enter free drag mode, allowing the operator to drag the end effector of the robotic arm to complete the correct movement, and the joint trajectory or end effector trajectory of the robotic arm during the dragging process can be recorded to obtain the corrected motion segment.
[0068] Align faulty action segments and corrected action segments based on timestamps, ensuring they correspond to identical or matching multimodal observation data. Treat faulty action segments as rejection actions. The corrected action segment is selected as the preferred action. and with the corresponding multimodal observation data Combine them to obtain the preferred training samples ( , , When there is a significant abrupt change in motion between the corrected motion segment and the preceding and following non-faulty motion segments, time alignment, interpolation, or smoothing can be performed on the segment connection points to ensure that the corrected motion trajectory remains continuous.
[0069] Furthermore, a reference policy model and a policy model to be optimized with identical parameters can be obtained. These two models can be replicated from the currently deployed VLA policy model. During training, the model parameters of the reference policy model are frozen, and the policy model to be optimized is directly optimized (DPO) using the preferred training samples.
[0070] Direct preference optimization is used to increase the relative probability of generating preferred actions and decrease the relative probability of generating rejection actions in the corresponding multimodal observation data. During training, the direct preference optimization loss can be determined based on the probabilities of generating preferred and rejection actions by the policy model to be optimized and the probabilities of generating preferred and rejection actions by the reference policy model, and the model parameters of the policy model to be optimized can be updated based on this loss, without the need to train a separate reward model.
[0071] In some implementations, the direct preference optimization loss can be expressed as:
[0072] in, This represents multimodal observation data. Indicates the preferred action. Indicates a refusal action. This represents the strategy model to be optimized. Represents the reference strategy model. This indicates the preference for optimizing the intensity parameter. This represents the Sigmoid function. This indicates that the dataset was trained from the preferences. Training samples consisting of multimodal observation data, preferred actions, and rejected actions are extracted from the dataset. The expected value of the expression within the parentheses is calculated over all training samples, and then negative. The symbol ' " indicates that the loss function used to transform "maximizing the model's preference for the preferred action" into a loss function that can be minimized during training is used.
[0073] In one example, the AdamW optimizer can be used to train the model of the policy to be optimized, and the learning rate can be set to... The batch size can be set to 32. Training termination conditions can include reaching 1000 cumulative gradient update steps, or the direct preference optimization loss on the validation set not decreasing for 50 consecutive steps. When either training termination condition is met, training stops and the optimized model parameters are saved.
[0074] In some implementations, a confidence prediction head can be set at the output of the observation encoder of the policy model to be optimized. The confidence prediction head may include two layers of multi-layer perceptron (MLP), whose input can be the 768-dimensional observation features output by the observation encoder, and whose output can be the predicted confidence level with a value ranging from 0 to 1. The confidence prediction head does not participate in the generation of inference actions, but is only used to predict the confidence level of the current action inference based on the observation features.
[0075] The confidence prediction head can be trained using training samples with either successful or bad case labels for binary classification, and the binary cross-entropy (BCE) loss can be used as the training loss for the confidence prediction head. Successful case labels indicate that the corresponding action reasoning is reliable, while bad case labels indicate that the corresponding action reasoning has low confidence, motion jumps, or reasoning decoding failures.
[0076] After training, the optimized policy model and the trained confidence prediction head can be deployed to the control terminal of the robotic arm. During subsequent operation, the robotic arm can simultaneously obtain the statistical confidence score determined based on multiple action inference results and the predicted confidence score output by the confidence prediction head, and jointly control the inference actions based on both. The statistical confidence score reflects the model's immediate uncertainty based on the current multiple action inference results, while the predicted confidence score learns observational features prone to failure based on historical successful and bad cases.
[0077] The optimized strategy model and the trained confidence prediction head can be distributed to the robotic arm control terminal via a local area network or other communication methods, replacing the original model or switching the model version when the robotic arm stops performing its task. After deployment, steps S101 to S105 are executed, thus forming a cyclical optimization process of bad case detection, bad case collection, local correction, model training, and model redeployment.
[0078] In some implementations, model training can be triggered based on the number of bad cases or the robotic arm's runtime. For example, model training and updates can be triggered when 50 bad cases are accumulated or the robotic arm has run for a cumulative 24 hours. The number of bad cases and runtime mentioned above are merely examples and can be adjusted according to the robotic arm's application scenario, the frequency of bad cases, and available computing resources.
[0079] For example, the above method will be explained below using the UR7e robotic arm to perform the task of "opening the yellow drawer and putting green tape into the yellow drawer".
[0080] Before the mission begins, The model is deployed on the local control terminal of the UR7e robotic arm and connected to a wrist camera, a side-view camera, and robotic arm joint sensors. The number of motion inferences, N, is set to 5. The confidence threshold is determined to be 0.4 based on the task validation set, and the jerk threshold is determined based on the rated motion parameters of the UR7e robotic arm and a preset safety factor.
[0081] The robotic arm grasps green tape according to task instructions and moves to the yellow drawer. When the transparent adhesive residue on the drawer handle reflects light, the VLA policy model may disagree on the grasping position. Five action inferences are performed while keeping the current multimodal observation data constant. Some candidate actions point above the handle, while others point to the side, and the candidate actions exhibit significant dispersion. The confidence score determined based on the multiple candidate actions is 0.18, which is below the confidence threshold of 0.4. Therefore, the current inference action is identified as a low-confidence bad case and the current inference action is blocked.
[0082] At another action inference moment, if the VLA policy model is disturbed by background objects and outputs a large lateral movement, the motion jerk can be determined based on the current inference action, the previous inference action, and the inference time interval. When the motion jerk exceeds the jerk threshold, the current inference action is identified as a motion jump bad case, and the robotic arm is controlled to stop running.
[0083] If a runtime error occurs during motion inference due to missing input point cloud or mismatched multimodal input size, the runtime error is captured, the current motion inference is identified as a bad case of inference decoding failure, and the robotic arm is controlled to switch to compliant operation mode or stop operation.
[0084] For the aforementioned bad cases, camera images, robotic arm joint states, gripper states, and motion inference results before and after the bad case occurred can be extracted and labeled with corresponding bad case type tags. Operators can replay low-confidence bad cases, only locally correcting the faulty motion segment of the robotic arm gripping the drawer handle. The corrected motion segment is used as the preferred action, and the original faulty motion segment is used as the rejected action, generating preference training samples. Multiple preference training samples are used to directly optimize the policy model, and the confidence prediction head is trained using both successful and bad cases. After redeploying the trained policy model and confidence prediction head to the robotic arm, the updated model can be used to continue performing the robotic arm control task.
[0085] In other implementations, model optimization may employ rejection sampling fine-tuning or other optimization methods based on behavioral preferences. Regardless of the optimization method used, the training signal can be constructed using the faulty actions and corresponding corrective actions from bad cases, thereby reducing the likelihood of the optimized VLA policy model generating similar faulty actions again.
[0086] The robotic arm control method provided in this application, while keeping the current multimodal observation data unchanged, utilizes a vision-language-action policy model to perform multiple action inferences. It determines the confidence level of the current action inference based on the dispersion of the obtained candidate actions, thereby quantifying the reliability of the current inference action without the vision-language-action policy model directly outputting the confidence level, and promptly identifying low-confidence inference actions. Simultaneously, it determines the motion jerk based on the current inference action, the previous inference action, and the corresponding inference time interval, enabling the identification of abnormal motion jumps between adjacent inference actions. Therefore, it can determine whether the current inference action is a bad case from both the model inference reliability and the robotic arm motion change perspectives, and execute corresponding safety processing based on the relevant judgment conditions, reducing the occurrence of low-confidence actions or actions with sudden motion changes by the robotic arm, and improving the safety and stability of the robotic arm operation.
[0087] See Figure 2 The diagram shown is a flowchart of another robotic arm control method provided in an embodiment of this application. The method may include the following steps: S201. Deploy a vision-language-motion strategy model on the robotic arm control terminal.
[0088] Specifically, a pre-trained vision-language-action policy model is deployed to a robotic arm control terminal, and multimodal observation data such as task instructions, environmental images, and robotic arm status data are acquired through the robotic arm control terminal, so that the vision-language-action policy model can generate inference actions for controlling the robotic arm based on the multimodal observation data.
[0089] S202. Perform action reasoning and identify bad cases. During the execution of the target task by the robotic arm, the current reasoning action generated by the vision-language-action strategy model is obtained.
[0090] While keeping the current multimodal observation data unchanged, multiple action inferences are performed using the vision-language-action strategy model. The confidence level of the current action inference is determined based on the dispersion of the multiple candidate actions obtained. Simultaneously, the motion jerk is determined based on the current inferred action, the previous inferred action, and the corresponding inference time interval. When the confidence level is lower than the confidence threshold or the motion jerk is higher than the jerk threshold, the current inferred action is identified as a bad case, and safety measures such as intercepting the current inferred action, stopping the issuance of action commands, or controlling the robotic arm to stop operation are performed according to the corresponding bad case type. During the action inference process, runtime errors can also be captured through the action inference interface, and action inferences that produce runtime errors are identified as bad cases of inference decoding failure. In response to the identification of bad cases, a sliding data window is captured based on the corresponding action inference time to obtain bad case data including multimodal observation data, robotic arm state data, and action inference results.
[0091] S203. Generate preference training samples based on the bad case data.
[0092] Specifically, faulty action segments that cause low confidence, motion jumps, or inference decoding failures are identified from the bad case data. Corrected action segments are obtained by locally modifying these faulty action segments, and the faulty action segments and the corrected action segments are aligned based on timestamps. Multimodal observation data corresponding to the faulty action segments are used as sample observation data, the corrected action segments are selected as preferred actions, and the faulty action segments are selected as rejected actions, thereby generating preference training samples that include the sample observation data, preferred actions, and rejected actions.
[0093] S204. Optimize the visual-language-action policy model and train a confidence prediction head. Specifically, based on the visual-language-action policy model to be optimized, establish a reference policy model and the policy model to be optimized with the same parameters. Freeze the model parameters of the reference policy model, and use the preference training samples to directly optimize the policy model to be optimized, so that the policy model to be optimized tends to output preferred actions more often than it tends to output rejected actions. Simultaneously, a confidence prediction head can be set at the output of the observation encoder of the policy model to be optimized, and the confidence prediction head is trained using training samples with success case labels or bad case labels. The confidence prediction head determines the predicted confidence based on the observation features output by the observation encoder, but does not participate in the generation of inference actions, and therefore does not change the original action generation path of the policy model to be optimized.
[0094] S205. Deploy the optimization results to the robotic arm control terminal.
[0095] Specifically, the optimized strategy model to be optimized and the trained confidence prediction head are deployed to the robotic arm control terminal to update the currently used vision-language-action strategy model. After deployment, step S202 is repeated to perform action inference and bad case detection using the updated vision-language-action strategy model. Preference training samples are then generated based on newly generated bad case data, and the vision-language-action strategy model is further optimized, thus forming a cyclical process of action inference, bad case identification, sample generation, model optimization, and redeployment.
[0096] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0097] Based on the same inventive concept, this application also provides a robotic arm control device corresponding to the robotic arm control method. Since the principle of the device in this application is similar to that of the robotic arm control method described above, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0098] Reference Figure 3 The diagram shown is a schematic of a robotic arm control device provided in an embodiment of this application. The device includes: The acquisition module 310 is used to acquire the current inference action generated by the vision-language-action strategy model based on the current multimodal observation data of the robotic arm; The confidence determination module 320 is used to perform multiple action inferences using the vision-language-action strategy model while keeping the current multimodal observation data unchanged, to obtain multiple candidate actions, and to determine the confidence of the current action inference based on the dispersion of the multiple candidate actions. The accelerometer determination module 330 is used to determine the motion accelerometer corresponding to the current inference action based on the current inference action, the previous inference action, and the corresponding inference time interval. The judgment module 340 is used to determine whether the current inference action is a bad case based on the confidence level and the motion acceleration, wherein the current inference action is determined to be a bad case when at least one of the conditions of the confidence level being lower than the confidence threshold and the motion acceleration being higher than the acceleration threshold is met; The processing module 350 is configured to, in response to determining that the current inference action is a bad case, perform corresponding security processing on the current inference action according to the conditions that are met.
[0099] In one optional implementation, the confidence determination module 320 is used to: When the vision-language-action policy model is in inference mode, a random deactivation layer in the vision-language-action policy model is enabled; The vision-language-action policy model is used to perform N action inferences on the current multimodal observation data to obtain N candidate actions, where N is an integer greater than 1; Calculate the average action of the N candidate actions and the action variance of the N candidate actions in each action dimension; The action variance is normalized, and the confidence level is determined based on the normalized action variance. The confidence level decreases as the action variance increases.
[0100] In an optional implementation, the apparatus further includes a confidence threshold determination module, configured to: Obtain the task verification set corresponding to the target task; The confidence level of each verification sample in the task verification set is determined using the vision-language-action strategy model, and the confidence distribution is obtained. The confidence threshold is determined based on the preset quantiles of the confidence distribution.
[0101] In one optional implementation, the current reasoning action and the previous reasoning action are joint-space actions or Cartesian-space actions; The jerk determination module 330 is used for: Calculate the change in action between the current reasoning action and the previous reasoning action; The motion jerk is determined based on the ratio of the change in motion to the inference time interval; Processing module 350 is used for: In response to the confidence level being lower than the confidence threshold, the current inference action is blocked; In response to the motion acceleration exceeding the acceleration threshold, the robotic arm is controlled to stop operating.
[0102] In one optional implementation, the apparatus further includes an error handling module for: Call the action reasoning interface of the vision-language-action strategy model to capture runtime errors generated during action reasoning; In response to the capture of the runtime error, the current action reasoning is determined to be a bad case of reasoning decoding failure, and the security processing corresponding to the bad case of reasoning decoding failure is executed; The runtime error includes a tensor reshaping runtime error, and the safety handling includes at least one of stopping the issuance of motion commands, controlling the robotic arm to switch to a compliant operation mode, and controlling the robotic arm to stop running.
[0103] In one optional implementation, the apparatus further includes a data construction module for: In response to determining that the current inference action is a bad case or determining that the current action inference is a bad case of inference decoding failure, the sliding data window is captured based on the corresponding action inference time to obtain bad case data; Add bad case type tags and case metadata to the bad case data, and store the bad case data after adding the bad case type tags and case metadata; The bad case data includes multimodal observation data, robotic arm status data, and motion inference results within the sliding data window. The bad case type label is used to characterize low-confidence bad cases, motion jump bad cases, or inference decoding failure bad cases. The case metadata includes at least one of timestamp, task number, and environmental parameters.
[0104] In one optional implementation, the apparatus further includes a sample generation module, used for: Identify faulty action segments from the bad case data; Obtain the corrected action segment obtained by locally correcting the faulty action segment; Align the faulty action segment and the corrective action segment according to the timestamp; Based on the multimodal observation data corresponding to the fault action segment, the fault action segment as a rejection action, and the corrected action segment as a preferred action, a preference training sample is generated.
[0105] In one optional implementation, the apparatus further includes a training module for: Obtain a reference strategy model and a strategy model to be optimized with the same parameters, freeze the model parameters of the reference strategy model, and use the preference training samples to perform direct preference optimization on the strategy model to be optimized. A confidence prediction head is set at the output of the observation encoder of the policy model to be optimized. The confidence prediction head is trained using training samples with successful case labels or bad case labels. The confidence prediction head is used to determine the prediction confidence based on the observation features output by the observation encoder and does not participate in the generation of inference actions. The optimized strategy model and the trained confidence prediction head are deployed to the robotic arm.
[0106] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.
[0107] Corresponding to Figure 1 In addition to the robotic arm control method described in this application, this embodiment also provides a computer device 400, such as... Figure 4 The diagram shown is a structural schematic of a computer device 400 provided in an embodiment of this application, including: The computer device 400 comprises a processor 41, a memory 42, and a bus 43. The memory 42 stores execution instructions and includes main memory 421 and external memory 422. The main memory 421, also called internal memory, temporarily stores the processing data in the processor 41, as well as data exchanged with external memory such as a hard disk. The processor 41 exchanges data with the external memory 422 through the main memory 421. When the computer device 400 is running, the processor 41 communicates with the memory 42 through the bus 43, causing the processor 41 to execute the following instructions: The current inference action is generated by the vision-language-action policy model based on the current multimodal observation data of the robotic arm; While keeping the current multimodal observation data unchanged, the vision-language-action policy model is used to perform multiple action inferences to obtain multiple candidate actions, and the confidence of the current action inference is determined based on the dispersion of the multiple candidate actions. Based on the current reasoning action, the previous reasoning action, and the corresponding reasoning time interval, determine the motion acceleration corresponding to the current reasoning action; The current inference action is determined as a bad case based on the confidence level and the accelerometer, wherein the current inference action is determined to be a bad case when at least one of the conditions of the confidence level being lower than the confidence threshold and the accelerometer being higher than the accelerometer threshold is met. In response to determining that the current inference action is a bad case, the corresponding security processing is performed on the current inference action according to the conditions that are met.
[0108] In one optional implementation, the step of performing multiple action inferences using the vision-language-action policy model to obtain multiple candidate actions, and determining the confidence level of the current action inference based on the discreteness of the multiple candidate actions, includes: When the vision-language-action policy model is in inference mode, a random deactivation layer in the vision-language-action policy model is enabled; The vision-language-action policy model is used to perform N action inferences on the current multimodal observation data to obtain N candidate actions, where N is an integer greater than 1; Calculate the average action of the N candidate actions and the action variance of the N candidate actions in each action dimension; The action variance is normalized, and the confidence level is determined based on the normalized action variance. The confidence level decreases as the action variance increases.
[0109] In an alternative implementation, processor 41 further performs: Obtain the task verification set corresponding to the target task; The confidence level of each verification sample in the task verification set is determined using the vision-language-action strategy model, and the confidence distribution is obtained. The confidence threshold is determined based on the preset quantiles of the confidence distribution.
[0110] In one optional implementation, the current reasoning action and the previous reasoning action are joint-space actions or Cartesian-space actions; The step of determining the motion acceleration corresponding to the current reasoning action based on the current reasoning action, the previous reasoning action, and the corresponding reasoning time interval includes: Calculate the change in action between the current reasoning action and the previous reasoning action; The motion jerk is determined based on the ratio of the change in motion to the inference time interval; The step of performing corresponding security processing on the current reasoning action based on the established conditions includes: In response to the confidence level being lower than the confidence threshold, the current inference action is blocked; In response to the motion acceleration exceeding the acceleration threshold, the robotic arm is controlled to stop operating.
[0111] In an alternative implementation, processor 41 further performs: Call the action reasoning interface of the vision-language-action strategy model to capture runtime errors generated during action reasoning; In response to the capture of the runtime error, the current action reasoning is determined to be a bad case of reasoning decoding failure, and the security processing corresponding to the bad case of reasoning decoding failure is executed; The runtime error includes a tensor reshaping runtime error, and the safety handling includes at least one of stopping the issuance of motion commands, controlling the robotic arm to switch to a compliant operation mode, and controlling the robotic arm to stop running.
[0112] In an alternative implementation, processor 41 further performs: In response to determining that the current inference action is a bad case or determining that the current action inference is a bad case of inference decoding failure, the sliding data window is captured based on the corresponding action inference time to obtain bad case data; Add bad case type tags and case metadata to the bad case data, and store the bad case data after adding the bad case type tags and case metadata; The bad case data includes multimodal observation data, robotic arm status data, and motion inference results within the sliding data window. The bad case type label is used to characterize low-confidence bad cases, motion jump bad cases, or inference decoding failure bad cases. The case metadata includes at least one of timestamp, task number, and environmental parameters.
[0113] In an alternative implementation, processor 41 further performs: Identify faulty action segments from the bad case data; Obtain the corrected action segment obtained by locally correcting the faulty action segment; Align the faulty action segment and the corrective action segment according to the timestamp; Based on the multimodal observation data corresponding to the fault action segment, the fault action segment as a rejection action, and the corrected action segment as a preferred action, a preference training sample is generated.
[0114] In an alternative implementation, processor 41 further performs: Obtain a reference strategy model and a strategy model to be optimized with the same parameters, freeze the model parameters of the reference strategy model, and use the preference training samples to perform direct preference optimization on the strategy model to be optimized. A confidence prediction head is set at the output of the observation encoder of the policy model to be optimized. The confidence prediction head is trained using training samples with successful case labels or bad case labels. The confidence prediction head is used to determine the prediction confidence based on the observation features output by the observation encoder and does not participate in the generation of inference actions. The optimized strategy model and the trained confidence prediction head are deployed to the robotic arm.
[0115] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the robotic arm control method described in the above-described method embodiments. The storage medium can be either volatile or non-volatile.
[0116] This application also provides a computer program product carrying program code. The program code includes instructions that can be used to execute the steps of the robotic arm control method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.
[0117] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0118] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division; in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0119] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0120] In addition, the functional units in the various embodiments of this application 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.
[0121] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion 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, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0122] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The scope of protection of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.
Claims
1. A robotic arm control method, characterized in that, include: The current inference action is generated by the vision-language-action policy model based on the current multimodal observation data of the robotic arm; While keeping the current multimodal observation data unchanged, the vision-language-action policy model is used to perform multiple action inferences to obtain multiple candidate actions, and the confidence of the current action inference is determined based on the dispersion of the multiple candidate actions. Based on the current reasoning action, the previous reasoning action, and the corresponding reasoning time interval, determine the motion acceleration corresponding to the current reasoning action; The current inference action is determined as a bad case based on the confidence level and the accelerometer, wherein the current inference action is determined to be a bad case when at least one of the conditions of the confidence level being lower than the confidence threshold and the accelerometer being higher than the accelerometer threshold is met. In response to determining that the current inference action is a bad case, the corresponding security processing is performed on the current inference action according to the conditions that are met.
2. The method according to claim 1, characterized in that, The process of performing multiple action inferences using the vision-language-action policy model to obtain multiple candidate actions, and determining the confidence level of the current action inference based on the discreteness of the multiple candidate actions, includes: When the vision-language-action policy model is in inference mode, a random deactivation layer in the vision-language-action policy model is enabled; The vision-language-action policy model is used to perform N action inferences on the current multimodal observation data to obtain N candidate actions, where N is an integer greater than 1; Calculate the average action of the N candidate actions and the action variance of the N candidate actions in each action dimension; The action variance is normalized, and the confidence level is determined based on the normalized action variance. The confidence level decreases as the action variance increases.
3. The method according to claim 2, characterized in that, The method further includes: Obtain the task verification set corresponding to the target task; The confidence level of each verification sample in the task verification set is determined using the vision-language-action strategy model, and the confidence distribution is obtained. The confidence threshold is determined based on the preset quantiles of the confidence distribution.
4. The method according to claim 1, characterized in that, The current reasoning action and the previous reasoning action are joint space actions or Cartesian space actions; The step of determining the motion acceleration corresponding to the current reasoning action based on the current reasoning action, the previous reasoning action, and the corresponding reasoning time interval includes: Calculate the change in action between the current reasoning action and the previous reasoning action; The motion jerk is determined based on the ratio of the change in motion to the inference time interval; The step of performing corresponding security processing on the current reasoning action based on the established conditions includes: In response to the confidence level being lower than the confidence threshold, the current inference action is blocked; In response to the motion acceleration exceeding the acceleration threshold, the robotic arm is controlled to stop operating.
5. The method according to claim 1, characterized in that, The method further includes: Call the action reasoning interface of the vision-language-action strategy model to capture runtime errors generated during action reasoning; In response to the capture of the runtime error, the current action reasoning is determined to be a bad case of reasoning decoding failure, and the security processing corresponding to the bad case of reasoning decoding failure is executed; The runtime error includes a tensor reshaping runtime error, and the safety handling includes at least one of stopping the issuance of motion commands, controlling the robotic arm to switch to a compliant operation mode, and controlling the robotic arm to stop running.
6. The method according to claim 5, characterized in that, The method further includes: In response to determining that the current inference action is a bad case or determining that the current action inference is a bad case of inference decoding failure, the sliding data window is captured based on the corresponding action inference time to obtain bad case data; Add bad case type tags and case metadata to the bad case data, and store the bad case data after adding the bad case type tags and case metadata; The bad case data includes multimodal observation data, robotic arm status data, and motion inference results within the sliding data window. The bad case type label is used to characterize low-confidence bad cases, motion jump bad cases, or inference decoding failure bad cases. The case metadata includes at least one of timestamp, task number, and environmental parameters.
7. The method according to claim 6, characterized in that, The method further includes: Identify faulty action segments from the bad case data; Obtain the corrected action segment obtained by locally correcting the faulty action segment; Align the faulty action segment and the corrective action segment according to the timestamp; Based on the multimodal observation data corresponding to the fault action segment, the fault action segment as a rejection action, and the corrected action segment as a preferred action, a preference training sample is generated.
8. The method according to claim 7, characterized in that, The method further includes: Obtain a reference strategy model and a strategy model to be optimized with the same parameters, freeze the model parameters of the reference strategy model, and use the preference training samples to perform direct preference optimization on the strategy model to be optimized. A confidence prediction head is set at the output of the observation encoder of the policy model to be optimized. The confidence prediction head is trained using training samples with successful case labels or bad case labels. The confidence prediction head is used to determine the prediction confidence based on the observation features output by the observation encoder and does not participate in the generation of inference actions. The optimized strategy model and the trained confidence prediction head are deployed to the robotic arm.
9. A robotic arm control device, characterized in that, include: The acquisition module is used to acquire the current inference action generated by the vision-language-action strategy model based on the current multimodal observation data of the robotic arm; The confidence determination module is used to perform multiple action inferences using the vision-language-action policy model while keeping the current multimodal observation data unchanged, to obtain multiple candidate actions, and to determine the confidence of the current action inference based on the dispersion of the multiple candidate actions. The accelerometer determination module is used to determine the motion accelerometer corresponding to the current inference action based on the current inference action, the previous inference action, and the corresponding inference time interval. The judgment module is used to determine whether the current inference action is a bad case based on the confidence level and the accelerometer, wherein the current inference action is determined to be a bad case when at least one of the conditions of the confidence level being lower than the confidence threshold and the accelerometer being higher than the accelerometer threshold is met; The processing module is configured to, in response to determining that the current inference action is a bad case, perform corresponding security processing on the current inference action based on the conditions that are met.
10. A computer device, characterized in that, include: The system includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, they perform the steps of the robotic arm control method as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the robotic arm control method as described in any one of claims 1 to 8.
