Method for determining posture of optical master hand and surgical robot system

By constructing a target quaternion data set and using a network model to determine the Euler angle of the optical main hand, the singular problem in the process of determining the posture of the optical main hand in the surgical robot system is solved and the surgical accuracy is improved.

CN118806445AActive Publication Date: 2024-10-22TIANJIN UNIV
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411047421.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-22
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

In surgical robot systems, singular problems such as gimbal locking, dead zones, and multi-valued correspondences between quaternions and Euler angles are prone to occur during the posture determination process of the optical master hand, which affects the accuracy of surgery.

Method used

By obtaining current and historical quaternion data, construct a target quaternion data set, embed in high-dimensional space for position encoding, and use network models (such as GRU and feedforward neural networks) to determine the target quaternion matrix with dependencies, Thus, the Euler angle of the optical main hand can be accurately obtained.

Benefits of technology

It effectively avoids strange problems and improves the accuracy of the optical main hand posture, thus improving the accuracy of surgery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118806445A_ABST
    Figure CN118806445A_ABST
Patent Text Reader

Abstract

The invention provides a method for determining the posture of an optical master hand and a surgical robot system. The determination method comprises the following steps: acquiring current quaternion data of an optical master manipulator at a current moment; determining a target quaternion data set based on the current quaternion data and historical quaternion data of the optical master at a plurality of historical moments before the current moment; based on the target quaternion data set, a first quaternion matrix is determined, and the first quaternion matrix comprises the target quaternion data set, a target speed set of the target quaternion data set and a target acceleration set of the target quaternion data set; embedding the first quaternion matrix into a high-dimensional space to obtain a second quaternion matrix; performing position coding on the second quaternion matrix to obtain a third quaternion matrix; based on the third quaternion matrix, determining a target quaternion matrix with a dependency relationship by using a network model; based on the target quaternion matrix, a target Euler angle is obtained, and the target Euler angle represents the posture of the optical master hand at the current moment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of surgical robots, and in particular to a method for determining the posture of an optical master hand and a surgical robot system. Background Art

[0002] The optical master hand in a surgical robot system usually refers to the interface or device at the end operated by the doctor. The doctor can use the optical master hand to remotely control the slave hand of the surgical robot to perform surgery or other medical operations. The wireless optical master hand reduces the complexity of wiring and facilitates the doctor to flexibly operate the optical master hand. The wireless optical master hand promotes the development of intelligent surgical robot systems and human-machine collaboration.

[0003] However, in the process of determining the posture of the optical master hand, many strange problems will arise, such as gimbal lock, dead zone, multi-value correspondence between quaternions and Euler angles, etc., which will affect the accuracy of the surgery. Summary of the invention

[0004] In view of this, the present invention provides a method for determining the posture of an optical master hand, comprising: acquiring current quaternion data of the optical master hand at a current moment; determining a target quaternion data set based on the current quaternion data and historical quaternion data of the optical master hand at multiple historical moments before the current moment; determining a first quaternion matrix based on the target quaternion data set, wherein the first quaternion matrix includes the target quaternion data set, a target velocity set of the target quaternion data set, and a target acceleration set of the target quaternion data set, and the target velocity set includes the current quaternion data set. The target acceleration set includes the acceleration data of the current quaternion data and the acceleration data of each of the multiple historical quaternion data; embedding the first quaternion matrix into a high-dimensional space to obtain a second quaternion matrix; performing position encoding on the second quaternion matrix to obtain a third quaternion matrix; based on the third quaternion matrix, using a network model, determining a target quaternion matrix with a dependency relationship; and obtaining a target Euler angle based on the target quaternion matrix, wherein the target Euler angle represents the posture of the optical master hand at the current moment.

[0005] Optionally, the network model includes a GRU model and a feedforward neural network model, and the target quaternion matrix is ​​determined based on the third quaternion matrix using the network model, including: determining the attention weight of the third quaternion matrix; performing a first normalization on the third quaternion matrix and the attention weight to obtain a first intermediate matrix; using the feedforward neural network model to process the first intermediate matrix to obtain a second intermediate matrix; performing a second normalization on the first intermediate matrix and the second intermediate matrix to obtain a third intermediate matrix; and inputting the third intermediate matrix into the GRU model to obtain the target quaternion matrix.

