Image registration method, terminal device and medium for periacetabular osteotomy

By detecting and segmenting three-dimensional landmark points on preoperative CT data, performing multi-view differentiable perspective simulation and neural network detection, the problem of low accuracy and efficiency of 2D/3D image registration during periacetabular osteotomy was solved and achieved High-precision registration of multiple bony tissues during acetabular osteotomy and accurate simulation of X-rays.

CN118429403BActive Publication Date: 2024-09-27XIANGJIANG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410892726.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-27
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

The existing 2D/3D image registration method during periacetabular osteotomy has low accuracy and efficiency and cannot accurately simulate X-rays. Moreover, the traditional method ignores the characteristic artifacts and the differentiable characteristics of CT data, resulting in acetabular osteotomy. Bone registration accuracy is not high.

Method used

By performing three-dimensional landmark point detection and segmentation on preoperative CT data, CT volume data of different six-degree-of-freedom postures are obtained, and multi-viewing differentiable perspective simulation is performed to generate a differentiable perspective simulation that approximates the intraoperative C-arm fluoroscopic X-ray image. Images, using neural networks for 2D landmark point detection and bone tissue segmentation, and finally achieving registration of 3D and 2D results.

Benefits of technology

It improves the registration accuracy and efficiency of multi-osseous tissue during periacetabular osteotomy, can accurately simulate X-rays, and enhances the reliability of registration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118429403B
    Figure CN118429403B
Patent Text Reader

Abstract

The present invention discloses an image registration method, terminal device and medium for periacetabular osteotomy, the steps of which include: obtaining preoperative CT data and intraoperative C-arm perspective X-ray images; performing three-dimensional landmark point detection and bone tissue segmentation on the preoperative CT data; obtaining CT volume data of different positions for multi-view differentiable perspective simulation, and sequentially performing material decomposition, projection, attenuation, differentiable perspective, scattering estimation and noise injection on the three-dimensional bone tissue segmentation results, so that the segmentation network approaches perspective imaging; using the intraoperative C-arm perspective X-ray images and the multi-view differentiable perspective simulation images as sample data for neural network model training, performing two-dimensional landmark point detection and bone tissue segmentation on the intraoperative C-arm perspective X-ray images; and registering the three-dimensional landmark point detection and bone tissue segmentation results with the two-dimensional landmark point detection and bone tissue segmentation results. The present invention has the advantages of simple implementation method, low cost, high registration efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical devices, and in particular to an image registration method, terminal equipment and medium for periacetabular osteotomy. Background Art

[0002] Periacetabular osteotomy is a surgical treatment for hip dysplasia caused by acetabular deformity. It is widely used in the treatment of acetabular bone diseases such as femoral neck fracture, tumor and femoral head necrosis, and end-stage hip osteoarthritis. Because the acetabulum is deep inside the pelvis and has a complex anatomical structure, acetabular osteotomy is not only difficult and risky, but also prone to postoperative complications such as infection, neurovascular injury, joint movement restriction and contracture, and muscle atrophy. By optimizing the preoperative plan and improving the intraoperative osteotomy matching rate, the quality of the operation can be effectively improved.

[0003] For medical 2D / 3D image registration, the existing technology mainly adopts the following two methods: grayscale optimization-based methods and feature learning-based methods. Among them, grayscale optimization-based methods usually use ray tracing or Monte Carlo simulation methods to generate digitally reconstructed images (DRR) of CT (computer tomography) data, and measure the grayscale similarity between DRR images and intraoperative images. Grayscale-based objective functions or statistical priors of shape distribution are generally used to register multiple objects. Feature learning-based methods usually use neural networks to encode two-dimensional X-ray images into latent variables, and then decode them into three-dimensional CT data to reconstruct three-dimensional images from two-dimensional X-ray images. The neural network bridges the different dimensions in the encoder and decoder, and achieves registration by reshaping the 2D feature map or treating the feature channel as the third spatial dimension.

[0004] However, the above 2D (two-dimensional) / 3D (three-dimensional) image registration method has the following problems when applied to periacetabular osteotomy:

[0005] 1. The accuracy and efficiency of 2D / 3D registration of multiple bone tissues are low.

[0006] Most of the existing 2D / 3D image registration methods are for single object registration, while acetabular osteotomy registration involves posture calculation of multiple objects with six degrees of freedom. For acetabular osteotomy, posture registration relative to a single intraoperative two-dimensional image requires calculation of the rotation of the four three-dimensional bone tissue parts of the osteotomy block, pelvis, left femur, and right femur in the CT coordinate system in the XYZ axis direction after segmentation of the preoperative CT image ( R x , R y , R z ) and pan( t x , ty , t z ), the traditional 2D / 3D image registration method is not applicable to periacetabular osteotomy involving multiple bone tissues.

[0007] 2. Unable to accurately simulate X-rays.

[0008] In the prior art, 2D / 3D image registration methods usually adopt traditional DRR imaging technology, such as ray tracing, Monte Carlo simulation, etc. This type of imaging technology ignores characteristic artifacts (such as beam hardening, complex noise, etc.) and the differentiable characteristics of CT data, and is actually unable to accurately simulate X-rays, which will further affect the accuracy of registration. Summary of the invention

[0009] The technical problem to be solved by the present invention is: in view of the technical problems existing in the prior art, the present invention provides an image registration method, terminal device and medium for periacetabular osteotomy with simple implementation method, low cost, high registration efficiency and accuracy.

[0010] In order to solve the above technical problems, the technical solution proposed by the present invention is:

[0011] An image registration method for periacetabular osteotomy, comprising the steps of:

[0012] Obtain preoperative CT data and intraoperative C-arm fluoroscopic X-ray images;

[0013] Performing three-dimensional landmark detection and three-dimensional bone tissue segmentation on the preoperative CT data;

[0014] Perform six-degree-of-freedom random rigid movement on the three-dimensional bone tissue segmentation results of preoperative CT data to obtain CT volume data with different six-degree-of-freedom postures;

[0015] A multi-view differentiable perspective simulation operation is performed on the CT volume data of different six-degree-of-freedom positions, so that the preoperative CT data is close to the intraoperative C-arm perspective X-ray image, and a multi-view differentiable perspective simulation image is obtained. The multi-view differentiable perspective simulation operation includes sequentially performing material decomposition, projection, attenuation, differentiable perspective, scattering estimation and noise injection on the CT volume data of different six-degree-of-freedom positions, wherein the material decomposition is to segment the air, soft tissue and bone in the CT volume, the projection is to project each candidate material to a specified detector position to obtain a projection domain image, the attenuation is to attenuate the projected image to a specified size, the differentiable perspective is to make the projection domain image have differential characteristics through a differential operation, the scattering estimation is to perform scattering estimation on the differentiable projection domain image to obtain a differentiable perspective simulation image with a scattering estimation added thereto, and the noise injection is to inject quantum and electronic readout noise;

[0016] The intraoperative C-arm perspective X-ray image and the multi-view differentiable perspective simulation image are used as sample data to train a neural network model, and the trained model is used to perform two-dimensional landmark point detection and two-dimensional bone tissue segmentation on the intraoperative C-arm perspective X-ray image;

[0017] The results of the three-dimensional landmark point detection and three-dimensional bone tissue segmentation are registered with the results of the two-dimensional landmark point detection and two-dimensional bone tissue segmentation to obtain a registration result output.

[0018] Furthermore, in the process of performing multi-view differentiable perspective simulation, an energy function for characterizing the differentiable perspective simulation effect is constructed according to the following formula, with the energy value E Solving the energy function with the minimum as the goal to obtain the optimal solution;

[0019]

[0020] in, is a multi-directional and multi-view parameter. is the intraoperative C-arm parameter, is the gradient of the loss function of the imaging parameters of the differentiable perspective part, The energy function representing the material decomposition part after 3D bone tissue segmentation is used to measure the multi-class Dice loss of the deep segmentation network decomposing the 6-DOF CT volume material; Represents the material-aware and spectral-aware ray-traced forward projection, attenuated energy functions to measure the quality of material decomposition and spectral awareness; Represents the energy function of the scattering estimation part based on the neural network, which is used to measure the gap between the samples generated by the generator and the real data and guide the training process of the generator; Energy functions representing quantum and electronic readout noise to measure the quality of quantum noise and electronic noise; is the regularization term, , , , as well as Respectively , , , and The weight coefficient of .

[0021] Furthermore, the step of performing multi-view differentiable perspective simulation includes:

[0022] Deep segmentation network decomposition of 6DOF CT volume material: A 3D bone tissue segmentation network is trained on CT volume element patches of the generated differentiable perspective simulated images to generate a material map M (x ), and for each detected 3D landmark point x Assign a candidate material to segment air, soft tissue, and bone in the CT volume;

