Medical image lesion identification method and system, terminal device and storage medium

By constructing implicit deformation fields and Gaussian representations for keyframe groups, the problem of insufficient inter-frame structural correlation in existing technologies is solved, improving the accuracy and consistency of lesion identification and adapting to complex scenarios.

CN123181972APending Publication Date: 2026-11-27GUANGZHOU FIRST PEOPLES HOSPITAL (GUANGZHOU DIGESTIVE DISEASE CENT GUANGZHOU FIRST PEOPLES HOSPITAL GUANGZHOU MEDICAL UNIV THE SECOND AFFILIATED HOSPITAL OF SOUTH CHINA UNIV OF TECH)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611249453.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing medical image lesion segmentation methods cannot effectively model inter-frame structural relationships, resulting in inconsistent lesion identification results and boundary jitter in complex scenarios such as noise interference, blurred boundaries, and tissue deformation, leading to insufficient accuracy.

Method used

By constructing an implicit deformation field for keyframe groups, Gaussian representation is used to predict cross-frame structural changes. By combining image semantic features and deformation features, lesion identification is achieved.

Benefits of technology

It improves the accuracy and consistency of lesion identification results, reduces inconsistencies between frames and boundary jitter, and enhances adaptability to complex scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181972A_ABST
    Figure CN123181972A_ABST
Patent Text Reader

Abstract

The application provides a lesion recognition method and system of a medical image, a terminal device and a storage medium. The method comprises: acquiring a medical image sequence; selecting a key frame from the sequence and performing Gaussian modeling to obtain a Gaussian representation of the key frame; constructing a key frame group based on the key frame and one or more adjacent frames thereof; predicting a Gaussian parameter variation of other frames in the key frame group through the Gaussian representation; wherein the Gaussian parameter variation is used to represent an implicit deformation field of cross-frame structure variation within the key frame group; extracting a deformation feature based on the Gaussian parameter variation, extracting an image semantic feature of each frame in the key frame group, fusing the image semantic feature and the deformation feature, and obtaining an enhanced frame feature containing static texture information and dynamic deformation information, so as to realize lesion recognition based on the enhanced frame feature. The application can improve the accuracy of the lesion recognition result of the medical image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention application relates to the field of medical image processing, and more particularly to a method, system, terminal device, and storage medium for lesion identification in medical images. Background Technology

[0002] Medical image streams, such as carotid ultrasound videos and CT / MRI slice sequences, can continuously reflect the spatial changes in anatomical structures and the dynamic evolution of lesion morphology, and have important diagnostic value in clinical scenarios such as cardiovascular and cerebrovascular disease screening and tumor assessment. Compared with single-frame static images, medical image streams contain rich continuity information between adjacent frames in terms of tissue boundaries, structural morphology, and lesion deformation. This cross-frame correlation information is crucial for improving the accuracy of lesion boundary localization and maintaining the structural consistency of segmentation results.

[0003] However, most existing mainstream medical image lesion segmentation methods (such as U-Net and its variants) are designed for single-frame images, using convolutional neural networks or visual Transformers as the backbone to extract semantic features such as texture and shape from a single frame to complete pixel-level classification. While these methods can achieve certain segmentation results on independent frames, their design paradigm inherently severs the structural relationships between frames in the image stream, failing to model the continuous temporal changes of anatomical structures such as blood vessels and plaques. When faced with complex scenarios such as noise interference, blurred boundaries, and tissue deformation commonly found in ultrasound videos, independent segmentation relying solely on single-frame information easily leads to inconsistencies in inter-frame segmentation results, boundary jitter, and missed detection of small lesions, severely limiting the accuracy of lesion identification results. Summary of the Invention

[0004] This invention application provides a method, system, terminal device, and storage medium for lesion identification in medical images, in order to solve the technical problem of how to improve the accuracy of lesion identification results in medical images.

[0005] To address the aforementioned technical problems, this invention provides a method for lesion identification in medical images, comprising: Acquire a medical image sequence; wherein the medical image sequence includes multiple frames of two-dimensional medical images; Keyframes are selected from the medical image sequence, and Gaussian modeling is performed on the keyframes to obtain Gaussian representations of the keyframes. The Gaussian representations are used to describe the structural and textural information of the keyframes using positional parameters, deformation parameters, and appearance parameters of multiple Gaussian primitives. A keyframe group is constructed based on a keyframe and one or more adjacent frames; the Gaussian parameter variation of other frames in the keyframe group, excluding the keyframe, is predicted using the Gaussian representation; wherein the Gaussian parameter variation is used to characterize the implicit deformation field of cross-frame structural changes within the keyframe group. Deformation features are extracted based on the Gaussian parameter variation, and image semantic features of each frame in the keyframe group are extracted. The image semantic features are fused with the deformation features to obtain enhanced frame features containing static texture information and dynamic deformation information, thereby enabling lesion identification based on the enhanced frame features.

[0006] As a preferred embodiment, selecting keyframes from the medical image sequence includes: Each frame in the medical image sequence is determined as the current candidate frame; Using the Gaussian primitives corresponding to the previous frame and the Gaussian primitives corresponding to the previous keyframe as initial Gaussian primitives, two-dimensional Gaussian fitting is performed on the current candidate frame to obtain the first updated Gaussian representation and the second updated Gaussian representation, respectively. A first reconstruction difference is determined based on the difference between the image of the current candidate frame and the image reconstructed from the first updated Gaussian representation; and a second reconstruction difference is determined based on the difference between the image of the current candidate frame and the image reconstructed from the second updated Gaussian representation. The first structural difference is determined based on the changes in position parameters, deformation parameters, and appearance parameters of the Gaussian representation of the first updated Gaussian representation relative to the Gaussian unit corresponding to the previous frame; and the second structural difference is determined based on the changes in position parameters, deformation parameters, and appearance parameters of the Gaussian representation of the second updated Gaussian representation relative to the Gaussian unit corresponding to the previous keyframe. Based on the first reconstruction difference, the second reconstruction difference, the first structural difference, and the second structural difference, determine whether the current candidate frame is a key frame.

[0007] As a preferred embodiment, determining whether the current candidate frame is a keyframe based on the first reconstruction difference, the second reconstruction difference, the first structural difference, and the second structural difference includes: The first reconstruction difference and the second reconstruction difference are weighted to obtain the reconstruction loss of the current candidate frame; The reconstruction loss is compared with a preset reconstruction loss threshold; When the reconstruction loss is not less than the preset reconstruction loss threshold, the structural loss is determined based on the first structural difference and the second structural difference, and the overall loss of the current candidate frame is determined based on the reconstruction loss and the structural loss; the average difference value is determined based on the difference loss corresponding to each frame in the preset sliding window, and the loss comparison threshold is determined based on the average difference value and the preset floating range. When the total loss is not less than the loss comparison threshold, the current candidate frame is determined as a key frame.

[0008] As a preferred embodiment, performing Gaussian modeling on the keyframes to obtain their Gaussian representations includes: The keyframe is input into a preset U-Net network to obtain a reference mask for characterizing the target structural region in the keyframe. According to the reference mask, high-order units are set with a first sampling density in the target structure region and with a second sampling density in the background region outside the target structure region, wherein the first sampling density is greater than the second sampling density; Based on the set Gaussian elements, a two-dimensional Gaussian fit is performed on the keyframe to obtain the Gaussian representation composed of the position parameters, deformation parameters, and appearance parameters of multiple Gaussian elements.

[0009] As a preferred embodiment, predicting the Gaussian parameter changes of other frames in the keyframe group (excluding keyframes) using the Gaussian representation includes: Using a keyframe as the center frame of the keyframe group, obtain the spatial coordinates of each Gaussian element in the Gaussian representation, as well as the temporal offset of the other frames relative to the keyframe. The spatial coordinates and the time offset are encoded respectively to obtain spatial encoding features and time encoding features; The spatial coding features and the temporal coding features are input into a preset multilayer perceptron prediction network to obtain the position increment and deformation increment of each Gaussian element relative to the key frame in the other frames; The Gaussian parameter changes of the other frames are determined based on the position increment and the deformation increment, and the Gaussian parameter changes are combined with the Gaussian representation of the key frame to obtain the Gaussian representation of the other frames.