[0006] Optionally, determining the attention weight of the third quaternion matrix includes: determining a query tensor matrix of the third quaternion matrix, a key tensor matrix of the third quaternion matrix, and a value tensor matrix of the third quaternion matrix based on the third quaternion matrix; and determining the attention weight of the target quaternion matrix based on the query tensor matrix, the key tensor matrix, and the value tensor matrix.

[0007] Optionally, performing position encoding on the second quaternion matrix to obtain a third quaternion matrix includes: obtaining a position encoding vector corresponding to the second quaternion matrix; and adding the second quaternion matrix to the position encoding vector to obtain the third quaternion matrix.

[0008] Optionally, the determination method also includes: determining the current predicted quaternion data based on the target Euler angle; estimating the prediction error using a joint loss function based on the current quaternion data and the current predicted quaternion data; and updating the feedforward neural network model based on the estimation result.

[0009] Optionally, the joint loss function is composed of a first loss function, a second loss function, a third loss function and a fourth loss function; wherein the first loss function represents a function suitable for calculating a mean square error of the prediction error; the second loss function represents a function suitable for calculating a regularization term of the prediction error; the third loss function represents a function suitable for calculating a speed error of the prediction error; and the fourth loss function represents a function suitable for calculating an acceleration error of the prediction error.

[0010] Optionally, the target Euler angles include a yaw angle, a pitch angle and a roll angle.

[0011] Optionally, a decoder is used to convert the target quaternion matrix into target Euler angles.

[0012] The present disclosure also provides a surgical robot system, including: an optical master hand, provided with a plurality of infrared reflection devices; a surgical robot, provided with a slave operator; an infrared optical master hand tracking device, configured to calculate current quaternion data based on a signal emitted by the emission device when an operator operates the optical master hand; and a host computer, configured to determine a target Euler angle based on the current quaternion data using the determination method described above, and control the operation of the slave operator based on the target Euler angle.

[0013] Optionally, the optical master hand is further provided with an opening and closing part, which is connected to the host computer. The operator opens or closes the opening and closing part by operation, and the host computer controls the operation of the slave hand based on the opening or closing angle of the opening and closing part.

[0014] According to the disclosed embodiment, the target quaternion data set is determined by using the current quaternion data and the historical quaternion data at multiple historical moments before the current moment, and the first quaternion matrix is ​​determined based on the target quaternion data set, so that the first quaternion matrix includes relatively rich data, and there is a time correlation between the data. Through position encoding, time information can be injected, and through the network model, dependencies can be injected, so that the target quaternion matrix can have both time information and dependencies. Therefore, the target Euler angle determined based on the target quaternion matrix is ​​more accurate, and singular problems such as universal joint lock, dead zone, and multi-value correspondence between quaternions and Euler angles can be avoided, and the accuracy of obtaining the posture of the optical master hand can be improved, thereby improving the accuracy of the surgery. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0016] Figure 1 The flowchart of the method for determining the posture of the optical master hand according to an embodiment of the present invention is schematically shown.

[0017] Figure 2 The application scenario diagram of the optical master hand according to an embodiment of the present invention is schematically shown.

[0018] Figure 3 A side view of an optical master hand according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION

[0019] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.

[0020] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0021] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0022] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0023] In the related art, the quaternion data of the optical master hand can be obtained through the position information between the optical markers on the optical master hand. The Euler angles of the optical master hand can be directly calculated through the quaternion data. However, in the process of determining the posture of the optical master hand, many strange problems will arise, such as universal joint lock, dead zone, multi-value correspondence between quaternion and Euler angle, etc., which will affect the accuracy of the surgery.