[0023] Ray tracing forward projection, attenuation, and differentiable perspective: specifying parameters of the intraoperative C-arm Set to ray tracing forward projection parameters, according to the material mapping M ( x ) calculates each candidate material pair for the detector pixel as u The position is projected and attenuated, and then the differentiable perspective imaging is realized through differential operation to obtain the differentiable projection domain image , and the projection domain image p ( u ) as the input of the scattering estimation network, where p 0( E ) is the X-ray spectral density, E is the photon energy, is the Kronecker delta function, l u The projection source position and multi-view differentiable perspective simulation projection operator P Determined detector pixels u The three-dimensional ray between the three-dimensional coordinates of m ( E ) is the material and energy-dependent linear attenuation coefficient, and ρ(x) is derived from the HU value x The material density at the location, m Mapping for Materials M ( x )

[0024] Scattering estimation: Projection domain image Inputting into a neural network for training, wherein a designated layer in the neural network is used to generate a scattering estimate, and after training, a differentiable perspective simulated image with the scattering estimate added thereto is obtained;

[0025] Injected quantum and electronic readout noise: counting photons According to the number of photons Calculate the readout noise of quantum and electrons, For detector pixels, adding quantum and electronic readout noise to the generated differentiable perspective simulated image with added scattering estimation, to obtain a differentiable perspective simulated image with added scattering estimation and noise;

[0026] According to the number of photons Will The result is used as the maximum grayscale upper limit of the image, and the generated differentiable perspective simulation image with added scattering estimation and noise is subjected to image logarithmic transformation, and the three-dimensional constraint value in the XYZ axis direction of the CT reference coordinate system is set to obtain the final differentiable perspective simulation image of multiple viewing angles.

[0027] Furthermore, during the two-dimensional landmark detection and two-dimensional bone tissue segmentation, one of the predicted 2D landmark positions is used to calculate the initial anterior-posterior posture of the pelvis, and the projection regularization parameter is incorporated. R In Chinese, that is:

[0028]

[0029] Among them, P is the projection operator of multi-view differentiable perspective simulation, represents the registration stage, which includes pelvic registration , Left and right femur registration , osteotomy block registration and the stage of simultaneous registration optimization, For the i The three-dimensional landmark positions, For the i The three-dimensional landmark points correspond to the predicted two-dimensional landmark point positions, Indicates the use of i For 2D / 3D landmarks ( , ) determines the anterior / posterior posture of the pelvis, represents the physical distance between image pixels, N represents the number of differentiable perspective simulation images created by preoperative CT, represents the square of the 2-norm;

[0030] Using segmentation results images for non-uniform similarity metrics Sim The patch weight in w , recalculate the variance of the image gradient when the segmentation label changes, and use the segmentation soft boundary for the regularization parameter In order to restrain and punish unreasonable attitudes, namely:

[0031]

[0032]

[0033] in, P ( r ) means that all the available radii in the image are r A collection of Patch blocks, the shape of a single Patch is a square, and the coordinates of its Patch center are ( cr , c c ), the side length of the regular polygon of Patch is 2 r ; k and l They are P ( r ) in the center row c r and center column c c The number of The segmentation results of the pelvis, left femur, right femur and osteotomy block respectively guide the registration weights in real time w Changes are made by calculating the variance of the image gradient and taking the square root of the ratio of the gradient variance to the variance of the gradient values ​​in all registration stages as the weight adjustment factor. Soft boundary representing the segmentation of the left and right femurs.

[0034] Furthermore, in the process of performing three-dimensional landmark point detection and three-dimensional bone tissue segmentation, the three-dimensional landmark points include the anterior superior iliac spine ASIS on the left and right sides, the center of the femoral head FH, the greater sciatic notch GSN, the inner edge of the obturator foramen IOF, the inner edge of the obturator foramen MOF, the suprapubic symphysis SPS and the inferior pubic symphysis IPS; the result of the three-dimensional bone tissue segmentation includes the osteotomy block PAO, the left hemipelvis LHP, the right hemipelvis RHP, the left femur LF, the right femur RF, the vertebrae, the sacrum and the background; the four landmark points of the anterior superior iliac spine ASIS and the suprapubic symphysis SPS on the left and right sides are used to construct the anterior plane coordinate system of the pelvis, which is used to estimate the standard anterior / posterior posture and serve as a reference coordinate system during alignment.

[0035] Further, the CT volume data of the different six-degree-of-freedom postures are obtained by performing six-degree-of-freedom random rigid movement of the three-dimensional bone tissue segmentation result, the steps comprising: performing independent random rotations on the three axes of X, Y, and Z of the CT coordinate system on the four bone tissue parts of the segmented osteotomy block, pelvis, left femur, and right femur ( R x , R y , R z ) and random translation ( t x , t y , t z ), and set the constraint value of random rigid movement, and the four bone tissue parts traverse the constraint value respectively to construct a plurality of CT volume data with different six-degree-of-freedom postures.

[0036] Furthermore, in the process of registering the results of the three-dimensional landmark detection and three-dimensional bone tissue segmentation with the results of the two-dimensional landmark detection and two-dimensional bone tissue segmentation, the rotation of each bone tissue in the three axes of XYZ in the CT coordinate system is calculated by constructing the following optimization problem: R x , R y , R z ) and pan( t x , t y , t z ):

[0037]

[0038] in, D represents six degrees of freedom, represents the registration stage, which includes pelvic registration , Left and right femur registration , osteotomy block registration and the stage of simultaneous registration optimization, N represents the number of differentiable perspective simulation images created by preoperative CT, I Intraoperative 2D images ,V It indicates the number of viewing angles when creating perspective simulation images with preoperative CT. P represents the projection operator for multi-view differentiable perspective simulation, R is a regularization parameter used to penalize unreasonable postures, is the softmax function, Sim Represents a patch-based non-uniform similarity metric between multi-view C-arm fluoroscopic simulation and 2D intraoperative fluoroscopic images. Sim The value of is the weighted sum of the normalized cross-correlations of the 2D image gradients computed over the image patch, SE(3) represents the three-dimensional Euclidean transformation matrix in SE3 Lie algebra, S NCC Represents the calculation of the normalized cross-correlation NCC similarity on the derivatives of the Sobel X operator and the Sobel Y operator of the image to be registered. A single patch is represented by the center row c r , Center Column c c and radius r definition, P ( r ) is the set of all available patches in the image, k and l They are P (r )middle c r and c c The number of w is the patch weight, , To use the Sobel operator, we take the derivative in the x and y directions.

[0039] Furthermore, the step of registering the results of the three-dimensional landmark point detection and three-dimensional bone tissue segmentation with the results of the two-dimensional landmark point detection and two-dimensional bone tissue segmentation includes:

[0040] The intraoperative X-ray image to be registered is matched with the obtained multi-view differentiable perspective simulation image for 2D / 3D feature points, and the matching score is calculated according to the following formula: :

[0041]

[0042] Determining a constraint value of the registration according to the calculated matching score;

[0043] Perform initial pelvic registration. After the initial pelvic registration is completed, keep it fixed at the current posture estimate. Then perform initial registration of the left femur, right femur and osteotomy block. Finally, perform final synchronous optimization of the rigid posture of the pelvis, left femur, right femur and osteotomy block to achieve six-degree-of-freedom registration.

[0044] During the initial registration of the pelvis and the simultaneous optimization of the pelvis, the pelvis regularization is calculated using the following formula: , to penalize the failure to project at least one femoral head center within the 2D image boundary and an osteotomy block , place the femoral head center and osteotomy block behind the detector or away from the X-ray source The distance is less than the preset threshold, or the lower mark point in the image is projected onto the upper mark point Situation:

[0045]

[0046] in, is a regularization that penalizes untrustworthy poses, Represents the pelvis, Represents the bone tissue to be registered, FH, ASIS, IOF, SPS and IPS represent the center of the femoral head, the anterior superior iliac spine, the obturator foramen inner edge landmark, the superior pubic symphysis and the inferior pubic symphysis, respectively, and left and right represent left and right, respectively.

[0047] A terminal device comprises a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to execute the computer program to perform the above method.

[0048] A computer-readable storage medium storing a computer program, wherein the computer program implements the above method when executed by a processor.

