A skeleton registration method and device based on digital twin

Through the combination of digital twin technology, binocular cameras, and infrared cameras, the problem of low accuracy of feature point registration in surgical robots is solved, high-precision bone registration is achieved, and the accuracy of joint replacement surgery is improved.

CN117557601BActive Publication Date: 2024-10-01LONGWOOD VALLEY MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311254134.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2024-10-01
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

The accuracy of feature point registration in current surgical robots is low, resulting in inaccurate bone registration for joint replacement surgery.

Method used

A bone registration method based on digital twins is used to establish the initial pose relationship between the probe and the three-dimensional bone model by obtaining the three-dimensional parameters of the probe and the preoperative planning data of the joint bones, and uses the image data of the binocular camera and the infrared camera Perform digital twin registration and secondary registration to improve registration accuracy.

Benefits of technology

It achieves fast and high-precision bone registration, reduces the time and calculation amount of fine registration, and improves the accuracy and speed of registration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117557601B_ABST
    Figure CN117557601B_ABST
Patent Text Reader

Abstract

The present application provides a bone registration method and device based on digital twins, the method comprising: obtaining the three-dimensional parameters of the probe and the preoperative planning data of the joint bones; establishing the initial posture relationship between the probe and the three-dimensional bone model according to at least one three-dimensional bone key point of the three-dimensional bone model and the three-dimensional parameters; performing digital twin registration on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene; performing secondary registration on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the probe, the rough registration matrix and the image data of the infrared camera. In the present application, by first performing digital twin registration and then performing secondary registration, a rough registration can be performed quickly and with high precision, thereby reducing the time and amount of calculation for fine registration and greatly increasing the accuracy of fine registration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a skeleton registration method and device based on digital twins. Background Art

[0002] Joint replacement surgery, also known as arthroplasty or artificial joint replacement surgery, is a common surgical procedure used to treat pain and dysfunction caused by severe joint damage or disease. One of the core aspects of joint replacement surgery using surgical robots is the registration of the preoperatively planned three-dimensional bone model with the bone to be osteotomized during the operation.

[0003] Currently, feature point registration is mainly used in surgical robot registration. This registration method has relatively low registration accuracy due to the influence of acquisition tool accuracy, adjacent joint bone morphology, etc. Summary of the invention

[0004] The problem solved by this application is that the accuracy of current feature point registration is low.

[0005] To solve the above problems, the first aspect of the present application provides a skeleton registration method based on digital twins, comprising:

[0006] Acquire three-dimensional parameters of the probe and preoperative planning data of the joint bones, wherein the three-dimensional parameters at least include the relative position relationship between the visual marker of the probe and the needle tip, and the preoperative planning data of the joint bones at least include the three-dimensional bone model of the joint bones;

[0007] According to at least one three-dimensional skeleton key point of the three-dimensional skeleton model and the three-dimensional parameters, an initial posture relationship between the probe and the three-dimensional skeleton model is established, under which the relative position of the probe and the three-dimensional skeleton model is fixed;

[0008] Based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera, digital twin registration is performed on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene;

[0009] Based on the probe, the coarse registration matrix and the image data of the infrared camera, a secondary registration is performed on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene.

[0010] The second aspect of the present application provides a skeleton registration device based on digital twins, which includes:

[0011] A data acquisition module, which is used to acquire three-dimensional parameters of the probe and preoperative planning data of the joint bones, wherein the three-dimensional parameters at least include the relative position relationship between the visual marker of the probe and the needle tip, and the preoperative planning data of the joint bones at least include a three-dimensional bone model of the joint bones;

[0012] A posture fixing module is used to establish an initial posture relationship between the probe and the three-dimensional skeleton model according to at least one three-dimensional skeleton key point of the three-dimensional skeleton model and the three-dimensional parameters, under which the relative position of the probe and the three-dimensional skeleton model is fixed;

[0013] A twin registration module, which is used to perform digital twin registration of the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera;

[0014] A secondary registration module is used to perform secondary registration on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the probe, the coarse registration matrix and the image data of the infrared camera.

[0015] A third aspect of the present application provides an electronic device, comprising: a memory and a processor;

[0016] The memory is used to store programs;

[0017] The processor, coupled to the memory, is configured to execute the program to:

[0018] Acquire three-dimensional parameters of the probe and preoperative planning data of the joint bones, wherein the three-dimensional parameters at least include the relative position relationship between the visual marker of the probe and the needle tip, and the preoperative planning data of the joint bones at least include the three-dimensional bone model of the joint bones;

[0019] According to at least one three-dimensional skeleton key point of the three-dimensional skeleton model and the three-dimensional parameters, an initial posture relationship between the probe and the three-dimensional skeleton model is established, under which the relative position of the probe and the three-dimensional skeleton model is fixed;

[0020] Based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera, digital twin registration is performed on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene;

[0021] Based on the probe, the coarse registration matrix and the image data of the infrared camera, a secondary registration is performed on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene.

[0022] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the above-mentioned digital twin-based skeleton registration method.

[0023] In the present application, by first performing digital twin registration and then performing secondary registration, a rough registration can be performed quickly and with high precision, thereby reducing the time and amount of calculation for fine registration and greatly increasing the accuracy of fine registration.

[0024] In this application, by using the digital twin registration method in the rough registration stage, the advantages of fast and high-precision registration of the human eye are utilized to greatly increase the registration speed and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 is a flow chart of a skeleton registration method according to an embodiment of the present application;

[0026] Figure 2 A schematic diagram of establishing an initial posture relationship according to a skeleton registration method according to an embodiment of the present application;

[0027] Figure 3 A flowchart of twin registration of a skeleton registration method according to an embodiment of the present application;

[0028] Figure 4 It is a schematic diagram of the conversion relationship between the probe, infrared camera and marking positioning frame;

[0029] Figure 5 A flowchart of coarse registration verification of a skeletal registration method according to an embodiment of the present application;

[0030] Figure 6 A schematic diagram showing the relative position relationship between the verification point, the bone model, and the probe;

[0031] Figure 7 A flowchart of a model projection of a skeleton registration method according to an embodiment of the present application;

[0032] Figure 8 A schematic diagram of mapping a three-dimensional bone model to a two-dimensional image;

[0033] Fig. 9 A flowchart of visual marker tracking in a skeletal registration method according to an embodiment of the present application;

[0034] Fig.10 A schematic diagram of visual marker tracking according to a skeleton registration method according to an embodiment of the present application;

[0035] Fig.11 A flowchart of a multi-scale hole convolutional network model processing according to a skeleton registration method according to an embodiment of the present application;

[0036] Fig.12 It is an architecture diagram of a multi-scale hole convolutional network model of a skeleton registration method according to an embodiment of the present application;

[0037] Fig.13 A flowchart of the FFM module processing of the skeleton registration method according to an embodiment of the present application;

[0038] Fig.14 Schematic diagram of the FFM module of the skeleton registration method according to an embodiment of the present application;

[0039] Fig.15 A flowchart of secondary registration according to the skeleton registration method of an embodiment of the present application;

[0040] Fig.16 is a structural block diagram of a skeleton registration device according to an embodiment of the present application;

[0041] Fig.17 is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below in conjunction with the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0043] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.

[0044] It should be noted that in actual surgical scenarios, the bone to be osteotomized will only expose the part of the bone to be cut, and the rest of the bone is still wrapped in human tissue; based on this, if feature points are set on the part of the bone to be cut, and the registration is performed by aligning the feature points, due to the large amount of calculation of the feature point registration, when a coarse registration is performed on a small number of features, the error of the coarse registration is too large due to the small number of feature points; when a large number of fine registration is performed in the later stage, due to the large error of the coarse registration, the fine registration iteration cannot converge in time or only converges locally, resulting in insufficient accuracy of the final registration result.