[0024] In response to the above problems, an embodiment of the present invention provides a method for determining the posture of an optical master hand, comprising: acquiring current quaternion data of the optical master hand at a current moment; determining a target quaternion data set based on the current quaternion data and historical quaternion data of the optical master hand at multiple historical moments before the current moment; determining a first quaternion matrix based on the target quaternion data set, wherein the first quaternion matrix includes a target quaternion data set, a target velocity set of the target quaternion data set, and a target acceleration set of the target quaternion data set, the target velocity set includes velocity data of the current quaternion data and velocity data of each of the multiple historical quaternion data, and the target acceleration set includes acceleration data of the current quaternion data and acceleration data of each of the multiple historical quaternion data; embedding the first quaternion matrix into a high-dimensional space to obtain a second quaternion matrix; position encoding the second quaternion matrix to obtain a third quaternion matrix; based on the third quaternion matrix, using a network model, determining a target quaternion matrix with a dependency relationship; and obtaining a target Euler angle based on the target quaternion matrix, the target Euler angle representing the posture of the optical master hand at the current moment.

[0025] The following will be passed Figure 1-Figure 3 The method for determining the posture of the optical master hand according to an embodiment of the present invention is described in detail.

[0026] It should be noted that the sequence numbers of the operations in the following method are only used as representations of the operations for the purpose of description, and should not be regarded as representing the execution order of the operations. Unless explicitly stated, the method does not need to be executed completely in the order shown.

[0027] Figure 1 The flowchart of the method for determining the posture of the optical master hand according to an embodiment of the present invention is schematically shown. Figure 2 The application scenario diagram of the optical master hand according to an embodiment of the present invention is schematically shown. Figure 3 A side view of an optical master hand according to an embodiment of the present invention is schematically shown.

[0028] like Figures 2 to 3As shown, an embodiment of the present invention further provides a surgical robot system. The surgical robot system includes an optical master hand 210, a surgical robot (not shown in the figure), a host computer 220 and an infrared optical master hand tracking device. The surgical robot can be away from the host computer 220 and the optical master hand 210. A plurality of infrared reflection devices 211 are provided on the optical master hand 210. The infrared reflection device can be a reflective ball. A slave operator is provided on the surgical robot. The infrared reflection device 211 can be provided on the optical marking point of the optical master hand. When the operator operates the optical master hand 210, the infrared optical master hand tracking device can calculate the position information between the optical marking points based on the signal emitted by the transmitting device, thereby calculating the current quaternion data. The host computer 220 can determine the target Euler angle based on the current quaternion data using the above-mentioned determination method, and control the slave operator to work based on the target Euler angle.

[0029] In some embodiments, the optical master hand 210 is further provided with an opening and closing part. The opening and closing part is connected to the host computer 220. The operator can open or close the opening and closing part by operation. The host computer 220 controls the operation of the slave operator hand based on the opening or closing angle of the opening and closing part.

[0030] Furthermore, the optical master hand 210 may be provided with a microcontroller unit (MCU) connected to the host computer 220. The optical master hand 210 may also be provided with a displacement potentiometer. The displacement potentiometer may be used to detect the angle of opening or closing of the opening and closing part, and transmit the information to the host computer through the first microcontroller unit. The optical master hand 210 may wirelessly transmit information to the host computer 220 based on the microcontroller unit.

[0031] like Figure 1 As shown, the method 100 for determining the posture of the optical master hand in this embodiment includes operations S110 to S170.

[0032] In operation S110, current quaternion data of the optical master hand at the current moment is acquired.

[0033] According to the embodiment of the present disclosure, the current quaternion data It can be expressed by the following formula (1).

[0034] (1).

[0035] in, , , and It can be a real number of a quaternion, which can be obtained by an infrared optical master hand tracking device. , and Can be the imaginary unit of a quaternion. Can indicate time, Can be greater than 0.

[0036] In operation S120 , a target quaternion data set is determined based on the current quaternion data and the historical quaternion data of the optical master hand at a plurality of historical moments before the current moment.

[0037] According to an embodiment of the present disclosure, historical quaternion data at multiple historical moments may include: , … .in, , … They can be the historical quaternion data of the first moment, the historical quaternion data of the second moment, and so on. The time interval between adjacent moments can be set as needed, for example, the time interval between adjacent moments can be 0.1 seconds, 1 second or 1 minute, that is, the time interval between the first moment and the second moment can be 0.1 seconds, 1 second or 1 minute. , … It can be expressed in the same form as the above formula (1), which will not be repeated here.