[0049] Compared with the prior art, the advantages of the present invention are as follows: the present invention performs three-dimensional landmark point detection and three-dimensional bone tissue segmentation on preoperative CT data, obtains CT volume data of different six-degree-of-freedom postures after segmentation, performs multi-view differentiable perspective simulation on the CT volume data of different six-degree-of-freedom postures to obtain multi-view differentiable perspective simulation images, uses the multi-view differentiable perspective simulation images and intraoperative C-arm perspective X-ray images as sample data to train a neural network model, and then performs two-dimensional landmark point detection and two-dimensional bone tissue segmentation on the intraoperative C-arm perspective X-ray images, and finally realizes the registration between the results of three-dimensional landmark point detection and three-dimensional bone tissue segmentation and the results of two-dimensional landmark point detection and two-dimensional bone tissue segmentation, which can be applied to accurately realize the registration of multiple bone tissues in periacetabular osteotomy, and can use the multi-view differentiable perspective simulation method to fully consider the feature artifacts and the differentiable characteristics of CT data, accurately simulate X-rays, and effectively improve the accuracy and reliability of registration. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 Schematic diagram of the implementation process of the image registration method for periacetabular osteotomy in this embodiment.

[0051] Figure 2 This is a detailed schematic diagram of the process of implementing 2D / 3D registration of periacetabular osteotomy in this embodiment.

[0052] Figure 3 A schematic diagram of the results of acetabular osteotomy planning in a specific application embodiment of the present invention.

[0053] Figure 4 A schematic diagram of the six-degree-of-freedom random rigid movement results of three-dimensional bone tissue obtained in a specific application embodiment of the present invention.

[0054] Figure 5 A schematic diagram of the implementation process of multi-view differentiable perspective simulation imaging in this embodiment.

[0055] Figure 6 A detailed flowchart of 2D / 3D registration using the six-degree-of-freedom 2D / 3D registration pipeline used in this embodiment.

[0056] Figure 7The experimental results of 2D / 3D registration of acetabular periostectomy obtained in a specific application embodiment of the present invention. Among them, (a)-(d) correspond to the registration results of pelvis, left and right femurs, osteotomy blocks, and synchronous optimization respectively; They correspond to the 3D CT postures of the pelvis, left and right femurs, osteotomy blocks, and synchronous optimization registration results. DETAILED DESCRIPTION

[0057] The present invention is further described below in conjunction with the accompanying drawings and specific preferred embodiments, but the protection scope of the present invention is not limited thereby.

[0058] like Figure 1 to Figure 2 As shown, the steps of the image registration method for periacetabular osteotomy in this embodiment include:

[0059] Step S01. Acquire preoperative CT data and intraoperative C-arm fluoroscopic X-ray images;

[0060] Step S02: Performing 3D landmark detection and 3D bone tissue segmentation on preoperative CT data;

[0061] Step S03: Perform six-degree-of-freedom random rigid movement on the three-dimensional bone tissue segmentation result of the preoperative CT data to obtain CT volume data of different six-degree-of-freedom positions;

[0062] Step S04. Perform multi-view differentiable perspective simulation operation on CT volume data of different six-degree-of-freedom postures, so that the preoperative CT data is close to the intraoperative C-arm perspective X-ray image, and obtain a multi-view differentiable perspective simulation image, wherein the multi-view differentiable perspective simulation operation includes sequentially performing material decomposition, projection, attenuation, differentiable perspective, scattering estimation and noise injection on the three-dimensional bone tissue segmentation result, wherein material decomposition is to segment the air, soft tissue and bone in the CT volume, projection is to project each candidate material to a specified detector position to obtain a projection domain image, attenuation is to attenuate the projected image to a specified size, differentiable perspective is to make the projection domain image have differential characteristics through differential operation, scattering estimation is to perform scattering estimation on the differentiable projection domain image to obtain a differentiable perspective simulation image with scattering estimation added, and noise injection is to inject quantum and electronic readout noise;

[0063] Step S05. Using the intraoperative C-arm perspective X-ray image and the multi-view differentiable perspective simulation image as sample data to train a neural network model, and using the trained model to perform two-dimensional landmark point detection and two-dimensional bone tissue segmentation on the intraoperative C-arm perspective X-ray image;

[0064] Step S06: align the results of the three-dimensional landmark point detection and the three-dimensional bone tissue segmentation with the results of the two-dimensional landmark point detection and the two-dimensional bone tissue segmentation to obtain an alignment result output.

[0065] In this embodiment, in step S01, CT data obtained from a preoperative scan and a C-arm fluoroscopic X-ray image obtained from an intraoperative scan are first obtained. After obtaining the preoperative CT data and the intraoperative C-arm fluoroscopic X-ray image, the data is preprocessed. The preprocessing step specifically includes adjusting the window width and window level to select a region of interest, rotating part of the CT data to ensure that the CT data and the X-ray image are in the same direction, and cropping a specified number of pixels from the boundary of each X-ray image to remove artifact effects. Then, the pre-processed preoperative CT data is used for acetabular osteotomy planning. The acetabular osteotomy planning follows the intraoperative surgical bone chiseling path, and two types of fracture classifications can be used: simple or complex. Simple types include: posterior wall fracture (25%), posterior column fracture (3%~5%), anterior wall fracture (1%~2%), anterior column fracture (3%~5%), transverse fracture (5%~19%); complex types include: posterior column + posterior wall fracture (3%~4%), transverse + posterior wall fracture (20%), T-type fracture (7%), anterior column / wall + posterior semi-transverse fracture (7%), double column fracture (23%). Acetabular osteotomy planning can be any one or more combinations of the above fracture classifications.

[0066] In the specific application examples, the results of simple and complex types are as follows Figure 3 As shown, due to the different orientation angles of the X-ray images, the blue arrows represent the fracture lines of the osteotomy, the green arrows represent the osteotomy fragments, (a) to (e) correspond to simple posterior wall fractures (25%), posterior column fractures (3% to 5%), anterior wall fractures (1% to 2%), anterior column fractures (3% to 5%), and transverse fractures (5% to 19%), respectively, and (f) to (j) correspond to complex posterior column + posterior wall fractures (3% to 4%), transverse + posterior wall fractures (20%), T-type fractures (7%), anterior column / wall + posterior semi-transverse fractures (7%), and double column fractures (23%). Optionally, the osteotomy fragments can be fixed by volume modeling and implantation of screws / Kirschner wires / intraoperative tools, etc.

[0067] In this embodiment, in the process of three-dimensional landmark point detection and three-dimensional bone tissue segmentation in step S02, the three-dimensional landmark points specifically include the anterior superior iliac spine ASIS on the left and right sides, the center of the femoral head FH, the greater sciatic notch GSN, the inner edge of the obturator foramen IOF, the inner edge of the obturator foramen MOF, the suprapubic symphysis SPS and the inferior pubic symphysis IPS, etc.; the result of the three-dimensional bone tissue segmentation specifically includes the osteotomy block PAO, the left hemipelvis LHP, the right hemipelvis RHP, the left femur (LF), the right femur RF, the vertebrae, the sacrum and the background, etc.; the four landmark points of the anterior superior iliac spine ASIS and the suprapubic symphysis SPS on the left and right sides are used to construct the anterior pelvic plane (APP) coordinate system, which is used to estimate the standard anterior / posterior (AP) posture and serve as a reference coordinate system during alignment.

[0068] It is understandable that three-dimensional landmark detection and three-dimensional bone tissue segmentation can be implemented by using landmark detection algorithms and segmentation algorithms in the prior art. For example, deep learning can be used to implement landmark detection and segmentation. Three-dimensional landmark detection and bone tissue segmentation can also be implemented simultaneously by building a continuous learning framework. The specific detection and segmentation algorithms can be configured according to actual needs.

[0069] In this embodiment, after the three-dimensional bone tissue segmentation is performed in step S02, it also includes performing a three-dimensional bone tissue six-degree-of-freedom random rigid movement on the three-dimensional bone tissue segmentation result to obtain CT volume data with different six-degree-of-freedom postures. CT volume data is three-dimensional data formed by stacking multiple continuous two-dimensional CT images on the basis of CT data. The six-degree-of-freedom posture includes three-dimensional translation (movement on the x, y, and z axes) and three-dimensional rotation (rotation around the x, y, and z axes). The specific steps of performing a three-dimensional bone tissue six-degree-of-freedom random rigid movement on the three-dimensional bone tissue segmentation result include: performing independent random rotations on the four bone tissue parts of the osteotomy block, pelvis, left femur, and right femur obtained after segmentation on the three axes of X, Y, and Z of the CT coordinate system ( R x , R y , R z ) and random translation ( t x , t y , t z ), and set the constraint value of random rigid movement (i.e., the constraint value of registration), whose dimensions correspond to the angle and translation of the XYZ axis respectively. After the four bone tissue parts traverse the constraint values ​​respectively (i.e., set the constraint values ​​for the four bone tissue parts respectively), the CT volume data of multiple different six-degree-of-freedom postures are constructed.