[0010] As a preferred embodiment, the step of extracting deformation features based on the Gaussian parameter variation, extracting image semantic features from each frame in the keyframe group, and fusing the image semantic features with the deformation features to obtain enhanced frame features containing static texture information and dynamic deformation information includes: The Gaussian representation of the key frame and the Gaussian parameter changes of other frames are input into the deformation encoder to obtain deformation features at the Gaussian primitive level. By differentiable rendering, the deformation features at the Gaussian level are mapped to the image feature space to obtain the image space deformation features corresponding to each frame in the keyframe group. Each frame in the keyframe group is input into a preset feature extraction network to obtain multi-scale image semantic features corresponding to each frame. The image spatial deformation features corresponding to each frame are fused with the multi-scale image semantic features of the corresponding scale to obtain the multi-scale enhanced frame features corresponding to each frame.

[0011] As a preferred embodiment, the identification of lesions based on the enhanced features includes: Based on the reference mask, multiple anchor points are selected within the target structure region; Based on the position of each anchor point, the multi-scale enhanced frame features corresponding to each frame in the key frame group are bilinearly sampled to obtain the anchor point features corresponding to each frame. The anchor point features corresponding to different frames in the same keyframe group are arranged in chronological order to form an anchor point feature sequence, and the anchor point feature sequence is temporally modeled to obtain temporal anchor point features. For each Gaussian element corresponding to each frame in the keyframe group, a preset number of neighboring anchor points that are closest to the Gaussian element are determined from the plurality of anchor points, and the interpolation weight is determined based on the spatial distance between the Gaussian element and each neighboring anchor point. Based on the interpolation weights, the temporal anchor features corresponding to each neighboring anchor point are interpolated to obtain the Gaussian features corresponding to the Gaussian. The Gaussian features corresponding to each Gaussian are mapped to feature maps, and the feature maps and the multi-scale enhanced frame features are input into the segmentation decoder to obtain lesion identification results.

[0012] Accordingly, this invention application also provides a lesion recognition system for medical images, including an image acquisition module, a modeling module, a prediction module, and a recognition module; wherein, The image acquisition module is used to acquire a medical image sequence; wherein the medical image sequence includes multiple frames of two-dimensional medical images; The modeling module is used to select keyframes from the medical image sequence and perform Gaussian modeling on the keyframes to obtain a Gaussian representation of the keyframes. The Gaussian representation is used to describe the structural and texture information of the keyframes using positional parameters, deformation parameters, and appearance parameters of multiple Gaussian primitives. The prediction module is used to construct a keyframe group based on a keyframe and one or more adjacent frames; and to predict the Gaussian parameter changes of other frames in the keyframe group other than the keyframe using the Gaussian representation; wherein the Gaussian parameter changes are used to characterize the implicit deformation field of cross-frame structural changes within the keyframe group. The recognition module is used to extract deformation features based on the Gaussian parameter variation, and extract the image semantic features of each frame in the key frame group. The image semantic features are fused with the deformation features to obtain enhanced frame features containing static texture information and dynamic deformation information, thereby realizing lesion recognition based on the enhanced frame features.

[0013] As a preferred embodiment, the modeling module selects keyframes from the medical image sequence, including: The modeling module determines each frame in the medical image sequence as the current candidate frame; Using the Gaussian primitives corresponding to the previous frame and the Gaussian primitives corresponding to the previous keyframe as initial Gaussian primitives, two-dimensional Gaussian fitting is performed on the current candidate frame to obtain the first updated Gaussian representation and the second updated Gaussian representation, respectively. A first reconstruction difference is determined based on the difference between the image of the current candidate frame and the image reconstructed from the first updated Gaussian representation; and a second reconstruction difference is determined based on the difference between the image of the current candidate frame and the image reconstructed from the second updated Gaussian representation. The first structural difference is determined based on the changes in position parameters, deformation parameters, and appearance parameters of the Gaussian representation of the first updated Gaussian representation relative to the Gaussian unit corresponding to the previous frame; and the second structural difference is determined based on the changes in position parameters, deformation parameters, and appearance parameters of the Gaussian representation of the second updated Gaussian representation relative to the Gaussian unit corresponding to the previous keyframe. Based on the first reconstruction difference, the second reconstruction difference, the first structural difference, and the second structural difference, determine whether the current candidate frame is a key frame.

[0014] As a preferred embodiment, the modeling module determines whether the current candidate frame is a keyframe based on the first reconstruction difference, the second reconstruction difference, the first structural difference, and the second structural difference, including: The modeling module performs weighted processing on the first reconstruction difference and the second reconstruction difference to obtain the reconstruction loss of the current candidate frame; The reconstruction loss is compared with a preset reconstruction loss threshold; When the reconstruction loss is not less than the preset reconstruction loss threshold, the structural loss is determined based on the first structural difference and the second structural difference, and the overall loss of the current candidate frame is determined based on the reconstruction loss and the structural loss; the average difference value is determined based on the difference loss corresponding to each frame in the preset sliding window, and the loss comparison threshold is determined based on the average difference value and the preset floating range. When the total loss is not less than the loss comparison threshold, the current candidate frame is determined as a key frame.

[0015] As a preferred embodiment, the modeling module performs Gaussian modeling on the keyframes to obtain a Gaussian representation of the keyframes, including: The modeling module inputs the key frame into a preset U-Net network to obtain a reference mask for characterizing the target structural region in the key frame. According to the reference mask, high-order units are set with a first sampling density in the target structure region and with a second sampling density in the background region outside the target structure region, wherein the first sampling density is greater than the second sampling density; Based on the set Gaussian elements, a two-dimensional Gaussian fit is performed on the keyframe to obtain the Gaussian representation composed of the position parameters, deformation parameters, and appearance parameters of multiple Gaussian elements.

[0016] As a preferred embodiment, the prediction module predicts the Gaussian parameter changes of other frames in the keyframe group (excluding keyframes) using the Gaussian representation, including: The prediction module uses a keyframe as the center frame of the keyframe group to obtain the spatial coordinates of each Gaussian element in the Gaussian representation, as well as the time offset of the other frames relative to the keyframe. The spatial coordinates and the time offset are encoded respectively to obtain spatial encoding features and time encoding features; The spatial coding features and the temporal coding features are input into a preset multilayer perceptron prediction network to obtain the position increment and deformation increment of each Gaussian element relative to the key frame in the other frames; The Gaussian parameter changes of the other frames are determined based on the position increment and the deformation increment, and the Gaussian parameter changes are combined with the Gaussian representation of the key frame to obtain the Gaussian representation of the other frames.

[0017] As a preferred embodiment, the recognition module extracts deformation features based on the Gaussian parameter variation and extracts image semantic features from each frame in the keyframe group. The image semantic features are then fused with the deformation features to obtain enhanced frame features containing both static texture information and dynamic deformation information, including: The recognition module inputs the Gaussian representation of the key frame and the Gaussian parameter changes of other frames into the deformation encoder to obtain deformation features at the Gaussian primitive level. By differentiable rendering, the deformation features at the Gaussian level are mapped to the image feature space to obtain the image space deformation features corresponding to each frame in the keyframe group. Each frame in the keyframe group is input into a preset feature extraction network to obtain multi-scale image semantic features corresponding to each frame. The image spatial deformation features corresponding to each frame are fused with the multi-scale image semantic features of the corresponding scale to obtain the multi-scale enhanced frame features corresponding to each frame.

[0018] As a preferred embodiment, the identification module identifies lesions based on the enhanced features, including: The identification module selects multiple anchor points within the target structure region based on the reference mask. Based on the position of each anchor point, the multi-scale enhanced frame features corresponding to each frame in the key frame group are bilinearly sampled to obtain the anchor point features corresponding to each frame. The anchor point features corresponding to different frames in the same keyframe group are arranged in chronological order to form an anchor point feature sequence, and the anchor point feature sequence is temporally modeled to obtain temporal anchor point features. For each Gaussian element corresponding to each frame in the keyframe group, a preset number of neighboring anchor points that are closest to the Gaussian element are determined from the plurality of anchor points, and the interpolation weight is determined based on the spatial distance between the Gaussian element and each neighboring anchor point. Based on the interpolation weights, the temporal anchor features corresponding to each neighboring anchor point are interpolated to obtain the Gaussian features corresponding to the Gaussian. The Gaussian features corresponding to each Gaussian are mapped to feature maps, and the feature maps and the multi-scale enhanced frame features are input into the segmentation decoder to obtain lesion identification results.

[0019] Accordingly, this application also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the lesion identification method for medical images.

