A method for cardiac 3D reconstruction based on cascaded network

By using cascaded networks for 3D reconstruction of the heart, and leveraging semantic segmentation and spatial cross-attention enhancement, combined with multi-stage encoding and decoding networks, the problems of template dependence and insufficient reconstruction accuracy in existing technologies are solved, achieving high-precision and flexible 3D heart surface reconstruction.

CN123160770APending Publication Date: 2026-11-24CHINA ELECTRONICS CLOUD DIGITAL INTELLIGENCE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611332903.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing cardiac 3D reconstruction methods rely on initial template meshes, resulting in insufficient reconstruction accuracy. Non-anatomical undulations are prone to appear in local areas. They lack flexible interpolation mechanisms, and the training strategies have structural defects, making it difficult to adapt to different acquisition protocols and scanning resolutions. Furthermore, the reconstruction results are limited by the accuracy of template and slice contour annotation.

Method used

A cascaded network is used for 3D reconstruction of the heart. Deep feature maps are generated through semantic segmentation, a radial tangent plane is constructed along the long axis of the heart, and progressive vertex refinement is performed using spatial cross-attention enhancement and a cascaded encoder-decoder network. Combined with multiple constraints, a high-precision three-dimensional heart surface point set is output.

Benefits of technology

It achieves high-precision reconstruction of variant heart morphology, improves the geometric adaptability and generalization ability of the reconstruction results, ensures global morphological accuracy and local geometric smoothness, eliminates the dependence on templates, and improves reconstruction accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160770A_ABST
    Figure CN123160770A_ABST
Patent Text Reader

Abstract

This invention relates to the field of 3D model reconstruction technology, and provides a cascaded network-based 3D reconstruction method for the heart, comprising: semantic segmentation of multi-layer medical slice images of the heart, extracting the 2D contours of each slice, and generating corresponding deep semantic feature maps; mapping the 2D contours to 3D space, constructing multiple radial tangent planes along the long axis of the heart and obtaining the intersection points with the contours, generating a one-to-one set of ground truth points and predicted point sets of the 3D contours; performing spatial cross-attention enhancement on adjacent slices, extracting the fusion point features of each 3D contour point, and constructing a structured point feature map; and performing progressive upsampling interpolation and encoding / decoding processing on the structured point feature map through a cascaded multi-stage encoding / decoding network, refining the vertex positions step by step under multiple constraints, and outputting a 3D heart surface point set. This invention can achieve highly adaptable and high-precision 3D surface reconstruction for variable heart morphologies, ensuring geometric smoothness while improving reconstruction accuracy and model generalization ability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of three-dimensional model reconstruction technology, and in particular to a method for 3D reconstruction of the heart based on cascaded networks. Background Technology

[0002] Three-dimensional cardiac reconstruction is a key technology in the precision diagnosis and treatment of cardiovascular diseases. By reconstructing sparse medical slice images into a three-dimensional heart model, it can provide clinicians with intuitive anatomical information, supporting applications such as preoperative planning, hemodynamic simulation, and personalized medicine. In recent years, the Slice2Mesh method based on deep learning has become one of the mainstream technical approaches in this field. Its basic idea is to obtain an initial template mesh from a statistical shape model, align it using an iterative nearest-point algorithm, and then use a graph convolutional network to deform and regress the vertices of the template mesh, thereby achieving the reconstruction mapping from two-dimensional slice contours to a three-dimensional mesh.

[0003] However, this method has the following drawbacks in practical applications:

[0004] 1. Reconstruction accuracy is highly dependent on the selection of the initial template mesh. The topology and shape prior of the template mesh directly limit the deformation range of the final reconstruction result. When the heart undergoes significant morphological variations due to factors such as disease, individual differences, or acquisition conditions, the template is difficult to adapt effectively, resulting in the reconstructed shape deviating from the true anatomical structure.

[0005] 2. Limited vertex position constraint methods. Existing methods rely solely on the position information of the initial template vertices and local rigid connections to constrain mesh deformation, without considering the global smooth continuity between coplanar vertices. This results in insufficient overall positional accuracy of the reconstructed surface and the easy appearance of non-anatomical undulations in local areas.

[0006] 3. Lack of a flexible adaptive interpolation mechanism. The accuracy and efficiency of vertex feature interpolation based on graph convolution are highly dependent on the density distribution of template vertices. It cannot dynamically adjust the interpolation strategy according to the sparsity of the input slice data, which limits the method's adaptability to different acquisition protocols and scanning resolutions.

[0007] 4. The training strategy has structural flaws. The existing scheme adopts a two-stage serial approach, training the segmentation module first and then the deformation module. The segmentation error cannot be backpropagated between modules, making it difficult for each sub-module to achieve global co-optimization. At the same time, the ground truth of the slice contours only plays a role in the segmentation stage and fails to fully participate in the supervision process of 3D space reconstruction, which restricts the further improvement of the model's generalization ability.

[0008] Chinese patent CN119206065A discloses a three-dimensional reconstruction method for the right ventricle based on echocardiography. This method relies entirely on the right ventricle contour manually annotated from the echocardiogram as input data, and its three-dimensional reconstruction results are limited by the accuracy and completeness of the contour annotation. This method uses a fully convolutional neural network for voxel reconstruction, and the output is a voxel model rather than a surface mesh. The reconstruction resolution is limited by a fixed voxel mesh size (128×128×128), making it difficult to achieve high-precision surface detail restoration while ensuring computational efficiency.

[0009] Chinese patent CN120374866A discloses a three-dimensional cardiac reconstruction method based on multi-section two-dimensional ultrasound. This method relies entirely on a pre-constructed shape prior (cardiac mesh) as the basis for morphological constraints. Its reconstruction results are limited by the morphological space range covered by the shape prior, making it difficult to accurately reconstruct abnormal cardiac morphologies that deviate from the prior distribution. By iteratively optimizing the slice position and morphological parameters, the optimization process relies on six manually preset standard slice positions and a global scaling factor, which is highly dependent on the number and spatial distribution of input slices. When the number of available slices is small, the reconstruction accuracy decreases significantly. In addition, this method uses the overall cardiac mesh as the modeling unit and fails to perform fine contour feature extraction and vertex localization for the endocardium and epicardium separately, which limits the accuracy of the reconstruction model on local anatomical structures.

