Knee joint point cloud registration method and device, electronic equipment and storage medium
By iteratively updating the registration matrix in the point cloud registration network and combining global and local feature extraction, the point cloud registration of the knee joint is optimized, which solves the problem of the accuracy of detailed features of the knee joint, improves the accuracy of registration, simplifies the process, and is suitable for knee joint surgery planning.
Patent Information
- Application Number
- CN202311853648.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-12-28
AI Technical Summary
The accuracy of point cloud registration for the knee joint in the existing technology is low, especially for detailed features of the knee joint, where the point cloud registration deviation is large.
By iteratively updating the registration matrix in the point cloud registration network, combining global and local feature extraction, and using the feature extraction sub-network and matrix prediction sub-network to stitch and compute feature maps, the registration matrix is gradually optimized until the preset conditions are met.
It improves the accuracy of knee joint point cloud registration, simplifies the point cloud registration process, and enables better localization and identification of the knee joint, assisting doctors in surgical planning.
Smart Images

Figure CN117934566B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical imaging technology, and in particular to a method, apparatus, electronic device, and storage medium for knee joint point cloud registration. Background Technology
[0002] With the popularization of medical equipment and the development of AI technology, knee joint point cloud registration algorithms based on deep learning have begun to emerge in the medical field.
[0003] In clinical applications, due to the diversity of knee joint lesions in patients, such as fractures, femoral head necrosis, and arthritis, there is a large uncertainty in the error of knee joint point cloud registration. The accuracy of knee joint point cloud registration is uncertain, especially for detailed features of the knee joint, where the deviation of point cloud registration is large.
[0004] Therefore, how to accurately perform point cloud registration for the knee joint has become an urgent technical problem to be solved. Summary of the Invention
[0005] This invention provides a knee joint point cloud registration method, apparatus, electronic device, and storage medium to address the shortcomings of low accuracy in existing knee joint point cloud registration and improve the accuracy of knee joint point cloud registration.
[0006] In a first aspect, the present invention provides a knee joint point cloud registration method, comprising:
[0007] The registration matrix is input into the point cloud registration network, which repeats the following steps until the preset registration conditions are met, and the point cloud registration result is obtained:
[0008] Based on the registration matrix, the source point cloud is transformed to obtain the transformed source point cloud;
[0009] Global feature extraction is performed on the source point cloud and the target point cloud to obtain a first global feature map and a second global feature map.
[0010] Based on the first global feature map and the first local feature map, a first fused feature map is determined, wherein the first local feature map is calculated based on the first global feature map in the previous iteration;
[0011] Based on the second global feature map and the second local feature map, a second fused feature map is determined. The second local feature map is calculated based on the second global feature map in the previous iteration.
[0012] Based on the first fusion feature map and the second fusion feature map, after determining the registration feature map, the registration matrix is updated using the registration matrix corresponding to the registration feature map.
[0013] The present invention provides a knee joint point cloud registration method.
[0014] The step of determining the registration feature map based on the first fused feature map and the second fused feature map includes:
[0015] The first fused feature map, the second fused feature map, and the first global feature map are concatenated to obtain the first concatenated feature map;
[0016] The second fused feature map, the first fused feature map, and the second global feature map are concatenated to obtain the second concatenated feature map;
[0017] The first and second spliced feature maps are extracted using a feature extraction sub-network to obtain a first feature map and a second feature map. The feature extraction sub-network includes a convolutional layer, a normalization layer and a linear rectified layer.
[0018] Based on the first feature map and the second feature map, a registration feature map is determined.
[0019] A knee joint point cloud registration method provided by the present invention,
[0020] The step of determining the registration feature map based on the first feature map and the second feature map includes:
[0021] The first feature map and the second feature map are added together to obtain the fused point cloud feature map;
[0022] Perform a dot product operation on the first feature map and the first local feature map to obtain the first mask fusion feature map;
[0023] The first mask fusion feature map is input into the first mask extraction sub-network to obtain the third local feature map and the source point cloud registration feature map output by the first mask extraction sub-network. The first local feature map is updated using the third local feature map.
[0024] Perform a dot product operation on the second feature map and the second local feature map to obtain the second mask fusion feature map;
[0025] The second mask fusion feature map is input into the second mask extraction sub-network to obtain the fourth local feature map and the target point cloud registration feature map output by the second mask extraction sub-network. The second local feature map is updated using the fourth local feature map.
[0026] The fused point cloud feature map, the source point cloud registration feature map, and the target point cloud registration feature map are added together to obtain the registration feature map.
[0027] A knee joint point cloud registration method provided by the present invention,
[0028] The first mask extraction sub-network extracts mask features from the first mask fusion feature map based on the following steps:
[0029] The first mask fusion feature map is input into the first convolutional layer in the first mask extraction sub-network to obtain the first feature extraction result output by the first convolutional layer. The kernel size of the first convolutional layer is 1*1.
[0030] The first feature extraction result is input into the second convolutional layer in the first mask extraction sub-network to obtain the second feature extraction result output by the second convolutional layer. The kernel size of the second convolutional layer is 3*3.
[0031] The second feature extraction result is input into the third convolutional layer in the first mask extraction sub-network to obtain the third local feature map output by the third convolutional layer. The kernel size of the third convolutional layer is 3*3.
[0032] The first feature extraction result, the second feature extraction result, and the third local feature map are concatenated to obtain a mask concatenated feature map.
[0033] The source point cloud registration feature map is obtained by performing a dot product operation on the mask fusion feature map and the first local feature map.
[0034] A knee joint point cloud registration method provided by the present invention,
[0035] The registration matrix corresponding to the registration feature map is determined based on the following steps:
[0036] The registration feature map is input into the first prediction unit in the matrix prediction sub-network to obtain the first prediction result output by the first prediction unit. The first prediction unit includes a multilayer perceptron, a layer normalization layer and a linear rectifier layer.
[0037] The first prediction result is downsampled to obtain the first downsampled feature;
[0038] The first downsampled feature is input into the second prediction unit in the matrix prediction sub-network to obtain the second prediction result output by the second prediction unit. The second prediction unit includes a multilayer perceptron, a layer normalization layer and a linear rectifier layer.
[0039] The second prediction result is downsampled to obtain the second downsampled feature;
[0040] The second downsampled feature is input into the third prediction unit in the matrix prediction sub-network to obtain the third prediction result output by the third prediction unit. The third prediction unit includes a multilayer perceptron, a layer normalization layer and a linear rectifier layer.
[0041] The third prediction result is downsampled to obtain the registration matrix.
[0042] A knee joint point cloud registration method provided by the present invention,
[0043] The first global feature map is obtained by performing global feature extraction on the transformed source point cloud based on the following steps:
[0044] The transformed source point cloud is input into the first unit of the global feature extraction sub-network to obtain the first intermediate feature map output by the first unit. The first unit includes a convolutional layer, a batch normalization layer and a Gaussian linear rectified layer.
[0045] The first intermediate feature map is input into the second unit of the global feature extraction sub-network to obtain the second intermediate feature map output by the second unit. The second unit includes multiple feature extraction sub-units connected in sequence. The second intermediate feature map is obtained by splicing the output feature maps of each feature extraction sub-unit. Each feature extraction sub-unit includes a multilayer perceptron, a layer normalization layer and a Gaussian linear rectifier layer.
[0046] The second intermediate feature map is input into the third unit of the global feature extraction sub-network to obtain the first global feature map output by the second unit. The third unit includes a convolutional layer, a pooling layer, a batch normalization layer, and a Gaussian linear rectified layer.
[0047] Secondly, the present invention also provides a knee joint point cloud registration device, comprising:
[0048] The registration module is used to input the registration matrix into the point cloud registration network. The point cloud registration network repeatedly performs the following steps until the preset registration conditions are met to obtain the point cloud registration result:
[0049] Based on the registration matrix, the source point cloud is transformed to obtain the transformed source point cloud;
[0050] Global feature extraction is performed on the source point cloud and the target point cloud to obtain a first global feature map and a second global feature map.
[0051] Based on the first global feature map and the first local feature map, a first fused feature map is determined, wherein the first local feature map is calculated based on the first global feature map in the previous iteration;
[0052] Based on the second global feature map and the second local feature map, a second fused feature map is determined. The second local feature map is calculated based on the second global feature map in the previous iteration.
[0053] Based on the first fusion feature map and the second fusion feature map, after determining the registration feature map, the registration matrix is updated using the registration matrix corresponding to the registration feature map.
[0054] Thirdly, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of any of the above-described knee joint point cloud registration methods.
[0055] Fourthly, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the knee joint point cloud registration method as described above.
[0056] Fifthly, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described knee joint point cloud registration methods.
[0057] The knee joint point cloud registration method, apparatus, electronic device, and storage medium provided by this invention input a registration matrix into a point cloud registration network. The point cloud registration network repeatedly executes the following steps until a preset registration condition is met to obtain a point cloud registration result: Based on the registration matrix, the source point cloud is transformed to obtain a transformed source point cloud; global feature extraction is performed on the transformed source point cloud and the target point cloud to obtain a first global feature map and a second global feature map; based on the first global feature map and the first local feature map, a first fusion feature map is determined, wherein the first local feature map is calculated based on the first global feature map in the previous iteration; based on the second global feature map and the second local feature map, a second fusion feature map is determined, wherein the second local feature map is calculated based on the second global feature map in the previous iteration; after determining the registration feature map based on the first fusion feature map and the second fusion feature map, the registration matrix is updated using the registration matrix corresponding to the registration feature map. By fusing global and local features to extract spatial features from point clouds, the extracted feature maps contain both global and local information. This allows for point cloud registration based on the feature maps to take both global and local information into account, improving the accuracy of the registration results. This facilitates subsequent localization, segmentation, and identification of the knee joint based on the point cloud registration results, assisting doctors in planning knee joint surgery. Furthermore, since the knee joint point cloud registration method provided in this application can iteratively update the registration matrix, the registration matrix can be pre-initialized to a set value and gradually updated through subsequent iterations. During initial registration, coarse registration is not required, simplifying the point cloud registration process. Attached Figure Description
[0058] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0059] Figure 1 This is a flowchart illustrating the knee joint point cloud registration method provided by the present invention;
[0060] Figure 2 This is a schematic diagram of the point cloud registration network provided by the present invention;
[0061] Figure 3 This is a schematic diagram of the structure of the global feature extraction subnetwork provided by the present invention;
[0062] Figure 4 This is a schematic diagram of the mask extraction sub-network provided by the present invention;
[0063] Figure 5 This is a schematic diagram of the knee joint point cloud registration device provided by the present invention;
[0064] Figure 6 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0065] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0066] It should be noted that in the description of the embodiments of the present invention, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. The terms "upper," "lower," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. Unless otherwise expressly specified and limited, the terms "installed," "connected," and "linked" should be interpreted broadly, for example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two elements. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0067] The terms "first," "second," etc., used in this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, without limiting the number of objects; for example, a first object can be one or more. Furthermore, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects have an "or" relationship.
[0068] The following is combined Figures 1-5 This invention describes the knee joint point cloud registration method and apparatus provided in the embodiments of the present invention.
[0069] Figure 1 This is a flowchart illustrating the knee joint point cloud registration method provided by the present invention, as shown below. Figure 1 As shown, including but not limited to the following steps:
[0070] S110 inputs the registration matrix into the point cloud registration network.
[0071] It should be noted that the execution subject of the knee joint point cloud registration method provided in this application embodiment can be a knee joint point cloud registration device. The knee joint point cloud registration device can be program software or a medium storing relevant computer programs, such as a USB flash drive; or, the knee joint point cloud registration device can also be a physical device that integrates or installs relevant computer programs, such as a chip, a smart terminal, a computer, a server, etc.
[0072] The following embodiments are illustrated in the context of knee joint detection. The point cloud data obtained after scanning the knee joint is the source point cloud. The source point cloud and the target point cloud are registered to obtain a registration matrix that represents the relative positional relationship between the source point cloud and the target point cloud. The registration matrix includes a rotation transformation q and a translation transformation t. The registration matrix is applied to the source point cloud, that is, the source point cloud is rotated and translated based on the registration matrix. The resulting transformed point cloud largely coincides with the target point cloud.
[0073] In one embodiment, initially, the relative positions of the source and target point clouds are completely unknown. A registration matrix can be quickly estimated using a coarse registration method, providing initial values for the rotation transformation q and translation transformation t. After transforming the source point cloud based on this registration matrix, the resulting point cloud can be roughly aligned with the target point cloud. It is understood that the coarse registration method used here is not limited and can be selected according to actual usage requirements, such as ICP registration, RANSAC registration, 4PCS algorithm, etc.
[0074] In another embodiment, since the knee joint point cloud registration method provided in this application can iteratively update the registration matrix, the registration matrix can be pre-initialized to a set value, and the registration matrix can be gradually updated through subsequent loop iterations.
[0075] S120, Based on the registration matrix, the source point cloud is transformed to obtain the transformed source point cloud.
[0076] Here, the point cloud registration network repeatedly executes S130-S170 until the preset registration conditions are met, and the point cloud registration result is obtained.
[0077] In some embodiments, the preset registration condition is the number of iterations. That is, when the number of iterations of S130-S170 reaches the preset number of iterations, the loop execution of S130-S170 is stopped, and the final point cloud registration result is obtained.
[0078] In other embodiments, the preset registration condition is that the error meets a preset error range. That is, when the loss error between the source point cloud and the target point cloud is within the preset error range after the source point cloud is transformed based on the registration matrix, the loop execution of S130-S170 is stopped, and the final point cloud registration result is obtained.
[0079] Here, in the first round of iteration, the registration matrix is the one input to the point cloud registration network in S110; the registration matrix in subsequent iterations is the one obtained in the previous round of iteration.
[0080] Figure 2 This is a schematic diagram of the point cloud registration network provided by the present invention, as shown below. Figure 2 As shown, {q i-1 ,t i-1} is the registration matrix obtained from the previous iteration. For the first iteration, it is the registration matrix obtained from coarse registration. Based on the registration matrix {q i-1 ,t i-1 The source point cloud X is transformed to obtain the transformed source point cloud X'.
[0081] S130, global feature extraction is performed on the source point cloud and the target point cloud to obtain a first global feature map and a second global feature map.
[0082] like Figure 2 As shown, the Global Feature Extraction Subnetwork (GFEM) is used to extract global features from the transformed source point cloud X' to obtain the first global feature map S1; the Global Feature Extraction Subnetwork (GFEM) is used to extract global features from the target point cloud Y to obtain the second global feature map T1.
[0083] S140, based on the first global feature map and the first local feature map, determine the first fused feature map, wherein the first local feature map is calculated based on the first global feature map in the previous iteration.
[0084] like Figure 2 As shown, the first global feature map S1 and the first local feature map Perform a dot product to obtain the first fused feature map S2. First local feature map. It is calculated in the previous iteration and represents the local features of the source point cloud.
[0085] Here, the first global feature map S1 and the first local feature map are compared. The first fused feature map S2 obtained by fusion contains global and local information of the source point cloud, which is beneficial for subsequent point cloud registration.
[0086] S150, based on the second global feature map and the second local feature map, determine the second fused feature map, wherein the second local feature map is calculated based on the second global feature map in the previous iteration.
[0087] like Figure 2 As shown, the second global feature map T1 and the second local feature map... Perform a dot product to obtain the second fused feature map T2. Second local feature map. It is calculated in the previous iteration and represents the local features of the target point cloud.
[0088] Here, the second global feature map T1 and the second local feature map are compared. The second fused feature map T2 obtained by fusion contains global and local information of the target point cloud, which is beneficial for subsequent point cloud registration.
[0089] It is understandable that the execution order of S150 and S160 is not limited. S150 can be executed first, followed by S160; or S160 can be executed first, followed by S150; or S150 and S160 can be executed simultaneously.
[0090] S160, after determining the registration feature map based on the first fusion feature map and the second fusion feature map, the registration matrix is updated using the registration matrix corresponding to the registration feature map.
[0091] The knee joint point cloud registration method provided in this application embodiment inputs a registration matrix into a point cloud registration network. The point cloud registration network repeatedly executes the following steps until a preset registration condition is met to obtain a point cloud registration result: Based on the registration matrix, the source point cloud is transformed to obtain a transformed source point cloud; global feature extraction is performed on the transformed source point cloud and the target point cloud to obtain a first global feature map and a second global feature map; based on the first global feature map and the first local feature map, a first fusion feature map is determined, wherein the first local feature map is calculated based on the first global feature map in the previous iteration; based on the second global feature map and the second local feature map, a second fusion feature map is determined, wherein the second local feature map is calculated based on the second global feature map in the previous iteration; after determining the registration feature map based on the first fusion feature map and the second fusion feature map, the registration matrix is updated using the registration matrix corresponding to the registration feature map. By fusing global and local features to extract spatial features from point clouds, the extracted feature maps contain both global and local information. This allows for point cloud registration based on the feature maps to take both global and local information into account, improving the accuracy of the registration results. This facilitates subsequent localization, segmentation, and identification of the knee joint based on the point cloud registration results, assisting doctors in planning knee joint surgery. Furthermore, since the knee joint point cloud registration method provided in this application can iteratively update the registration matrix, the registration matrix can be pre-initialized to a set value and gradually updated through subsequent iterations. During initial registration, coarse registration is not required, simplifying the point cloud registration process.
[0092] In an optional embodiment, determining the registration feature map based on the first fused feature map and the second fused feature map includes:
[0093] The first fused feature map, the second fused feature map, and the first global feature map are concatenated to obtain the first concatenated feature map;
[0094] The second fused feature map, the first fused feature map, and the second global feature map are concatenated to obtain the second concatenated feature map;
[0095] The first and second spliced feature maps are extracted using a feature extraction sub-network to obtain a first feature map and a second feature map. The feature extraction sub-network includes a convolutional layer, a normalization layer and a linear rectified layer.
[0096] Based on the first feature map and the second feature map, a registration feature map is determined.
[0097] like Figure 2As shown, the first fused feature map S2 is concatenated and fused with the second fused feature map T2 and the first global feature map S1 using the concat method to obtain the first concatenated feature map S3; the second fused feature map T2 is concatenated and fused with the first fused feature map S2 and the second global feature map T1 using the concat method to obtain the second concatenated feature map T3.
[0098] Here, `concat` simply joins the features together; it doesn't actually fuse them. Therefore, after `concat`, convolution is used to rearrange and combine the joined features, forming new features. These new features continuously update their weights under the constraints of the loss function, constantly generating features that better meet the requirements, resulting in the final feature maps: the first feature map S4 and the second feature map T4. The first feature map S4 and the second feature map T4 are the fused concatenated features.
[0099] Optionally, the feature extraction subnetwork N1 consists of Conv1*1 (a convolutional layer with a 1*1 kernel) + BN (batch normalization layer) + ReLU (linear rectified function).
[0100] The knee joint point cloud registration method provided in this application connects multiple feature maps together using concat stitching, increasing the feature dimension so as to better capture the relationship between different features in subsequent layers. This allows the feature maps to accurately describe the source point cloud and the target point cloud, and the registration matrix calculated based on the feature maps to accurately represent the relative positional relationship between the source point cloud and the target point cloud, thereby improving the accuracy of point cloud registration.
[0101] In an optional embodiment, determining the registration feature map based on the first feature map and the second feature map includes:
[0102] The first feature map and the second feature map are added together to obtain the fused point cloud feature map;
[0103] Perform a dot product operation on the first feature map and the first local feature map to obtain the first mask fusion feature map;
[0104] The first mask fusion feature map is input into the first mask extraction sub-network to obtain the third local feature map and the source point cloud registration feature map output by the first mask extraction sub-network. The first local feature map is updated using the third local feature map.
[0105] Perform a dot product operation on the second feature map and the second local feature map to obtain the second mask fusion feature map;
[0106] The second mask fusion feature map is input into the second mask extraction sub-network to obtain the fourth local feature map and the target point cloud registration feature map output by the second mask extraction sub-network. The second local feature map is updated using the fourth local feature map.
[0107] The fused point cloud feature map, the source point cloud registration feature map, and the target point cloud registration feature map are added together to obtain the registration feature map.
[0108] like Figure 2 As shown, the first feature map S4 and the second feature map T4, which are global and local fusions, are fused by matrix addition to obtain the fused point cloud feature map ST.
[0109] Here, the first feature map S4 and the first local feature map are compared. Performing a dot product yields the first mask fusion feature map S5. Inputting the first mask fusion feature map S5 into the first mask extraction sub-network MEM yields the third local feature map. The feature map S6 is a registration map of the source point cloud.
[0110] Here, the second feature map T4 is compared with the second local feature map. Performing a dot product yields the second mask fusion feature map T5. This second mask fusion feature map T5 is then input into the second mask extraction sub-network MEM to obtain the fourth local feature map. Register feature map T6 with target point cloud.
[0111] The fused point cloud feature map ST, the source point cloud registration feature map S6, and the target point cloud registration feature map T6 are added together to obtain the final registration feature map RF.
[0112] In an optional embodiment, the first mask extraction sub-network extracts mask features from the first mask fusion feature map based on the following steps:
[0113] The first mask fusion feature map is input into the first convolutional layer in the first mask extraction sub-network to obtain the first feature extraction result output by the first convolutional layer. The kernel size of the first convolutional layer is 1*1.
[0114] The first feature extraction result is input into the second convolutional layer in the first mask extraction sub-network to obtain the second feature extraction result output by the second convolutional layer. The kernel size of the second convolutional layer is 3*3.
[0115] The second feature extraction result is input into the third convolutional layer in the first mask extraction sub-network to obtain the third local feature map output by the third convolutional layer. The kernel size of the third convolutional layer is 3*3.
[0116] The first feature extraction result, the second feature extraction result, and the third local feature map are concatenated to obtain a mask concatenated feature map.
[0117] The source point cloud registration feature map is obtained by performing a dot product operation on the mask fusion feature map and the first local feature map.
[0118] Figure 4 This is a schematic diagram of the structure of the mask extraction sub-network provided by the present invention, as shown below. Figure 4 As shown, the mask extraction sub-network MEM uses one 1*1 convolution and two 3*3 convolutions for feature extraction, normalizes using Batch Normalization, and uses GELU as the activation function. When using the mask extraction sub-network MEM to extract mask features from the first mask fusion feature map S5, the first convolutional layer of the 1*1 convolution extracts the first feature extraction result A, the second convolutional layer of the 3*3 convolution extracts the second feature extraction result B, and the third convolutional layer of the 3*3 convolution extracts the third feature extraction result C. The first feature extraction result A, the second feature extraction result B, and the third feature extraction result C are concatenated to obtain the mask concatenated feature map D. The mask concatenated feature map D and the first local feature map... Performing a dot product yields the source point cloud registration feature map, from which the feature extraction part obtains the mask feature map for this iteration, i.e., the third local feature map.
[0119] Understandably, the steps of the second mask extraction sub-network to extract mask features from the second mask fusion feature map T5 are similar and will not be repeated here.
[0120] The knee joint point cloud registration method provided in this application embodiment fuses the mask extraction sub-network with the local feature map from the previous iteration to obtain the registration feature maps of the source point cloud and the target point cloud respectively, providing richer feature information for the subsequent calculation of the registration matrix.
[0121] In an optional embodiment, the registration matrix corresponding to the registration feature map is determined based on the following steps:
[0122] The registration feature map is input into the first prediction unit in the matrix prediction sub-network to obtain the first prediction result output by the first prediction unit. The first prediction unit includes a multilayer perceptron, a layer normalization layer and a linear rectifier layer.
[0123] The first prediction result is downsampled to obtain the first downsampled feature;
[0124] The first downsampled feature is input into the second prediction unit in the matrix prediction sub-network to obtain the second prediction result output by the second prediction unit. The second prediction unit includes a multilayer perceptron, a layer normalization layer and a linear rectifier layer.
[0125] The second prediction result is downsampled to obtain the second downsampled feature;
[0126] The second downsampled feature is input into the third prediction unit in the matrix prediction sub-network to obtain the third prediction result output by the third prediction unit. The third prediction unit includes a multilayer perceptron, a layer normalization layer and a linear rectifier layer.
[0127] The third prediction result is downsampled to obtain the registration matrix.
[0128] The registration feature map (RF) is predicted by passing it through three consecutive multilayer perceptrons (MLP), a layer normalization layer (LN), a linear rectified layer (ReLU), and downsampling, to obtain the registration matrix {q} for the current iteration. i ,t i}
[0129] Specifically, the registration feature map RF is input into the first prediction unit D1 of the matrix prediction subnetwork N2 to obtain the first prediction result output by the first prediction unit D1 of MLP+LN+ReLU; the first prediction result is downsampled by the first downsampling layer C1 to obtain the first downsampled feature; the first downsampled feature is input into the second prediction unit D2 of the matrix prediction subnetwork N2 to obtain the second prediction result output by the second prediction unit D2 of MLP+LN+ReLU; the second prediction result is downsampled by the second downsampling layer C2 to obtain the second downsampled feature; the second downsampled feature is input into the third prediction unit D3 of the matrix prediction subnetwork N2 to obtain the third prediction result output by the third prediction unit D3 of MLP+LN+ReLU; the third prediction result is downsampled by the third downsampling layer C3 to obtain the registration matrix {q} for the current iteration. i ,t i}
[0130] In an optional embodiment, a first global feature map is obtained by performing global feature extraction on the transformed source point cloud based on the following steps:
[0131] The transformed source point cloud is input into the first unit of the global feature extraction sub-network to obtain the first intermediate feature map output by the first unit. The first unit includes a convolutional layer, a batch normalization layer and a Gaussian linear rectified layer.
[0132] The first intermediate feature map is input into the second unit of the global feature extraction sub-network to obtain the second intermediate feature map output by the second unit. The second unit includes multiple feature extraction sub-units connected in sequence. The second intermediate feature map is obtained by splicing the output feature maps of each feature extraction sub-unit. Each feature extraction sub-unit includes a multilayer perceptron, a layer normalization layer and a Gaussian linear rectifier layer.
[0133] The second intermediate feature map is input into the third unit of the global feature extraction sub-network to obtain the first global feature map output by the second unit. The third unit includes a convolutional layer, a pooling layer, a batch normalization layer, and a Gaussian linear rectified layer.
[0134] Figure 3 This is a schematic diagram of the structure of the global feature extraction subnetwork provided by the present invention, as shown below. Figure 3 As shown, the global feature extraction sub-network GFEM performs global feature extraction through 1*1 convolution and MLP (Multi-Layer Perceptron). The 1*1 convolution part is the first single cloud d1. After convolving the transformed source point cloud with a 1*1 convolution layer, it is normalized using a BN (Batch Normalization) layer, and then activated using the GELU (Gaussian Error Linear Unit) activation function to obtain the first intermediate feature map F1.
[0135] The MLP part, or the second unit d2, uses an LN (Layer Normalization) layer for normalization and the GELU activation function. Specifically, the second unit d2 includes three feature extraction subunits. The first feature extraction subunit d21 of MLP+LN+GELU extracts features from the first intermediate feature map F1 to obtain the first intermediate quantity Z1. The first intermediate quantity Z1 is added to the first intermediate feature map F1 to obtain the second intermediate quantity Z2. The second feature extraction subunit d22 of MLP+LN+GELU extracts features from the second intermediate quantity Z2 to obtain the third intermediate quantity Z3. The third intermediate quantity Z3 is added to the second intermediate quantity Z2 to obtain the fourth intermediate quantity Z4. The third feature extraction subunit d23 of MLP+LN+GELU extracts features from the fourth intermediate quantity Z4 to obtain the fifth intermediate quantity Z5. The fifth intermediate quantity Z5 is concatenated with the fourth intermediate quantity Z4, the second intermediate quantity Z2, and the first intermediate quantity Z1 to obtain the second intermediate feature map F2.
[0136] The second intermediate feature map F2 is input into the third unit d3 to obtain the first global feature map S1 output by the third unit d3. The third unit d3 includes a 1*1 convolutional layer, a pooling layer, a batch normalized (BN) layer, and a Gaussian rectified linear layer (GELU). Here, the pooling layer can use downsampling methods including but not limited to max pooling, average pooling, and random pooling to reduce the computational cost of feature calculation.
[0137] It is understandable that the method for global feature extraction of the target point cloud is the same as the method for global feature extraction of the transformed source point cloud, and will not be described again here. The knee joint point cloud registration method provided in this application uses 1*1 convolution and MLP for global feature extraction, which is beneficial for the extraction of contextual feature information and global information, effectively ensuring the accuracy of global information extraction, and using the idea of residuals to avoid the problems of gradient vanishing or gradient exploding during network training.
[0138] The knee joint point cloud registration device provided in the embodiments of this application is described below. The knee joint point cloud registration device described below and the knee joint point cloud registration method described above can be referred to each other.
[0139] Figure 5 This is a schematic diagram of the knee joint point cloud registration device provided by the present invention, as shown below. Figure 5 As shown, the knee joint point cloud registration device includes:
[0140] Registration module 510 is used to input the registration matrix into the point cloud registration network. The point cloud registration network repeatedly performs the following steps until the preset registration conditions are met to obtain the point cloud registration result:
[0141] Based on the registration matrix, the source point cloud is transformed to obtain the transformed source point cloud;
[0142] Global feature extraction is performed on the source point cloud and the target point cloud to obtain a first global feature map and a second global feature map.
[0143] Based on the first global feature map and the first local feature map, a first fused feature map is determined, wherein the first local feature map is calculated based on the first global feature map in the previous iteration;
[0144] Based on the second global feature map and the second local feature map, a second fused feature map is determined. The second local feature map is calculated based on the second global feature map in the previous iteration.
[0145] Based on the first fusion feature map and the second fusion feature map, after determining the registration feature map, the registration matrix is updated using the registration matrix corresponding to the registration feature map.
[0146] The knee joint point cloud registration device provided in this application embodiment inputs a registration matrix into a point cloud registration network. The point cloud registration network repeatedly performs the following steps until a preset registration condition is met, and a point cloud registration result is obtained: The registration matrix is input into the point cloud registration network, and the point cloud registration network repeatedly performs the following steps until a preset registration condition is met, and a point cloud registration result is obtained: Based on the registration matrix, the source point cloud is transformed to obtain a transformed source point cloud; Global feature extraction is performed on the transformed source point cloud and the target point cloud respectively to obtain a first global feature map and a second global feature map; Based on the first global feature map and the first local feature map, a first fusion feature map is determined, wherein the first local feature map is calculated based on the first global feature map in the previous iteration; Based on the second global feature map and the second local feature map, a second fusion feature map is determined, wherein the second local feature map is calculated based on the second global feature map in the previous iteration; After determining the registration feature map based on the first fusion feature map and the second fusion feature map, the registration matrix is updated using the registration matrix corresponding to the registration feature map. By fusing global and local features to extract spatial features from point clouds, the extracted feature maps contain both global and local information. This allows for point cloud registration based on the feature maps to take both global and local information into account, improving the accuracy of the registration results. This facilitates subsequent localization, segmentation, and identification of the knee joint based on the point cloud registration results, assisting doctors in planning knee joint surgery. Furthermore, since the knee joint point cloud registration method provided in this application can iteratively update the registration matrix, the registration matrix can be pre-initialized to a set value and gradually updated through subsequent iterations. During initial registration, coarse registration is not required, simplifying the point cloud registration process.
[0147] It should be noted that the knee joint point cloud registration device provided in this embodiment of the invention can execute the knee joint point cloud registration method described in any of the above embodiments during specific operation, and this embodiment will not elaborate on this.
[0148] Figure 6 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630, and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 can call logic instructions in the memory 630 to execute a knee joint point cloud registration method. This method includes: performing coarse registration based on a source point cloud and a target point cloud to obtain a registration matrix; inputting the registration matrix into a point cloud registration network, where the point cloud registration network repeatedly executes the following steps until a preset registration condition is met to obtain a point cloud registration result; transforming the source point cloud based on the registration matrix to obtain a transformed source point cloud; extracting global features from the transformed source point cloud and the target point cloud to obtain a first global feature map and a second global feature map; determining a first fused feature map based on the first global feature map and a first local feature map; determining a second fused feature map based on the second global feature map and the second local feature map; and updating the registration matrix using the registration matrix corresponding to the registration feature map after determining the registration feature map based on the first fused feature map and the second fused feature map.
[0149] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0150] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer is able to execute the knee joint point cloud registration method provided in the above embodiments, the method including: inputting a registration matrix into a point cloud registration network, the point cloud registration network repeatedly executing the following steps until a preset registration condition is met to obtain a point cloud registration result; transforming the source point cloud based on the registration matrix to obtain a transformed source point cloud; extracting global features from the transformed source point cloud and the target point cloud respectively to obtain a first global feature map and a second global feature map; determining a first fusion feature map based on the first global feature map and a first local feature map, the first local feature map being calculated based on the first global feature map in the previous iteration; determining a second fusion feature map based on the second global feature map and the second local feature map, the second local feature map being calculated based on the second global feature map in the previous iteration; after determining the registration feature map based on the first fusion feature map and the second fusion feature map, updating the registration matrix using the registration matrix corresponding to the registration feature map.
[0151] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the knee joint point cloud registration method provided in the above embodiments. The method includes: inputting a registration matrix into a point cloud registration network, wherein the point cloud registration network repeatedly performs the following steps until a preset registration condition is met to obtain a point cloud registration result; transforming the source point cloud based on the registration matrix to obtain a transformed source point cloud; extracting global features from the transformed source point cloud and the target point cloud respectively to obtain a first global feature map and a second global feature map; determining a first fusion feature map based on the first global feature map and a first local feature map, wherein the first local feature map is calculated based on the first global feature map in the previous iteration; determining a second fusion feature map based on the second global feature map and the second local feature map, wherein the second local feature map is calculated based on the second global feature map in the previous iteration; and updating the registration matrix using the registration matrix corresponding to the registration feature map after determining the registration feature map based on the first fusion feature map and the second fusion feature map.
[0152] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0153] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0154] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for point cloud registration of a knee joint, characterized in that, include: The registration matrix is input into the point cloud registration network, which repeats the following steps until the preset registration conditions are met, and the point cloud registration result is obtained: Based on the registration matrix, the source point cloud is transformed to obtain the transformed source point cloud; Global feature extraction is performed on the source point cloud and the target point cloud to obtain a first global feature map and a second global feature map. Based on the first global feature map and the first local feature map, a first fused feature map is determined, wherein the first local feature map is calculated based on the first global feature map in the previous iteration; Based on the second global feature map and the second local feature map, a second fused feature map is determined. The second local feature map is calculated based on the second global feature map in the previous iteration. Based on the first fusion feature map and the second fusion feature map, after determining the registration feature map, the registration matrix is updated using the registration matrix corresponding to the registration feature map.
2. The knee joint point cloud registration method according to claim 1, characterized in that, The step of determining the registration feature map based on the first fused feature map and the second fused feature map includes: The first fused feature map, the second fused feature map, and the first global feature map are concatenated to obtain the first concatenated feature map; The second fused feature map, the first fused feature map, and the second global feature map are concatenated to obtain the second concatenated feature map; The first and second spliced feature maps are extracted using a feature extraction sub-network to obtain a first feature map and a second feature map. The feature extraction sub-network includes a convolutional layer, a normalization layer and a linear rectified layer. Based on the first feature map and the second feature map, a registration feature map is determined.
3. The knee joint point cloud registration method according to claim 2, characterized in that, The step of determining the registration feature map based on the first feature map and the second feature map includes: The first feature map and the second feature map are added together to obtain the fused point cloud feature map; Perform a dot product operation on the first feature map and the first local feature map to obtain the first mask fusion feature map; The first mask fusion feature map is input into the first mask extraction sub-network to obtain the third local feature map and the source point cloud registration feature map output by the first mask extraction sub-network. The first local feature map is updated using the third local feature map. Perform a dot product operation on the second feature map and the second local feature map to obtain the second mask fusion feature map; The second mask fusion feature map is input into the second mask extraction sub-network to obtain the fourth local feature map and the target point cloud registration feature map output by the second mask extraction sub-network. The second local feature map is updated using the fourth local feature map. The fused point cloud feature map, the source point cloud registration feature map, and the target point cloud registration feature map are added together to obtain the registration feature map.
4. The knee joint point cloud registration method according to claim 3, characterized in that, The first mask extraction sub-network extracts mask features from the first mask fusion feature map based on the following steps: The first mask fusion feature map is input into the first convolutional layer in the first mask extraction sub-network to obtain the first feature extraction result output by the first convolutional layer. The kernel size of the first convolutional layer is 1*1. The first feature extraction result is input into the second convolutional layer in the first mask extraction sub-network to obtain the second feature extraction result output by the second convolutional layer. The kernel size of the second convolutional layer is 3*3. The second feature extraction result is input into the third convolutional layer in the first mask extraction sub-network to obtain the third local feature map output by the third convolutional layer. The kernel size of the third convolutional layer is 3*3. The first feature extraction result, the second feature extraction result, and the third local feature map are concatenated to obtain a mask concatenated feature map. The source point cloud registration feature map is obtained by performing a dot product operation on the mask fusion feature map and the first local feature map.
5. The knee joint point cloud registration method according to any one of claims 1-4, characterized in that, The registration matrix corresponding to the registration feature map is determined based on the following steps: The registration feature map is input into the first prediction unit in the matrix prediction sub-network to obtain the first prediction result output by the first prediction unit. The first prediction unit includes a multilayer perceptron, a layer normalization layer and a linear rectifier layer. The first prediction result is downsampled to obtain the first downsampled feature; The first downsampled feature is input into the second prediction unit in the matrix prediction sub-network to obtain the second prediction result output by the second prediction unit. The second prediction unit includes a multilayer perceptron, a layer normalization layer and a linear rectifier layer. The second prediction result is downsampled to obtain the second downsampled feature; The second downsampled feature is input into the third prediction unit in the matrix prediction sub-network to obtain the third prediction result output by the third prediction unit. The third prediction unit includes a multilayer perceptron, a layer normalization layer and a linear rectifier layer. The third prediction result is downsampled to obtain the registration matrix.
6. The knee joint point cloud registration method according to any one of claims 1-4, characterized in that, The first global feature map is obtained by performing global feature extraction on the transformed source point cloud based on the following steps: The transformed source point cloud is input into the first unit of the global feature extraction sub-network to obtain the first intermediate feature map output by the first unit. The first unit includes a convolutional layer, a batch normalization layer and a Gaussian linear rectified layer. The first intermediate feature map is input into the second unit of the global feature extraction sub-network to obtain the second intermediate feature map output by the second unit. The second unit includes multiple feature extraction sub-units connected in sequence. The second intermediate feature map is obtained by splicing the output feature maps of each feature extraction sub-unit. Each feature extraction sub-unit includes a multilayer perceptron, a layer normalization layer and a Gaussian linear rectifier layer. The second intermediate feature map is input into the third unit of the global feature extraction sub-network to obtain the first global feature map output by the second unit. The third unit includes a convolutional layer, a pooling layer, a batch normalization layer, and a Gaussian linear rectified layer.
7. A knee joint point cloud registration device, characterized in that, include: The registration module is used to input the registration matrix into the point cloud registration network. The point cloud registration network repeatedly executes the following steps until the preset registration conditions are met to obtain the point cloud registration result: Based on the registration matrix, the source point cloud is transformed to obtain the transformed source point cloud; Global feature extraction is performed on the source point cloud and the target point cloud to obtain a first global feature map and a second global feature map. Based on the first global feature map and the first local feature map, a first fused feature map is determined, wherein the first local feature map is calculated based on the first global feature map in the previous iteration; Based on the second global feature map and the second local feature map, a second fused feature map is determined. The second local feature map is calculated based on the second global feature map in the previous iteration. Based on the first fusion feature map and the second fusion feature map, after determining the registration feature map, the registration matrix is updated using the registration matrix corresponding to the registration feature map.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the knee joint point cloud registration method as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the knee joint point cloud registration method as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the knee joint point cloud registration method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Apparatus and method for searching for global minimum of point cloud registration error
US20220254095A1
Facial expression classification method and electronic device
WO2023065503A1