[0045] In response to the above problems, the present application provides a new skeleton registration solution based on digital twins, which performs coarse registration through digital twins to solve the problem of low accuracy of current feature point registration.

[0046] The present application embodiment provides a skeleton registration method based on digital twins, and the specific scheme of the method is as follows: Figure 1-Figure 15 As shown, the method can be performed by a digital twin-based skeleton registration device, which can be integrated into electronic devices such as computers, servers, computers, server clusters, and data centers. Figure 1 As shown, it is a flow chart of a skeleton registration method based on digital twins according to an embodiment of the present application; wherein the skeleton registration method based on digital twins includes:

[0047] S100, acquiring three-dimensional parameters of the probe and preoperative planning data of the joint skeleton, wherein the three-dimensional parameters at least include a relative position relationship between a visual marker of the probe and a needle tip, and the preoperative planning data of the joint skeleton at least includes a three-dimensional skeleton model of the joint skeleton;

[0048] In the present application, the three-dimensional parameters of the probe include the number of visual markers of the probe, the relative position relationship between the visual markers, and the relative position relationship between the visual markers and the needle tip of the probe.

[0049] Among them, the visual marker can be identified, and the probe's position data can be determined based on the identified visual marker; when positioning through the probe, the probe tip can be brought into contact with the positioning position, and the coordinate information of the visual marker at this time can be recorded. Based on the relative position relationship between the visual marker and the probe tip, the specific coordinates of the tip position / positioning position can be determined.

[0050] In the present application, the preoperative planning data of the joint skeleton refers to the planning data of the joint to be replaced before the joint replacement surgery is performed. The planning data at least includes a three-dimensional bone model of the joint skeleton and the planned osteotomy information / osteotomy plane posture information.

[0051] It should be noted that the preoperative planning data of the joint bones can be obtained through pre-planning, and the specific planning process will not be repeated in this application.

[0052] S200, establishing an initial posture relationship between the probe and the three-dimensional skeleton model according to at least one three-dimensional skeleton key point of the three-dimensional skeleton model and the three-dimensional parameters, wherein the relative position of the probe and the three-dimensional skeleton model is fixed and unchanged under the initial posture relationship;

[0053] In the present application, the initial posture relationship between the probe and the three-dimensional skeleton model is established, that is, the relative position of the fixed probe and the three-dimensional skeleton model; in this way, when the probe is moved, the three-dimensional skeleton model will also move synchronously, and the posture of the movement corresponds. At the same time, when the relative position of the probe and the three-dimensional skeleton model is fixed, it means that the probe and the three-dimensional skeleton model are in the same coordinate system. When the probe is mapped to other coordinate systems, the three-dimensional skeleton model can be mapped to the coordinate system through the same mapping matrix.

[0054] In the present application, to set a three-dimensional skeleton key point, it is only necessary to fix the relative position relationship between the probe and the skeleton key point (including fixing the rotation angle), so as to fix the relative position relationship between the probe and the three-dimensional skeleton model.

[0055] Combination Figure 2 As shown, a coordinate system Os of the three-dimensional skeleton model is established according to the three medical anatomical points A, B, and C of the three-dimensional skeleton model, as shown in part (a) of the figure; a coordinate system Ot of the probe is established according to the four marking balls of the probe, as shown in part (b) of the figure; a corresponding relationship identical to that of the three-dimensional skeleton model coordinate system Os is established in the probe coordinate system Ot, and the corresponding joint bone feature points (three medical anatomical points) are A', B', and C'; when the probe moves to a position that coincides with the joint bone in the video stream, the change of the entire coordinate is shown in part (c) of the figure (this part is only a schematic diagram and does not show the video stream).

[0056] S300, performing digital twin registration of the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera;

[0057] In this application, digital twin registration is a coarse registration process, which can be completed quickly with high registration accuracy.

[0058] S400, based on the probe, the coarse registration matrix and the image data of the infrared camera, perform secondary registration on the three-dimensional bone model and the bone to be osteotomized in the actual surgical scene.

[0059] In the present application, the secondary registration is a fine registration. When the configuration accuracy of the coarse registration is high, the number of iterations required for the secondary registration can be greatly reduced, thereby converging in time and avoiding local convergence.

[0060] In the present application, by first performing digital twin registration and then performing secondary registration, a rough registration can be performed quickly and with high precision, thereby reducing the time and amount of calculation for fine registration and greatly increasing the accuracy of fine registration.

[0061] In this application, by using the digital twin registration method in the rough registration stage, the advantages of fast and high-precision registration of the human eye are utilized to greatly increase the registration speed and accuracy.

[0062] In one embodiment, in combination Figure 3 As shown, the S300 performs digital twin registration of the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera, including:

[0063] S310, acquiring image data of the binocular camera, where the image data is a video stream consisting of continuous two-dimensional images;

[0064] In the present application, the image data of the binocular camera is the data output by the binocular camera, and the output data is a video stream, and each frame image in the video stream is a two-dimensional image.

[0065] In one embodiment, the pixel coordinates in the two-dimensional image are two-dimensional coordinates. By simplifying the image data output by the binocular camera from three-dimensional to two-dimensional, the speed of generating the video stream of the two-dimensional image is greatly improved.

[0066] S320, based on the initial posture relationship, projecting the three-dimensional skeleton model into the two-dimensional image of the video stream, wherein the two-dimensional image is a real surgical scene image in a binocular camera coordinate system;

[0067] It should be noted that the video stream is obtained by shooting the real surgical scene during the operation, and each frame of the two-dimensional image is an image of the real surgical scene in the binocular camera coordinate system.

[0068] It should be emphasized that when photographing the real surgical scene during the operation, the position and shooting posture of the binocular camera are fixed, and the external parameter matrix determined based on the position and shooting posture also remains unchanged. Based on this, in the present application, the external parameter matrix of the binocular camera is fixed. It should be noted that if a correspondence between multiple preset positions (and shooting postures) of the binocular camera and the external parameter matrix corresponding to each preset position (and shooting posture) is established, then under the premise of the corresponding relationship, the binocular camera can be moved to the preset position (and shooting posture) and the external parameter matrix can be changed at the same time, so that the variability of the position and shooting posture of the binocular camera can be achieved, and the scope of use is increased.

[0069] S330, adjusting the posture of the probe to change the posture of the three-dimensional bone model until the projection of the three-dimensional bone model on the two-dimensional image coincides with the bone to be osteotomized on the two-dimensional image;

[0070] In the present application, the medical staff watches the three-dimensional bone model projected into the two-dimensional image of the video stream, and moves the probe at the same time so that the projection of the three-dimensional bone model also moves synchronously, until the projection of the three-dimensional bone model coincides with the bone to be osteotomized and stops moving. In this way, by displaying the video stream with the projection of the three-dimensional bone model, the medical staff can observe the positional relationship of the projection of the three-dimensional bone model in real time when operating the probe, so that the projection of the three-dimensional bone model can be quickly and accurately moved to a position where it coincides with the bone to be osteotomized on the two-dimensional image.

[0071] It should be noted that the position where the projection of the three-dimensional bone model overlaps with the bone to be osteotomized is determined by medical staff, based on which the rich experience of medical staff can be utilized, thereby greatly reducing the registration time and registration calculation amount.

[0072] It should be noted that what is displayed in the video stream is the projection of the three-dimensional skeleton model on the two-dimensional image, but the projection will change as the posture of the three-dimensional skeleton model changes.

[0073] S340, acquiring positioning data of the visual marker of the probe in the infrared camera coordinate system when the projection of the three-dimensional bone model coincides with the bone to be osteotomized;

[0074] In this application, the infrared camera is a depth camera, and its image data only displays (by highlighting) the specific shape and position of the visual marker, based on which the positioning data of the visual marker of the probe in the infrared camera coordinate system can be determined. The specific determination method will not be repeated in this application.