[0038] According to an embodiment of the present disclosure, the target quaternion data set It can be expressed by the following formula (2).

[0039] q=[ q 1 , q 2 , …… , q t - 1 , q t ] (2).

[0040] In operation S130 , a first quaternion matrix is ​​determined based on the target quaternion data set.

[0041] According to an embodiment of the present disclosure, the first quaternion matrix includes a target quaternion data set, a target velocity set of the target quaternion data set, and a target acceleration set of the target quaternion data set. The target velocity set may include velocity data of the current quaternion data and velocity data of each of the plurality of historical quaternion data. The target acceleration set may include acceleration data of the current quaternion data and acceleration data of each of the plurality of historical quaternion data.

[0042] According to an embodiment of the present disclosure, the first quaternion matrix can be expressed by the following formula (3).

[0043] X 1 =[ q , q ̇ , q ̈ ] (3).

[0044] in, Can be a target speed set. The target acceleration set can be obtained by By taking the derivative, we can get the target velocity set By setting the target acceleration By taking the derivative, we can get the target acceleration set , that is, each current quaternion data corresponds to a velocity data and an acceleration data. Each historical quaternion data also corresponds to a velocity data and an acceleration data.

[0045] In operation S140, the first quaternion matrix is ​​embedded into a high-dimensional space to obtain a second quaternion matrix.

[0046] According to an embodiment of the present disclosure, the first quaternion can be input into the Transformer model. After the first quaternion is input into the Transformer model, the first quaternion matrix is ​​embedded into the high-dimensional space to obtain the second quaternion matrix. The second quaternion matrix It can be expressed by the following formula (4).

[0047] (4).

[0048] in, It can be an embedding matrix and can be updated as the Transformer model is trained. The dimension can be . The dimension can be 12 dimensions. It can be the bias term of the Transformer model. and The dimension can be dimension.

[0049] In operation S150, position encoding is performed on the second quaternion matrix to obtain a third quaternion matrix.

[0050] According to an embodiment of the present disclosure, the Transformer model may be used to perform position encoding on the second quaternion matrix so that the third quaternion matrix has time information.

[0051] In operation S160, based on the third quaternion matrix, a target quaternion matrix with dependency is determined using a network model. According to the embodiment of the present disclosure, by adding dependency, the target quaternion matrix has both time information and dependency.

[0052] In operation S170, a target Euler angle is obtained based on the target quaternion matrix, and the target Euler angle represents the posture of the optical master hand at the current moment.

[0053] According to the disclosed embodiment, the target quaternion data set is determined by using the current quaternion data and the historical quaternion data at multiple historical moments before the current moment, and the first quaternion matrix is ​​determined based on the target quaternion data set, so that the first quaternion matrix includes relatively rich data, and there is a time correlation between the data. Through position encoding, time information can be injected, and through the network model, dependencies can be injected, so that the target quaternion matrix can have both time information and dependencies. Therefore, the target Euler angle determined based on the target quaternion matrix is ​​more accurate, and singular problems such as universal joint lock, dead zone, and multi-value correspondence between quaternions and Euler angles can be avoided, and the accuracy of obtaining the posture of the optical master hand can be improved, thereby improving the accuracy of the surgery.

[0054] In some embodiments, the network model includes a GRU model and a feedforward neural network model. Operation S160 includes the following operations S161 to S165.

[0055] In operation S161, an attention weight of a third quaternion matrix is ​​determined.

[0056] According to an embodiment of the present disclosure, by determining the attention weight of the third quaternion matrix, the dependency relationship of the data in the third quaternion matrix can be determined.

[0057] In operation S162, the third quaternion matrix and the attention weights are normalized for the first time to obtain a first intermediate matrix.

[0058] In operation S163, the first intermediate matrix is ​​processed using a feedforward neural network model to obtain a second intermediate matrix.

[0059] According to the embodiment of the present disclosure, the first intermediate matrix is ​​processed by using a feedforward neural network model, and nonlinear transformation and mapping can be performed on the data corresponding to each moment in the first intermediate matrix, so that the second intermediate matrix has better stability. In operation S164, the first intermediate matrix and the second intermediate matrix are normalized for the second time to obtain a third intermediate matrix.