[0010] Therefore, how to provide a method that can get rid of template dependence, achieve high-precision reconstruction, and have flexible interpolation and collaborative optimization capabilities has become an urgent technical problem to be solved. Summary of the Invention

[0011] In view of this, in order to overcome the shortcomings of the prior art, the present invention aims to provide a method for 3D reconstruction of the heart based on cascaded networks.

[0012] This invention provides a method for 3D reconstruction of the heart based on a cascaded network, the method comprising:

[0013] Step S1: Perform semantic segmentation on the multi-layer medical slice image of the heart, extract the two-dimensional contour of each slice, and generate the corresponding deep semantic feature map;

[0014] Step S2: Map the two-dimensional contour to three-dimensional space, construct multiple radial tangent planes along the long axis of the heart and obtain the intersection points of the radial tangent planes and the contour, and generate a one-to-one corresponding set of true value points and predicted value points of the three-dimensional contour through axis interpolation;

[0015] Step S3: Based on the deep semantic feature map, perform spatial cross-attention enhancement on adjacent slices, extract the fusion point features of each 3D contour point, and construct a structured point feature map according to the radial tangent plane grouping;

[0016] Step S4: Using the three-dimensional contour ground truth point set as supervision, the structured point feature map is progressively upsampled, interpolated, and encoded / decoded through a cascaded multi-stage encoding / decoding network. Under multiple constraints, the vertex positions are refined step by step to output a high-precision three-dimensional heart surface point set.

[0017] Optionally, in the cascaded network-based 3D reconstruction method for the heart of the present invention, in step S1, the multi-layer medical slice image of the heart includes short-axis slice image and long-axis slice image. The slice image is segmented by a two-dimensional segmentation network, and the contour prediction value is output. The pre-labeled two-dimensional contour ground truth value and the contour prediction value are input into the loss function for loss calculation. The training of the segmentation network is supervised by backpropagation and parameter update based on the calculated loss value.

[0018] Optionally, in the cascaded network-based 3D reconstruction method for the heart of the present invention, in step S1, the deep semantic feature map has a three-dimensional tensor structure with height dimension, width dimension and feature channel dimension, wherein the height dimension and width dimension correspond to the pixel height and pixel width of the slice image, respectively, and the feature channel dimension is used to characterize the length of the semantic feature vector corresponding to each pixel position.

[0019] Optionally, in the cascaded network-based 3D cardiac reconstruction method of the present invention, in step S2, the true contour value and predicted contour value of the two-dimensional contour of each slice are projected onto three-dimensional space to obtain three-dimensional contour points at the spatial location of each slice. The two-dimensional contour includes the endocardial contour and the epicardial contour. The long axis of the heart is constructed by connecting the apex and the base of the heart, and a preset number of radial tangent planes are uniformly constructed around the long axis in the circumferential direction. The intersection points of each radial tangent plane with the three-dimensional contour of each slice are calculated to obtain an initial set of intersection points. Along the long axis of the heart, staged interpolation is performed on the initial set of intersection points between adjacent slices to form a one-to-one corresponding set of three-dimensional contour true value points and set of three-dimensional contour predicted value points.

[0020] Optionally, in the cascaded network-based 3D cardiac reconstruction method of the present invention, in step S2, the three-dimensional contour ground truth point set and the three-dimensional contour predicted value point set are divided into multiple groups based on the radial tangent plane. The number of groups is equal to the preset number of radial tangent planes. The contour points in each group are arranged clockwise along the long axis of the heart in the order from the apex to the base of the heart and back to the apex. All three-dimensional contour ground truth points and three-dimensional contour predicted value points are completely consistent in grouping and sorting.

[0021] Optionally, in the cascaded network-based 3D reconstruction method for the heart of the present invention, in step S3, spatial cross-attention enhancement is performed on adjacent slices in the following manner: based on the Transformer structure, cross-attention calculation is performed on the deep semantic feature maps between different slices, and the feature association between adjacent slices in the spatial dimension is strengthened according to the attention calculation weight, and an enhanced spatial feature map is output. The enhanced spatial feature map has a four-dimensional tensor structure with slice number dimension, height dimension, width dimension and feature channel dimension.

[0022] Optionally, in the cascaded network-based 3D cardiac reconstruction method of the present invention, step S3 involves constructing a structured point feature map as follows: based on the correspondence between each 3D contour point and the slice position, the initial feature vector of each 3D contour point is obtained from the enhanced spatial feature map, and the features of the eight-neighbor position of the point on the slice are extracted. The initial feature vector and the eight-neighbor features are weighted and fused using learnable weights to obtain the fused feature vector of each 3D contour point; the fused feature vectors of all 3D contour points in each group are grouped according to the radial tangent plane, and the fused feature vectors of all 3D contour points in each group are organized into a structured point feature map according to the vertex arrangement order, and point feature maps are constructed for the ground truth points and predicted values ​​of the 3D contour points respectively.

[0023] Optionally, in the cascaded network-based 3D cardiac reconstruction method of the present invention, step S4 involves progressive upsampling interpolation and encoding / decoding processing as follows: the first-level encoding / decoding stage encodes and decodes the point feature map at the original resolution without upsampling; the second-level encoding / decoding stage encodes and decodes the point features after the first Half-Hop upsampling; the third-level encoding / decoding stage encodes and decodes the point features after the second Half-Hop upsampling; each stage performs encoding / decoding in parallel on the ground truth point feature map and the predicted point feature map of the 3D contour, generating two new point sets at the corresponding resolution.