[0020] Accordingly, this application also provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program, when running, controls the device where the computer-readable storage medium is located to execute the lesion identification method for medical images.

[0021] Compared with the prior art, this invention application has the following beneficial effects: This invention provides a method, system, terminal device, and storage medium for lesion identification in medical images. By constructing an implicit deformation field for keyframe groups, cross-frame structural change information is incorporated into the lesion identification process. This fundamentally solves the problems of existing single-frame segmentation methods that sever inter-frame structural connections and fail to perceive the continuous temporal changes in anatomical structures. The enhanced frame features simultaneously aggregate static texture information and cross-frame dynamic deformation information. This allows deformation features to provide structural change compensation information for semantic features when facing complex scenarios such as noise interference, blurred boundaries, and tissue deformation common in ultrasound videos. This maintains the consistency and continuity of segmentation results across frames, reduces inconsistencies and boundary jitter caused by insufficient information in a single frame, and ultimately improves the accuracy of lesion identification. Furthermore, this invention applies Gaussian modeling to keyframes, using position parameters, deformation parameters, and appearance parameters to describe the structural and textural information of the keyframes. Then, it constructs an implicit deformation field by predicting the changes in Gaussian parameters of other frames using the same Gaussian representation. This design allows the static structural representation of keyframes and the dynamic deformation representation across frames to share the same Gaussian meta-parameter system, eliminating the need for conversion between different feature spaces or representations. This results in a more compact feature expression, which helps reduce information loss and improves the effectiveness of subsequent feature fusion and lesion identification. Attached Figure Description

[0022] Figure 1 This is a flowchart illustrating an embodiment of the lesion identification method for medical images provided in this invention application.

[0023] Figure 2 This is a schematic diagram illustrating the principle of one embodiment of lesion segmentation and auxiliary analysis provided in this invention application.

[0024] Figure 3 This is a schematic diagram illustrating the principle of one embodiment of Gaussian modeling provided in this invention application.

[0025] Figure 4 This is a schematic diagram illustrating the principle of one embodiment of deformation-sensing segmentation provided in this invention application.

[0026] Figure 5 This is a schematic diagram of a longitudinal section for carotid artery ultrasound lesion analysis provided in this invention application.

[0027] Figure 6 This is a cross-sectional schematic diagram of carotid artery ultrasound lesion analysis provided in this invention application.

[0028] Figure 7 This is a schematic diagram of an embodiment of the lesion recognition system for medical images provided in this invention application. Detailed Implementation

[0029] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0030] Example 1 Please refer to Figure 1 This is a flowchart illustrating an embodiment of the lesion identification method for medical images provided in this invention application.

[0031] Figure 1 The illustrated embodiment includes steps S101 to S104; each step is described in detail below: Step S101: Obtain a medical image sequence; wherein the medical image sequence includes multiple frames of two-dimensional medical images.

[0032] Specifically, the medical image sequence can be multiple frames of two-dimensional medical images continuously acquired by a medical imaging acquisition device or stored in a preset order. Each frame of the two-dimensional medical image is arranged in chronological or spatial hierarchical order, so that the medical image sequence can continuously reflect the morphological changes of the target structure.

[0033] In this embodiment, the medical image sequence can be carotid artery ultrasound video, which may include transverse section scan video and longitudinal section scan video. The transverse section scan video reflects the structural changes of blood vessels and plaques in a transverse section, while the longitudinal section scan video reflects the structural changes of blood vessels and plaques along the direction of blood vessel extension.

[0034] In other embodiments, the medical image sequence may also be a CT slice sequence, an MRI slice sequence, or other two-dimensional medical image sequences organized according to time or spatial hierarchy.

[0035] The medical image sequence obtained in step S101 is used as input for step S102 in order to select keyframes from the medical image sequence that can characterize the target structure and lesion information.

[0036] Step S102: Select keyframes from the medical image sequence and perform Gaussian modeling on the keyframes to obtain the Gaussian representation of the keyframes. The Gaussian representation is used to describe the structural and texture information of the keyframes using positional parameters, deformation parameters, and appearance parameters of multiple Gaussian primitives.

[0037] Specifically, this embodiment uses a two-dimensional Gaussian fitting method to represent an image frame as a set of multiple Gaussian elements.

[0038] In some implementations, a schematic diagram of the lesion segmentation and auxiliary analysis framework is shown below. Figure 2 As shown in the diagram. The principle diagram of Gaussian modeling is as follows. Figure 3 As shown.

[0039] Among them, F n F can represent the current candidate frame. n-1 and F n+1 For the neighboring frames of the current candidate frame, F k The keyframes are represented by the position parameters of each Gaussian primitive (GRP) to characterize its position in the image space; the deformation parameters to characterize its scaling and rotation states, which can correspond to the covariance matrix and be stored using the Cholesky decomposition of the covariance matrix; and the appearance parameters to characterize the appearance information of the local region corresponding to the GRP. Thus, the position and deformation parameters of multiple GRPs can jointly describe the structural information in the image, while the appearance parameters of multiple GRPs can describe the texture information in the image.

[0040] During the keyframe selection stage, two-dimensional Gaussian fitting can be performed on candidate frames in the medical image sequence. Based on the differences in image reconstruction and Gaussian parameter structure between the candidate frame and the previous frame and the previous keyframe, it can be determined whether the candidate frame has undergone a structural change sufficient to identify it as a new keyframe. This process can filter out representative keyframes from the medical image sequence, reducing the computational overhead caused by subsequent repeated fine processing of redundant frames.

[0041] For example, in the reconstruction phase, for any candidate frame, the system first performs a simple 2DGS fitting (only a few thousand points and a few thousand periods) to represent it as an implicit representation T consisting of multiple two-dimensional Gaussian elements; in the modeling phase, an initial point setting is performed using a Mask and a more refined 2DGS fitting is performed.

[0042] G n This is the Gaussian expression after fine refitting, where three parameters remain the full set of parameters. Represents its spatial coordinates, This represents the deformation parameters stored in the form of Cholesky decomposition. This represents its appearance parameters. Before deformation, T0 = ,in These are position parameters, deformation parameters, and appearance parameters, respectively.

[0043] Time step t represents the number of frames offset between the target frame (other frames in the center sampling frame group) and the center frame of the center sampling frame group. N is the size of the center sampling frame group (3 frames are used as an example in the figure).

[0044] Representing position encoding, the process shown in the figure is based on the Gaussian representation of the center frame, predicting the changes of each Gaussian element in the preceding and following frames relative to the center frame (including position increment du and deformation increment dσ), which can be understood as changes in position, scaling, and rotation attributes, thus describing the changes of the structure over time with a unified Gaussian representation.

[0045] To illustrate the specific process of keyframe selection, the following section elaborates on the two comparison paths between the current candidate frame and the previous frame and the previous keyframe.

[0046] In some preferred embodiments, selecting keyframes from the medical image sequence includes: Each frame in the medical image sequence is determined as the current candidate frame; Using the Gaussian primitives corresponding to the previous frame and the Gaussian primitives corresponding to the previous keyframe as initial Gaussian primitives, two-dimensional Gaussian fitting is performed on the current candidate frame to obtain the first updated Gaussian representation and the second updated Gaussian representation, respectively. A first reconstruction difference is determined based on the difference between the image of the current candidate frame and the image reconstructed from the first updated Gaussian representation; and a second reconstruction difference is determined based on the difference between the image of the current candidate frame and the image reconstructed from the second updated Gaussian representation. The first structural difference is determined based on the changes in position parameters, deformation parameters, and appearance parameters of the Gaussian representation of the first updated Gaussian representation relative to the Gaussian unit corresponding to the previous frame; and the second structural difference is determined based on the changes in position parameters, deformation parameters, and appearance parameters of the Gaussian representation of the second updated Gaussian representation relative to the Gaussian unit corresponding to the previous keyframe. Based on the first reconstruction difference, the second reconstruction difference, the first structural difference, and the second structural difference, determine whether the current candidate frame is a key frame.

[0047] In some preferred embodiments, during the initial processing stage of the medical image sequence, the first frame of the medical image sequence is determined as the initial keyframe, and a two-dimensional Gaussian fitting is performed on the first frame to obtain the initial Gaussian representation corresponding to the initial keyframe. The initial Gaussian representation includes the position parameters, deformation parameters, and appearance parameters of multiple Gaussian elements.