[0070] In a specific application embodiment, the above method is used to perform three-dimensional landmark detection, three-dimensional bone tissue segmentation, and three-dimensional bone tissue six-degree-of-freedom random rigid movement to obtain the following results: Figure 4 As shown, (a) corresponds to the segmentation of three-dimensional CT data and the result of six-degree-of-freedom random rigid movement of three-dimensional bone tissue, and (b) corresponds to the anatomical structure of the pelvis, left and right femurs and osteotomy blocks in the preoperative perspective three-view image and a schematic diagram of 14 landmark points, with left (L) and right (R) representing the left / right side landmark points respectively, and each landmark point is covered as a sphere.

[0071] After the preoperative CT data is subjected to three-dimensional landmark detection and three-dimensional bone tissue segmentation, CT volume data of different six-degree-of-freedom postures are further acquired for multi-view differentiable perspective simulation to simulate perspective imaging from different perspectives. The multi-view differentiable perspective simulation in step S03 of this embodiment specifically implements fast multi-view differentiable perspective imaging on the acquired CT volume data of different six-degree-of-freedom postures through a differential engine, wherein the differential engine includes material decomposition, projection, attenuation, differentiable perspective, scattering estimation and noise injection operations, and approximates the perspective imaging process through a segmentation network. In the process of performing multi-view differentiable perspective simulation, an energy function for characterizing the effect of differentiable perspective simulation is constructed according to the following formula based on the process of differentiable perspective simulation, with the energy value E The energy function is solved with the goal of minimizing to obtain the optimal solution, so that the image generated by the preoperative CT data through differentiable perspective simulation is close to the real intraoperative X-ray image.

[0072] (1)

[0073] in, is a multi-directional and multi-view parameter. is the intraoperative C-arm parameter, is the gradient of the loss function of the imaging parameters of the differentiable perspective part, The energy function representing the material decomposition part after 3D bone tissue segmentation is used to measure the multi-class Dice loss of the deep segmentation network decomposing the 6-DOF CT volume material; Represents the material-aware and spectral-aware ray-traced forward projection, attenuated energy functions to measure the quality of material decomposition and spectral awareness; Represents the energy function of the scattering estimation part based on the neural network, which is used to measure the gap between the samples generated by the generator and the real data and guide the training process of the generator; Energy functions representing quantum and electronic readout noise to measure the quality of quantum noise and electronic noise; is the regularization term, as well as Respectively , , , and The weight coefficient of .

[0074] The energy function is to describe the actual effect that can be achieved by differentiable perspective simulation of preoperative CT data. This embodiment constructs the energy function according to the process of differentiable perspective simulation (material decomposition, projection, attenuation, differentiable perspective, scattering estimation, noise injection), and then takes the minimum energy as the goal. The smaller the energy, the smaller the variance between the image generated by differentiable perspective simulation of preoperative CT data and the real intraoperative X-ray image. That is, the projection operator P of multi-view differentiable perspective simulation is:

[0075] (2)

[0076] By solving the energy function, the parameters are , , , , , and The value of gets the optimal solution, so that the total energy function E Minimum, that is, the image generated by the differentiable perspective simulation of the preoperative CT data can be close to the real intraoperative X-ray image.

[0077] This embodiment constructs a projection pipeline including multi-view + six degrees of freedom (with constraint values), automatic differentiable perspective, introduction of intraoperative environment (intraoperative C-arm parameters, scattering predicted by neural network, quantum and electronic readout noise), and visualization display (adaptive grayscale upper limit + logarithmic transformation), combined with multi-view automatic differential perspective imaging and scattering and noise injection, to achieve a more comprehensive perspective simulation, thereby achieving ideal perspective of CT volume data and accurately simulating the physical process of X-rays penetrating the human body. Traditional image perspective methods cannot achieve the ideal perspective of six-degree-of-freedom posture CT. For example, traditional ray tracing methods cannot accurately simulate the physical process of X-rays penetrating the human body, and ignore the influence of factors such as scattering and quantum noise on imaging. Although the Monte Carlo method can simulate the process of photons interacting with human tissues and can model the attenuation and scattering of photons, it has high computational complexity, low efficiency, low generation efficiency, and a small number of generated images. Traditional machine learning-based projection methods usually predict scattering signals based on two-dimensional attenuation maps, require strict matching of preoperative perspective data and intraoperative images, and ignore the reaction of X-rays to human tissues in three-dimensional space. It lacks multi-view differentiable perspective, real intraoperative environment settings, and adaptive visualization.

[0078] like Figure 5 As shown, the detailed steps of performing multi-view differentiable perspective simulation in step S03 of this embodiment include:

[0079] Step S301. Decomposing 6-DOF CT volume materials using a deep segmentation network: Train a 3D bone-soft tissue-air segmentation network on the generated 6-DOF pose CT volume element patches, and generate a material mapping M ( x ), for each detected 3D landmark point x Assign a candidate material based on the material mapping of the 3D landmarks M ( x ) and human tissue density (i.e., CT value HU value (Hohns Unit) of bone tissue-soft tissue-air) guide the training and learning of the deep segmentation network to achieve the segmentation of air, soft tissue and bone in the CT volume.

[0080] This part corresponds to the projection operator P of the multi-view differentiable perspective simulation Due to the different attenuation levels during the projection process, this embodiment generates a material mapping M ( x ), for each detected 3D landmark point x A candidate material is assigned so that the identified “background” can be re-identified for air and soft tissue based on the three-dimensional bone tissue segmentation of the preoperative CT data. The skeleton includes osteotomy block, pelvis, left femur, right femur, vertebrae, and sacrum.

[0081] In a specific application embodiment, material mapping M ( x ) is:

[0082] (3)

[0083] Step S302. Ray tracing forward projection, attenuation ( ), Differentiable perspective: The specified parameters of the intraoperative C-arm Set to ray tracing forward projection parameters, according to the material mapping M ( x ) Calculate the detector position for each candidate material u Projection and attenuation are performed, and then differentiable perspective imaging is achieved through differential operations to obtain a differentiable projection domain image , and the projection domain image p ( u ) as the input of the scattering estimation network, where p 0( E ) is the X-ray spectral density, E is the photon energy, is the Kronecker delta function, l uThe source position of the projection and the projection operator simulated by multi-view differentiable perspective P Determined detector pixels u The three-dimensional ray between the three-dimensional coordinates of m ( E ) is the material and energy-dependent linear attenuation coefficient, and ρ(x) is derived from the HU value x The material density at the location, m Mapping for Materials M ( x ), specifically one of air, soft tissue and bone.

[0084] The ray tracing forward projection is the projection operator P of the multi-view differentiable perspective simulation. In a specific application embodiment, the ray tracing forward projection parameters Some important parameters of the intraoperative C-arm can be set, such as the size of the flat-panel detector (such as: 21CM×21CM, 30CM×30CM), the C-arm opening diameter, the rotation range of the C-arm frame along the track, the maximum output power, etc. When the segmentation network is available, each material has a detector position u The total attenuation degree is obtained by ray tracing Perform calculations.

[0085] The differentiable perspective part corresponds to the projection operator P of the multi-view differentiable perspective simulation. Part, used to realize automatic differentiable perspective imaging simulation. In this embodiment, the intersection position of the X-ray and the orthogonal plane constituting the CT volume can be calculated first. O The minimum and maximum values ​​of the calculated minimum and maximum values ​​correspond to the time when each X-ray enters and exits the CT volume, and all intersection positions are calculated. O The values ​​are sorted, and the sorted results can be used to speed up ray tracing and calculate the intersection positions according to the O The energy attenuation caused by the CT volume is calculated, and then the intensity of each pixel is calculated. Differentiable perspective imaging is achieved through differential operations to generate differentiable perspective simulation images.

[0086] Specifically, the intersection position can be calculated based on the Siddon algorithm O The minimum and maximum values ​​of , for all O Sort the values The Siddon algorithm uses space division and ray stepping to accelerate the ray tracing calculation process. The energy attenuation caused by the CT volume is calculated, where is the energy attenuation per unit volume, M Intersection positionO The number of. PyTorch is used as an accelerated tensor algebra library to calculate the intensity of each pixel, and a fast vectorized renderer ( ) automatically generates images and their derivatives, gradients and other parameters related to image geometric parameters, and uses derivatives and gradient parameters to further optimize the results. For example, when the segmentation label changes, the variance of the image gradient is recalculated, and the square root of the ratio of the gradient variance to the variance of the gradient values ​​in all registration stages is used as a weight adjustment factor to optimize the segmentation effect. Finally, differentiable perspective imaging is achieved through automatic differentiation.