[0060] According to the embodiment of the present disclosure, the first normalization and the second normalization can avoid the accuracy of acquiring the posture of the optical master hand being affected by data characteristics.

[0061] In operation S165, the third intermediate matrix is ​​input into the GRU model to obtain a target quaternion matrix.

[0062] According to an embodiment of the present disclosure, by inputting the third intermediate matrix into the GRU model, the dynamic characteristics and timing information caused by adding time information can be processed, and the long-term dependency problem between data can be reduced.

[0063] In some embodiments, operation S161 includes: determining a query tensor matrix of the third quaternion matrix, a key tensor matrix of the third quaternion matrix, and a value tensor matrix of the third quaternion matrix based on the third quaternion matrix. Based on the query tensor matrix, the key tensor matrix, and the value tensor matrix, determining an attention weight of the target quaternion matrix.

[0064] According to an embodiment of the present disclosure, query the tensor matrix It can be expressed by the following formula (5).

[0065] (5).

[0066] in, You can query the weights of a tensor matrix.

[0067] According to an embodiment of the present disclosure, the key tensor matrix It can be expressed by the following formula (6).

[0068] (6).

[0069] in, Can be a key tensor matrix of weights.

[0070] According to an embodiment of the present disclosure, the value tensor matrix It can be expressed by the following formula (7).

[0071] (7).

[0072] in, Can be a tensor-valued matrix of weights. , and The dimension can be dimension.

[0073] According to an embodiment of the present disclosure, the attention weight A of the target quaternion matrix can be expressed by the following formula (8).

[0074] (8).

[0075] in, Represents the transpose symbol. Can characterize the Attention mechanism.

[0076] In some embodiments, operation S150 includes: obtaining a position encoding vector corresponding to the second quaternion matrix, and adding the second quaternion matrix to the position encoding vector to obtain a third quaternion matrix.

[0077] According to an embodiment of the present disclosure, the position encoding vector It can be expressed by the following formula (9).

[0078] (9).

[0079] in, You can encode the position vector Middle The value of the dimension.

[0080] According to the embodiment of the present disclosure, the third quaternion matrix can be expressed by the following formula (10).

[0081] (10).

[0082] According to an embodiment of the present disclosure, the first intermediate matrix It can be expressed by the following formula (11).

[0083] (11).

[0084] in, Can be a layer normalization function.

[0085] According to an embodiment of the present disclosure, the second intermediate matrix It can be expressed by the following formula (12).

[0086] (12).

[0087] in, It can be a feed-forward neural network model. It can be a ReLU activation function. and It can be the weight matrix of the feedforward neural network model, which can be continuously updated as the model is trained. and Can be a bias term.

[0088] According to an embodiment of the present disclosure, the third intermediate matrix It can be expressed by the following formula (13).

[0089] (13).

[0090] Furthermore, the process of obtaining the third quaternion matrix from the first quaternion matrix can be implemented by the Transformer model.

[0091] In some embodiments, the GRU model may include an update gate, a reset gate, candidate hidden states, and a hidden state.

[0092] According to the embodiment of the present disclosure, the update gate Zt can be expressed by the following formula (14).

[0093] Z t = σ ( W z [ h t - 1 , Z 3 ]+ b z ) (14).

[0094] Among them, σ can represent the activation function. The weight of the gate can be updated. Can be a bias for the update gate. Can indicate the The hidden state at the moment is the hidden state at the previous moment.

[0095] According to the embodiment of the present disclosure, the reset gate It can be expressed by the following formula (15).

[0096] r t = σ ( W r [ h t - 1 , Z 3 ]+ b r ) (15).

[0097] in, You can reset the weight of the gate. Can be used to reset the gate bias.

[0098] According to the embodiment of the present disclosure, the candidate hidden state It can be expressed by the following formula (16).

[0099] h ̃ t =tanh( W h [ r t h t - 1 , Z 3 ]+ b h ̃ ) (16).

