A real-time verification method and system for orthopedic surgery robot instruction data

By partitioning and risk assessment of the command data of orthopedic surgical robots, and combining the geometric information of neurovascular bundles and safety boundaries, a partitioned experience cache and a probabilistic safety hyperellipsoid are constructed. This solves the problem of insufficient assessment of the temporal correlation and motion trend of command sequences in existing technologies, and realizes the prediction of potential risks and safety verification.

CN123182909APending Publication Date: 2026-11-27THE SECOND HOSPITAL AFFILIATED TO WENZHOU MEDICAL COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611396107.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing orthopedic surgical robots lack consideration for the temporal correlation of command sequences and motion trends, making it difficult to predict potential risks. Furthermore, existing safety verification methods fail to effectively represent the inherent risks of different surgical areas, resulting in limited safety verification capabilities.

Method used

The historical surgical instruction dataset is partitioned using the fuzzy C-means clustering algorithm. A partitioned experience cache is constructed with the combination of surgical subtask type and anatomical landmark as the index. Real-time verification is performed by combining risk-weighted geodesic distance and probabilistic safety hyperellipsoid. Risk assessment is performed using the geometric information of neurovascular bundles and safety boundaries. Trajectory prediction is performed through a two-level verification mechanism.

Benefits of technology

It enables rapid and reliable evaluation of orthopedic surgical robot commands, enhances the protection of high-risk areas, ensures the safety and smoothness of surgery, and can predict potential abnormal command sequences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182909A_ABST
    Figure CN123182909A_ABST
Patent Text Reader

Abstract

The application provides a kind of orthopedic surgery robot instruction data real-time verification method and system, including through historical data partition modeling and real-time trajectory prediction, realize the layered safety verification of orthopedic surgery robot instruction;First, use historical surgery instruction data set, do fuzzy C means clustering according to subtask and landmark combination, construct partition experience cache;Calculate risk weighted geodesic distance, select K nearest neighbor instruction, construct probability safety hyperellipsoid by pose statistical distribution;Real-time instruction pose falls in hyperellipsoid and is judged as safe;Otherwise, start secondary verification, input instruction sequence into pre-training gated recurrent unit model to predict future trajectory, calculate the minimum euclidean distance from safety boundary, less than threshold value is judged unsafe and triggers intervention, simultaneously, according to the difference between distance and threshold value, adjust the boundary parameter of next period hyperellipsoid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of real-time verification, and in particular relates to a real-time verification method and system for orthopedic surgical robot command data. Background Technology

[0002] Safety mechanisms for orthopedic surgical robots, based on pre-operatively planned safety boundaries, typically only assess the position of individual command points instantaneously, lacking consideration for the temporal correlation and movement trends of command sequences. This makes it difficult to predict whether a seemingly safe command might lead to a dangerous trajectory in the next moment. Safety verification methods based on historical data or empirical models attempt to learn safe operation patterns from past successful surgical data and use this as a basis to judge the rationality of new commands. However, these methods treat the entire surgical process's historical data as a whole, ignoring the differences in safety constraints and movement patterns between different surgical subtasks and operations near different anatomical landmarks. When measuring the similarity between real-time commands and historical data points, standard Euclidean distance is used, failing to represent and weight the inherent risks at different locations within the surgical area. It focuses primarily on assessing the current state, with limited predictive ability for potential risks, making it difficult to adjust verification strategies while ensuring safety. Current technologies lack a progressive, multi-level verification method that moves from immediate verification to short-term trajectory prediction. Summary of the Invention

[0003] To address the aforementioned problems, in the first aspect, this invention proposes a real-time verification method for orthopedic surgical robot command data, comprising: A historical surgical instruction dataset is obtained, which includes the pose and velocity of the robot end effector and the corresponding surgical sub-task types and anatomical landmarks. The historical surgical instruction dataset is divided using a fuzzy C-means clustering algorithm, and a partitioned experience cache is constructed with the combination of surgical sub-task types and anatomical landmarks as the index. Receive real-time instruction data to be verified, including pose, corresponding surgical sub-task type, and anatomical landmarks; calculate the risk-weighted geodesic distance between the real-time instruction data and the data points in the cache based on the geometric information of the neurovascular bundle and safety boundary extracted from the preoperative planning image; Based on the risk-weighted geodesic distance, a preset number of K nearest-neighbor historical instructions are selected from the partitioned experience cache, and based on the pose parameter statistical distribution of the K nearest-neighbor historical instructions, a probabilistically safe hyperellipsoid for the current verification period is constructed. Determine whether the pose of the real-time command data is located inside the probabilistically safe hyperellipsoid. If so, it is considered safe; otherwise, initiate a secondary verification. After completing the secondary verification, adjust the boundary parameters of the probabilistically safe hyperellipsoid used to construct the next verification cycle.