[0024] Optionally, in the cascaded network-based 3D cardiac reconstruction method of the present invention, step S4 includes at least position approximation constraints, sectional smoothing constraints, and normal consistency constraints. The position approximation constraint is the Euclidean distance loss or mean square error loss between the predicted three-dimensional contour points generated in each stage and the corresponding true three-dimensional contour points. The sectional smoothing constraint is the cosine similarity loss between the feature vectors of adjacent points calculated on the radial and transverse sectional planes, respectively, to constrain the directional consistency between adjacent vertices. The normal consistency constraint is the calculation of the normal vector at each vertex and the constraint of minimizing the difference between the normal vectors of the predicted three-dimensional contour points and the true three-dimensional contour points at the corresponding vertices.

[0025] Optionally, in the cascaded network-based 3D reconstruction method for the heart of the present invention, in step S4, the contour extraction of the segmentation network in step S1, the spatial cross-attention enhancement in step S3, and the vertex localization of the cascaded multi-stage encoding and decoding are co-optimized through an end-to-end training strategy, and the three-dimensional contour prediction value point set after the final stage encoding and decoding is output as the result of the three-dimensional reconstruction of the heart.

[0026] The cardiac 3D reconstruction method based on cascaded networks of the present invention has the following beneficial technical effects:

[0027] By employing a template-free 3D vertex generation mechanism, this approach completely eliminates the reliance on statistical shape models in traditional methods, fundamentally improving the geometric adaptation capability to variant cardiac morphologies such as those caused by pathological changes and individual differences. Building upon this, it utilizes inter-slice spatial cross-attention enhancement and a structured vertex grouping strategy to integrate the feature representation of 3D vertices with cross-slice contextual relationships and local neighborhood structural information, providing high-quality feature support for high-precision reconstruction. Furthermore, a cascaded multi-stage encoding / decoding network achieves progressive vertex refinement from sparse to dense, combined with triple geometric constraints of position approximation, slice smoothing, and normal consistency, ensuring the consistency of global morphological accuracy and local geometric smoothness in the reconstructed cardiac surface. Simultaneously, an end-to-end joint training framework places segmentation, feature enhancement, and vertex localization in the same optimization chain for co-evolution, enabling the parameters throughout the process to reach global optimum, thereby achieving strong generalization, high precision, and high smoothness in 3D surface reconstruction of variant cardiac morphologies. Attached Figure Description

[0028] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0029] Figure 1 This is a flowchart illustrating the method according to an exemplary embodiment 1 of the present invention;

[0030] Figure 2 This is an example diagram illustrating the technical principle of 2D semantic segmentation using the method described in Exemplary Embodiment 4 of the present invention.

[0031] Figure 3 This is an example diagram illustrating the technical principle of spatial feature enhancement according to Exemplary Embodiment 4 of the present invention;

[0032] Figure 4 This is a schematic diagram illustrating the technical principle of generating three-dimensional ground truth points and initializing three-dimensional predicted value points according to the method of Exemplary Embodiment 4 of the present invention;

[0033] Figure 5This is an example diagram illustrating the technical principle of constructing a point feature map using the method described in Exemplary Embodiment 4 of the present invention.

[0034] Figure 6 This is a schematic diagram illustrating the process of performing multi-stage HalfHop encoding / decoding and progressive interpolation and constraints according to the method of Exemplary Embodiment 4 of the present invention.

[0035] Figure 7 This is a technical schematic diagram illustrating end-to-end training using the method described in Exemplary Embodiment 4 of the present invention.

[0036] Figure 8 This is an example diagram illustrating the technical principle of inference output using the method described in Exemplary Embodiment 4 of the present invention. Detailed Implementation

[0037] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.

[0038] It should be noted that, in the absence of conflict, the following embodiments and features can be combined with each other; and, based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0039] It should be noted that various aspects of embodiments within the scope of the appended claims are described below. It will be apparent that the aspects described herein can be embodied in a wide variety of forms, and any particular structure and / or function described herein is merely illustrative. Based on this disclosure, those skilled in the art will understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using structures and / or functionalities other than one or more of the aspects set forth herein.

[0040] Example 1

[0041] Exemplary embodiment 1 of the present invention provides a method for 3D reconstruction of the heart based on cascaded networks. Figure 1 This is a flowchart illustrating the method according to an exemplary embodiment 1 of the present invention, as shown below. Figure 1 As shown, in this embodiment, the method of the present invention is implemented in the following manner:

[0042] Step S1: Perform semantic segmentation on the multi-layer medical slice image of the heart, extract the two-dimensional contour of each slice, and generate the corresponding deep semantic feature map.

[0043] In this embodiment, the multi-layered medical slice image of the heart includes short-axis slice images and long-axis slice images. The slice images are segmented by a two-dimensional segmentation network, and the predicted contour value is output. The pre-labeled two-dimensional contour ground truth value and the predicted contour value are input into the loss function for loss calculation. The training of the segmentation network is supervised by backpropagation and parameter update based on the calculated loss value.

[0044] In practical applications, this embodiment uses the predicted contour values ​​output by the 2D segmentation network and the pre-labeled ground truth contour values ​​as inputs to the loss function, and employs joint supervision using cross-entropy loss and Dice loss to achieve effective training of the segmentation network. Simultaneously, the ground truth contour values ​​participate in supervision during the segmentation stage, providing an accurate contour benchmark for subsequent 3D reconstruction and ensuring the accuracy of the generated 3D point set. This training method enables the segmentation network to stably output predicted contour values ​​for the endocardium and epicardium, providing a reliable input foundation for the entire 3D reconstruction process.

[0045] In this embodiment, the deep semantic feature map has a three-dimensional tensor structure with height, width, and feature channel dimensions. The height and width dimensions correspond to the pixel height and pixel width of the slice image, respectively, and the feature channel dimension is used to represent the length of the semantic feature vector corresponding to each pixel position. This embodiment preserves the spatial structure information of the slice image with the height and width dimensions, and represents the semantic feature vector corresponding to each pixel position with the feature channel dimension. This effective organization and representation of the semantic features extracted by the segmentation network provides a clear and complete feature data foundation for subsequent spatial cross-attention enhancement and feature mapping of three-dimensional contour points.