[0087] Step S303. Scattering estimation ( ): Differentiable projection domain image The input is trained in a neural network, wherein a designated layer in the neural network is used to generate a scatter estimation, and after training, a differentiable perspective simulation image with a scatter estimation added thereto is obtained, namely, a scatter image.

[0088] This part corresponds to the projection operator P of the multi-view differentiable perspective simulation Specifically, Rayleigh, Compton, etc. scattering estimates can be generated by the first few layers of the neural network, and the latter layers use convolutional kernels and a single channel to ensure smoothness.

[0089] Considering that the actual scattering signal during surgery is the result of the synthesis of Compton, Rayleigh and other scattering, the traditional Monte Carlo method can simulate the process of photon interaction with human tissue and accurately model the attenuation and scattering of photons, but it has high computational complexity and low efficiency, and has the disadvantages of low generation efficiency and small number of generated images. Specifically, this embodiment adds the perspective image ( ) and Monte Carlo method to simulate and generate images ( ), which is input into the neural network in an unpaired manner. The entire network consists of two generators , and two discriminators , .in, The generator will Image grayscale correction is generated and Pseudo samples with consistent image grayscale , and the pseudo sample go through Generate and Similar new images ,Then The discriminator determines whether the input image is image, then generate the adversarial loss of simulated Monte Carlo image for:

[0090] (4)

[0091] in, and is the mathematical expectation operator, For The corresponding gradient penalty term is, for The weight of .

[0092] at the same time, The generator will Image grayscale correction is generated and Pseudo samples with consistent image grayscale , and the pseudo sample go through Generate and Similar new images ,Then The discriminator determines whether the input image is The adversarial loss for generating a perspective image without adding scatter estimation is:

[0093] (5)

[0094] in, For The corresponding gradient penalty term is, for The weight of .

[0095] The overall loss of the neural network is defined as ,in is the grayscale and structural consistency loss, for Through multiple adversarial training, the generator ( , ) and the discriminator ( , ) is continuously optimized, with the first few layers of the neural network generating Rayleigh, Compton, etc. estimates, and the latter layers using convolutional kernels and a single channel to ensure smoothness, ultimately generating a high-quality scattering image.

[0096] Step S304. Inject quantum and electronic readout noise ( ): Calculate the number of photons and perform quantum and electronic readout noise injection, For detector pixels, the noise signal is convolved with the blur kernel to associate the quantum noise of neighboring pixels;

[0097] This part corresponds to the projection operator P of the multi-view differentiable perspective simulation part. Due to beam hardening, the spectrum reaching any detector pixel is different. By convolving the read noise signal with the blur kernel to associate the quantum noise of adjacent pixels, the detector pixel crosstalk effect can be reduced to inject quantum and electronic read noise. Quantum noise is mainly determined by the intraoperative X-ray flow and the number of X-ray photons detected on the detector. Quantum noise obeys a Poisson distribution and is mainly subject to two factors: scanning mode and detector efficiency. Electronic noise is limited by the hardware system and is mainly generated by the detector photodiode, and electronic noise cannot be avoided. In order to make the multi-view differentiable perspective image more similar to the real intraoperative X-ray image, this embodiment further improves the simulation effect of the multi-view differentiable perspective image by adding quantum and electronic read noise to the multi-view differentiable perspective simulation image with added scatter estimation.

[0098] Specifically, by counting the number of photons received by each pixel of the detector panel N ( u ), add Gaussian noise As electronic noise, the readout noise of quantum sum electrons is calculated by the following formula:

[0099] (6)

[0100] in, P ( u ) is the Poisson generating function, E ( u ) is the average photon energy, is the number of photons from the X-ray source, which is determined by the X-ray tube voltage ( U )、Tube current( I )、Scanning speed( V )Decide, Ratio is the detector efficiency (the ratio of photons that are converted into effective signals when they leave the CT volume from the radiation source and reach the bottom detector), and are the weights of quantum noise and electronic noise respectively.

[0101] Step S306. According to the number of photons Will The result is used as the maximum grayscale upper limit of the image, and the generated differentiable perspective simulation image with added scattering estimation and noise is transformed logarithmically, and the three-dimensional constraint value of the XYZ axis direction of the CT reference coordinate system is set to obtain the final differentiable perspective simulation image of multiple viewing angles.

[0102] This part realizes visualization by setting an adaptive grayscale upper limit and logarithmic transformation. Specifically, the differentiable perspective simulation image generated in step S305 is firstly logarithmically transformed to compress the image dynamic range, and then the three-dimensional constraint value ( ), and finally obtain differentiable perspective simulation images with added scattering estimation and quantum and electronic readout noise at multiple perspectives, which can accurately simulate intraoperative X-ray images.

[0103] After realizing three-dimensional landmark point detection and three-dimensional bone tissue segmentation, this embodiment performs six-degree-of-freedom random rigid movement of the segmented four three-dimensional bone tissue parts, namely the osteotomy block, pelvis, left femur and right femur, in the three axes of XYZ of the CT coordinate system, and then obtains multi-view differentiable perspective simulation images through a differential engine hybrid design. Compared with traditional DRR imaging technology (such as ray tracing, Monte Carlo simulation, etc.), it can fully consider characteristic artifacts (such as beam hardening, complex noise, etc.) and differentiable characteristics, accurately simulate X-rays, and thus improve the accuracy and reliability of registration.

[0104] In step S04 of this embodiment, 14 two-dimensional landmark point detections and 8 types of two-dimensional bone tissue segmentation results can be simultaneously achieved during the operation by adopting a multi-task deep learning method. The two-dimensional landmark point detection is achieved by setting a landmark point heat map path, and the bone tissue segmentation is achieved by setting a segmentation path, wherein the two-dimensional landmark points include the anterior superior iliac spine (ASIS) on the left and right sides, the center of the femoral head (FH), the greater sciatic notch (GSN), the inner margin of the obturator foramen (IOF), the inner margin of the obturator foramen (MOF), the superior pubic symphysis (SPS) and the inferior pubic symphysis (IPS); the two-dimensional segmentation includes the osteotomy block (PAO), the left hemipelvis (LHP), the right hemipelvis (RHP), the left femur (LF), the right femur (RF), the vertebrae, the sacrum and the background.

[0105] In this embodiment, during the two-dimensional landmark detection and two-dimensional bone tissue segmentation, one of the predicted 2D landmark positions is used to calculate the initial anterior / posterior (AP) posture of the pelvis, and the projection regularization parameter is incorporated. R In Chinese, that is:

[0106] (7)

[0107] Among them, P is the projection operator of multi-view differentiable perspective simulation, that is:

[0108] in, Represents the registration stage, which includes pelvic registration , Left and right femur registration , osteotomy block registration and the stage of simultaneous registration optimization, For the i The three-dimensional landmark positions, For the i The three-dimensional landmark points correspond to the predicted two-dimensional landmark point positions, Indicates the use of i For 2D / 3D landmarks ( , ) determines the anterior / posterior position of the pelvis, where the part closer to the ventral side of the body is the anterior, and the part closer to the back of the body is the posterior (or dorsal). Represents the physical distance between image pixels (in mm), N represents the number of differentiable perspective simulation images created by preoperative CT, represents the square of the 2-norm, is the gradient of the imaging parameter loss function of the differentiable perspective imaging part, The energy function representing the material decomposition part after 3D bone tissue segmentation is used to measure the multi-class Dice loss of the deep segmentation network decomposing the 6-DOF CT volume material; The energy function representing the material-aware and spectral-aware ray-traced forward projection, attenuation, is used to measure the quality of material decomposition and spectral perception; The energy function representing the scattering estimation part based on the neural network is used to measure the gap between the samples generated by the generator and the real data and guide the training process of the generator; Energy functions representing quantum and electronic readout noise, used to measure the quality of quantum noise and electronic noise; is the regularization term, as well as Respectively , , , and The weight coefficient of .

[0109] Using segmentation results images for non-uniform similarity metrics Sim The patch weight in w , when the segmentation label (i.e., the label of segmentation success or failure) changes, the variance of the image gradient is recalculated, and the segmentation soft boundary is used for the regularization parameter In order to restrain and punish unreasonable attitudes, namely:

[0110]

[0111] (8)