[0100] in, can represent the hyperbolic tangent function. Can be a candidate hidden state The weight of . Can be a candidate hidden state The bias.

[0101] According to the embodiment of the present disclosure, the hidden state It can be expressed by the following formula (17).

[0102] (17).

[0103] Among them, the hidden state The output of can be the target quaternion matrix. The GRU model can better capture the long-term dependency of the data in the third intermediate matrix. After the third intermediate matrix is ​​processed by the GRU model, each data contains more context information, and the target quaternion matrix can more accurately reflect the temporal variation characteristics of the quaternion. Thus, the target quaternion matrix can include the information in the first quaternion matrix and the dynamic information after time series processing.

[0104] In some embodiments, the determination method may further include determining current predicted quaternion data based on the target Euler angle. Based on the current quaternion data and the current predicted quaternion data, estimating the prediction error using a joint loss function. Based on the estimation result, updating the feedforward neural network model. The determination of the target Euler angle may be real-time, and the current predicted quaternion data may be used to determine the prediction error. The current quaternion data at the current moment Corresponding, further, the quaternion data of the previous moment It can correspond to the predicted quaternion data of the previous moment .

[0105] According to an embodiment of the present disclosure, the target Euler angle may include the yaw angle , Pitch angle and roll angle . Current predicted quaternion data It can be expressed by the following formula (18).

[0106] (18).

[0107] in, , , and It can be expressed by the following formula (19).

[0108] (19).

[0109] in, It can be expressed by the following formula (20).

[0110] (20).

[0111] In some embodiments, the joint loss function is constructed based on the first loss function, the second loss function, the third loss function and the fourth loss function.

[0112] According to an embodiment of the present disclosure, the first loss function represents a function suitable for calculating the mean square error of the prediction error. It can be expressed by the following formula (21).

[0113] (twenty one).

[0114] Here, N can be the number of samples.

[0115] According to an embodiment of the present disclosure, the second loss function represents a function suitable for calculating a regularization term for the prediction error. By calculating the mean square error of the prediction error, the influence of singularity can be reduced. The second loss function It can be expressed by the following formula (22).

[0116] (twenty two).

[0117] in, Can be expressed and The error gradient between λ and λ can represent the regularization weight.

[0118] According to an embodiment of the present disclosure, the third loss function represents a function suitable for calculating the speed error of the prediction error. The dynamic change of the quaternion can be reflected by calculating the speed error of the prediction error. It can be expressed by the following formula (23).

[0119] (twenty three).

[0120] According to an embodiment of the present disclosure, the fourth loss function represents a function suitable for calculating the acceleration error of the prediction error. The dynamic change of the quaternion can be reflected by calculating the acceleration error of the prediction error. The fourth loss function It can be expressed by the following formula (24).

[0121] (twenty four).

[0122] According to the embodiment of the present disclosure, the joint loss function It can be expressed by the following formula (25).

[0123] (25).

[0124] Among them, α, β, γ and δ can represent weight coefficients. α, β, γ and δ can balance the influence of each loss function.

[0125] In some embodiments, a decoder is used to convert the target quaternion matrix into target Euler angles. The decoder can be composed of multiple layers of fully connected networks, each of which can include a self-attention mechanism to handle the dynamics and complexity of the input.

[0126] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present invention may be combined and / or combined in various ways, even if such combinations and / or combinations are not explicitly described in the present invention. In particular, the features described in the various embodiments and / or claims of the present invention may be combined and / or combined in various ways without departing from the spirit and teachings of the present invention. All of these combinations and / or combinations fall within the scope of the present invention.

[0127] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination. The scope of the present invention is defined by the attached claims and their equivalents. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.

Claims