[0046] Step S2: Map the two-dimensional contour to three-dimensional space, construct multiple radial tangent planes along the long axis of the heart and obtain the intersection points of the radial tangent planes and the contour, and generate a one-to-one corresponding set of true and predicted three-dimensional contour points by interpolation along the axis.

[0047] In this embodiment, in step S2, the ground truth and predicted contour values ​​of the two-dimensional contours of each slice are projected onto three-dimensional space to obtain three-dimensional contour points at the spatial location of each slice. The two-dimensional contours include the endocardial contour and the epicardial contour. The long axis of the heart is constructed by connecting the apex and base of the heart, and a preset number of radial tangent planes are uniformly constructed around the long axis in the circumferential direction. The intersection points of each radial tangent plane with the three-dimensional contour of each slice are calculated to obtain an initial set of intersection points. Along the long axis of the heart, staged interpolation is performed on the initial set of intersection points between adjacent slices to form a one-to-one correspondence of a set of ground truth and a set of predicted contour points. This embodiment does not rely on any templates or prior shape models, but directly constructs three-dimensional point sets based on real contour data, fundamentally eliminating the limitations of template meshes on the reconstructed shape and effectively improving the generalization ability for different heart morphologies. At the same time, the one-to-one correspondence between the ground truth and predicted contour point sets provides an accurate vertex alignment basis for subsequent structured point feature map construction and supervised training.

[0048] In this embodiment, the three-dimensional contour ground truth point set and the three-dimensional contour predicted value point set are divided into multiple groups based on the radial tangent plane. The number of groups is equal to the preset number of radial tangent planes. The contour points in each group are arranged clockwise along the long axis of the heart, from the apex to the base and back to the apex. All three-dimensional contour ground truth points and three-dimensional contour predicted value points are completely consistent in grouping and sorting, effectively establishing a standardized structural organization relationship between three-dimensional vertices. This provides a stable structured vertex foundation for subsequent point feature map construction and ensures that the interpolation points maintain a relatively stable spatial correspondence during each stage of encoding and decoding, providing reliable vertex arrangement constraints for multi-stage refined reconstruction.

[0049] Step S3: Based on the deep semantic feature map, perform spatial cross-attention enhancement on adjacent slices, extract the fusion point features of each three-dimensional contour point, and construct a structured point feature map by grouping according to the radial tangent plane.

[0050] In this embodiment, spatial cross-attention enhancement is performed on adjacent slices in the following manner: based on the Transformer structure, cross-attention calculation is performed on the deep semantic feature maps between different slices, and the feature association between adjacent slices in the spatial dimension is strengthened according to the attention calculation weight, and an enhanced spatial feature map is output. This enhanced spatial feature map has a four-dimensional tensor structure with slice number dimension, height dimension, width dimension and feature channel dimension.

[0051] This embodiment enables the feature vectors of each spatial location to adaptively fuse positional information highly associated with its anatomical structure in adjacent slices, thereby upgrading the two-dimensional semantic features extracted independently from each slice into an enhanced spatial feature map containing cross-slice spatial contextual information. This effectively improves the spatial recognition capability and cross-slice consistency of the three-dimensional contour point feature representation, providing feature support for the subsequent construction of structured point feature maps.

[0052] In this embodiment, the specific method for constructing the structured point feature map is as follows: Based on the correspondence between each 3D contour point and the slice position, the initial feature vector of each 3D contour point is obtained by mapping from the enhanced spatial feature map, and the features of the eight neighboring positions of the point on the slice are extracted. The initial feature vector and the eight neighboring features are weighted and fused using learnable weights to obtain the fused feature vector of each 3D contour point. This allows the fused feature vector of each 3D contour point to retain the original semantic information of the center point while supplementing the prior information of the spatial structure of the local neighborhood. The fused feature vectors of all 3D contour points in each group are grouped according to the radial tangent plane and organized into a structured point feature map according to the vertex arrangement order. The point feature maps are constructed for the ground truth points and predicted values ​​of the 3D contour points respectively. This ensures the accurate spatial correspondence between features and vertices and provides structurally regular and information-rich input feature data for the cascaded encoding and decoding network.

[0053] Step S4: Using the three-dimensional contour ground truth point set as supervision, the structured point feature map is progressively upsampled, interpolated, and encoded / decoded through a cascaded multi-stage encoding / decoding network. Under multiple constraints, the vertex positions are refined step by step to output a high-precision three-dimensional heart surface point set.

[0054] In this embodiment, progressive upsampling interpolation and encoding / decoding are performed as follows: In the first-level encoding / decoding stage, the point feature map is encoded and decoded at the original resolution without upsampling; in the second-level encoding / decoding stage, the point features are encoded and decoded after the first Half-Hop upsampling; in the third-level encoding / decoding stage, the point features are encoded and decoded after the second Half-Hop upsampling; in each stage, the encoding / decoding of the ground truth point feature map and the predicted point feature map of the 3D contour are performed in parallel to generate two new point sets at the corresponding resolution.

[0055] This embodiment employs a three-stage cascaded encoder-decoder and HalfHop feature upsampling unit to perform a three-stage progressive processing on the point feature map: original resolution encoding / decoding, encoding / decoding after the first upsampling, and encoding / decoding after the second upsampling. Encoding / decoding is performed in parallel on both the ground truth and predicted point feature maps, achieving a gradual increase in vertex density and feature refinement from a sparse to a dense point set. This multi-stage progressive structure allows the model to progressively optimize vertex positions at different resolution levels, balancing the dual requirements of global shape control and local detail refinement, significantly improving the accuracy and geometric quality of the reconstruction results.