[0112] in, P ( r ) means that all the available radii in the image are r A collection of Patch blocks, the shape of a single Patch is a square, and the coordinates of its Patch center are ( c r , c c ), the side length of the regular polygon of Patch is 2 r ; k and l They are P ( r )middle c r and c c The number of The segmentation results of the pelvis, left femur, right femur and osteotomy block respectively guide the registration weights in real time w The process calculates the variance of the image gradient and takes the square root of the ratio of the gradient variance to the variance of the gradient values ​​in all registration stages as the weight adjustment factor. The soft boundary representing the segmentation of the left and right femurs, that is, the boundary between the left and right femur segmentation categories is not clearly defined, allowing the existence of transition areas during segmentation.

[0113] like Figure 2 As shown in the figure, the pelvis is registered first, followed by the left and right femurs, then the osteotomy block, and finally the order of synchronization optimization. The pelvis area has the highest weight, followed by the left and right femurs, and the osteotomy block has the lowest weight. Therefore, the segmentation of the pelvis, left and right femurs, and osteotomy block also determines the patch weight. w .Right now:

[0114]

[0115] On the other hand, after the CT volume data of different six-degree-of-freedom postures are subjected to perspective simulation in real time to generate a series of perspective images, the edges overlapping with the expected mismatched positions are expanded and trimmed during registration, and further fed back to the adjustment of the six-degree-of-freedom posture. That is, the edge features dominate the registration process, and there will be changes in the segmentation labels at the edges of the bone tissue, and the changes in the segmentation labels correspond to changes in the registration process. In this embodiment, the variance of the image gradient is recalculated when the segmentation label changes, and the square root of the ratio of the gradient variance to the variance of the gradient values ​​in all registration stages is used as a weight adjustment factor. For the registration process in which the segmentation label changes, its weight is multiplied by its weight adjustment factor to obtain a new weight for the registration task.

[0116] Soft segmentation boundaries mean that the boundaries between segmentation categories are not clearly defined, allowing for transition areas to exist during segmentation. Figure 4 , there is no transition area between the left femur and the right femur, unless the segmentation fails or the prediction is false, which is an unreasonable posture and requires regularization parameters to constrain and punish.

[0117] In this embodiment, the pelvis is completed by a six-degree-of-freedom 2D / 3D registration pipeline ( θ p )、Left Femur( θ LF )、Right femur( θ RF ) and osteotomy blocks ( θ PAO ) relative to a single intraoperative 2D image I In the process of registering the results of 3D landmark detection and 3D bone tissue segmentation with the results of 2D landmark detection and 2D bone tissue segmentation, the rotation of each bone tissue in the XYZ axis of the CT coordinate system is calculated by constructing the following optimization problem: R x , R y , R z ) and pan( t x , t y , t z ):

[0118] (9)

[0119] in, D represents six degrees of freedom, Represents the registration stage, which includes pelvic registration , Left and right femur registration , osteotomy block registration and the stage of simultaneous registration optimization, N represents the number of differentiable perspective simulation images created by preoperative CT, I Intraoperative 2D images ,V It indicates the number of viewing angles when creating perspective simulation images with preoperative CT. P Represents a projection operator for multi-view differentiable perspective simulation, which combines differentiable operators, segmentation, projection, attenuation, scatter estimation, and noise injection. R is a regularization parameter used to penalize unreasonable postures, is the softmax function, representing the weight adjustment parameter, Sim Represents a patch-based non-uniform similarity metric between multi-view C-arm fluoroscopic simulation and 2D intraoperative fluoroscopic images. SimThe value of is the weighted sum of the normalized cross-correlations of the 2D image gradients computed over the image patch, SE(3) represents the three-dimensional Euclidean transformation matrix in SE3 Lie algebra, I 1 and I 2 is the image to be registered, S NCC Represents the calculation of the normalized cross-correlation NCC similarity on the derivatives of the Sobel X operator and the Sobel Y operator of the image to be registered. A single patch is represented by the center row c r , Center Column c c and radius r definition, P ( r ) is the set of all available patches in the image, k and l They are P ( r )middle c r and c c The number of w is the patch weight, , To use the Sobel operator, we take the derivative in the x and y directions.

[0120] The 2D / 3D registration pipeline of this embodiment uses the pre-processed preoperative CT data, CT 3D landmarks, CT 3D bone tissue segmentation and the 2D X-ray image to be registered, 2D landmarks and 2D bone tissue segmentation as registration input data, and calculates the pelvis ( θ p )、Left Femur( θ LF )、Right femur( θ RF ) and osteotomy blocks ( θ PAO ) relative to the posture registration of a single intraoperative 2D image. In the optimization process of 2D / 3D registration, the landmarks and segmentation of the 2D image are used for 2D / 3D registration at the same time. The six-dimensional constraint value of the optimization method is guided by the 2D / 3D feature point matching score. According to the registration priority of the pelvis, left femur, right femur, osteotomy block and all bone tissues, the rotation of each bone tissue in the three axes of XYZ in the CT coordinate system is obtained ( R x , R y , R z ) and pan( t x ,t y , t z ).

[0121] like Figure 6 As shown, in this embodiment, the detailed steps of step S05 for registering the results of 3D landmark point detection and 3D bone tissue segmentation with the results of 2D landmark point detection and 2D bone tissue segmentation include:

[0122] Step S501. Perform 2D / 3D feature point matching between the intraoperative X-ray image to be registered and the obtained multi-view differentiable perspective simulation image, and calculate the matching score according to the following formula: :

[0123]

[0124] One or more combinations of differential evolution methods, grid search methods, particle swarm optimization algorithms, covariance matrix adaptive evolution strategies, and quadratic approximate bounded optimization methods are used at multiple resolutions to achieve grayscale-based registration, and 2D / 3D feature point matching is performed between the intraoperative X-ray image to be registered in step S03 and the multi-view differentiable perspective simulation image in step S02.

[0125] Step S502: Determine the six-dimensional constraint value of the registration according to the calculated matching score.

[0126] Specifically, one or more combinations of optimization strategies such as differential evolution method, grid search method, etc. can be used to achieve initial pelvic registration at multiple resolutions.

[0127] Step S503. Perform initial pelvic registration. After the initial pelvic registration is completed, keep it fixed at the current posture estimate. Then perform initial registration on the left femur, right femur and osteotomy block. Finally, perform final synchronous optimization on the rigid postures of the pelvis, left femur, right femur and osteotomy block to achieve six-degree-of-freedom registration.

[0128] Specifically, the initial pelvic registration is first achieved using one or more combinations of optimization strategies such as differential evolution methods and grid search methods at multiple resolutions; after the pelvic registration is completed, it will remain fixed at its current posture estimate, and then the combination of optimization strategies will be used to start the initial registration of the left femur, right femur and osteotomy block. Among them, the six-degree-of-freedom components (i.e., translation components and rotation components) of the left femur, right femur and osteotomy block are estimated independently, and the femur registration only searches the three-dimensional space of rotation, and the center of rotation is fixed at the center of the ipsilateral femoral head. Finally, the optimization method is used to perform the final synchronous optimization of the rigid posture of the pelvis, left femur, right femur and osteotomy block to achieve six-degree-of-freedom registration.

[0129] Step S504: during the initial registration of the pelvis and the synchronous optimization of the pelvis, the pelvis regularization is calculated using the following formula: , to penalize the failure to project at least one femoral head center within the 2D image boundary and an osteotomy block , place the femoral head center and osteotomy block behind the detector or away from the X-ray source The distance is less than the preset threshold, or the lower mark point in the image is projected onto the upper mark point Situation:

[0130]

[0131] in, is a regularization that penalizes untrustworthy poses, Represents the pelvis, Represents the bone tissue to be registered, FH, ASIS, IOF, SPS and IPS represent the center of the femoral head, the anterior superior iliac spine, the obturator foramen inner edge landmark, the superior pubic symphysis and the inferior pubic symphysis, respectively, and left and right represent left and right, respectively.