1. A method for determining the posture of an optical master hand, It is characterized in that include: Obtaining current quaternion data of the optical master hand at the current moment; Determine a target quaternion data set based on the current quaternion data and historical quaternion data of the optical master hand at multiple historical moments before the current moment; Based on the target quaternion data set, determining a first quaternion matrix, wherein the first quaternion matrix includes the target quaternion data set, a target velocity set of the target quaternion data set, and a target acceleration set of the target quaternion data set, the target velocity set includes velocity data of the current quaternion data and velocity data of each of a plurality of historical quaternion data, and the target acceleration set includes acceleration data of the current quaternion data and acceleration data of each of a plurality of historical quaternion data; Embedding the first quaternion matrix into a high-dimensional space to obtain a second quaternion matrix; Performing position encoding on the second quaternion matrix to obtain a third quaternion matrix; Based on the third quaternion matrix, using a network model, determining a target quaternion matrix having a dependency relationship; and Based on the target quaternion matrix, a target Euler angle is obtained, and the target Euler angle represents the posture of the optical master hand at the current moment.

2. The determination method according to claim 1, It is characterized in that The network model includes a GRU model and a feedforward neural network model, and the method of determining a target quaternion matrix based on the third quaternion matrix and using the network model includes: determining an attention weight of the third quaternion matrix; Normalizing the third quaternion matrix and the attention weights for the first time to obtain a first intermediate matrix; Processing the first intermediate matrix using a feedforward neural network model to obtain a second intermediate matrix; performing a second normalization on the first intermediate matrix and the second intermediate matrix to obtain a third intermediate matrix; and The third intermediate matrix is ​​input into the GRU model to obtain the target quaternion matrix.

3. The determination method according to claim 2, It is characterized in that Determining the attention weight of the third quaternion matrix includes: Based on the third quaternion matrix, determining a query tensor matrix of the third quaternion matrix, a key tensor matrix of the third quaternion matrix, and a value tensor matrix of the third quaternion matrix; and Based on the query tensor matrix, the key tensor matrix, and the value tensor matrix, an attention weight of the target quaternion matrix is ​​determined.

4. The determination method according to claim 1, It is characterized in that The step of performing position encoding on the second quaternion matrix to obtain a third quaternion matrix includes: Obtaining a position encoding vector corresponding to the second quaternion matrix; and The second quaternion matrix is ​​added to the position encoding vector to obtain the third quaternion matrix.

5. The determination method according to claim 1, It is characterized in that Also includes; Based on the target Euler angle, determining the current predicted quaternion data; Based on the current quaternion data and the current predicted quaternion data, estimating the prediction error using a joint loss function; as well as Based on the evaluation result, the feedforward neural network model is updated.

6. The determination method according to claim 5, It is characterized in that The joint loss function is composed of a first loss function, a second loss function, a third loss function and a fourth loss function; Wherein, the first loss function represents a function suitable for calculating the mean square error of the prediction error; The second loss function represents a function suitable for calculating a regularization term for the prediction error; The third loss function represents a function suitable for calculating a speed error of the prediction error; and The fourth loss function represents a function suitable for calculating the acceleration error of the prediction error.

7. The determination method according to claim 1, It is characterized in that The target Euler angles include a yaw angle, a pitch angle, and a roll angle.

8. The determination method according to claim 1, It is characterized in that The target quaternion matrix is ​​converted into target Euler angles using a decoder.

9. A surgical robot system, include: An optical master hand, provided with a plurality of infrared reflection devices; A surgical robot is provided with a slave operator; an infrared optical master hand tracking device, configured to calculate and obtain current quaternion data based on the signal emitted by the emission device when the operator operates the optical master hand; as well as The host computer is configured to determine the target Euler angle based on the current quaternion data using the determination method described in any one of claims 1 to 8, and control the slave operator to work based on the target Euler angle.

10. The surgical robot system according to claim 9, It is characterized in that The optical master hand is also provided with an opening and closing part, which is connected to the host computer. The operator opens or closes the opening and closing part by operation, and the host computer controls the operation of the slave hand based on the opening or closing angle of the opening and closing part.

Citation Information

Patent Citations

  • Neural network model training method based on self-attention mechanism

    CN113516232A

  • Hand-eye calibration method of surgical robot based on optical positioning system

    CN114343847A

  • Optics and inertia combination-based surgical instrument positioning method

    CN117017489A

  • CKF-based surgical robot high-precision automatic hand-eye calibration method and system

    CN117017495A

  • Intrusion detection method and system based on feature selection and transformer-BiGRU

    CN118199933A