[0004] In a second aspect, the present invention proposes a real-time verification system for orthopedic surgical robot command data, comprising the following modules: The first construction module is used to obtain a historical surgical instruction dataset, which includes the pose and velocity of the robot end effector and the corresponding surgical sub-task type and anatomical landmark. The historical surgical instruction dataset is divided using a fuzzy C-means clustering algorithm, and a partitioned experience cache is constructed with the combination of surgical sub-task type and anatomical landmark as the index. The calculation module is used to receive real-time instruction data to be verified, which includes pose, corresponding surgical sub-task type and anatomical landmarks; and calculate the risk-weighted geodesic distance between the real-time instruction data and the data points in the cache based on the geometric information of the neurovascular bundle and safety boundary extracted from the preoperative planning image. The second construction module is used to filter out a preset number K of the nearest historical instructions from the partition experience cache based on the risk-weighted geodesic distance, and to construct the probabilistically safe hyperellipsoid for the current verification period based on the pose parameter statistical distribution of the K nearest historical instructions. The adjustment module is used to determine whether the pose of the real-time command data is located inside the probabilistically safe hyperellipsoid. If so, it is determined to be safe; if not, a secondary verification is initiated. After the secondary verification is completed, the boundary parameters of the probabilistically safe hyperellipsoid used to construct the next verification cycle are adjusted.

[0005] This invention constructs an experience cache associated with specific operational contexts by partitioning historical data according to surgical subtask types and anatomical landmarks. Utilizing risk-weighted geodesic distances incorporating neurovascular bundle anatomical information, it can represent the inherent risk of different surgical areas, enhancing protection for high-risk regions. Furthermore, a dual verification mechanism combining probabilistic hyperellipsoidal primary verification and temporal trajectory prediction secondary verification enables rapid and reliable evaluation of current instructions and trajectory prediction of potentially abnormal instruction sequences, anticipating future risks and ensuring smooth surgical procedures while maintaining high safety. Attached Figure Description

[0006] Figure 1 A flowchart of the first embodiment; Figure 2 A schematic diagram for calculating risk-weighted geodesic distance; Figure 3 A schematic diagram of the time-series prediction trajectory for secondary verification; Figure 4 This is a schematic diagram of the adjustment of the hyperellipsoid boundary. Detailed Implementation

[0007] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0008] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0009] In the first embodiment, the present invention proposes a real-time verification method for orthopedic surgical robot command data, such as... Figure 1 ,include: S1. Obtain the historical surgical instruction dataset, which includes the pose and velocity of the robot end effector and the corresponding surgical sub-task type and anatomical landmark. Use the fuzzy C-means clustering algorithm to divide the historical surgical instruction dataset and construct a partitioned experience cache indexed by the combination of surgical sub-task type and anatomical landmark. Data was collected and recorded from multiple successful surgical cases performed by experienced surgeons using a robot control system, forming a raw dataset. The robot's end effector pose is a six-dimensional vector containing three-dimensional spatial coordinates (x, y, z) and rotational attitude angles (roll, pitch, yaw) around the three axes; velocity is the linear and angular velocity of the end effector; surgical sub-task types are predefined discrete labels, such as acetabular reaming, femoral stem implantation, and pedicle screw drilling; anatomical landmarks are also predefined discrete labels, such as the acetabular rim, greater trochanter of the femur, and pedicle cortical bone entry point. Based on the dual labels of surgical sub-task type and anatomical landmarks, historical data were rigidly segmented. For example, all data points labeled "acetabular reaming" and adjacent to the acetabular rim were grouped into one category, and all data points labeled "pedicle screw drilling" and adjacent to the pedicle cortical bone entry point were grouped into another category. Within each segmented data subset, subtle operational patterns can be identified using fuzzy C-means clustering. However, the core partitioned experience cache is built based on the aforementioned dual-label combination. Each combination, such as acetabular grinding combined with acetabular edge, corresponds to an experience cache database.

[0010] In an optional embodiment, the step of partitioning the historical surgical instruction dataset using the fuzzy C-means clustering algorithm includes: The robot end effector pose and velocity parameters of each instruction in the historical surgical instruction dataset are combined into a feature vector; the feature vector is then normalized, with the position and velocity parameters being normalized using min-max normalization and the pose parameters being normalized using standardization. Set the preset number of cluster centers and fuzziness index; The membership matrix and cluster centers are iteratively optimized until the objective function converges to less than a preset threshold, thus completing the partitioning of the dataset.