[0132] like Figure 2 As shown, the present embodiment obtains preoperative CT data for preprocessing such as determining the region of interest and rotating the data to ensure consistency with the direction of the X-ray image, performs acetabular osteotomy planning, three-dimensional landmark detection and bone tissue segmentation on the preprocessed data in a simple or complex manner, and independently rotates and translates the osteotomy block, pelvis, left femur, and right femur, performs three-dimensional bone tissue six-degree-of-freedom random rigid movement, and obtains CT data with six-degree-of-freedom posture after random movement, three-dimensional segmentation results, and three-dimensional landmark detection results; performs multi-view differentiable perspective simulation based on the segmentation results to obtain a multi-view differentiable perspective image; performs preprocessing such as determining the region of interest and removing artifacts on the intraoperative X-ray image, and compares a portion of the preprocessed data with the multi-view differentiable perspective image. The perspective images are used as training data to train the multi-task deep learning model, and the preprocessed intraoperative X-ray images are used to detect two-dimensional landmark points and segment the two-dimensional bone tissue to obtain the two-dimensional landmark points and two-dimensional bone tissue segmentation results of the X-ray image to be registered; the intraoperative X-ray image to be registered is matched with the obtained multi-view differentiable perspective simulation image for 2D / 3D feature points, and the six-dimensional constraint value of the registration is determined according to the matching score, and the initial pelvic registration is performed. After the initial pelvic registration is completed, it is kept fixed at the current posture estimation value, and then the left femur, right femur and osteotomy block are initially registered, and then the rigid postures of the pelvis, left femur, right femur and osteotomy block are finally synchronously optimized to achieve six-degree-of-freedom registration, and the pelvic regularization is calculated during the initial registration of the pelvis and the synchronous optimization of the pelvis. In order to penalize unreasonable postures, after optimization, the final registration result is output, and the rotation (Rx, Ry, Rz) and translation (tx, ty, tz) of the four three-dimensional bone tissue parts of the osteotomy block, pelvis, left femur and right femur in the XYZ three axes of the CT coordinate system are obtained.

[0133] Through the above method, this embodiment can quickly and accurately calculate the rotation (Rx, Ry, Rz) and translation (tx, ty, tz) of the four three-dimensional bone tissue parts of the osteotomy block, pelvis, left femur and right femur after segmentation of the preoperative CT image in the XYZ three axes of the CT coordinate system, and effectively realize the alignment of the preoperative CT data and the intraoperative C-arm fluoroscopic X-ray image during acetabular osteotomy.

[0134] The experimental results of 2D / 3D registration of acetabular periarthrosis obtained in the specific application example are as follows: Figure 7 Wherein (a)-(d) correspond to the registration results of the pelvis, left and right femurs, osteotomy blocks, and synchronous optimization, respectively; They correspond to the 3D CT postures of the pelvis, left and right femurs, osteotomy blocks, and synchronous optimization registration results. Figure 7 It can be seen that the present invention can accurately perform 2D / 3D registration of various bone tissues in periacetabular osteotomy.

[0135] This embodiment also provides an image registration device for periacetabular osteotomy, comprising:

[0136] Data acquisition module, used to acquire preoperative CT data and intraoperative C-arm fluoroscopic X-ray images;

[0137] 3D detection and segmentation module, used for 3D landmark detection and 3D bone tissue segmentation of preoperative CT data;

[0138] A multi-view differentiable perspective simulation module is used to perform multi-view differentiable perspective simulation operations on CT volume data of different six-degree-of-freedom positions, so that the preoperative CT data is close to the intraoperative C-arm perspective X-ray image, and a multi-view differentiable perspective simulation image is obtained. The multi-view differentiable perspective simulation operation includes sequentially performing material decomposition, projection, attenuation, differentiable perspective, scattering estimation and noise injection on the CT volume data of different six-degree-of-freedom positions. Material decomposition is to segment the air, soft tissue and bone in the CT volume. Projection is to project each candidate material to a specified detector position to obtain a projection domain image. Attenuation is to attenuate the projected image to a specified size. Differentiable perspective is to make the projection domain image have differential characteristics through differential operations. Scattering estimation is to perform scattering estimation on the differentiable projection domain image to obtain a differentiable perspective simulation image with added scattering estimation. Noise injection is to inject quantum and electronic readout noise.

[0139] A two-dimensional detection and segmentation module, used to use the intraoperative C-arm perspective X-ray image and the multi-view differentiable perspective simulation image as sample data to train a neural network model, and use the trained model to perform two-dimensional landmark point detection and two-dimensional bone tissue segmentation on the intraoperative C-arm perspective X-ray image;

[0140] The registration module is used to register the results of three-dimensional landmark point detection and three-dimensional bone tissue segmentation with the results of two-dimensional landmark point detection and two-dimensional bone tissue segmentation to obtain a registration result output.

[0141] The image registration device for periacetabular osteotomy in this embodiment corresponds one to one with the above-mentioned image registration method for periacetabular osteotomy, and will not be described in detail here.

[0142] This embodiment further provides a terminal device, including a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to execute the computer program to perform the above method.

[0143] It is understandable that the above method of this embodiment can be executed by a single device, such as a computer or server, etc., and can also be applied to a distributed scenario and completed by multiple devices in cooperation with each other. In the case of a distributed scenario, one of the multiple devices can only execute one or more steps in the above method of this embodiment, and multiple devices interact to complete the above method. The processor can be implemented in the form of a general-purpose CPU, a microprocessor, an application-specific integrated circuit, or one or more integrated circuits, etc., for executing related programs to implement the above method of this embodiment. The memory can be implemented in the form of a read-only memory ROM, a random access memory RAM, a static storage device, and a dynamic storage device. The memory can store an operating system and other applications. When the above method of this embodiment is implemented by software or firmware, the relevant program code is stored in the memory and called and executed by the processor.

[0144] This embodiment further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above method is implemented.

[0145] Those skilled in the art should understand that the above-mentioned embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. 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 produce 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 process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0146] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment, it is not intended to limit the present invention. Therefore, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the scope of protection of the technical solution of the present invention.

Claims

1. An image registration method for periacetabular osteotomy, characterized in that the steps include: Obtain preoperative CT data and intraoperative C-arm fluoroscopic X-ray images; Performing three-dimensional landmark detection and three-dimensional bone tissue segmentation on the preoperative CT data; Perform six-degree-of-freedom random rigid movement on the three-dimensional bone tissue segmentation results of preoperative CT data to obtain CT volume data with different six-degree-of-freedom postures; A multi-view differentiable perspective simulation operation is performed on the CT volume data of different six-degree-of-freedom positions, so that the preoperative CT data is close to the intraoperative C-arm perspective X-ray image, and a multi-view differentiable perspective simulation image is obtained. The multi-view differentiable perspective simulation operation includes sequentially performing material decomposition, projection, attenuation, differentiable perspective, scattering estimation and noise injection on the CT volume data of different six-degree-of-freedom positions. The material decomposition is to segment the air, soft tissue and bone in the CT volume. The projection is to project each candidate material to a specified detector position to obtain a projection domain image. The attenuation is to attenuate the projected image to a specified size. The differentiable perspective is to make the projection domain image have differential characteristics through a differential operation. The scattering estimation is to perform scattering estimation on the differentiable projection domain image to obtain a differentiable perspective simulation image with a scattering estimation added thereto. The noise injection is to inject quantum and electronic readout noise. The differentiable perspective is to calculate the intersection position of the X-ray and the orthogonal plane constituting the CT volume. O The minimum and maximum values ​​of the calculated minimum and maximum values ​​correspond to the time when each X-ray enters and exits the CT volume, and all intersection positions are calculated. O Sort the values ​​according to all the intersection positions O Calculate the energy attenuation caused by the CT volume, then calculate the intensity of each pixel, and realize differentiable perspective imaging through differential operation to generate differentiable perspective simulation images; The intraoperative C-arm perspective X-ray image and the multi-view differentiable perspective simulation image are used as sample data to train a neural network model, and the trained model is used to perform two-dimensional landmark point detection and two-dimensional bone tissue segmentation on the intraoperative C-arm perspective X-ray image; The results of the three-dimensional landmark point detection and three-dimensional bone tissue segmentation are registered with the results of the two-dimensional landmark point detection and two-dimensional bone tissue segmentation to obtain a registration result output.

2. The image registration method for periacetabular osteotomy according to claim 1, characterized in that: In the process of performing multi-view differentiable perspective simulation, an energy function for characterizing the differentiable perspective simulation effect is constructed according to the following formula: E Solving the energy function with the minimum as the goal to obtain the optimal solution; in, is a multi-directional and multi-view parameter. is the intraoperative C-arm parameter, is the gradient of the loss function of the imaging parameters of the differentiable perspective part, The energy function representing the material decomposition part after 3D bone tissue segmentation is used to measure the multi-class Dice loss of the deep segmentation network decomposing the 6-DOF CT volume material; Represents the material-aware and spectral-aware ray-traced forward projection, attenuated energy functions to measure the quality of material decomposition and spectral awareness; Represents the energy function of the scattering estimation part based on the neural network, which is used to measure the gap between the samples generated by the generator and the real data and guide the training process of the generator; Energy functions representing quantum and electronic readout noise to measure the quality of quantum noise and electronic noise; is the regularization term, , , , as well as Respectively , , , and The weight coefficient of .