[0075] S350, determining a mapping relationship between a local coordinate system of the probe and a local coordinate system of the marking and positioning frame of the bone to be osteotomized based on the positioning data of the visual marker of the probe in the infrared camera coordinate system and the positioning data of the visual marker of the marking and positioning frame of the bone to be osteotomized in the infrared camera coordinate system;

[0076] In the present application, a marking and positioning frame is fixed on the bone to be osteotomized; in a similar manner, the positioning data of the visual marker of the marking and positioning frame in the infrared camera coordinate system can be determined based on the display of the visual marker of the marking and positioning frame in the image data of the infrared camera.

[0077] In this application, the probe has a local coordinate system, and the marker positioning frame also has a local coordinate system; when the positioning data of the probe and the marker positioning frame in the same coordinate system are known, the mapping relationship between the local coordinate system of the probe and the local coordinate system of the marker positioning frame can be determined according to the positioning data. The specific calculation process will not be repeated in this application.

[0078] Combination Figure 4 As shown, Figure 4 The upper middle part is a schematic diagram of the coordinate system of the infrared camera, the left part is a schematic diagram of the local coordinate system of the probe, and the right part is a schematic diagram of the local coordinate system of the marking and positioning frame; based on the positioning data of the visual marker of the probe in the infrared camera coordinate system, the mapping relationship between the local coordinate system of the probe and the infrared camera coordinate system can be determined; based on the positioning data of the visual marker of the marking and positioning frame of the bone to be osteotomized in the infrared camera coordinate system, the mapping relationship between the local coordinate system of the marking and positioning frame and the infrared camera coordinate system can be determined; and then the mapping relationship between the local coordinate system of the probe and the local coordinate system of the marking and positioning frame of the bone to be osteotomized is determined.

[0079] In this application, since the registration result needs to be unique, if the coordinates are unified under the infrared camera, the infrared camera is required not to move after the registration is completed, which is difficult to achieve. Therefore, the coordinate system is converted to the marking positioning frame, which can move with the joint bones and maintain the absolute position relationship with the joint bones. By converting the coordinate system, the disadvantage that the infrared camera cannot move is eliminated.

[0080] S360, based on the mapping relationship between the local coordinate system of the probe and the local coordinate system of the marking and positioning frame of the bone to be osteotomized, the coordinate system of the three-dimensional bone model is converted to the local coordinate system of the marking and positioning frame of the bone to be osteotomized to obtain a coarse registration matrix.

[0081] In this application, the relative position of the probe and the three-dimensional bone model is fixed, so the mapping relationship between the local coordinate system of the probe and the local coordinate system of the marking positioning frame is the mapping relationship between the local coordinate system of the three-dimensional bone model and the local coordinate system of the marking positioning frame, which is also the coarse alignment matrix.

[0082] In the present application, the projection of the three-dimensional skeleton model on the two-dimensional image is displayed in real time, thereby avoiding the low coarse registration accuracy caused by delayed display.

[0083] In the present application, the projection of the three-dimensional bone model on the two-dimensional image is completed through the image data of the binocular camera, and the rough registration matrix after the projection of the three-dimensional bone model and the bone to be osteotomized are determined through the image data of the infrared camera. The characteristic of the infrared camera that only obtains the data of the visual marker is utilized, which greatly reduces the calculation amount of the rough registration matrix after the overlap while further increasing the accuracy of the registration.

[0084] It should be noted that although the infrared camera is facing the real surgical scene, it only obtains the position data of each visual marker in the real surgical scene, and does not process the remaining data in the real surgical scene (regardless of whether it is obtained or not). In this way, the amount of data that the infrared camera needs to process can be greatly reduced.

[0085] In this application, the infrared camera is an NDI camera.

[0086] In this application, the binocular camera is an RGB camera.

[0087] In this application, coarse alignment is completed by an RGB camera, and fine alignment is completed by an NDI camera, so that when the amount of calculation is large in the coarse alignment stage, the accuracy is reduced and the transmission rate is increased; in the fine alignment stage, the actual surgical scene data obtained is reduced to reduce the amount of calculation and increase the calculation speed / reaction speed.

[0088] In the present application, by displaying the real surgical scene and projecting a three-dimensional skeletal model, rough registration can be completed manually. On the one hand, rough registration can be completed quickly without a lot of calculations; on the other hand, the accuracy of rough registration can be greatly increased, the speed of subsequent fine registration can be improved, and the amount of calculation for fine registration can be reduced.

[0089] In one embodiment, in combination Figure 5 and Figure 6 As shown, the S300, after performing digital twin registration of the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera, further includes:

[0090] S351, determining the medullary cavity midline based on the three-dimensional bone model, and selecting at least one verification point on the extension line of the medullary cavity midline;

[0091] In the present application, the medullary cavity midline is only used to refer to or describe the center line of the three-dimensional bone model. Therefore, it can be calculated through the outer wall of the three-dimensional bone model or through the inner wall of the medullary cavity of the three-dimensional bone model. The specific calculation process and constraints are not limited in this application.

[0092] In the present application, the extension line of the medullary cavity midline, that is, the part of the medullary cavity midline inside the three-dimensional bone model is the medullary cavity midline, and the part outside the three-dimensional bone model is the extension line. By selecting verification points on the extension line, it is possible to determine whether there is a deviation (or whether the deviation is large) through the verification points.

[0093] See Figure 6 As shown. According to the line connecting the probe needle tip / the point on the bone marrow midline (point A) and the point on the bone marrow midline (point B) and extending it to point C, an extension line is formed to determine the verification point C.

[0094] In one embodiment, the verification point and the probe are located at two ends of the three-dimensional bone model, thereby greatly increasing the distance between the probe and the verification point and maximizing the amplification ratio of the movement of the verification point when the probe moves.

[0095] S352, projecting the verification point onto a two-dimensional image of the video stream based on the initial posture relationship;

[0096] In the present application, the relative position of the medullary cavity midline and the three-dimensional bone model is also fixed, so when the three-dimensional bone model is projected onto the two-dimensional image, the verification point can also be projected onto the two-dimensional image in a similar manner.

[0097] S353, based on the projected two-dimensional image, determine the deviation of the digital twin registration result, and re-perform the digital twin registration if the deviation of the digital twin registration result is too large.

[0098] In this application, the deviation of the digital twin registration result can be determined by the medical staff who moves the probe. For example, if the position of the verification point in the thigh part is obviously not located at the midpoint of the thigh part (at the edge of the thigh or the outside of the thigh) during distal femoral osteotomy, it can be considered that the deviation is too large.

[0099] In the present application, since the portion of the bone to be osteotomized that is exposed during the operation is small and short, deviations are likely to occur when manually judging the overlap state of the projection of the three-dimensional bone model.

[0100] In this application, the relatively straight characteristics of the human skeleton are utilized, and the deviation during registration is magnified by projecting the verification points on the extension line, so as to verify the rough registration result.

[0101] In one embodiment, in combination Figure 7 As shown, the S320, based on the initial posture relationship, projects the three-dimensional skeleton model into the two-dimensional image of the video stream, including:

[0102] S321, tracking coordinate information of the visual marker of the probe in the video stream;

[0103] In the present application, the coordinate information of the visual marker in each two-dimensional image frame in the video stream is determined, and the coordinate information is three-dimensional coordinate information.

[0104] S322, determining a mapping relationship between a local coordinate system of the probe and a binocular camera coordinate system based on the three-dimensional parameters of the probe and the coordinate information of the tracked visual marker;