[0056] In this embodiment, the multiple constraints include at least position approximation constraints, cross-sectional smoothing constraints, and normal consistency constraints. Position approximation constraints are the Euclidean distance loss or mean square error loss between the predicted 3D contour point sets generated at each stage and the corresponding ground truth 3D contour point sets, used to drive the predicted points to approximate the ground truth positions to ensure geometric accuracy. Cross-sectional smoothing constraints calculate the cosine similarity loss between the feature vectors of adjacent points on the radial and transverse cross-sections, used to constrain the directional consistency between adjacent vertices, and constrain the directional continuity between adjacent vertices on the radial and transverse cross-sections. Normal consistency constraints calculate the normal vector at each vertex and constrain the difference between the normal vectors of the predicted 3D contour point sets and the ground truth 3D contour point sets at the corresponding vertices to minimize, ensuring that the predicted surface and the ground truth surface have the same orientation at each vertex. This embodiment, through the synergistic effect of these three constraints, ensures the positional accuracy and morphological smoothness of the reconstructed cardiac surface from different geometric dimensions, effectively avoiding local undulations and non-anatomical deformations, and improving the clinical credibility of the reconstruction results.

[0057] It should be noted that in step S4 of this embodiment, the contour extraction of the segmentation network in step S1, the spatial cross attention enhancement and vertex localization of the cascaded multi-stage encoding and decoding in step S3 are optimized by an end-to-end training strategy, and the three-dimensional contour prediction value point set after the final stage encoding and decoding is output as the result of the three-dimensional reconstruction of the heart.

[0058] This embodiment employs an end-to-end training strategy, placing contour extraction, spatial cross-attention enhancement, and vertex localization in a cascaded multi-stage encoding / decoding process within a unified optimization framework. This achieves end-to-end gradient connectivity and parameter co-optimization, eliminating the module mismatch problem caused by gradient blocking in traditional sequential training methods. It enables the segmentation feature extraction process and the 3D vertex regression process to adapt to each other and evolve collaboratively. In practical applications, this training strategy can fully unleash the collaborative potential of each execution module, effectively improving the overall reconstruction accuracy and generalization ability of the model.

[0059] Example 2

[0060] Exemplary Example 2 of the present invention provides a method for 3D reconstruction of the heart based on a cascaded network. The method of this embodiment is used to perform three-dimensional surface reconstruction on sparse cardiac slice images, and is specifically implemented according to the following steps:

[0061] Ten short-axis slice images and two long-axis slice images of the patient's heart were acquired, for a total of 12 slice images. Unet2D (a two-dimensional U-shaped network) was used as the semantic segmentation network, and all slice images were input into the network for segmentation processing. During the training phase, the segmentation network was trained under joint supervision using cross-entropy loss and Dice loss, outputting predicted endocardial and epicardial contours for each slice, and simultaneously extracting deep semantic feature maps for each slice. These feature maps have a three-dimensional tensor structure with pixel height, pixel width, and feature channels, where the feature channel dimension is 256.

[0062] In this embodiment, UNet2D is a classic deep learning network architecture designed specifically for two-dimensional image segmentation tasks. Its core structure is symmetrical "U"-shaped and mainly consists of a left encoder and a right decoder. The left encoder gradually compresses the image size and extracts deep semantic features through multiple convolution and pooling operations, while the right decoder gradually restores the image resolution through upsampling operations to achieve pixel-level accurate localization.

[0063] Cross-entropy loss is one of the core loss functions used in classification tasks in deep learning. Essentially, it measures the difference between the probability distribution predicted by the model and the probability distribution of the true labels. In this embodiment, it is used to evaluate the degree of fit between the contours predicted by the segmentation network and the "ground truth" contours annotated by experts. Specifically, it measures the difference between the model's prediction of the probability that each pixel in the image belongs to the endocardium or epicardium and the true annotation result.

[0064] Dice loss is a loss function specifically designed for image segmentation tasks, especially suitable for handling situations where the number of foreground and background pixels is extremely unbalanced. For example, in medical images, organs (i.e., foreground) usually only occupy a very small part of the entire image. Its design is directly derived from the Dice similarity coefficient, a statistical metric used to measure the similarity between two sample sets.

[0065] In this embodiment, during the semantic segmentation stage of heart slices, the joint supervision method between the output of the segmentation network and the real contour is as follows:

[0066] Total loss = Cross-entropy loss + Dice loss

[0067] The two loss mechanisms work synergistically: cross-entropy loss ensures accurate classification decisions for each pixel; Dice loss ensures the integrity and geometric consistency of the overall contour region. Combined, these two losses enable the segmentation network to accurately determine boundaries pixel-by-pixel while maintaining the continuity and integrity of the overall contour structure, thus providing high-quality contour input for subsequent 3D reconstruction.

[0068] The predicted contour values ​​of each slice output by the segmentation network are projected into 3D space to obtain the contour point positions of each slice in 3D space. Simultaneously, the pre-labeled ground truth contour values ​​are processed in the same way to obtain a 3D contour ground truth point set. The long axis of the heart is constructed using the line connecting the apex and base of the heart, and 60 radial tangent planes are uniformly constructed circumferentially around this long axis. The intersection points of each radial tangent plane with the 3D contour of each slice are calculated to obtain an initial set of intersection points. Then, interpolation is performed in stages along the long axis of the heart between adjacent slices to generate a complete, one-to-one correspondence between the 3D contour ground truth point set and the 3D contour predicted value point set. This point set is divided into 60 groups based on the radial tangent planes. The contour points within each group are arranged clockwise from the apex to the base and back to the apex, ensuring strict consistency between the ground truth points and the predicted value points in grouping and ordering.

[0069] A spatial association modeling unit is constructed based on the Transformer architecture. The deep semantic feature maps of each slice are input into this unit and mapped to a query matrix, a key matrix, and a value matrix, respectively. Cross-attention calculation is performed on the feature maps of adjacent slices. An attention weight matrix is ​​generated by calculating and normalizing the similarity between the query matrix and the key matrix. The value matrix is ​​then weighted and aggregated using this weight matrix, so that the feature vectors of each spatial location adaptively fuse information from the associated locations in adjacent slices, and an enhanced spatial feature map is output.