[0011] Assume that each instruction in the dataset contains the robot's end effector's three-dimensional position, quaternion pose, and linear and angular velocities; these parameters collectively form a 13-dimensional feature vector. For example, an instruction can be represented as a vector. The 13-dimensional feature vector is then normalized: position parameters ( ) and speed parameters ( The quaternion attitude parameters are mapped to the [0,1] interval using min-max normalization. The dataset is then standardized and normalized to a distribution with a mean of 0 and a variance of 1. The entire historical dataset then forms a feature matrix consisting of tens of thousands of such vectors.

[0012] The preset number of cluster centers C can be set to 5, representing five different surgical operation intentions, such as approach, cutting, suturing, traction, and withdrawal. The fuzziness index m is set to 2. The algorithm minimizes the objective function. The membership matrix U and cluster centers C are iteratively optimized. The iteration process continues until the change in the objective function value is less than a preset convergence threshold, such as 0.0001. At this point, clustering is considered complete, and each historical instruction is assigned a membership degree to each cluster center, thus achieving the partitioning of the dataset.

[0013] S2, receive real-time instruction data to be verified, including pose, corresponding surgical sub-task type and anatomical landmarks; calculate the risk-weighted geodesic distance between the real-time instruction data and the data points in the cache based on the geometric information of the neurovascular bundle and safety boundary extracted from the preoperative planning image; During surgical execution, the robot controller generates a real-time command containing the target pose at fixed intervals, such as every 10ms. This command also includes the type of the currently executing surgical subtask and a label of the nearest anatomical landmark. Upon receiving the command, a rapid search is performed in multiple partitioned experience caches based on these two labels to locate the uniquely corresponding cache database, such as a cache for acetabular reaming combined with an acetabular edge cache. A neurovascular bundle and a pre-defined safety boundary model, segmented and 3D reconstructed from preoperative CT or MRI images, are loaded. For each real-time command pose point and each historical data point in the cache, a risk function is defined, the value of which is inversely proportional to the Euclidean distance from that point to the nearest neurovascular bundle or safety boundary. The risk-weighted geodesic distance is calculated by multiplying the Euclidean distance between the real-time command pose point and the cached data point by the risk function value at the midpoint of the line connecting the two points, thus obtaining a metric that correlates spatial distance with clinical risk. The distance between points near the danger zone is amplified.

[0014] In an optional embodiment, the geometric information of the neurovascular bundle and safety boundary extracted from the preoperative planning image includes: A semantic segmentation network was used to segment the preoperative 3D images, identify and extract the neurovascular bundles and surgical safety boundaries, and the segmentation results were represented in the form of point clouds.

[0015] Specifically, the semantic segmentation network is, for example, a 3D U-Net network, which is an encoder-decoder structure based on a fully convolutional network. The encoder path consists of multiple stacked downsampling modules, each typically containing two consecutive 3D convolutional layers followed by a modified linear unit activation function and a 3D max-pooling layer, used to progressively extract image features and reduce the spatial dimension of the feature map. The decoder path consists of multiple upsampling modules, each upsampling through 3D transposed convolution to restore spatial resolution, and concatenating with the feature map of the corresponding layer in the encoder path through skip connections. This connection method helps to fuse deep semantic information and shallow detail information, thereby achieving localization. The network training set consists of preoperative 3D medical images and corresponding expert-annotated segmentation gold standards, such as voxel-level masks containing thousands of CT scans and corresponding neurovascular bundles and safety boundaries. During training, a combination of cross-entropy loss functions is used as the objective function, and the network weights are updated through backpropagation of the optimizer until the model's segmentation accuracy on the validation set no longer improves. The input is a 3D tensor representing a patient's complete CT or MRI scan data. The network output is a probability graph or label graph of the exact same size as the input, where the value of each voxel represents the probability of belonging to a specific category, such as a neurovascular bundle, or a classification label, such as label 1 representing a neurovascular bundle and label 2 representing the surgical safety boundary.

[0016] After obtaining the segmentation mask, the coordinates of voxels with specific labels are extracted to generate point cloud data. For each voxel labeled as a neurovascular bundle or a safety boundary, the center coordinates of that voxel in the 3D image coordinate system are recorded. For example, if voxels with voxel indices 120, 155, and 88 are identified as a neurovascular bundle, their corresponding 3D spatial coordinates x, y, and z are extracted. After traversing all relevant voxels, two point cloud sets are formed: one representing the spatial distribution of the neurovascular bundle, and the other representing the safe area of ​​the surgical operation. The point clouds of the neurovascular bundle and the safety boundary in the medical image coordinate system are transformed to the robot base coordinate system using an iterative nearest-point registration algorithm based on anatomical landmarks, ensuring that the coordinate systems of the pose data and the point cloud data are consistent and meeting the prerequisite for distance calculation.

[0017] In an optional embodiment, the risk-weighted geodesic distance between the real-time instruction data and the data points in the cache is calculated using the following formula: in, Risk-weighted geodesic distance, The risk weight factor W is calculated as follows: (The formula is missing from the provided text.) in, The minimum distance from the real-time instruction data pose point or cached data point to the neurovascular bundle and the safety boundary point cloud. and This is a preset positive real number parameter.

[0018] Specifically, calculate the distance of the standard geodesic line. Since the robot's pose space is an SE manifold, rather than a simple Euclidean space, the standard geodesic distance, which simultaneously considers the differences in position and orientation, is the shortest path length on the manifold. For example, given a real-time command pose and a historical pose in the cache, the distance between them can be calculated using the Lie group logarithmic mapping method. The value is assumed to be 3.5 units.

[0019] In this embodiment, the logarithmic mapping method of Lie groups is used to calculate the geodesic distance. Specifically, first, the real-time command pose is... With historical poses in the cache Let these be the homogeneous transformation matrices of the SE(3) Lie group, in matrix form as follows: ,in It is a 3×3 rotation matrix. Given a 3×1 translation vector; then calculate the relative transformation matrix between the two poses. ; then on Perform a logarithmic mapping of the Lie group to obtain the corresponding SE(3) Lie algebra vector. This vector contains 3D rotation increments and 3D translation increments; finally, the Lie algebra vector is calculated. The weighted L2 norm is used as the geodesic distance. ,in For rotational increment, For translation increment, , A weight matrix set according to surgical safety requirements.

[0020] Calculate the minimum Euclidean distance from the current real-time command pose point or data point in the cache to the previously extracted neurovascular bundle and safety boundary point cloud. Assuming the calculation yields... It is 2.0mm. Set the preset parameters. It is 10. The value is 0.5. According to the formula, W is approximately 4.68. The weighting factor increases exponentially as the robot approaches the danger zone. Multiplying the two yields the risk-weighted geodesic distance. This weighted distance is much larger than the geometric distance, indicating the potential risk of this pose, such as... Figure 2 .

[0021] S3, based on the risk-weighted geodesic distance, select a preset number K of the nearest historical instructions from the partitioned experience cache, and construct the probabilistically safe hyperellipsoid for the current verification period based on the pose parameter statistical distribution of the K nearest historical instructions.

[0022] The risk-weighted geodesic distance is calculated for each pose point of the real-time command to be verified and the poses of all historical data points in the selected partition's experience cache. All calculated distance values ​​are sorted in ascending order, and the K nearest neighbor data points with the smallest distances are selected as the nearest neighbor set. The value of K can be set empirically, for example, K=50. For the six-dimensional pose parameters of the K nearest neighbor points, the mean vector and a 6×6 covariance matrix are calculated. Before calculating the mean vector and covariance matrix, the position parameters of the K nearest neighbor pose vectors are min-max normalized, and the pose parameters are standardized and normalized. The mean vector represents the safe operating pose in this surgical scenario, while the covariance matrix represents the dispersion and correlation of the safe operating pose distribution in each dimension. Based on this mean vector and covariance matrix, a six-dimensional hyperellipsoid is defined using Mahalanobis distance. The boundary is determined by a threshold selected based on a chi-square distribution, which corresponds to a confidence probability, such as 99%, thereby constructing a safe region that can encompass all safe historical operating points with a high probability.

[0023] In an optional embodiment, constructing the probabilistically safe hyperellipsoid for the current verification period based on the statistical distribution of pose parameters of the K nearest neighbor historical instructions includes: The position parameters of the pose vector are normalized using the min-max method, and the attitude parameters are normalized using standardization. The mean vector of the K nearest neighbor historical command pose vectors is calculated. Covariance Matrix ; The boundary of the probabilistically safe hyperellipsoid is defined by the inequality Define , where x is the pose vector to be verified, and p is the dimension of the pose vector. Let be the critical value of the chi-square distribution with p degrees of freedom and C confidence level.

[0024] After determining the K nearest neighbor historical security instructions, for example, K=100, the pose parameters of the instructions are transformed into p-dimensional vectors. Assuming the pose is represented by three-dimensional position and three-dimensional Euler angles, then p=6. These 100 6-dimensional vectors constitute a dataset. The mean vector of the dataset is calculated. , is a 6-dimensional vector representing the central trend of this group of safety operations. Simultaneously, the 6×6 covariance matrix is ​​calculated. It represents the correlation between various pose parameters.

[0025] The boundary of the hyperellipsoid is determined based on a set confidence level C. For example, a confidence level C of 95% (0.95) is set. Since the pose vector dimension p=6, the critical value of the chi-square distribution with 6 degrees of freedom and a confidence level of 0.95 needs to be found. The value is approximately 12.592. The boundary of the probabilistically safe hyperellipsoid is determined by the inequality... Confirmed. For a new instruction pose x to be verified, calculate the value on the left side of the inequality. If the value is less than or equal to 12.592, the instruction is considered to be within the safe area, and the verification passes.

[0026] S4. Determine whether the pose of the real-time command data is located inside the probabilistically safe hyperellipsoid. If yes, it is determined to be safe; otherwise, start the secondary verification. After completing the secondary verification, adjust the boundary parameters of the probabilistically safe hyperellipsoid used to construct the next verification cycle.

[0027] The six-dimensional pose vector of the real-time command to be verified is substituted into the probabilistically safe hyperellipsoid equation constructed in the previous step for calculation. If the calculated Mahalanobis distance is less than or equal to the preset chi-square distribution threshold, the command is located inside the hyperellipsoid, is deemed safe, and the verification passes. If the Mahalanobis distance is greater than the threshold, a second-level verification is initiated.

[0028] In some embodiments, the secondary verification specifically involves: inputting a sequence of instructions of a preset length, including the real-time instruction data, into a pre-trained gated recurrent unit time-series trajectory prediction model, and outputting the predicted trajectory within a future time window; calculating the minimum Euclidean distance between the predicted trajectory and the safety boundary; if the distance is greater than a preset safety threshold, it is determined to be safe; otherwise, it is determined to be unsafe and intervention is triggered.

[0029] The command pose sequence of the past 10 consecutive cycles, including the current abnormal command, is extracted and fed as an input sequence into a gated recurrent unit neural network model pre-trained using a large number of successful surgical trajectory sequences. This model outputs a predicted pose sequence for the next 5 time cycles, forming a predicted trajectory, such as... Figure 3The shortest Euclidean distance between each point on the predicted trajectory and the surface of the 3D model of the pre-planned neurovascular bundle safety boundary is calculated, and the minimum value is taken. If this minimum value is greater than a preset absolute safety threshold, such as 2 mm, it indicates that although the current command deviates from the empirical norm, the subsequent trend will not touch the dangerous boundary in the short term, so it is still considered safe. If it is less than or equal to 2 mm, it is considered unsafe, and the robot is immediately stopped or force feedback damping enhancement intervention measures are triggered. After the secondary verification is completed, the boundary threshold of the hyperellipsoid is adjusted according to the difference between the minimum distance and the safety threshold through an update formula. For example, if the secondary verification passes with a large margin, the threshold is appropriately increased to relax the subsequent primary verification; if it passes with a small margin, the threshold is slightly decreased to tighten the primary verification, realizing online adjustment of verification sensitivity.

[0030] In an optional embodiment, inputting a sequence of instructions of a preset length, including the real-time instruction data, into a pre-trained gated recurrent unit time-series trajectory prediction model includes: An input sequence of a preset length, consisting of current real-time command data and some previous command data, is input into a gated loop unit model with a preset network structure to predict the robot end effector pose sequence within a preset time window.

[0031] The gated recurrent unit (GRU) time-series trajectory prediction model is a recurrent neural network. The core structure consists of several stacked GRU layers, each GRU unit containing an update gate and a reset gate. The update gate determines how much state information from the previous time step is incorporated into the current state, while the reset gate controls the degree to which previous state information is ignored. This gating mechanism enables the model to detect long-term dependencies in sequence data, while requiring fewer parameters and offering faster training speeds compared to Long Short-Term Memory (LSTM) networks. The network's training set is derived from large-scale historical surgical robot operation data records, containing tens of thousands of safe robot end effector trajectory sequences generated by expert surgeons. The training data is constructed in the form of input-output pairs, for example, using the pose sequence of the past 20 time steps as input and the pose sequence of the next 10 time steps as labels. The training process iteratively optimizes the model using the Adam optimizer by minimizing the mean squared error loss function between the predicted and true trajectories until the model's prediction error converges on the validation set. The model's input is a three-dimensional tensor, with dimensions representing the batch size, input sequence length, and pose feature dimension. The model output is another three-dimensional tensor, representing the batch size, predicted sequence length, and pose feature dimension.

[0032] A gated recurrent unit (GRU) network model is employed. This model typically consists of an input layer, several GRU layers, and a fully connected output layer. For example, the model can be programmed to receive a sequence of 20 time steps as input, where each element is a 6-dimensional pose vector of a robot's end effector. The input sequence passes through two stacked GRU layers, each containing 128 neurons, used to detect dependencies in the temporal data. The output of the GRU layers is fed into a fully connected layer, mapping the high-dimensional features to a predefined output sequence length, such as predicting the pose for the next 10 time steps, resulting in an output dimension of 10×6.

[0033] During real-time verification, a queue containing the latest instructions is maintained. Assuming a preset input length of 20, at the current time t, the pose data of 20 instructions from time t-19 to time t are packaged into a 20×6 tensor. This normalized tensor is then fed as input to a GRU model pre-trained on large-scale surgical data. After forward propagation, the model outputs a 10×6 tensor representing the predicted pose sequence of the robot's end effector from time t+1 to t+10.

[0034] In an optional embodiment, calculating the minimum Euclidean distance between the predicted trajectory and the safety boundary includes: A fast nearest neighbor search algorithm is used to find the minimum distance between the pose point set representing the predicted trajectory and the point cloud representing the safety boundary, and the minimum distance is compared with a preset safety threshold.

[0035] Specifically, two sets of data are obtained: one set is the future trajectory point set predicted by the GRU model, such as 10 three-dimensional spatial coordinate points; the other set is a point cloud representing the surgical safety boundary, which may contain tens of thousands of three-dimensional spatial coordinate points. Calculating the distance between each pair of points is inefficient. Therefore, an optimized nearest neighbor search algorithm, such as a K-dimensional tree (kd-tree), is used.

[0036] A kd-tree data structure is pre-constructed for the safety boundary point cloud. For each point in the predicted trajectory, such as the first predicted point, the nearest safety boundary point is quickly queried in the kd-tree, and the Euclidean distance between them is calculated. This process is repeated for all 10 predicted trajectory points to obtain 10 minimum distance values. The smallest of these 10 distance values ​​is selected as the minimum distance between the entire predicted trajectory and the safety boundary. For example, if the calculated minimum distance is 2.8 mm, it is compared with a preset safety threshold, such as 2.0 mm. Since 2.8 is greater than 2.0, it indicates that the predicted trajectory is within the safety range.

[0037] In an optional embodiment, adjusting the boundary parameters used to construct the probabilistically safe hyperellipsoid for the next verification cycle includes: The confidence level C used to define the boundary of the hyperellipsoid is updated after each secondary verification period t; If the minimum Euclidean distance is calculated in the current period t Greater than the safety threshold Then the confidence level for the next period ,in To preset the learning rate, ensure Dimensionless This represents the upper limit of confidence. like Then the confidence level for the next period ,in To preset the penalty coefficient, This represents the lower confidence level.

[0038] This adjustment mechanism is activated at the end of each secondary verification cycle. Assume the initial parameters are set as follows: current confidence level. Safety threshold mm, learning rate Penalty coefficient , upper limit of confidence Confidence lower limit In the current period t, calculate the minimum distance between the predicted trajectory and the safety boundary. It is 4.0mm.

[0039] because This indicates that the current safety strategy is relatively conservative, and the robot has a large safety margin. The confidence level will be increased in the next cycle to relax the constraints, and the calculation result is... Conversely, if in another cycle, the calculated... It is 2.0mm, that is This indicates a potential risk, necessitating a tightening of security measures. In this case, the confidence level will decrease in the next cycle. The size of the probabilistic safety hyperellipsoid can be adjusted according to predicted risks, achieving a balance between safety and operational efficiency, such as... Figure 4 .

[0040] In a second embodiment, the present invention also proposes a real-time verification system for orthopedic surgical robot command data, comprising the following modules: The first construction module is used to obtain a historical surgical instruction dataset, which includes the pose and velocity of the robot end effector and the corresponding surgical sub-task type and anatomical landmark. The historical surgical instruction dataset is divided using a fuzzy C-means clustering algorithm, and a partitioned experience cache is constructed with the combination of surgical sub-task type and anatomical landmark as the index. The calculation module is used to receive real-time instruction data to be verified, which includes the pose, corresponding surgical sub-task type, and anatomical landmarks. Based on the geometric information of the neurovascular bundle and safety boundary extracted from the preoperative planning image, the risk-weighted geodesic distance between the real-time instruction data and the data points in the cache is calculated. The second construction module is used to filter out a preset number K of the nearest historical instructions from the partition experience cache based on the risk-weighted geodesic distance, and to construct the probabilistically safe hyperellipsoid for the current verification period based on the pose parameter statistical distribution of the K nearest historical instructions. The adjustment module is used to determine whether the pose of the real-time command data is located inside the probabilistically safe hyperellipsoid. If so, it is determined to be safe; if not, a secondary verification is initiated. After the secondary verification is completed, the boundary parameters of the probabilistically safe hyperellipsoid used to construct the next verification cycle are adjusted.

[0041] In an optional embodiment, the secondary verification includes: A sequence of instructions of a preset length, including the real-time instruction data, is input into a pre-trained gated recurrent unit time-series trajectory prediction model, which outputs the predicted trajectory within a future time window. The minimum Euclidean distance between the predicted trajectory and the safety boundary is calculated. If the distance is greater than a preset safety threshold, the trajectory is deemed safe; otherwise, it is deemed unsafe and intervention is triggered.

[0042] In an optional embodiment, the geometric information of the neurovascular bundle and safety boundary extracted from the preoperative planning image includes: A semantic segmentation network was used to segment the preoperative 3D images, identify and extract the neurovascular bundles and surgical safety boundaries, and the segmentation results were represented in the form of point clouds.

[0043] In an optional embodiment, the risk-weighted geodesic distance between the real-time instruction data and the data points in the cache is calculated using the following formula: in, Risk-weighted geodesic distance, The risk weight factor W is calculated as follows: (The formula is missing from the provided text.) in, The minimum distance from the real-time instruction data pose point or cached data point to the neurovascular bundle and the safety boundary point cloud. and This is a preset positive real number parameter.

[0044] In an optional embodiment, constructing the probabilistically safe hyperellipsoid for the current verification period based on the statistical distribution of pose parameters of the K nearest neighbor historical instructions includes: The position parameters of the pose vector are normalized using the min-max method, and the attitude parameters are normalized using standardization. The mean vector of the K nearest neighbor historical command pose vectors is calculated. Covariance Matrix ; The boundary of the probabilistically safe hyperellipsoid is defined by the inequality Define , where x is the pose vector to be verified, and p is the dimension of the pose vector. Let be the critical value of the chi-square distribution with p degrees of freedom and C confidence level.

[0045] In an optional embodiment, inputting a sequence of instructions of a preset length, including the real-time instruction data, into a pre-trained gated recurrent unit time-series trajectory prediction model includes: An input sequence of a preset length, consisting of current real-time command data and some previous command data, is input into a gated loop unit model with a preset network structure to predict the robot end effector pose sequence within a preset time window.

[0046] In an optional embodiment, calculating the minimum Euclidean distance between the predicted trajectory and the safety boundary includes: A fast nearest neighbor search algorithm is used to find the minimum distance between the pose point set representing the predicted trajectory and the point cloud representing the safety boundary, and the minimum distance is compared with a preset safety threshold.

[0047] In an optional embodiment, adjusting the boundary parameters used to construct the probabilistically safe hyperellipsoid for the next verification cycle includes: The confidence level C used to define the boundary of the hyperellipsoid is updated after each secondary verification period t; If the minimum Euclidean distance is calculated in the current period t Greater than the safety threshold Then the confidence level for the next period ,in To preset the learning rate, ensure Dimensionless This represents the upper limit of confidence. like Then the confidence level for the next period ,in To preset the penalty coefficient, This represents the lower confidence level.

[0048] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0049] The functional modules shown in the above-described block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0050] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0051] The aspects of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0052] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A method for real-time verification of command data for orthopedic surgical robots, characterized in that, Includes the following steps: A historical surgical instruction dataset is obtained, which includes the pose and velocity of the robot end effector and the corresponding surgical sub-task types and anatomical landmarks. The historical surgical instruction dataset is divided using a fuzzy C-means clustering algorithm, and a partitioned experience cache is constructed with the combination of surgical sub-task types and anatomical landmarks as the index. Receive real-time instruction data to be verified, including pose, corresponding surgical subtask type, and anatomical landmarks; Based on the geometric information of the neurovascular bundle and safety boundary extracted from the preoperative planning image, the risk-weighted geodesic distance between the real-time instruction data and the data points in the cache is calculated. Based on the risk-weighted geodesic distance, a preset number of K nearest-neighbor historical instructions are selected from the partitioned experience cache, and based on the pose parameter statistical distribution of the K nearest-neighbor historical instructions, a probabilistically safe hyperellipsoid for the current verification period is constructed. Determine whether the pose of the real-time command data is located inside the probabilistically safe hyperellipsoid. If so, it is considered safe; otherwise, initiate a secondary verification. After completing the secondary verification, adjust the boundary parameters of the probabilistically safe hyperellipsoid used to construct the next verification cycle.