[0105] The three-dimensional parameters of the probe have the relative position relationship between the visual markers, based on which the local coordinate system of the probe can be determined. The coordinate information of the tracked visual markers is the coordinate information of the visual markers in the binocular camera coordinate system, based on which the mapping relationship between the local coordinate system of the probe and the binocular camera coordinate system can be determined.

[0106] S323, projecting the three-dimensional bone model into a two-dimensional image of the video stream in the binocular camera coordinate system according to a mapping relationship between the local coordinate system of the probe and the binocular camera coordinate system, wherein the two-dimensional image is a real surgical scene image in the binocular camera coordinate system;

[0107] In the present application, the three-dimensional skeleton model needs to be changed accordingly according to the rotation and translation of the probe. At the same time, the movement process of the three-dimensional model of the joint skeleton is mapped in two dimensions in real time so as to be added to the video stream.

[0108] Combination Figure 8 As shown in the figure, it is a schematic diagram of mapping a 3D bone model to a 2D image; the left side of the figure is a 3D bone model, and the right side is a 2D image display with a projection of the 3D bone model. The 2D image is displayed in real time, and medical staff can adjust the probe based on the 2D image to make the projection of the 3D bone model coincide with the bone to be osteotomized.

[0109] In the present application, the skeletal three-dimensional model can be mapped to a two-dimensional image in the video stream by using orthogonal projection or perspective projection.

[0110] In one embodiment, in combination Fig. 9 and Fig.10 As shown, the step S321, tracking the coordinate information of the visual marker of the probe in the video stream, includes:

[0111] S301, acquiring multiple frames of captured images from at least one camera of the binocular camera;

[0112] In the present application, the binocular camera has two cameras, namely a left camera and a right camera. The multi-frame captured images of at least one camera are images directly acquired by the left camera and / or the right camera, and the images are two-dimensional images.

[0113] S302, inputting the collected image into the trained multi-scale dilated convolutional network model to obtain the image coordinates of the visual marker of the probe in the collected image;

[0114] like Fig.10 As shown, the area encircled by the box in the figure is the visual marker.

[0115] S303, obtaining an intrinsic parameter matrix and an extrinsic parameter matrix of the binocular camera;

[0116] In the present application, the intrinsic parameter matrix and the extrinsic parameter matrix of the binocular camera are pre-calibrated, and the specific calibration method is not limited in the present application.

[0117] S304: Determine the coordinate information of the visual marker based on the image coordinates, the intrinsic parameter matrix and the extrinsic parameter matrix.

[0118] In the present application, a multi-scale dilated convolutional network model is used to track the visual marker (the Mark of the probe) in the binocular camera, and generate the three-dimensional coordinates of the visual marker (the Mark of the probe).

[0119] It should be noted that there is a corresponding mapping relationship between the two-dimensional images of the two cameras of the binocular camera, so it is only necessary to obtain the image coordinates of the visual marker in the two-dimensional image of one camera (the image coordinates are two-dimensional coordinates) to calculate the image coordinates of the visual marker in the two-dimensional image of the other camera. Based on this, it is only necessary to obtain multiple frames of captured images from one camera to complete the tracking of coordinate information, thereby greatly reducing the amount of calculation.

[0120] It should be noted that there is an error between the two cameras of the binocular camera. Therefore, multiple frames of captured images from the two cameras of the binocular camera can be obtained separately, and after obtaining the coordinate information of the visual markers determined based on the two cameras respectively, they are merged to eliminate the influence of the error between the two cameras on the coordinate information.

[0121] It should be noted that, as can be seen from the figure, the visual marker (the probe's Mark) accounts for a very small proportion of the entire image, that is, there is a serious imbalance between the foreground and the background, which makes it difficult to track the visual marker (the probe's Mark) in real time without losing it.

[0122] In this application, a multi-scale atrous convolutional network model is used to track visual markers in a binocular camera. The characteristic of atrous convolution that does not lose information about small objects is utilized, thereby avoiding information loss caused by downsampling and utilizing multi-scale information at the same time.

[0123] In one embodiment, in combination Fig.11 and Fig.12 As shown, the S302, inputting the collected image into the trained multi-scale dilated convolutional network model to obtain the image coordinates of the visual marker of the probe in the collected image, includes:

[0124] S201, performing multiple downsampling on the collected image in sequence to obtain a second downsampling feature map, a third downsampling feature map, and a fourth downsampling feature map respectively;

[0125] Among them, the collected image is downsampled to obtain a second downsampled feature map; the second downsampled feature map is downsampled to obtain a third downsampled feature map; the third downsampled feature map is downsampled to obtain a fourth downsampled feature map.

[0126] Combination Fig.12 As shown in the figure, the dotted line represents the downsampling process, the dotted horizontal line represents the upsampling process, and the solid line represents the convolution process.

[0127] In the figure, A1 is the acquired image, A2 is the second down-sampling feature map, A3 is the third down-sampling feature map, and A4 is the fourth down-sampling feature map; B2 is the second convolution feature map, B3 is the third convolution feature map, and B4 is the fourth convolution feature map; C2 is the second up-sampling feature map, C3 is the third up-sampling feature map, and C4 is the fourth up-sampling feature map.

[0128] S202, performing convolution processing on the second down-sampled feature map, the third down-sampled feature map, and the fourth down-sampled feature map, respectively, to obtain corresponding second convolution feature maps, third convolution feature maps, and fourth convolution feature maps;

[0129] Among them, the second down-sampling feature map is convolved to obtain a second convolution feature map; the third down-sampling feature map is convolved to obtain a third convolution feature map; and the fourth down-sampling feature map is convolved to obtain a fourth convolution feature map.

[0130] S203, after performing convolution processing on the fourth down-sampled feature map and the fourth convolution feature map respectively, adding them and performing convolution processing on the added result to obtain a fourth up-sampled feature map;

[0131] The convolution processing performed on the fourth down-sampled feature map in this step is the same type of convolution processing as the convolution processing performed on the fourth down-sampled feature map in step S202, but it is not the same convolution processing. That is, the architecture of the convolution processing is the same, but the parameters are different.

[0132] In this step, the addition is Add processing, that is, the feature maps are added, and the number of channels remains unchanged.

[0133] S204, after performing convolution processing on the third down-sampled feature map and the third convolution feature map respectively, adding them to the up-sampled fourth up-sampled feature map and performing convolution processing on the added result to obtain a third up-sampled feature map;

[0134] In the present application, a convolution process is performed on the third down-sampled feature map to obtain a convolution result of the third down-sampled feature map; a convolution process is performed on the third convolution feature map to obtain a convolution result of the third convolution feature map; the fourth up-sampled feature map is up-sampled to obtain an up-sampling result of the fourth up-sampled feature map; the convolution result of the third down-sampled feature map, the convolution result of the third convolution feature map, and the up-sampling result of the fourth up-sampled feature map are added to obtain an added result; the added result is convolved to obtain a third up-sampled feature map.

[0135] Similarly, the convolution processing performed on the third down-sampled feature map in this step is also the same type of convolution processing as that in step S202, but not the same convolution processing.

[0136] In this step, the addition is Add processing, that is, the feature maps are added, and the number of channels remains unchanged.

[0137] In this application, the superposition of information is achieved through Add processing.

[0138] In the present application, the convolution result of the third down-sampling feature map, the convolution result of the third convolution feature map, and the up-sampling result of the fourth up-sampling feature map are feature maps that do not have the same feature meaning. By superimposing information on feature maps that do not have the same feature meaning, feature extraction is achieved by utilizing the information loss caused by information superposition.

[0139] S205, after performing convolution processing on the second down-sampled feature map and the second convolution feature map respectively, adding them to the up-sampled third up-sampled feature map and performing convolution processing on the added result to obtain a second up-sampled feature map;

[0140] Similarly, the convolution processing performed on the second down-sampled feature map in this step is also the same type of convolution processing as that in step S202, but not the same convolution processing.