[0048] The initial keyframe is used as the preceding keyframe in the subsequent keyframe determination process. For the next frame after the initial keyframe, the Gaussian elements corresponding to the initial keyframe are used as both the Gaussian elements corresponding to the previous frame and the Gaussian elements corresponding to the previous keyframe. A two-dimensional Gaussian fit is performed on the next frame, and the difference loss between the next frame and the initial keyframe is obtained to initialize the sliding window. After the sliding window is initialized, each subsequent frame is used as the current candidate frame according to the order of the medical image sequence, and keyframe determination is performed based on the Gaussian elements corresponding to the previous frame and the Gaussian elements corresponding to the currently determined previous keyframe. When the current candidate frame is determined to be a new keyframe, a full update is performed on the Gaussian elements corresponding to the current candidate frame, and the sliding window is re-initialized based on the new keyframe.

[0049] Specifically, the first updated Gaussian representation corresponds to the Gaussian representation obtained by incrementally updating the Gaussian elements based on the Gaussian representation of the previous frame and fitting it to the current candidate frame; the second updated Gaussian representation corresponds to the Gaussian representation obtained by incrementally updating the Gaussian elements based on the Gaussian representation of the previous keyframe and fitting it to the current candidate frame.

[0050] The difference between the first reconstructed image and the current candidate frame image is obtained based on the first updated Gaussian representation reconstruction. The calculation relationship of this difference can be expressed as follows: ; In the formula, L2Loss represents the reconstruction difference term, and L2Loss represents the L2 loss function. This represents the image of the current candidate frame from the previous frame. This indicates that the first reconstructed image is obtained based on the first updated Gaussian representation. In actual code implementations (such as PyTorch or MONAI), it usually refers to the Mean Squared Error (MSE) or the sum of squares error. Mathematically, it is the sum of squares (or the average value according to the settings) of the differences between corresponding elements of two input tensors.

[0051] Since the first updated Gaussian representation is obtained by performing two-dimensional Gaussian fitting on the current candidate frame using the Gaussian representation corresponding to the previous frame as the initial Gaussian representation, the first reconstruction difference is used to characterize the error in reconstructing the current candidate frame with the Gaussian representation corresponding to the previous frame as the initial representation, and is used to indirectly reflect the degree of change of the current candidate frame relative to the previous frame.

[0052] Accordingly, a second reconstructed image is obtained based on the second updated Gaussian representation, and the difference between the current candidate frame image and the second reconstructed image is calculated to obtain the second reconstruction difference. The calculation method for the second reconstruction difference can adopt the same method as the first reconstruction difference. Since the second updated Gaussian representation is obtained by performing two-dimensional Gaussian fitting on the current candidate frame using the Gaussian representation corresponding to the previous keyframe as the initial Gaussian representation, the second reconstruction difference is used to characterize the error in reconstructing the current candidate frame when the Gaussian representation corresponding to the previous keyframe is used as the initial representation, and is used to indirectly reflect the degree of change of the current candidate frame relative to the previous keyframe.

[0053] Furthermore, the position parameters, deformation parameters, and appearance parameters of each Gaussian element in the first updated Gaussian representation are compared with the corresponding parameters of the Gaussian elements in the previous frame to obtain the first structural difference. The calculation relationship can be expressed as: ; In the formula, Indicates structural differences. This represents the set of Gaussian meta-attributes of the current candidate frame after incremental updates based on the previous frame. This indicates the set of Gaussian meta-attributes corresponding to the previous frame.

[0054] The position, deformation, and appearance parameters of each Gaussian element in the second updated Gaussian representation are compared with the corresponding parameters of the Gaussian elements in the previous keyframe to obtain the second structural difference. This second structural difference can be calculated using the same formula as the first structural difference.

[0055] Therefore, the first reconstruction difference and the first structural difference are used to reflect the short-term changes between the current candidate frame and the previous frame, while the second reconstruction difference and the second structural difference are used to reflect the cumulative changes between the current candidate frame and the previous keyframe. Combining the results of the two comparison paths can avoid missing the structural changes that have gradually accumulated relative to the previous keyframe when judging keyframes based solely on local changes between two adjacent frames.

[0056] After obtaining the above reconstruction differences and structural differences, a phased screening method can be used to complete the keyframe determination.

[0057] Preferably, determining whether the current candidate frame is a keyframe based on the first reconstruction difference, the second reconstruction difference, the first structural difference, and the second structural difference includes: The first reconstruction difference and the second reconstruction difference are weighted to obtain the reconstruction loss of the current candidate frame; The reconstruction loss is compared with a preset reconstruction loss threshold; When the reconstruction loss is not less than the preset reconstruction loss threshold, the structural loss is determined based on the first structural difference and the second structural difference, and the overall loss of the current candidate frame is determined based on the reconstruction loss and the structural loss; the average difference value is determined based on the difference loss corresponding to each frame in the preset sliding window, and the loss comparison threshold is determined based on the average difference value and the preset floating range. When the total loss is not less than the loss comparison threshold, the current candidate frame is determined as a key frame.

[0058] Specifically, corresponding weights are assigned to the first reconstruction difference and the second reconstruction difference, and the reconstruction loss of the current candidate frame is obtained through weighted processing. The weights can be preset weights, used to adjust the relative importance of the two comparison paths of the previous frame and the previous key frame in the key frame determination process.

[0059] The reconstruction loss is compared with a preset reconstruction loss threshold. When the reconstruction loss is less than the preset threshold, it indicates that the image-level changes of the current candidate frame relative to the previous frame and the previous keyframe are within an acceptable range, and incremental updates based on the existing Gaussian representation can continue. When the reconstruction loss is not less than the preset threshold, it indicates that there are significant image changes in the current candidate frame, and a fine-grained screening stage combining structural differences is entered.

[0060] In the fine-grained screening stage, the structural loss of the current candidate frame is determined based on the first structural difference and the second structural difference. The structural loss is used to comprehensively reflect the structural changes of the current candidate frame relative to the previous frame and the previous keyframe at the Gaussian metaparameter level.

[0061] Furthermore, the reconstruction loss and structural loss are combined to obtain the overall loss of the current candidate frame. This overall loss simultaneously characterizes the image reconstruction changes and Gaussian metastructure changes of the current candidate frame, and its calculation relationship can be expressed as: ; In the formula, L n Indicates the total loss. Indicates the losses incurred during reconstruction. This indicates structural loss.

[0062] A sliding window is used to store the difference loss corresponding to a preset number of historical frames. In one embodiment, the sliding window can be initialized to include the difference loss between the previous keyframe and the frame following the previous keyframe, and the difference loss of the corresponding candidate frame is added to the sliding window when no subsequent candidate frame is determined as a new keyframe. Preferably, the sliding window can store the difference loss corresponding to five frames. It should be noted that the size of the sliding window is not limited to five frames, and can be set according to the frame rate of the medical image sequence, the rate of change of the target structure, and the actual processing requirements.

[0063] The average difference value is determined based on the difference loss corresponding to each frame within the sliding window. Combined with the preset floating range Determine the loss comparison threshold .in Let represent the i-th frame within the sliding window, and m be the total number of frames within the sliding window.

[0064] When the total loss of the current candidate frame (corresponding to the figure) The loss is less than the comparison threshold (corresponding to the figure). When the total loss of the current candidate frame is not less than the loss comparison threshold, it indicates that the change in the current candidate frame is still within the normal range of change reflected by the sliding window, and the difference loss corresponding to the current candidate frame can be added to the sliding window. When the total loss of the current candidate frame is not less than the loss comparison threshold, it indicates that the current candidate frame has undergone a significant structural change relative to the historical frames, and the current candidate frame is identified as a new keyframe.

[0065] For a current candidate frame identified as a keyframe, its Gaussian elements can be fully updated, and the sliding window can be reinitialized based on the new keyframe to allow subsequent candidate frames to be compared relative to the new keyframe. By combining preliminary screening with reconstruction loss and fine-grained screening with overall loss, representative structural change information in medical image sequences can be preserved while reducing redundant frames from entering the subsequent fine segmentation process.

[0066] After the keyframe selection is completed, Gaussian modeling is performed on the selected keyframes to obtain a Gaussian representation that can more completely describe the target structural region.

[0067] In some preferred embodiments, performing Gaussian modeling on the keyframes to obtain a Gaussian representation of the keyframes includes: The keyframe is input into a preset U-Net network to obtain a reference mask for characterizing the target structural region in the keyframe. According to the reference mask, high-order units are set with a first sampling density in the target structure region and with a second sampling density in the background region outside the target structure region, wherein the first sampling density is greater than the second sampling density; Based on the set Gaussian elements, a two-dimensional Gaussian fit is performed on the keyframe to obtain the Gaussian representation composed of the position parameters, deformation parameters, and appearance parameters of multiple Gaussian elements.