2. The real-time verification method according to claim 1, characterized in that, The secondary verification includes: A sequence of instructions of a preset length, including the real-time instruction data, is input into a pre-trained gated recurrent unit time-series trajectory prediction model, which outputs the predicted trajectory within a future time window. The minimum Euclidean distance between the predicted trajectory and the safety boundary is calculated. If the distance is greater than a preset safety threshold, the trajectory is deemed safe; otherwise, it is deemed unsafe and intervention is triggered.

3. The real-time verification method according to claim 1 or 2, characterized in that, The geometric information of the neurovascular bundle and safety boundary extracted from the preoperative planning image includes: A semantic segmentation network was used to segment the preoperative 3D images, identify and extract the neurovascular bundles and surgical safety boundaries, and the segmentation results were represented in the form of point clouds.

4. The real-time verification method according to claim 1 or 2, characterized in that, The risk-weighted geodesic distance between the real-time instruction data and the data points in the cache is calculated using the following formula: in, Risk-weighted geodesic distance, The risk weight factor W is calculated as follows: (The formula is missing from the provided text.) in, The minimum distance from the real-time instruction data pose point or the data point in the cache to the neurovascular bundle and the safety boundary point cloud. and The preset positive real number parameter ensures that W is dimensionless.

5. The real-time verification method according to claim 1 or 2, characterized in that, The construction of the probabilistically safe hyperellipsoid for the current verification period based on the statistical distribution of pose parameters from the K nearest neighbor historical instructions includes: The position parameters of the pose vector are normalized using the min-max method, and the attitude parameters are normalized using standardization. The mean vector of the K nearest neighbor historical command pose vectors is calculated. Covariance Matrix ; The boundary of the probabilistically safe hyperellipsoid is defined by the inequality Define , where x is the pose vector to be verified, and p is the dimension of the pose vector. Let be the critical value of the chi-square distribution with p degrees of freedom and C confidence level.