[0070] The Transformer is a deep learning network architecture based on a self-attention mechanism. Unlike traditional convolutional neural networks or recurrent neural networks, the Transformer completely abandons convolution and recurrent structures. Its core idea is to model the global dependency between any two positions in a sequence through a self-attention mechanism, regardless of distance. In this embodiment, the Transformer structure is used to perform cross-attention calculation on the deep semantic feature maps of adjacent slices, enabling each slice feature to perceive the positional information corresponding to its anatomical structure in adjacent slices, achieving adaptive aggregation of cross-slice spatial contextual information.

[0071] Based on the correspondence between each 3D contour point and the slice position, the initial feature vector of each 3D contour point is obtained by mapping from the enhanced spatial feature map. Then, the feature vectors of the eight neighboring locations of that point on the slice are extracted. Learnable weights are used to weight and fuse the initial feature vectors with the eight neighboring features to generate a fused feature vector for each 3D contour point. The points are grouped according to the radial tangent plane, and the fused feature vectors of all 3D contour points within each group are organized into a structured point feature map according to the vertex arrangement. Separate point feature maps are constructed for both the ground truth points and predicted 3D contour points.

[0072] A multi-stage encoding / decoding network with a three-stage cascaded encoder / decoder is constructed: the first stage encodes and decodes the point feature map at the original resolution without upsampling; the second stage encodes and decodes the point features after a first Half-Hop upsampling; and the third stage encodes and decodes the point features after a second Half-Hop upsampling. Each stage performs the above encoding / decoding operations in parallel on both the ground truth point feature map and the predicted point feature map of the 3D contour, generating two new point sets at the corresponding resolution. The predicted point set output by each stage is subject to positional supervision by the ground truth point set of the 3D contour, and simultaneously applies three constraints: positional approximation constraint uses the Euclidean distance loss between the predicted point set and the ground truth point set; sectional smoothing constraint calculates the cosine similarity loss between the feature vectors of adjacent points on the radial and lateral sections respectively; and normal consistency constraint calculates the normal vectors of each vertex and constrains the minimization of the difference between the normal vectors of corresponding vertices in the predicted point set and the ground truth point set.

[0073] In this embodiment, HalfHop is a graph data augmentation technique that "stretches" the distance between two originally directly connected nodes by adding an artificially created "slow node" to the edge of the original graph. Feature information is first passed to the slow node, and then from the slow node to the target node. In practice, feature interpolation (i.e., the initial features of the slow node) is usually controlled by an interpolation factor (α, default 0.5), meaning the features of the new node are a weighted sum of the features of the source and target nodes. After the model's forward propagation is complete, these slow nodes are removed from the output without affecting the final prediction result.

[0074] During the training phase, an end-to-end joint training strategy is adopted, co-optimizing the semantic segmentation task, the self-supervised learning task based on masked autoencoders, and the 3D vertex interpolation and regression task within the same framework. After applying a random mask to the ground truth feature map of the 3D contour, the features of the masked portion are encoded and then decoded to reconstruct the features, thereby improving the feature generalization ability of the encoding module. The weight coefficients of each loss term are dynamically adjusted based on the Dice value output by the semantic segmentation module; the loss weight corresponding to the ground truth feature map is set to one minus the Dice value, and the loss weight corresponding to the predicted feature map is set to the Dice value. During final inference, the input sparse slice image, after processing by the above modules, outputs the set of predicted 3D contour points after the final encoding and decoding stage, which is the 3D reconstruction result of the heart.

[0075] Example 3

[0076] Exemplary embodiment 3 of the present invention provides a cardiac 3D reconstruction system based on a cascaded network for implementing the method of the present invention. The system includes the following functional modules:

[0077] The two-dimensional semantic segmentation module uses the Unet2D segmentation network to batch process the input short-axis and long-axis slices of the heart, outputting the predicted contours of the endocardium and epicardium of each slice, and simultaneously extracting the deep semantic feature maps of each slice. The loss function of this module is a weighted combination of cross-entropy loss and Dice loss for supervised training.

[0078] The slice spatial feature processing module, built on the Transformer structure, is used to perform cross-attention calculation between adjacent slices on the deep semantic feature maps of each slice. It generates an attention weight matrix by calculating and normalizing the similarity between the query matrix and the key matrix. The value matrix is ​​then weighted and aggregated using this weight matrix to output an enhanced spatial feature map that integrates the spatial context information of adjacent slices.

[0079] The 3D point calculation module is used to project the true and predicted values ​​of the 2D contours of each slice into 3D space. The long axis of the heart is constructed by connecting the apex and base of the heart, and 60 radial tangent planes are uniformly generated around the axis. The intersection points of each tangent plane and the contour are calculated. Interpolation is performed along the long axis to generate a one-to-one corresponding set of true and predicted 3D contour points. The point sets are then grouped and sorted by radial tangent plane.

[0080] The point feature map construction module is used to obtain the initial feature vector of each point from the enhanced spatial feature map based on the correspondence between the 3D contour points and the slice positions, extract the eight-neighbor features, perform weighted fusion using learnable weights, generate fused feature vectors, group them according to the radial tangent plane and organize them into structured point feature maps according to the vertex arrangement order, and construct separate point feature maps for ground truth points and predicted value points.

[0081] The multi-stage encoding and decoding module includes a three-stage cascaded encoder and decoder and a HalfHop feature upsampling unit. The first stage performs encoding and decoding at the original resolution, while the second and third stages perform encoding and decoding after the first and second HalfHop upsampling, respectively. Each stage processes the ground truth feature map and the predicted value feature map in parallel to generate a new point set at the corresponding resolution.

[0082] The multi-constraint loss calculation module is used to calculate the loss of each level of encoding and decoding output, including position approximation loss (Euclidean distance between the predicted point set and the ground truth point set), sectional smoothing loss (cosine similarity between adjacent points on the radial and lateral sections), and normal consistency loss (difference between the corresponding vertex normal vectors).

[0083] The end-to-end training control module is used to coordinate and optimize semantic segmentation, mask autoencoder self-supervised learning and vertex interpolation regression tasks in a unified training framework. It dynamically adjusts the loss weights of the ground truth branch and the predicted value branch according to the segmentation Dice value, and outputs the three-dimensional contour prediction point set after final-level encoding and decoding as the result of heart three-dimensional reconstruction.