[0068] Specifically, a pre-defined U-Net network is used for preliminary processing of keyframes, outputting a reference mask that characterizes the target structural region. This reference mask can be a coarse mask, its purpose being to identify regions requiring focused Gaussian modeling, rather than being used directly as the final lesion identification result. In specific applications of carotid ultrasound video, the target structural region can include blood vessels, plaques, and adjacent key tissue regions.

[0069] Based on the target structural region indicated by the reference mask, Gaussian cells are set at a first sampling density within the target structural region, and at a second sampling density in the background region outside the target structural region. Since the first sampling density is greater than the second sampling density, the Gaussian cells set within the target structural region are denser, which improves the representation of blood vessel boundaries, plaque structures, and other key local structures; the Gaussian cells set within the background region are relatively sparse, which reduces computational overhead unrelated to the target structure.

[0070] After initializing the Gaussian primitives, a two-dimensional Gaussian fit is performed on the keyframes based on these primitives. This updates the position, deformation, and appearance parameters of each Gaussian primitive, resulting in a Gaussian representation of the keyframes. Compared to the incremental fitting used in the keyframe selection stage, the Gaussian fitting performed on keyframes allows for a more refined fitting process, thereby obtaining a Gaussian representation that more completely characterizes the structural and textural information of the keyframes.

[0071] The keyframes and their Gaussian representations output in step S102 are used as inputs for constructing keyframe groups and predicting the changes in Gaussian parameters of other frames in step S103.

[0072] Step S103: Construct a keyframe group based on the keyframe and one or more adjacent frames; predict the Gaussian parameter changes of other frames in the keyframe group other than the keyframe using the Gaussian representation; wherein the Gaussian parameter changes are used to characterize the implicit deformation field of cross-frame structural changes within the keyframe group.

[0073] Specifically, using the keyframe obtained in step S102 as the center frame, one or more frames are selected from adjacent temporal positions of the keyframe in the medical image sequence to form a keyframe group together with the keyframe. The adjacent frames may include one or more adjacent frames before and / or after the keyframe.

[0074] In one implementation, a keyframe group may include three images: a central keyframe and two adjacent keyframes. It should be noted that the number of frames in a keyframe group is not limited to three; it can be set according to the frame rate of the medical image sequence, the rate of change of the target structure, and processing resources.

[0075] Using the Gaussian representation of a keyframe as a reference representation for the keyframe group, the position and deformation increments of other frames in the keyframe group relative to the keyframe are predicted, and these position and deformation increments are used as Gaussian parameter variations. These Gaussian parameter variations share a unified Gaussian meta-parameter system with the Gaussian representation of the keyframe, enabling the description of the target structure's position, scaling, and rotation changes within the keyframe group over time at the Gaussian meta-level, thereby forming an implicit deformation field to characterize cross-frame structural changes.

[0076] By predicting the Gaussian parameter changes of other frames with keyframes as reference, the static structural representation of the keyframes can be correlated with the dynamic deformation representation of adjacent frames, providing a basis for extracting deformation features from the implicit deformation field in step S104.

[0077] To illustrate the specific prediction process for the Gaussian parameter variations in other frames, the spatial coding, temporal coding, and multilayer perceptron prediction processes will be explained in detail below. Figure 4 As shown.

[0078] In some preferred embodiments, predicting the Gaussian parameter variation of other frames in the keyframe group excluding the keyframes using the Gaussian representation includes: Using a keyframe as the center frame of the keyframe group, obtain the spatial coordinates of each Gaussian element in the Gaussian representation, as well as the temporal offset of the other frames relative to the keyframe. The spatial coordinates and the time offset are encoded respectively to obtain spatial encoding features and time encoding features; The spatial coding features and the temporal coding features are input into a preset multilayer perceptron prediction network to obtain the position increment and deformation increment of each Gaussian element relative to the key frame in the other frames; The Gaussian parameter changes of the other frames are determined based on the position increment and the deformation increment, and the Gaussian parameter changes are combined with the Gaussian representation of the key frame to obtain the Gaussian representation of the other frames.

[0079] Specifically, the position parameters of each Gaussian element in the Gaussian representation of the keyframe are obtained, and the positions indicated by the corresponding position parameters are used as the spatial coordinates of the Gaussian elements. Simultaneously, based on the relative frame positions of other frames in the keyframe group and the keyframe serving as the center frame, the time offset of other frames relative to the keyframe is determined. This time offset can be represented by the number of offset frames of other frames relative to the keyframe.

[0080] Spatial and temporal coded features are obtained by encoding the spatial coordinates of Gaussian elements and the temporal offsets of other frames using positional encoding. Spatial coded features characterize the spatial position of Gaussian elements within keyframes, while temporal coded features characterize the relative temporal relationship between other frames to be predicted and keyframes.

[0081] Spatial and temporal encoded features are jointly input into a pre-defined multilayer perceptron prediction network. Based on the spatial location of Gaussian elements and the temporal offset of the target frame, the multilayer perceptron prediction network outputs the position increment and deformation increment of each Gaussian element relative to the keyframe in other frames. The position increment characterizes the change in the spatial location of the Gaussian element, while the deformation increment characterizes the changes in the scaling and rotation states of the Gaussian element.

[0082] The position increment and deformation increment of each Gaussian element are determined as the Gaussian parameter change amount of the corresponding other frames. Then, the Gaussian parameter change amount is combined with the position parameter and deformation parameter of the corresponding Gaussian element in the Gaussian representation of the key frame to obtain the position parameter and deformation parameter of the corresponding Gaussian element in other frames, and thus obtain the Gaussian representation of other frames.

[0083] Therefore, each frame in the keyframe group can be represented using corresponding Gaussian elements, so that the changes of each Gaussian element between different frames in the keyframe group can form a unified implicit deformation field. The Gaussian representation of the keyframes, the changes in Gaussian parameters of other frames, and the Gaussian representation of other frames output in step S103 are used as inputs for extracting and fusing deformation features in step S104.

[0084] Step S104: Extract deformation features based on the Gaussian parameter variation, and extract image semantic features of each frame in the keyframe group. Fuse the image semantic features with the deformation features to obtain enhanced frame features containing static texture information and dynamic deformation information, thereby realizing lesion identification based on the enhanced frame features.

[0085] Specifically, step S104 includes a deformation feature extraction path and an image semantic feature extraction path. In the deformation feature extraction path, based on the Gaussian representation of the keyframes output in step S103 and the changes in Gaussian parameters of other frames, deformation features that can characterize the cross-frame changes of Gaussian elements are extracted; in the image semantic feature extraction path, texture information, boundary information, and semantic information of blood vessels, plaques, and their adjacent tissues are extracted from each frame image of the keyframe group.

[0086] Deformation features are mapped to an image feature space corresponding to image semantic features, and deformation features at the corresponding scale are fused with image semantic features to obtain enhanced frame features for each frame. The static texture information in the enhanced frame features is used to characterize the appearance and semantics of the target structure in the current frame, while the dynamic deformation information is used to characterize the structural changes of the target structure over time within the keyframe group.

[0087] In specific applications of carotid ultrasound video, lesion identification results obtained based on enhanced frame features can be multi-class segmentation results including vascular regions and different types of plaque regions. For other medical image sequences, lesion identification results can also be segmentation results for tumors, organs, or other lesion structures.

[0088] To illustrate the process of generating enhanced frame features, the following section elaborates on the deformation coding, differentiable rendering, multi-scale image semantic feature extraction, and feature fusion processes at the Gaussian meta-level.

[0089] In some preferred embodiments, the step of extracting deformation features based on the Gaussian parameter variation, extracting image semantic features from each frame in the keyframe group, and fusing the image semantic features with the deformation features to obtain enhanced frame features containing static texture information and dynamic deformation information includes: The Gaussian representation of the key frame and the Gaussian parameter changes of other frames are input into the deformation encoder to obtain deformation features at the Gaussian primitive level. By differentiable rendering, the deformation features at the Gaussian level are mapped to the image feature space to obtain the image space deformation features corresponding to each frame in the keyframe group. Each frame in the keyframe group is input into a preset feature extraction network to obtain multi-scale image semantic features corresponding to each frame. The image spatial deformation features corresponding to each frame are fused with the multi-scale image semantic features of the corresponding scale to obtain the multi-scale enhanced frame features corresponding to each frame.