[0141] In this step, the addition is Add processing, that is, the feature maps are added, and the number of channels remains unchanged.

[0142] S206, after performing convolution processing on the second up-sampled feature map, the third up-sampled feature map and the fourth up-sampled feature map respectively, input them into the FFM module to obtain the image coordinates of the visual marker in the collected image.

[0143] The image coordinates of the visual marker in the acquired image are two-dimensional coordinates.

[0144] In this application, the specific architecture of the downsampling process is a downsampling layer, a 3x3 convolution layer, a BN layer, and a Relu layer arranged in sequence.

[0145] In this application, the specific architecture of convolution processing is a 3x3 convolution layer, a BN layer and a ReLU layer arranged in sequence.

[0146] In the present application, the specific architecture of the upsampling process is an upsampling layer, a 3x3 convolution layer, a BN layer, and a ReLU layer arranged in sequence.

[0147] In one embodiment, in combination Fig.13 and Fig.14 As shown, the S206, after performing convolution processing on the second up-sampled feature map, the third up-sampled feature map and the fourth up-sampled feature map respectively, inputs the convolution processing into the FFM module to obtain the image coordinates of the visual marker in the collected image, includes:

[0148] S601, performing convolution processing on the second up-sampled feature map, the third up-sampled feature map, and the fourth up-sampled feature map;

[0149] S602, performing a dilated convolution process with a dilation rate of 5 on the second up-sampled feature map after the convolution process to obtain a second dilated feature map;

[0150] S603, performing a dilated convolution process with a dilation rate of 3 on the third up-sampled feature map after the convolution process to obtain a third dilated feature map;

[0151] S604, performing a dilated convolution process with a dilation rate of 1 on the fourth up-sampled feature map after the convolution process to obtain a fourth dilated feature map;

[0152] In the present application, through the hole convolution processing with different dilation rates, the sizes of the second hole feature map, the third hole feature map, and the fourth hole feature map are made the same, so as to perform subsequent convolution and splicing processing.

[0153] S605, performing convolution processing on the second hole feature map, the third hole feature map, and the fourth hole feature map respectively;

[0154] S606, concatenate the second hole feature map, the third hole feature map, and the fourth hole feature map after the convolution processing, and perform full connection processing on the concatenated result to obtain the image coordinates of the visual marker.

[0155] In this step, concatenation is performed as Concat ( Fig.14 The number of channels increases, that is, the features / dimensions describing the image itself increase, but the information under each feature / dimension does not increase. Through splicing, the second hole feature map, the third hole feature map, and the fourth hole feature map after convolution are fused.

[0156] In this application, dilated convolutions with different dilation rates are used to obtain contextual information of different receptive fields, thereby effectively increasing the probability of identifying small targets.

[0157] In one embodiment, in combination Fig.15 As shown, the S400, based on the probe, the coarse registration matrix and the image data of the infrared camera, performs secondary registration on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene, including:

[0158] S401, using the probe to touch the surface of the bone to be osteotomized, and determining the touch position coordinates in the infrared camera coordinate system based on the shape data of the probe and the visual marker positioning data of the probe in the infrared camera coordinate system when touching;

[0159] S402, registering the touch position coordinates with the three-dimensional skeleton model through an iterative closest point algorithm to determine a mapping relationship between the three-dimensional skeleton model and the touch position coordinates;

[0160] In the present application, the coarse registration matrix is ​​iterated by the iterative closest point algorithm until the iteration converges, and the obtained registration matrix is ​​the mapping relationship between the three-dimensional skeleton model and the touch position coordinates.

[0161] In this application, the point-to-plane ICP (Iterative Closest Point) registration algorithm is used to iterate the coarse registration matrix. The specific process is as follows:

[0162] Input a coarse registration matrix as the initialization matrix; select an iteration stop condition, which is the maximum number of iterations or the convergence threshold of the transformation matrix; for each touch position coordinate, find its nearest neighbor on the three-dimensional bone model; for a point pair consisting of a touch position coordinate and its nearest neighboring point, calculate the error between the touch position coordinate and the nearest neighboring point in the point pair; calculate the weight and total error based on the error (calculate a weight based on the error, usually a Gaussian weight, and obtain the total error by weighted summation), use the least squares method, the error and the weight to calculate a new transformation matrix as the iterated registration matrix; map all touch position coordinates to the three-dimensional bone model and check whether the stop condition is met; if the condition is met, stop the iteration, otherwise continue the iteration.

[0163] Among them, a nearest point search algorithm (such as KD-Tree or Octree) is used to accelerate the search for the nearest neighbor point of the touch position coordinates on the three-dimensional skeleton model.

[0164] Among them, the coordinates of the touch position in the point pair and the error of the nearest adjacent point are the distance from the point to the surface, and the normal vector is used to represent the surface of the three-dimensional bone model.

[0165] S403, based on the mapping relationship between the three-dimensional bone model and the touch position coordinates, mapping the osteotomy plane posture information planned in the three-dimensional bone model to the local coordinate system of the marking and positioning frame of the bone to be osteotomized.

[0166] In this step, the osteotomy plane posture information is mapped to determine the osteotomy plane posture information of the bone to be osteotomized, thereby facilitating subsequent osteotomy.

[0167] This paper will use binocular cameras, infrared cameras, probes and three-dimensional skeletal models to build a digital twin system through the establishment and mutual mapping of coordinates, and complete the calculation of the coarse registration matrix in the digital twin system through the movement of the probe; then, based on the coarse registration matrix, the probe is used to collect fewer intraoperative points, and the fine registration matrix is ​​solved through the Point-Plant-ICP registration algorithm (i.e., point-to-plane ICP).

[0168] In the present application, when there are multiple bones to be osteotomized, the three-dimensional bone model of the first bone and the bone to be osteotomized of the first bone in the actual surgical scene are aligned respectively, and the three-dimensional bone model of the second bone and the bone to be osteotomized of the second bone in the actual surgical scene are aligned, etc.

[0169] Preferably, the three-dimensional skeleton model is a three-dimensional model of a single skeleton, not a three-dimensional model of a combination of multiple skeletons. Even if the three-dimensional skeleton model is set to include multiple skeletons, only one of the multiple skeletons will be used in actual use. The extra skeleton will only cause a significant increase in the amount of calculation during registration, which is not beneficial. Therefore, it is set as a three-dimensional model of a single skeleton, thereby greatly reducing the amount of calculation; and when performing the first skeleton registration, only the three-dimensional skeleton model of the first skeleton needs to be obtained, which greatly reduces the three-dimensional skeleton model data that needs to be preset.

[0170] An embodiment of the present application provides a digital twin-based skeleton registration device, which is used to execute the digital twin-based skeleton registration method described in the above content of the present application. The digital twin-based skeleton registration device is described in detail below.

[0171] like Fig.16 As shown, the skeleton registration device based on digital twins includes:

[0172] A data acquisition module 101, which is used to acquire three-dimensional parameters of the probe and preoperative planning data of the joint bones, wherein the three-dimensional parameters at least include the relative position relationship between the visual marker of the probe and the needle tip, and the preoperative planning data of the joint bones at least include the three-dimensional bone model of the joint bones;

[0173] A posture fixing module 102 is used to establish an initial posture relationship between the probe and the three-dimensional skeleton model according to at least one three-dimensional skeleton key point of the three-dimensional skeleton model and the three-dimensional parameters, under which the relative position of the probe and the three-dimensional skeleton model is fixed;

[0174] A twin registration module 103, which is used to perform digital twin registration of the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera;

[0175] The secondary registration module 104 is used to perform secondary registration on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the probe, the coarse registration matrix and the image data of the infrared camera.

[0176] In one embodiment, the twin registration module 103 is further used for:

[0177] The method comprises the steps of: obtaining image data of the binocular camera, wherein the image data is a video stream composed of continuous two-dimensional images; projecting a three-dimensional bone model into a two-dimensional image of the video stream based on the initial posture relationship, wherein the two-dimensional image is an image of a real surgical scene in a binocular camera coordinate system; adjusting the posture of the probe to change the posture of the three-dimensional bone model until the projection of the three-dimensional bone model on the two-dimensional image coincides with the bone to be osteotomized on the two-dimensional image; obtaining the visual marker of the probe on the infrared camera when the projection of the three-dimensional bone model coincides with the bone to be osteotomized. The method comprises the following steps: determining the mapping relationship between the local coordinate system of the probe and the local coordinate system of the marking and positioning frame of the bone to be osteotomized based on the positioning data of the visual marker of the probe in the infrared camera coordinate system and the positioning data of the visual marker of the marking and positioning frame of the bone to be osteotomized in the infrared camera coordinate system; based on the mapping relationship between the local coordinate system of the probe and the local coordinate system of the marking and positioning frame of the bone to be osteotomized, converting the coordinate system of the three-dimensional bone model to the local coordinate system of the marking and positioning frame of the bone to be osteotomized, and obtaining a coarse registration matrix.

[0178] In one embodiment, the twin registration module 103 is further used for:

[0179] Determine the medullary cavity midline based on the three-dimensional bone model, and select at least one verification point on the extension line of the medullary cavity midline; based on the initial posture relationship, project the verification point onto the two-dimensional image of the video stream; based on the projected two-dimensional image, judge the deviation of the digital twin registration result, and re-perform the digital twin registration when the deviation of the digital twin registration result is too large.

[0180] In one embodiment, the twin registration module 103 is further used for:

[0181] Track the coordinate information of the visual marker of the probe in the video stream; determine the mapping relationship between the local coordinate system of the probe and the binocular camera coordinate system based on the three-dimensional parameters of the probe and the coordinate information of the tracked visual marker; project the three-dimensional bone model into the two-dimensional image of the video stream in the binocular camera coordinate system according to the mapping relationship between the local coordinate system of the probe and the binocular camera coordinate system, wherein the two-dimensional image is a real surgical scene image in the binocular camera coordinate system;

[0182] In one embodiment, the twin registration module 103 is further used for:

[0183] Acquire multiple frames of captured images from at least one of the binocular cameras; input the captured images into a trained multi-scale dilated convolutional network model to obtain image coordinates of a visual marker of the probe in the captured images; acquire an intrinsic parameter matrix and an extrinsic parameter matrix of the binocular camera; and determine coordinate information of the visual marker based on the image coordinates, the intrinsic parameter matrix and the extrinsic parameter matrix.

[0184] In one embodiment, the twin registration module 103 is further used for:

[0185] The acquired image is downsampled multiple times in sequence to obtain a second downsampled feature map, a third downsampled feature map and a fourth downsampled feature map respectively; the second downsampled feature map, the third downsampled feature map and the fourth downsampled feature map are convolved to obtain corresponding second convolutional feature maps, third convolutional feature maps and fourth convolutional feature maps; after the fourth downsampled feature map and the fourth convolutional feature map are convolved, they are added and the added results are convolved to obtain a fourth upsampled feature map; after the third downsampled feature map and the third convolutional feature map are convolved, they are added with the upsampled fourth upsampled feature map and the added results are convolved to obtain the third upsampled feature map; after the second downsampled feature map and the second convolutional feature map are convolved, they are added with the upsampled third upsampled feature map and the added results are convolved to obtain the second upsampled feature map; after the second upsampled feature map, the third upsampled feature map and the fourth upsampled feature map are convolved, they are input into the FFM module to obtain the image coordinates of the visual marker in the acquired image.

[0186] In one implementation, the secondary registration module 104 is further configured to:

[0187] The probe is used to touch the surface of the bone to be osteotomized, and the touch position coordinates in the infrared camera coordinate system are determined based on the shape data of the probe and the visual marker positioning data of the probe in the infrared camera coordinate system when touching; the touch position coordinates are aligned with the three-dimensional bone model through an iterative closest point algorithm to determine the mapping relationship between the three-dimensional bone model and the touch position coordinates; based on the mapping relationship between the three-dimensional bone model and the touch position coordinates, the osteotomy plane posture information planned in the three-dimensional bone model is mapped to the local coordinate system of the marking and positioning frame of the bone to be osteotomized.

[0188] The digital twin-based skeleton registration device provided in the above-mentioned embodiment of the present application has a corresponding relationship with the digital twin-based skeleton registration method provided in the embodiment of the present application. Therefore, the specific content in the device has a corresponding relationship with the skeleton registration method. The specific content can refer to the records in the skeleton registration method, and will not be repeated in this application.

[0189] The digital twin-based skeletal registration device provided in the above-mentioned embodiments of the present application and the digital twin-based skeletal registration method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0190] The above describes the internal functions and structure of the digital twin-based skeleton registration device, such as Fig.17 As shown, in practice, the digital twin-based skeleton registration device can be implemented as an electronic device, including: a memory 301 and a processor 303.