[0084] The above modules are cascaded in sequence to form a complete processing link from two-dimensional slice image input to three-dimensional cardiac surface point set output. The parameters of each module are collaboratively optimized in the end-to-end training framework, ultimately achieving high-precision and high-smoothness three-dimensional reconstruction of the heart.

[0085] Example 4

[0086] Exemplary Example 4 of the present invention provides a method for 3D reconstruction of the heart based on a cascaded network. In this embodiment, the method of the present invention is implemented in the following manner:

[0087] Figure 2 This is an example diagram illustrating the technical principle of 2D semantic segmentation using the method described in Exemplary Embodiment 4 of the present invention, as follows: Figure 2 As shown, this embodiment performs 2D semantic segmentation in the following manner: Unet2D is used to batch process 10 SAX (short axis) slices and 2 LAX (long axis) slices of the heart, with pixel width and height W (width) and H (height) respectively. Cross-entropy loss and Dice loss are used for supervision to output stable contour prediction values ​​and (10+2) deep semantic feature maps.

[0088] Figure 3 This is an example diagram illustrating the technical principle of spatial feature enhancement according to Exemplary Embodiment 4 of the present invention, such as... Figure 3 As shown, spatial feature enhancement is performed in this embodiment as follows: Based on the above deep semantic feature map, attention network is used to perform cross-attention on the feature maps of adjacent slices, and output (10+2)×W×H×D dimensional slice feature map, where D is 256, which is the feature vector dimension corresponding to the slice pixel.

[0089] Figure 4 This is a schematic diagram illustrating the technical principle of generating three-dimensional ground truth points and initializing three-dimensional predicted value points according to the method of Exemplary Embodiment 4 of the present invention, as follows: Figure 4 As shown, in this embodiment, the 2D contour ground truth values ​​of each slice are mapped to 3D space; 60 vertical tangent planes (including 2 LAX slice planes) are constructed using the apex and basal points and their connecting lines to obtain the intersection points of the tangent planes and the slice contours; and interpolation is performed in stages along the Z-axis to obtain a complete 3D contour ground truth point set, which is then mapped to the slice feature map. The 2D contour prediction values ​​are processed in the same way to obtain the 3D contour prediction point set. The point set is divided into 60 groups based on the vertical tangent planes, and each group is arranged clockwise in the order of apex → basal → apex, with a one-to-one correspondence between the current 3D contour prediction point and the 3D contour ground truth point.

[0090] Figure 5 This is an example diagram illustrating the technical principle of constructing a point feature map using the method described in Exemplary Embodiment 4 of the present invention, as follows: Figure 5 As shown, in this embodiment, for each 3D contour ground truth point and 3D contour predicted value point, the corresponding feature vector is obtained through the mapping relationship with the slice feature map, and the 8-neighborhood features of the slice position where the feature vector is located are fused into 256-dimensional single-point features through learnable weights; a structured point feature map is constructed by grouping according to the tangent plane to distinguish between the 3D contour ground truth point feature map and the 3D contour predicted value point feature map.

[0091] Figure 6 This is a schematic diagram illustrating the process of performing multi-stage HalfHop encoding / decoding and progressive interpolation and constraints according to the method of Exemplary Embodiment 4 of the present invention, as follows: Figure 6 As shown, in this embodiment, for the point feature map, feature encoding is performed sequentially in three groups: no interpolation processing, first Half-Hop upsampling, and second Half-Hop upsampling; and feature decoding is performed on the ground truth point feature map and the predicted 3D contour point feature map after each group of encoding, generating two new point sets (the point set corresponding to the ground truth point feature map and the point set corresponding to the predicted 3D contour point feature map). The two new point sets are then subjected to positional constraints using the ground truth point set of the 3D contour, and smoothing constraints are applied using the cosine loss function and the normal loss function on the horizontal and vertical tangent planes.

[0092] Figure 7 This is a technical schematic diagram illustrating the end-to-end training method according to Exemplary Embodiment 4 of the present invention, as shown below. Figure 7As shown, in this embodiment, a dynamic weighted loss mode is set for the training process. Based on the Dice value of semantic segmentation, loss weights are applied to the loss calculations for the two batches of generated point sets. The loss value calculated for the point set corresponding to the ground truth feature map of the 3D contour corresponds to a weight of (1-Dice value), and the loss calculated for the point set corresponding to the predicted feature map of the 3D contour corresponds to a weight of the Dice value. When performing multi-stage Half-Hop encoding and decoding on the ground truth feature map of the 3D contour, the PatchMask mechanism is used to improve the generalization ability of the encoding module. In this embodiment, the essence of the PatchMask mechanism is consistent with the core idea of ​​MAE (Masked Autoencoders): during training, a portion of the input data (i.e., a mask) is randomly removed, and then the model learns to predict and reconstruct these hidden parts.

[0093] Figure 8 This is an example diagram illustrating the technical principle of the inference output method according to Exemplary Embodiment 4 of the present invention, such as... Figure 8 As shown, in this embodiment, the input sparse slice undergoes semantic segmentation, spatial feature enhancement, 3D ground truth point generation and 3D predicted value point initialization, point feature map construction, and multi-stage HalfHop encoding and decoding. The output is the point set corresponding to the 3D contour predicted value point feature map after the second HalfHop upsampling encoding and decoding.

[0094] 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., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.

[0095] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for 3D reconstruction of the heart based on cascaded networks, characterized in that, The method includes: Step S1: Perform semantic segmentation on the multi-layer medical slice image of the heart, extract the two-dimensional contour of each slice, and generate the corresponding deep semantic feature map; Step S2: Map the two-dimensional contour to three-dimensional space, construct multiple radial tangent planes along the long axis of the heart and obtain the intersection points of the radial tangent planes and the contour, and generate a one-to-one corresponding set of true value points and predicted value points of the three-dimensional contour through axis interpolation; Step S3: Based on the deep semantic feature map, perform spatial cross-attention enhancement on adjacent slices, extract the fusion point features of each 3D contour point, and construct a structured point feature map according to the radial tangent plane grouping; Step S4: Using the three-dimensional contour ground truth point set as supervision, the structured point feature map is progressively upsampled, interpolated, and encoded / decoded through a cascaded multi-stage encoding / decoding network. Under multiple constraints, the vertex positions are refined step by step to output a high-precision three-dimensional heart surface point set.