[0090] Specifically, the deformation encoder encodes the Gaussian representation of the keyframe and the changes in Gaussian parameters of other frames relative to the keyframe, converting the position parameters, deformation parameters, and cross-frame changes of each Gaussian cell into deformation features of the corresponding Gaussian cell. Thus, the deformation features at the Gaussian cell level can characterize the positional and morphological changes of the corresponding local structure between different frames in the keyframe group.

[0091] Differentiable rendering maps the deformation features at the Gaussian level to the image feature space, allowing the deformation features of each Gaussian unit to form image spatial deformation features according to their spatial position in the corresponding frame. These image spatial deformation features correspond to the image space of each frame in the keyframe group, thus enabling fusion with the image semantic features extracted from each frame.

[0092] The backbone feature extraction network can be a convolutional neural network, a visual transformer network, or a base model fine-tuned with medical image data. The backbone feature extraction network processes each frame in the keyframe group to obtain multi-scale image semantic features at different feature scales. In the specific application of carotid ultrasound video, the multi-scale image semantic features can include texture features, boundary features, and semantic features of the vessel wall, plaque, and adjacent tissues.

[0093] By fusing the spatial deformation features of each frame with the corresponding multi-scale semantic features, the fused multi-scale enhanced frame features retain both the static texture information of the current frame and the dynamic deformation information within the keyframe group. By introducing cross-frame variation information of the target structure into the image semantic features, the ability to express the target structure under conditions of blurred boundaries, local noise interference, or tissue deformation can be enhanced.

[0094] After obtaining the multi-scale enhanced frame features, anchor points can be selected around the target structural region indicated by the reference mask. By performing temporal modeling on the anchor point features, the dynamic change information within the key frame group can be aggregated into the lesion identification process.

[0095] Preferably, the identification of lesions based on the enhanced features includes: Based on the reference mask, multiple anchor points are selected within the target structure region; Based on the position of each anchor point, the multi-scale enhanced frame features corresponding to each frame in the key frame group are bilinearly sampled to obtain the anchor point features corresponding to each frame. The anchor point features corresponding to different frames in the same keyframe group are arranged in chronological order to form an anchor point feature sequence, and the anchor point feature sequence is temporally modeled to obtain temporal anchor point features. For each Gaussian element corresponding to each frame in the keyframe group, a preset number of neighboring anchor points that are closest to the Gaussian element are determined from the plurality of anchor points, and the interpolation weight is determined based on the spatial distance between the Gaussian element and each neighboring anchor point. Based on the interpolation weights, the temporal anchor features corresponding to each neighboring anchor point are interpolated to obtain the Gaussian features corresponding to the Gaussian. The Gaussian features corresponding to each Gaussian are mapped to feature maps, and the feature maps and the multi-scale enhanced frame features are input into the segmentation decoder to obtain lesion identification results.

[0096] In this preferred embodiment, the enhancement feature is the aforementioned multi-scale enhanced frame feature.

[0097] Specifically, the target structural region is determined based on the reference mask output by the U-Net network in step S102, and multiple representative anchor points are selected within the target structural region. In one embodiment, multiple anchor points can be selected using a farthest-point sampling method, distributing the selected anchor points at different locations within the target structural region, thereby covering blood vessels, plaques, and other key structural regions. By performing subsequent temporal modeling only for anchor points within the target structural region, the computational overhead of performing temporal modeling across the entire image can be reduced.

[0098] Based on the position of each anchor point in the image space, bilinear sampling is performed on the multi-scale enhanced frame features corresponding to each frame in the keyframe group to obtain the anchor point features corresponding to each anchor point position in each frame. For the same anchor point, the anchor point features corresponding to it in different frames of the keyframe group are arranged in chronological order of each frame to form the anchor point feature sequence corresponding to that anchor point.

[0099] In one implementation, a temporal Mamba module can be used to perform temporal modeling of anchor point feature sequences. The temporal Mamba module is a state-space structure suitable for sequence modeling, capable of modeling short-time sequences within keyframe groups, thereby extracting dynamic changes in the local structure corresponding to the same anchor point over time. These dynamic changes may include lesion edge movement, changes in vascular lumen morphology, and changes in local tissue structure. In other implementations, the temporal modeling can also be implemented using a visual transformer, a recurrent neural network, or other temporal modeling units.

[0100] After obtaining the temporal anchor features of each anchor point, for each Gaussian element corresponding to each frame in the keyframe group, a predetermined number of nearest neighboring anchor points are determined from multiple anchor points based on the spatial distance between the Gaussian element and each anchor point. Interpolation weights are determined based on the spatial distance between the corresponding Gaussian element and each neighboring anchor point; closer neighboring anchor points can have relatively larger interpolation weights, while farther neighboring anchor points can have relatively smaller interpolation weights.

[0101] Based on the interpolation weights corresponding to each neighboring anchor point, the temporal anchor point features of each neighboring anchor point are interpolated to obtain the corresponding Gaussian features. The interpolation relationship of the Gaussian features can be expressed as: ; In the formula, This represents the Gaussian features obtained through interpolation. The characteristics representing the j-th anchor point, Represents the Gaussian point of Nearby anchor points, The weights are calculated based on the distances between the Gaussian point and its neighboring anchors.

[0102] The corresponding interpolation weights can be determined based on the spatial distance between the Gaussian elements and neighboring anchor points, as well as the parameters used to control the smoothness. Their calculation relationship can be expressed as follows: ; In the formula, d represents the distance between the Gaussian point and the nearest anchor point. This is a parameter used to control the smoothness.

[0103] Through the interpolation process described above, the anchor-level temporal deformation information is retransmitted to each Gaussian primitive, enabling each Gaussian primitive to acquire temporal features corresponding to its spatial location. Subsequently, the Gaussian primitive features corresponding to each Gaussian primitive are mapped to the image feature space to form pixel-level feature maps.

[0104] The feature map and the multi-scale enhanced frame features of the corresponding frame are input together into the segmentation decoder. The segmentation decoder decodes the fused features to obtain the lesion identification result. In the specific application of carotid ultrasound video, the lesion identification result can be a multi-class segmentation result, and the output category can include background area, vascular area, and different types of plaque area; in other medical image sequence applications, the output category can also include tumor area, organ area, or other lesion structure area.

[0105] By using image semantic features, deformation features corresponding to implicit deformation fields, and anchor point temporal features together for lesion identification, the stability of lesion identification results in complex medical image scenes can be improved by utilizing the texture and boundary information of the current frame, while also utilizing the continuous change information of the target structure within the key frame group. This also helps to maintain the continuity of lesion boundaries between adjacent frames.

[0106] Some application examples Figure 5 and 6 As shown, Figure 5 This is a longitudinal section image for carotid artery lesion analysis using ultrasound. Figure 6 This is a cross-sectional image for carotid artery ultrasound lesion analysis. The red area represents the common carotid artery, the green area represents the internal carotid artery, the light blue area represents intermediate-echoic plaques, and the white area represents hyperechoic plaques. D0 is the reference lumen diameter, D1 is the residual lumen diameter, and the stenosis rate is calculated as (1- ).

[0107] After obtaining the segmentation results of key lesions, the segmentation results are quantitatively analyzed and corresponding auxiliary analysis results are output. For carotid ultrasound scenarios, this invention designs different stenosis rate calculation methods for transverse and longitudinal sections, such as... Figure 5 and 6As shown, for a cross-sectional image, the system calculates the area ratio of the plaque to the blood vessel reference area based on the segmented blood vessel region and plaque region, and uses it as a candidate indicator of the cross-sectional stenosis rate.

[0108] In a preferred embodiment, scanning can be performed around the vessel center in multiple directions to calculate the degree of vessel lumen contraction in each direction, and the maximum value is taken as the stenosis rate result for that frame. For longitudinal section images, the system first extracts the vessel centerline based on the segmentation results, then measures the vessel inner diameter at each location along the normal direction, and then calculates the longitudinal section stenosis rate based on the ratio of the inner diameter at the narrowest point to the reference inner diameter of the adjacent normal segment. In addition, the present invention can also calculate the lesion size based on the minimum bounding box or connected region area of ​​the plaque mask, and determine the lesion location by calculating the overlap ratio between the plaque region and each vessel branch region, such as which part of the common carotid artery, internal carotid artery, or external carotid artery it is located in.