[0191] The memory 301 may be configured to store programs.

[0192] In addition, the memory 301 may also be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc.

[0193] The memory 301 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0194] The processor 303 is coupled to the memory 301 and is configured to execute a program in the memory 301 to:

[0195] Acquire three-dimensional parameters of the probe and preoperative planning data of the joint bones, wherein the three-dimensional parameters at least include the relative position relationship between the visual marker of the probe and the needle tip, and the preoperative planning data of the joint bones at least include the three-dimensional bone model of the joint bones;

[0196] According to at least one three-dimensional skeleton key point of the three-dimensional skeleton model and the three-dimensional parameters, an initial posture relationship between the probe and the three-dimensional skeleton model is established, under which the relative position of the probe and the three-dimensional skeleton model is fixed;

[0197] Based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera, digital twin registration is performed on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene;

[0198] Based on the probe, the coarse registration matrix and the image data of the infrared camera, a secondary registration is performed on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene.

[0199] In one implementation, the processor 303 is further configured to:

[0200] The method comprises the steps of: obtaining image data of the binocular camera, wherein the image data is a video stream composed of continuous two-dimensional images; projecting a three-dimensional bone model into a two-dimensional image of the video stream based on the initial posture relationship, wherein the two-dimensional image is an image of a real surgical scene in a binocular camera coordinate system; adjusting the posture of the probe to change the posture of the three-dimensional bone model until the projection of the three-dimensional bone model on the two-dimensional image coincides with the bone to be osteotomized on the two-dimensional image; obtaining the visual marker of the probe on the infrared camera when the projection of the three-dimensional bone model coincides with the bone to be osteotomized. The method comprises the following steps: determining the mapping relationship between the local coordinate system of the probe and the local coordinate system of the marking and positioning frame of the bone to be osteotomized based on the positioning data of the visual marker of the probe in the infrared camera coordinate system and the positioning data of the visual marker of the marking and positioning frame of the bone to be osteotomized in the infrared camera coordinate system; based on the mapping relationship between the local coordinate system of the probe and the local coordinate system of the marking and positioning frame of the bone to be osteotomized, converting the coordinate system of the three-dimensional bone model to the local coordinate system of the marking and positioning frame of the bone to be osteotomized, and obtaining a coarse registration matrix.

[0201] In one implementation, the processor 303 is further configured to:

[0202] Determine the medullary cavity midline based on the three-dimensional bone model, and select at least one verification point on the extension line of the medullary cavity midline; based on the initial posture relationship, project the verification point onto the two-dimensional image of the video stream; based on the projected two-dimensional image, judge the deviation of the digital twin registration result, and re-perform the digital twin registration when the deviation of the digital twin registration result is too large.