2. The cardiac 3D reconstruction method based on cascaded networks according to claim 1, characterized in that, In step S1, the multi-layered medical slice image of the heart includes short-axis slice image and long-axis slice image. The slice image is segmented by a two-dimensional segmentation network, and the contour prediction value is output. The pre-labeled two-dimensional contour ground truth value and the contour prediction value are input into the loss function to calculate the loss. The training of the segmentation network is supervised by backpropagation and parameter update based on the calculated loss value.

3. The cardiac 3D reconstruction method based on cascaded networks according to claim 1, characterized in that, In step S1, the deep semantic feature map has a three-dimensional tensor structure with height dimension, width dimension and feature channel dimension, where the height dimension and width dimension correspond to the pixel height and pixel width of the slice image, respectively, and the feature channel dimension is used to characterize the length of the semantic feature vector corresponding to each pixel position.

4. The cardiac 3D reconstruction method based on cascaded networks according to claim 1, characterized in that, In step S2, the true contour value and predicted contour value of the two-dimensional contour of each slice are projected onto the three-dimensional space to obtain the three-dimensional contour points at the spatial location of each slice. The two-dimensional contour includes the endocardial contour and the epicardial contour. The long axis of the heart is constructed by connecting the apex and the base of the heart. A preset number of radial tangent planes are uniformly constructed around the long axis in the circumferential direction. The intersection points of each radial tangent plane with the three-dimensional contour of each slice are calculated to obtain the initial intersection point set. Along the long axis of the heart, staged interpolation is performed on the initial intersection point set between adjacent slices to form a one-to-one correspondence of the true three-dimensional contour point set and the predicted three-dimensional contour point set.

5. The cardiac 3D reconstruction method based on cascaded networks according to claim 4, characterized in that, In step S2, the three-dimensional contour ground truth point set and the three-dimensional contour predicted value point set are divided into multiple groups based on the radial tangent plane. The number of groups is equal to the preset number of radial tangent planes. The contour points in each group are arranged clockwise along the long axis of the heart in the order from the apex to the base of the heart and back to the apex. All three-dimensional contour ground truth points and three-dimensional contour predicted value points are completely consistent in grouping and sorting.

6. The cardiac 3D reconstruction method based on cascaded networks according to claim 1, characterized in that, In step S3, spatial cross-attention enhancement is performed on adjacent slices in the following manner: Based on the Transformer structure, cross-attention calculation is performed on the deep semantic feature maps between different slices, and the feature association between adjacent slices in the spatial dimension is strengthened according to the attention calculation weight, and an enhanced spatial feature map is output. This enhanced spatial feature map has a four-dimensional tensor structure with slice number dimension, height dimension, width dimension and feature channel dimension.

7. The cardiac 3D reconstruction method based on cascaded networks according to claim 6, characterized in that, In step S3, the specific method for constructing the structured point feature map is as follows: Based on the correspondence between each 3D contour point and the slice position, the initial feature vector of each 3D contour point is obtained by mapping from the enhanced spatial feature map, and the features of the eight neighboring positions of the point on the slice are extracted. The initial feature vector and the eight neighboring features are weighted and fused using learnable weights to obtain the fused feature vector of each 3D contour point; the fused feature vectors of all 3D contour points in each group are grouped according to the radial tangent plane, and the fused feature vectors of all 3D contour points in each group are organized into a structured point feature map according to the vertex arrangement order, and point feature maps are constructed for the ground truth points and predicted values ​​of the 3D contour points respectively.

8. The cardiac 3D reconstruction method based on cascaded networks according to claim 1, characterized in that, In step S4, progressive upsampling interpolation and encoding / decoding are performed as follows: In the first-level encoding / decoding stage, the point feature map is encoded and decoded at the original resolution without upsampling; The second-level encoding and decoding stage encodes and decodes point features after the first HalfHop upsampling; The third-level encoding and decoding stage encodes and decodes the point features after the second HalfHop upsampling. In each stage, the encoding and decoding of the ground truth point feature map and the predicted point feature map of the three-dimensional contour are performed in parallel to generate two new point sets at the corresponding resolution.

9. The cardiac 3D reconstruction method based on cascaded networks according to claim 1, characterized in that, In step S4, the multiple constraints include at least position approximation constraints, sectional smoothing constraints, and normal consistency constraints. The position approximation constraint is the Euclidean distance loss or mean square error loss between the 3D contour prediction point set generated in each stage and the corresponding 3D contour ground truth point set. The sectional smoothing constraint is to calculate the cosine similarity loss between the feature vectors of adjacent points on the radial and transverse sectional planes, respectively, to constrain the directional consistency between adjacent vertices. The normal consistency constraint is to calculate the normal vector at each vertex and constrain the difference between the normal vectors of the 3D contour prediction point set and the 3D contour ground truth point set at the corresponding vertex to minimize.

10. The cardiac 3D reconstruction method based on cascaded networks according to claim 1, characterized in that, In step S4, the contour extraction of the segmentation network in step S1, the spatial cross-attention enhancement and vertex localization of the cascaded multi-stage encoding and decoding in step S3 are optimized by an end-to-end training strategy, and the three-dimensional contour prediction point set after the final stage encoding and decoding is output as the result of the three-dimensional reconstruction of the heart.

Citation Information

Patent Citations

  • Right ventricle three-dimensional reconstruction method based on echocardiogram and related device

    CN119206065A

  • Three-dimensional heart reconstruction method, device and equipment based on multi-section two-dimensional ultrasound and medium

    CN120374866A