[0109] For each case, the system can automatically select the most significant frame from the candidate keyframes according to preset rules. For example, in the cross-sectional video, the frame with the largest plaque area is selected first, and in the longitudinal video, the frame with the largest stenosis rate is selected first. The analysis results of the most significant frame are used as the case-level output results.

[0110] Accordingly, please refer to Figure 7 This invention application also provides a lesion recognition system 700 for medical images, including an image acquisition module 701, a modeling module 702, a prediction module 703, and a recognition module 704; wherein, The image acquisition module 701 is used to acquire a medical image sequence; wherein, the medical image sequence includes multiple frames of two-dimensional medical images; The modeling module 702 is used to select key frames from the medical image sequence and perform Gaussian modeling on the key frames to obtain a Gaussian representation of the key frames. The Gaussian representation is used to describe the structural and texture information of the key frames using positional parameters, deformation parameters, and appearance parameters of multiple Gaussian primitives. The prediction module 703 is used to construct a keyframe group based on a keyframe and one or more adjacent frames; and to predict the Gaussian parameter changes of other frames in the keyframe group other than the keyframe using the Gaussian representation; wherein the Gaussian parameter changes are used to characterize the implicit deformation field of cross-frame structural changes within the keyframe group. The recognition module 704 is used to extract deformation features based on the Gaussian parameter variation, extract image semantic features of each frame in the key frame group, fuse the image semantic features with the deformation features to obtain enhanced frame features containing static texture information and dynamic deformation information, thereby realizing lesion recognition based on the enhanced frame features.

[0111] As a preferred embodiment, the modeling module 702 selects keyframes from the medical image sequence, including: The modeling module 702 determines each frame in the medical image sequence as the current candidate frame; Using the Gaussian primitives corresponding to the previous frame and the Gaussian primitives corresponding to the previous keyframe as initial Gaussian primitives, two-dimensional Gaussian fitting is performed on the current candidate frame to obtain the first updated Gaussian representation and the second updated Gaussian representation, respectively. A first reconstruction difference is determined based on the difference between the image of the current candidate frame and the image reconstructed from the first updated Gaussian representation; and a second reconstruction difference is determined based on the difference between the image of the current candidate frame and the image reconstructed from the second updated Gaussian representation. The first structural difference is determined based on the changes in position parameters, deformation parameters, and appearance parameters of the Gaussian representation of the first updated Gaussian representation relative to the Gaussian unit corresponding to the previous frame; and the second structural difference is determined based on the changes in position parameters, deformation parameters, and appearance parameters of the Gaussian representation of the second updated Gaussian representation relative to the Gaussian unit corresponding to the previous keyframe. Based on the first reconstruction difference, the second reconstruction difference, the first structural difference, and the second structural difference, determine whether the current candidate frame is a key frame.

[0112] As a preferred embodiment, the modeling module 702 determines whether the current candidate frame is a keyframe based on the first reconstruction difference, the second reconstruction difference, the first structural difference, and the second structural difference, including: The modeling module 702 performs weighted processing on the first reconstruction difference and the second reconstruction difference to obtain the reconstruction loss of the current candidate frame; The reconstruction loss is compared with a preset reconstruction loss threshold; When the reconstruction loss is not less than the preset reconstruction loss threshold, the structural loss is determined based on the first structural difference and the second structural difference, and the overall loss of the current candidate frame is determined based on the reconstruction loss and the structural loss; the average difference value is determined based on the difference loss corresponding to each frame in the preset sliding window, and the loss comparison threshold is determined based on the average difference value and the preset floating range. When the total loss is not less than the loss comparison threshold, the current candidate frame is determined as a key frame.

[0113] As a preferred embodiment, the modeling module 702 performs Gaussian modeling on the keyframes to obtain a Gaussian representation of the keyframes, including: The modeling module 702 inputs the key frame into a preset U-Net network to obtain a reference mask for characterizing the target structural region in the key frame; According to the reference mask, high-order units are set with a first sampling density in the target structure region and with a second sampling density in the background region outside the target structure region, wherein the first sampling density is greater than the second sampling density; Based on the set Gaussian elements, a two-dimensional Gaussian fit is performed on the keyframe to obtain the Gaussian representation composed of the position parameters, deformation parameters, and appearance parameters of multiple Gaussian elements.

[0114] As a preferred embodiment, the prediction module 703 predicts the Gaussian parameter changes of other frames in the keyframe group (excluding keyframes) using the Gaussian representation, including: The prediction module 703 uses the keyframe as the center frame of the keyframe group to obtain the spatial coordinates of each Gaussian element in the Gaussian representation, as well as the time offset of the other frames relative to the keyframe. The spatial coordinates and the time offset are encoded respectively to obtain spatial encoding features and time encoding features; The spatial coding features and the temporal coding features are input into a preset multilayer perceptron prediction network to obtain the position increment and deformation increment of each Gaussian element relative to the key frame in the other frames; The Gaussian parameter changes of the other frames are determined based on the position increment and the deformation increment, and the Gaussian parameter changes are combined with the Gaussian representation of the key frame to obtain the Gaussian representation of the other frames.

[0115] As a preferred embodiment, the recognition module 704 extracts deformation features based on the Gaussian parameter variation and extracts image semantic features from each frame in the keyframe group. The image semantic features are then fused with the deformation features to obtain enhanced frame features containing both static texture information and dynamic deformation information, including: The recognition module 704 inputs the Gaussian representation of the key frame and the Gaussian parameter changes of other frames into the deformation encoder to obtain deformation features at the Gaussian primitive level. By differentiable rendering, the deformation features at the Gaussian level are mapped to the image feature space to obtain the image space deformation features corresponding to each frame in the keyframe group. Each frame in the keyframe group is input into a preset feature extraction network to obtain multi-scale image semantic features corresponding to each frame. The image spatial deformation features corresponding to each frame are fused with the multi-scale image semantic features of the corresponding scale to obtain the multi-scale enhanced frame features corresponding to each frame.

[0116] As a preferred embodiment, the identification module 704 identifies lesions based on the enhanced features, including: The identification module 704 selects multiple anchor points within the target structure region based on the reference mask; Based on the position of each anchor point, the multi-scale enhanced frame features corresponding to each frame in the key frame group are bilinearly sampled to obtain the anchor point features corresponding to each frame. The anchor point features corresponding to different frames in the same keyframe group are arranged in chronological order to form an anchor point feature sequence, and the anchor point feature sequence is temporally modeled to obtain temporal anchor point features. For each Gaussian element corresponding to each frame in the keyframe group, a preset number of neighboring anchor points that are closest to the Gaussian element are determined from the plurality of anchor points, and the interpolation weight is determined based on the spatial distance between the Gaussian element and each neighboring anchor point. Based on the interpolation weights, the temporal anchor features corresponding to each neighboring anchor point are interpolated to obtain the Gaussian features corresponding to the Gaussian. The Gaussian features corresponding to each Gaussian are mapped to feature maps, and the feature maps and the multi-scale enhanced frame features are input into the segmentation decoder to obtain lesion identification results.

[0117] Accordingly, this application also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the lesion identification method for medical images.

[0118] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal, connecting various parts of the terminal via various interfaces and lines.

[0119] The memory can be used to store the computer program. The processor implements various functions of the terminal by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0120] Accordingly, this application also provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program, when running, controls the device where the computer-readable storage medium is located to execute the lesion identification method for medical images.

[0121] Wherein, if the modules of the device / terminal equipment / system integration are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, it can implement the steps of the various method embodiments described above. Wherein, the computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc.

[0122] Compared with the prior art, this invention application has the following beneficial effects: This invention provides a method, system, terminal device, and storage medium for lesion identification in medical images. By constructing an implicit deformation field for keyframe groups, cross-frame structural change information is incorporated into the lesion identification process. This fundamentally solves the problems of existing single-frame segmentation methods that sever inter-frame structural connections and fail to perceive the continuous temporal changes in anatomical structures. The enhanced frame features simultaneously aggregate static texture information and cross-frame dynamic deformation information. This allows deformation features to provide structural change compensation information for semantic features when facing complex scenarios such as noise interference, blurred boundaries, and tissue deformation common in ultrasound videos. This maintains the consistency and continuity of segmentation results across frames, reduces inconsistencies and boundary jitter caused by insufficient information in a single frame, and ultimately improves the accuracy of lesion identification. Furthermore, this invention applies Gaussian modeling to keyframes, using position parameters, deformation parameters, and appearance parameters to describe the structural and textural information of the keyframes. Then, it constructs an implicit deformation field by predicting the changes in Gaussian parameters of other frames using the same Gaussian representation. This design allows the static structural representation of keyframes and the dynamic deformation representation across frames to share the same Gaussian meta-parameter system, eliminating the need for conversion between different feature spaces or representations. This results in a more compact feature expression, which helps reduce information loss and improves the effectiveness of subsequent feature fusion and lesion identification.