[0203] In one implementation, the processor 303 is further configured to:

[0204] Track the coordinate information of the visual marker of the probe in the video stream; determine the mapping relationship between the local coordinate system of the probe and the binocular camera coordinate system based on the three-dimensional parameters of the probe and the coordinate information of the tracked visual marker; project the three-dimensional bone model into the two-dimensional image of the video stream in the binocular camera coordinate system according to the mapping relationship between the local coordinate system of the probe and the binocular camera coordinate system, wherein the two-dimensional image is a real surgical scene image in the binocular camera coordinate system;

[0205] In one implementation, the processor 303 is further configured to:

[0206] Acquire multiple frames of captured images from at least one of the binocular cameras; input the captured images into a trained multi-scale dilated convolutional network model to obtain image coordinates of a visual marker of the probe in the captured images; acquire an intrinsic parameter matrix and an extrinsic parameter matrix of the binocular camera; and determine coordinate information of the visual marker based on the image coordinates, the intrinsic parameter matrix and the extrinsic parameter matrix.

[0207] In one implementation, the processor 303 is further configured to:

[0208] The acquired image is downsampled multiple times in sequence to obtain a second downsampled feature map, a third downsampled feature map and a fourth downsampled feature map respectively; the second downsampled feature map, the third downsampled feature map and the fourth downsampled feature map are convolved to obtain corresponding second convolutional feature maps, third convolutional feature maps and fourth convolutional feature maps; after the fourth downsampled feature map and the fourth convolutional feature map are convolved, they are added and the added results are convolved to obtain a fourth upsampled feature map; after the third downsampled feature map and the third convolutional feature map are convolved, they are added with the upsampled fourth upsampled feature map and the added results are convolved to obtain the third upsampled feature map; after the second downsampled feature map and the second convolutional feature map are convolved, they are added with the upsampled third upsampled feature map and the added results are convolved to obtain the second upsampled feature map; after the second upsampled feature map, the third upsampled feature map and the fourth upsampled feature map are convolved, they are input into the FFM module to obtain the image coordinates of the visual marker in the acquired image.

[0209] In one implementation, the processor 303 is further configured to:

[0210] The probe is used to touch the surface of the bone to be osteotomized, and the touch position coordinates in the infrared camera coordinate system are determined based on the shape data of the probe and the visual marker positioning data of the probe in the infrared camera coordinate system when touching; the touch position coordinates are aligned with the three-dimensional bone model through an iterative closest point algorithm to determine the mapping relationship between the three-dimensional bone model and the touch position coordinates; based on the mapping relationship between the three-dimensional bone model and the touch position coordinates, the osteotomy plane posture information planned in the three-dimensional bone model is mapped to the local coordinate system of the marking and positioning frame of the bone to be osteotomized.

[0211] In the present application, the processor is also specifically used to execute all processes and steps of the above-mentioned digital twin-based skeleton registration method. The specific content can refer to the records in the skeleton registration method, and will not be repeated in this application.

[0212] In this application, Fig.17 Only some components are shown schematically, which does not mean that the electronic device only includes Fig.17Components shown.

[0213] The electronic device provided in this embodiment is based on the same inventive concept as the digital twin-based skeleton registration method provided in the embodiment of the present application, and has the same beneficial effects as the method adopted, run or implemented by the application stored therein.

[0214] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0215] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, 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, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0216] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0217] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0218] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0219] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash memory (Flash RAM). The memory is an example of a computer-readable medium.

[0220] The present application also provides a computer-readable storage medium corresponding to the digital twin-based skeletal registration method provided in the aforementioned embodiment, on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it will execute the digital twin-based skeletal registration method provided in any of the aforementioned embodiments.

[0221] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0222] The computer-readable storage medium provided by the above-mentioned embodiments of the present application and the digital twin-based skeleton registration method provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0223] It should be noted that in the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.

[0224] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0225] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A skeleton registration method based on digital twins, It is characterized in that include: Acquire three-dimensional parameters of the probe and preoperative planning data of the joint bones, wherein the three-dimensional parameters at least include the relative position relationship between the visual marker of the probe and the needle tip, and the preoperative planning data of the joint bones at least include the three-dimensional bone model of the joint bones; According to at least one three-dimensional skeleton key point of the three-dimensional skeleton model and the three-dimensional parameters, an initial posture relationship between the probe and the three-dimensional skeleton model is established, under which the relative position of the probe and the three-dimensional skeleton model is fixed; Based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera, digital twin registration is performed on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene; Based on the probe, the coarse registration matrix and the image data of the infrared camera, a secondary registration is performed on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene; The method of performing digital twin registration of the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera includes: Acquire image data of the binocular camera, where the image data is a video stream consisting of continuous two-dimensional images; Based on the initial posture relationship, the three-dimensional skeleton model is projected into the two-dimensional image of the video stream, wherein the two-dimensional image is a real surgical scene image in a binocular camera coordinate system; Adjusting the position and posture of the probe to change the position and posture of the three-dimensional bone model until the projection of the three-dimensional bone model on the two-dimensional image coincides with the bone to be osteotomized on the two-dimensional image; When the projection of the three-dimensional bone model coincides with the bone to be osteotomized, obtaining positioning data of the visual marker of the probe in the infrared camera coordinate system; Determine a mapping relationship between the local coordinate system of the probe and the local coordinate system of the marking and positioning frame of the bone to be osteotomized based on the positioning data of the visual marker of the probe in the infrared camera coordinate system and the positioning data of the visual marker of the marking and positioning frame of the bone to be osteotomized in the infrared camera coordinate system; Based on the mapping relationship between the local coordinate system of the probe and the local coordinate system of the marker positioning frame of the bone to be osteotomized, the coordinate system of the three-dimensional bone model is converted to the local coordinate system of the marker positioning frame of the bone to be osteotomized to obtain a rough registration matrix; The method of performing secondary registration on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the probe, the coarse registration matrix and the image data of the infrared camera comprises: Using the probe to touch the surface of the bone to be osteotomized, based on the shape data of the probe and the visual marker positioning data of the probe in the infrared camera coordinate system when touching, determine the coordinates of the touch position in the infrared camera coordinate system; By iterating the closest point algorithm, the touch position coordinates are registered with the three-dimensional skeleton model to determine the mapping relationship between the three-dimensional skeleton model and the touch position coordinates; Based on the mapping relationship between the three-dimensional bone model and the touch position coordinates, the osteotomy plane posture information planned in the three-dimensional bone model is mapped to the local coordinate system of the marking and positioning frame of the bone to be osteotomized.

2. The skeleton registration method according to claim 1, It is characterized in that After performing digital twin registration of the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera, the method further includes: Determine the medullary cavity midline based on the three-dimensional bone model, and select at least one verification point on the extension line of the medullary cavity midline; Based on the initial posture relationship, projecting the verification point onto a two-dimensional image of the video stream; Based on the projected two-dimensional image, the deviation of the digital twin registration result is judged, and if the deviation of the digital twin registration result is too large, the digital twin registration is performed again.

3. The skeleton registration method according to claim 1, It is characterized in that The projecting of the three-dimensional skeleton model into the two-dimensional image of the video stream based on the initial posture relationship includes: Tracking coordinate information of a visual marker of the probe in the video stream; Based on the three-dimensional parameters of the probe and the coordinate information of the tracked visual marker, determining the mapping relationship between the local coordinate system of the probe and the binocular camera coordinate system; According to the mapping relationship between the local coordinate system of the probe and the binocular camera coordinate system, the three-dimensional bone model is projected into the two-dimensional image of the video stream in the binocular camera coordinate system, and the two-dimensional image is the real surgical scene image in the binocular camera coordinate system.