6. The real-time verification method according to claim 2, characterized in that, The step of inputting a sequence of instructions of a preset length, including the real-time instruction data, into a pre-trained gated recurrent unit time-series trajectory prediction model includes: The input sequence, consisting of current real-time command data and some previous command data, with a preset length, is normalized and then input into a gated recurrent unit model with a preset network structure to predict the robot end effector pose sequence within a preset time window.

7. The real-time verification method according to claim 2, characterized in that, The calculation of the minimum Euclidean distance between the predicted trajectory and the safety boundary includes: A fast nearest neighbor search algorithm is used to find the minimum distance between the pose point set representing the predicted trajectory and the point cloud representing the safety boundary, and the minimum distance is compared with a preset safety threshold.

8. The real-time verification method according to claim 1, characterized in that, The adjustment of the boundary parameters used to construct the probabilistically safe hyperellipsoid for the next verification cycle includes: The confidence level C used to define the boundary of the hyperellipsoid is updated after each secondary verification period t; If the minimum Euclidean distance is calculated in the current period t Greater than the safety threshold Then the confidence level for the next period ,in To preset the learning rate, This represents the upper limit of confidence. like Then the confidence level for the next period ,in To preset the penalty coefficient, This represents the lower confidence level.

9. A real-time verification system for orthopedic surgical robot command data, characterized in that, Includes the following modules: The first construction module is used to obtain a historical surgical instruction dataset, which includes the pose and velocity of the robot end effector and the corresponding surgical sub-task type and anatomical landmark. The historical surgical instruction dataset is divided using a fuzzy C-means clustering algorithm, and a partitioned experience cache is constructed with the combination of surgical sub-task type and anatomical landmark as the index. The calculation module is used to receive real-time instruction data to be verified, which includes the pose, corresponding surgical sub-task type, and anatomical landmarks. Based on the geometric information of the neurovascular bundle and safety boundary extracted from the preoperative planning image, the risk-weighted geodesic distance between the real-time instruction data and the data points in the cache is calculated. The second construction module is used to filter out a preset number K of the nearest historical instructions from the partition experience cache based on the risk-weighted geodesic distance, and to construct the probabilistically safe hyperellipsoid for the current verification period based on the pose parameter statistical distribution of the K nearest historical instructions. The adjustment module is used to determine whether the pose of the real-time command data is located inside the probabilistically safe hyperellipsoid. If so, it is considered safe; otherwise, a secondary verification is initiated. A command sequence of a preset length, including the real-time command data, is input into a pre-trained gated recurrent unit time-series trajectory prediction model, and the predicted trajectory within a future time window is output. The minimum Euclidean distance between the predicted trajectory and the safety boundary is calculated. If the distance is greater than a preset safety threshold, it is considered safe; otherwise, it is considered unsafe and intervention is triggered. After completing the secondary verification, the boundary parameters of the probabilistically safe hyperellipsoid used to construct the next verification cycle are adjusted.

10. The system according to claim 9, characterized in that, The secondary verification includes: A sequence of instructions of a preset length, including the real-time instruction data, is input into a pre-trained gated recurrent unit time-series trajectory prediction model, which outputs the predicted trajectory within a future time window. The minimum Euclidean distance between the predicted trajectory and the safety boundary is calculated. If the distance is greater than a preset safety threshold, the trajectory is deemed safe; otherwise, it is deemed unsafe and intervention is triggered.