[0123] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.

Claims

1. A method for lesion identification in medical images, characterized in that, include: Acquire a medical image sequence; wherein the medical image sequence includes multiple frames of two-dimensional medical images; Keyframes are selected from the medical image sequence, and Gaussian modeling is performed on the keyframes to obtain Gaussian representations of the keyframes. The Gaussian representations are used to describe the structural and textural information of the keyframes using positional parameters, deformation parameters, and appearance parameters of multiple Gaussian primitives. A keyframe group is constructed based on a keyframe and one or more adjacent frames; the Gaussian parameter variation of other frames in the keyframe group, excluding the keyframe, is predicted using the Gaussian representation; wherein the Gaussian parameter variation is used to characterize the implicit deformation field of cross-frame structural changes within the keyframe group. Deformation features are extracted based on the Gaussian parameter variation, and image semantic features of each frame in the keyframe group are extracted. The image semantic features are fused with the deformation features to obtain enhanced frame features containing static texture information and dynamic deformation information, thereby enabling lesion identification based on the enhanced frame features.

2. The method for lesion identification in medical images as described in claim 1, characterized in that, Selecting keyframes from the medical image sequence includes: Each frame in the medical image sequence is determined as the current candidate frame; Using the Gaussian primitives corresponding to the previous frame and the Gaussian primitives corresponding to the previous keyframe as initial Gaussian primitives, two-dimensional Gaussian fitting is performed on the current candidate frame to obtain the first updated Gaussian representation and the second updated Gaussian representation, respectively. A first reconstruction difference is determined based on the difference between the image of the current candidate frame and the image reconstructed from the first updated Gaussian representation; and a second reconstruction difference is determined based on the difference between the image of the current candidate frame and the image reconstructed from the second updated Gaussian representation. The first structural difference is determined based on the changes in position parameters, deformation parameters, and appearance parameters of the Gaussian representation of the first updated Gaussian representation relative to the Gaussian unit corresponding to the previous frame; and the second structural difference is determined based on the changes in position parameters, deformation parameters, and appearance parameters of the Gaussian representation of the second updated Gaussian representation relative to the Gaussian unit corresponding to the previous keyframe. Based on the first reconstruction difference, the second reconstruction difference, the first structural difference, and the second structural difference, determine whether the current candidate frame is a key frame.

3. The method for lesion identification in medical images as described in claim 2, characterized in that, The step of determining whether the current candidate frame is a keyframe based on the first reconstruction difference, the second reconstruction difference, the first structural difference, and the second structural difference includes: The first reconstruction difference and the second reconstruction difference are weighted to obtain the reconstruction loss of the current candidate frame; The reconstruction loss is compared with a preset reconstruction loss threshold; When the reconstruction loss is not less than the preset reconstruction loss threshold, the structural loss is determined based on the first structural difference and the second structural difference, and the overall loss of the current candidate frame is determined based on the reconstruction loss and the structural loss; the average difference value is determined based on the difference loss corresponding to each frame in the preset sliding window, and the loss comparison threshold is determined based on the average difference value and the preset floating range. When the total loss is not less than the loss comparison threshold, the current candidate frame is determined as a key frame.

4. The method for lesion identification in medical images as described in claim 1, characterized in that, The step of performing Gaussian modeling on the keyframes to obtain their Gaussian representations includes: The keyframe is input into a preset U-Net network to obtain a reference mask for characterizing the target structural region in the keyframe. According to the reference mask, high-order units are set with a first sampling density in the target structure region and with a second sampling density in the background region outside the target structure region, wherein the first sampling density is greater than the second sampling density; Based on the set Gaussian elements, a two-dimensional Gaussian fit is performed on the keyframe to obtain the Gaussian representation composed of the position parameters, deformation parameters, and appearance parameters of multiple Gaussian elements.

5. The method for lesion identification in medical images as described in claim 4, characterized in that, The method of predicting the Gaussian parameter variation of other frames in the keyframe group (excluding keyframes) using the Gaussian representation includes: Using a keyframe as the center frame of the keyframe group, obtain the spatial coordinates of each Gaussian element in the Gaussian representation, as well as the temporal offset of the other frames relative to the keyframe. The spatial coordinates and the time offset are encoded respectively to obtain spatial encoding features and time encoding features; The spatial coding features and the temporal coding features are input into a preset multilayer perceptron prediction network to obtain the position increment and deformation increment of each Gaussian element relative to the key frame in the other frames; The Gaussian parameter changes of the other frames are determined based on the position increment and the deformation increment, and the Gaussian parameter changes are combined with the Gaussian representation of the key frame to obtain the Gaussian representation of the other frames.

6. The method for lesion identification in medical images as described in claim 5, characterized in that, The process of extracting deformation features based on the Gaussian parameter variation, extracting image semantic features from each frame in the keyframe group, and fusing the image semantic features with the deformation features to obtain enhanced frame features containing both static texture information and dynamic deformation information includes: The Gaussian representation of the key frame and the Gaussian parameter changes of other frames are input into the deformation encoder to obtain deformation features at the Gaussian primitive level. By differentiable rendering, the deformation features at the Gaussian level are mapped to the image feature space to obtain the image space deformation features corresponding to each frame in the keyframe group. Each frame in the keyframe group is input into a preset feature extraction network to obtain multi-scale image semantic features corresponding to each frame. The image spatial deformation features corresponding to each frame are fused with the multi-scale image semantic features of the corresponding scale to obtain the multi-scale enhanced frame features corresponding to each frame.

7. The method for lesion identification in medical images as described in claim 6, characterized in that, The identification of lesions based on the enhanced features includes: Based on the reference mask, multiple anchor points are selected within the target structure region; Based on the position of each anchor point, the multi-scale enhanced frame features corresponding to each frame in the key frame group are bilinearly sampled to obtain the anchor point features corresponding to each frame. The anchor point features corresponding to different frames in the same keyframe group are arranged in chronological order to form an anchor point feature sequence, and the anchor point feature sequence is temporally modeled to obtain temporal anchor point features. For each Gaussian element corresponding to each frame in the keyframe group, a preset number of neighboring anchor points that are closest to the Gaussian element are determined from the plurality of anchor points, and the interpolation weight is determined based on the spatial distance between the Gaussian element and each neighboring anchor point. Based on the interpolation weights, the temporal anchor features corresponding to each neighboring anchor point are interpolated to obtain the Gaussian features corresponding to the Gaussian. The Gaussian features corresponding to each Gaussian are mapped to feature maps, and the feature maps and the multi-scale enhanced frame features are input into the segmentation decoder to obtain lesion identification results.

8. A lesion recognition system for medical images, characterized in that, It includes an image acquisition module, a modeling module, a prediction module, and a recognition module; among which, The image acquisition module is used to acquire a medical image sequence; wherein the medical image sequence includes multiple frames of two-dimensional medical images; The modeling module is used to select keyframes from the medical image sequence and perform Gaussian modeling on the keyframes to obtain a Gaussian representation of the keyframes. The Gaussian representation is used to describe the structural and texture information of the keyframes using positional parameters, deformation parameters, and appearance parameters of multiple Gaussian primitives. The prediction module is used to construct a keyframe group based on a keyframe and one or more adjacent frames; and to predict the Gaussian parameter changes of other frames in the keyframe group other than the keyframe using the Gaussian representation; wherein the Gaussian parameter changes are used to characterize the implicit deformation field of cross-frame structural changes within the keyframe group. The recognition module is used to extract deformation features based on the Gaussian parameter variation, and extract the image semantic features of each frame in the key frame group. The image semantic features are fused with the deformation features to obtain enhanced frame features containing static texture information and dynamic deformation information, thereby realizing lesion recognition based on the enhanced frame features.

9. A terminal device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements the lesion identification method for medical images as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform the lesion identification method for medical images as described in any one of claims 1 to 7.