4. The skeleton registration method according to claim 3, It is characterized in that The tracking of the coordinate information of the visual marker of the probe in the video stream includes: Acquire multiple frames of captured images from at least one camera of the binocular camera; Inputting the collected image into the trained multi-scale dilated convolutional network model to obtain the image coordinates of the visual marker of the probe in the collected image; Obtaining the intrinsic parameter matrix and the extrinsic parameter matrix of the binocular camera; Based on the image coordinates, the intrinsic parameter matrix and the extrinsic parameter matrix, coordinate information of the visual marker is determined.

5. The skeleton registration method according to claim 4, It is characterized in that The step of inputting the collected image into the trained multi-scale dilated convolutional network model to obtain the image coordinates of the visual marker of the probe in the collected image includes: Downsampling the collected image multiple times in sequence to obtain a second downsampling feature map, a third downsampling feature map, and a fourth downsampling feature map respectively; Performing convolution processing on the second down-sampled feature map, the third down-sampled feature map, and the fourth down-sampled feature map, respectively, to obtain corresponding second convolution feature maps, third convolution feature maps, and fourth convolution feature maps; After convolution processing is performed on the fourth down-sampled feature map and the fourth convolution feature map respectively, the four down-sampled feature map and the fourth convolution feature map are added and convolution processing is performed on the added result to obtain a fourth up-sampled feature map; After convolution processing is performed on the third down-sampled feature map and the third convolution feature map respectively, the third down-sampled feature map and the third convolution feature map are added to the up-sampled fourth up-sampled feature map and the addition result is convolved to obtain a third up-sampled feature map; After convolving the second down-sampled feature map and the second convolution feature map respectively, the two maps are added to the up-sampled third up-sampled feature map and the added result is convolved to obtain a second up-sampled feature map; After convolution processing is performed on the second up-sampled feature map, the third up-sampled feature map and the fourth up-sampled feature map respectively, the convolution processing is input into the FFM module to obtain the image coordinates of the visual marker in the acquired image.

6. A skeleton registration device based on digital twins, It is characterized in that include: A data acquisition module, which is used to acquire three-dimensional parameters of the probe and preoperative planning data of the joint bones, wherein the three-dimensional parameters at least include the relative position relationship between the visual marker of the probe and the needle tip, and the preoperative planning data of the joint bones at least include a three-dimensional bone model of the joint bones; A posture fixing module is used to establish an initial posture relationship between the probe and the three-dimensional skeleton model according to at least one three-dimensional skeleton key point of the three-dimensional skeleton model and the three-dimensional parameters, under which the relative position of the probe and the three-dimensional skeleton model is fixed; A twin registration module, which is used to perform digital twin registration of the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera; A secondary registration module, which is used to perform secondary registration on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the probe, the coarse registration matrix and the image data of the infrared camera; The method of performing digital twin registration of the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera includes: Acquire image data of the binocular camera, where the image data is a video stream consisting of continuous two-dimensional images; Based on the initial posture relationship, the three-dimensional skeleton model is projected into the two-dimensional image of the video stream, wherein the two-dimensional image is a real surgical scene image in a binocular camera coordinate system; Adjusting the position and posture of the probe to change the position and posture of the three-dimensional bone model until the projection of the three-dimensional bone model on the two-dimensional image coincides with the bone to be osteotomized on the two-dimensional image; When the projection of the three-dimensional bone model coincides with the bone to be osteotomized, obtaining positioning data of the visual marker of the probe in the infrared camera coordinate system; Determine a mapping relationship between the local coordinate system of the probe and the local coordinate system of the marking and positioning frame of the bone to be osteotomized based on the positioning data of the visual marker of the probe in the infrared camera coordinate system and the positioning data of the visual marker of the marking and positioning frame of the bone to be osteotomized in the infrared camera coordinate system; Based on the mapping relationship between the local coordinate system of the probe and the local coordinate system of the marker positioning frame of the bone to be osteotomized, the coordinate system of the three-dimensional bone model is converted to the local coordinate system of the marker positioning frame of the bone to be osteotomized to obtain a rough registration matrix; The method of performing secondary registration on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the probe, the coarse registration matrix and the image data of the infrared camera comprises: Using the probe to touch the surface of the bone to be osteotomized, based on the shape data of the probe and the visual marker positioning data of the probe in the infrared camera coordinate system when touching, determine the coordinates of the touch position in the infrared camera coordinate system; By iterating the closest point algorithm, the touch position coordinates are registered with the three-dimensional skeleton model to determine the mapping relationship between the three-dimensional skeleton model and the touch position coordinates; Based on the mapping relationship between the three-dimensional bone model and the touch position coordinates, the osteotomy plane posture information planned in the three-dimensional bone model is mapped to the local coordinate system of the marking and positioning frame of the bone to be osteotomized.

7. An electronic device, It is characterized in that include: Memory and processor; The memory is used to store programs; The processor, coupled to the memory, is configured to execute the program to: Acquire three-dimensional parameters of the probe and preoperative planning data of the joint bones, wherein the three-dimensional parameters at least include the relative position relationship between the visual marker of the probe and the needle tip, and the preoperative planning data of the joint bones at least include the three-dimensional bone model of the joint bones; According to at least one three-dimensional skeleton key point of the three-dimensional skeleton model and the three-dimensional parameters, an initial posture relationship between the probe and the three-dimensional skeleton model is established, under which the relative position of the probe and the three-dimensional skeleton model is fixed; Based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera, digital twin registration is performed on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene; Based on the probe, the coarse registration matrix and the image data of the infrared camera, a secondary registration is performed on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene; The method of performing digital twin registration of the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the initial posture relationship between the probe and the three-dimensional bone model and the image data of the binocular camera and the infrared camera includes: Acquire image data of the binocular camera, where the image data is a video stream consisting of continuous two-dimensional images; Based on the initial posture relationship, the three-dimensional skeleton model is projected into the two-dimensional image of the video stream, wherein the two-dimensional image is a real surgical scene image in a binocular camera coordinate system; Adjusting the position and posture of the probe to change the position and posture of the three-dimensional bone model until the projection of the three-dimensional bone model on the two-dimensional image coincides with the bone to be osteotomized on the two-dimensional image; When the projection of the three-dimensional bone model coincides with the bone to be osteotomized, obtaining positioning data of the visual marker of the probe in the infrared camera coordinate system; Determine a mapping relationship between the local coordinate system of the probe and the local coordinate system of the marking and positioning frame of the bone to be osteotomized based on the positioning data of the visual marker of the probe in the infrared camera coordinate system and the positioning data of the visual marker of the marking and positioning frame of the bone to be osteotomized in the infrared camera coordinate system; Based on the mapping relationship between the local coordinate system of the probe and the local coordinate system of the marker positioning frame of the bone to be osteotomized, the coordinate system of the three-dimensional bone model is converted to the local coordinate system of the marker positioning frame of the bone to be osteotomized to obtain a rough registration matrix; The method of performing secondary registration on the three-dimensional bone model and the bone to be osteotomized in the real surgical scene based on the probe, the coarse registration matrix and the image data of the infrared camera comprises: Using the probe to touch the surface of the bone to be osteotomized, based on the shape data of the probe and the visual marker positioning data of the probe in the infrared camera coordinate system when touching, determine the coordinates of the touch position in the infrared camera coordinate system; By iterating the closest point algorithm, the touch position coordinates are registered with the three-dimensional skeleton model to determine the mapping relationship between the three-dimensional skeleton model and the touch position coordinates; Based on the mapping relationship between the three-dimensional bone model and the touch position coordinates, the osteotomy plane posture information planned in the three-dimensional bone model is mapped to the local coordinate system of the marking and positioning frame of the bone to be osteotomized.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that The program is executed by a processor to implement the digital twin-based skeleton registration method described in any one of claims 1-5.