3. The image registration method for periacetabular osteotomy according to claim 1, characterized in that: The steps of performing multi-view differentiable perspective simulation operation include: Deep segmentation network decomposition of 6DOF CT volume material: Train the 3D bone-soft tissue-air segmentation network on the generated 6DOF pose CT volume element patches. During the training process, a material map is generated. M ( x ), for each detected 3D landmark point x Assign a candidate material based on the 3D landmarks x Material Mapping M ( x ) and human tissue density guide the training of deep segmentation networks to segment air, soft tissue and bone in CT volumes; Ray tracing forward projection, attenuation, and differentiable perspective: specifying parameters of the intraoperative C-arm Set to ray tracing forward projection parameters, according to the material mapping M ( x ) calculates each candidate material pair for the detector pixel as u The position is projected and attenuated, and then the differentiable perspective imaging is realized through differential operation to obtain the differentiable projection domain image , and the projection domain image p ( u ) as the input of the scattering estimation network, where p 0( E ) is the X-ray spectral density, E is the photon energy, is the Kronecker delta function, l u The projection source position and multi-view differentiable perspective simulation projection operator P Determined detector pixels u The three-dimensional ray between the three-dimensional coordinates of m ( E ) is the material and energy-dependent linear attenuation coefficient, and ρ(x) is derived from the HU value x The material density at the location, m Mapping for Materials M ( x ) Scattering estimation: Projection domain image Inputting the image into a neural network for training, wherein a designated layer in the neural network is used to generate a scattering estimate, and after training, a differentiable perspective simulation image with the scattering estimate added thereto is obtained; Injected quantum and electronic readout noise: counting photons According to the number of photons Calculate the readout noise of quantum and electrons, For detector pixels, adding quantum and electronic readout noise to the generated differentiable perspective simulated image with added scattering estimation, to obtain a differentiable perspective simulated image with added scattering estimation and noise; According to the photon number Will The result is used as the maximum grayscale upper limit of the image, and the generated differentiable perspective simulation image with added scattering estimation and noise is subjected to image logarithmic transformation, and the three-dimensional constraint value in the XYZ axis direction of the CT reference coordinate system is set to obtain the final differentiable perspective simulation image of multiple viewing angles.

4. The image registration method for periacetabular osteotomy according to claim 1, characterized in that: During the two-dimensional landmark detection and two-dimensional bone tissue segmentation, one of the predicted two-dimensional landmark positions is used to calculate the initial anterior-posterior posture of the pelvis and is incorporated into the projection regularization parameter R, namely: Among them, P is the projection operator of multi-view differentiable perspective simulation, represents the registration stage, which includes pelvic registration , Left and right femur registration , osteotomy block registration and the stage of simultaneous registration optimization, For the i The three-dimensional landmark positions, For the i The three-dimensional landmark points correspond to the predicted two-dimensional landmark point positions, Indicates the use of i For 2D / 3D landmarks ( , ) determines the anterior / posterior posture of the pelvis, represents the physical distance between image pixels, N represents the number of differentiable perspective simulation images created by preoperative CT, represents the square of the 2-norm; Using segmentation results images for non-uniform similarity metrics Sim The patch weight in w , recalculate the variance of the image gradient when the segmentation label changes, and use the segmentation soft boundary for the regularization parameter In order to restrain and punish unreasonable attitudes, namely: in, P ( r ) means that all the available radii in the image are r A collection of Patch blocks, the shape of a single Patch is a square, and the center coordinates of the Patch are ( c r , c c ), the side length of the regular polygon of Patch is 2 r ; k and l They are P ( r ) in the center row c r , Center Column c c The number of The segmentation results of the pelvis, left femur, right femur and osteotomy block respectively guide the registration weights in real time w Changes are made by calculating the gradient variance of the image and taking the square root of the ratio of the calculated gradient variance to the variance of the gradient values ​​in all registration stages as the weight adjustment factor. Soft boundary representing the segmentation of the left and right femurs.

5. The image registration method for periacetabular osteotomy according to claim 1, characterized in that: In the process of performing three-dimensional landmark point detection and three-dimensional bone tissue segmentation, the three-dimensional landmark points include the anterior superior iliac spine ASIS on the left and right sides, the center of the femoral head FH, the greater sciatic notch GSN, the inner edge of the obturator foramen IOF, the inner edge of the obturator foramen MOF, the suprapubic symphysis SPS and the inferior pubic symphysis IPS; the result of the three-dimensional bone tissue segmentation includes the osteotomy block PAO, the left hemipelvis LHP, the right hemipelvis RHP, the left femur LF, the right femur RF, the vertebrae, the sacrum and the background; the four landmark points of the anterior superior iliac spine ASIS and the suprapubic symphysis SPS on the left and right sides are used to construct the pelvic anterior plane coordinate system for estimating the standard anterior / posterior posture and as a reference coordinate system during alignment.

6. The image registration method for periacetabular osteotomy according to any one of claims 1 to 5, characterized in that: The CT volume data of different six-degree-of-freedom positions are obtained by performing six-degree-of-freedom random rigid movement of the three-dimensional bone tissue segmentation result, and the steps include: performing independent random rotations on the three axes of X, Y, and Z of the CT coordinate system on the four bone tissue parts of the segmented osteotomy block, pelvis, left femur, and right femur respectively. R x , R y , R z ) and random translation ( t x , t y , t z ), and set the constraint value of random rigid movement, and the four bone tissue parts traverse the constraint value respectively to construct a plurality of CT volume data with different six-degree-of-freedom postures.

7. The image registration method for periacetabular osteotomy according to claim 6, characterized in that: In the process of registering the results of the three-dimensional landmark detection and three-dimensional bone tissue segmentation with the results of the two-dimensional landmark detection and two-dimensional bone tissue segmentation, the rotation of each bone tissue in the three axes of XYZ of the CT coordinate system is calculated by constructing the following optimization problem: R x , R y , R z ) and pan( t x , t y , t z ): in, D represents six degrees of freedom, represents the registration stage, which includes pelvic registration , Left and right femur registration , osteotomy block registration and the stage of simultaneous registration optimization, N represents the number of differentiable perspective simulation images created by preoperative CT, I Intraoperative 2D images ,V It indicates the number of viewing angles when creating perspective simulation images with preoperative CT. P represents the projection operator for multi-view differentiable perspective simulation, R is a regularization parameter used to penalize unreasonable postures, is the softmax function, Sim Represents a patch-based non-uniform similarity metric between multi-view differentiable perspective simulation and 2D intraoperative perspective images. Sim The value of is the weighted sum of the normalized cross-correlations of the 2D image gradients computed over the image patch, SE(3) represents the three-dimensional Euclidean transformation matrix in SE3 Lie algebra, I 1 and I 2 is the image to be registered, S NCC Represents the calculation of the normalized cross-correlation NCC similarity on the derivatives of the Sobel X operator and the Sobel Y operator of the image to be registered. A single patch is represented by the center row c r , Center Column c c and radius r definition, P ( r ) is the set of all available patches in the image, k and l They are P ( r )middle c r and c c The number of w is the patch weight, , To use the Sobel operator, we take the derivative in the x and y directions.

8. The image registration method for periacetabular osteotomy according to any one of claims 1 to 5, characterized in that: The step of registering the results of the three-dimensional landmark point detection and three-dimensional bone tissue segmentation with the results of the two-dimensional landmark point detection and two-dimensional bone tissue segmentation comprises: The intraoperative X-ray image to be registered is matched with the obtained multi-view differentiable perspective simulation image for 2D / 3D feature points, and the matching score is calculated according to the following formula: : Determining a constraint value of the registration according to the calculated matching score; Perform initial pelvic registration. After the initial pelvic registration is completed, keep it fixed at the current posture estimate. Then perform initial registration of the left femur, right femur and osteotomy block. Finally, perform final synchronous optimization of the rigid posture of the pelvis, left femur, right femur and osteotomy block to achieve six-degree-of-freedom registration. During the initial registration of the pelvis and the simultaneous optimization of the pelvis, the pelvis regularization is calculated using the following formula: , to penalize the failure to project at least one femoral head center within the 2D image boundary and an osteotomy block , place the femoral head center and osteotomy block behind the detector or at a distance from the X-ray source less than a preset threshold , or project the lower marker point in the image onto the upper marker point Situation: in, is a regularization that penalizes untrustworthy poses, Represents the pelvis, Represents the bone tissue to be registered, FH, ASIS, IOF, SPS and IPS represent the center of the femoral head, the anterior superior iliac spine, the obturator foramen inner edge landmark, the superior pubic symphysis and the inferior pubic symphysis, respectively, and left and right represent left and right, respectively.

9. A terminal device, comprising a processor and a memory, wherein the memory is used to store a computer program, characterized in that: The processor is configured to execute the computer program to perform the method according to any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.