CT image pulmonary embolism segmentation and classification method combined with quality evaluation

By combining a quality assessment-based CT image pulmonary embolism segmentation and classification method, and utilizing a quality score-guided encoder with wavelet transform and multi-scale cross-enhanced decoder, the limitations of existing image quality assessment and segmentation technologies are overcome, achieving efficient segmentation and classification of images of different quality levels.

CN121121129AActive Publication Date: 2025-12-12XUZHOU MEDICAL UNIVERSITY

Patent Information

Application Number
CN202511676934.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-17
Publication Date
2025-12-12
Estimated Expiration
2045-11-17

AI Technical Summary

Technical Problem

Existing methods for detecting pulmonary embolism have limitations in image quality assessment and accurate segmentation when dealing with complex images, especially in low-quality images.

Method used

A CT image pulmonary embolism segmentation and classification method combining quality assessment is adopted. The quality score guides the encoder and ResNet34 network to fuse features, and wavelet transform and multi-scale cross-enhanced decoder are used for feature processing. An efficient channel attention mechanism is combined for segmentation and classification.

Benefits of technology

It achieves high robustness and accurate segmentation of pulmonary embolism lesions on images of different quality, solves the problem of insufficient adaptability to low-quality images in existing technologies, and improves segmentation accuracy and robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121121129A_ABST
    Figure CN121121129A_ABST
Patent Text Reader

Abstract

The invention discloses a CT (Computed Tomography) image pulmonary embolism segmentation and classification method combined with quality evaluation, which relates to the technical field of image processing, and comprises the following steps: inputting a 256 * 256 pulmonary embolism CT image and a quality score thereof into a quality score guide encoder, expanding a quality score dimension through linear transformation, and carrying out point product fusion with a feature map extracted by ResNet34 layer by layer to obtain a final product; generating multi-scale coding features; performing wavelet domain decomposition and reconstruction on the coding features through a wavelet transform fusion jump link module, and optimizing feature transmission; a multi-scale cross enhanced decoder is adopted to carry out multi-scale deconvolution fusion on the features, a segmentation result is output in combination with an efficient channel attention mechanism, meanwhile, pulmonary embolism existence judgment is output through a classification head, and the method provides powerful support for early diagnosis of pulmonary embolism, development of an image auxiliary diagnosis system and clinical application, and has good application prospects. Wide application prospects and profound social significance are realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of image processing, more particularly to a CT image pulmonary embolism segmentation and classification method combined with quality evaluation. BACKGROUND

[0002] As a life-threatening disease, early diagnosis and accurate segmentation of pulmonary embolism lesions are crucial to improve cure rates and reduce mortality.

[0003] However, the existing pulmonary embolism detection method still has certain limitations in processing complex images, especially in image quality evaluation and accurate segmentation.

[0004] Based on the above problems, we provide a CT image pulmonary embolism segmentation and classification method combined with quality evaluation. SUMMARY

[0005] To solve the problems raised in the background art, the present application provides a CT image pulmonary embolism segmentation and classification method combined with quality evaluation.

[0006] The CT image pulmonary embolism segmentation and classification method combined with quality evaluation provided by the present application adopts the following technical scheme: A CT image pulmonary embolism segmentation and classification method combined with quality evaluation, comprising the following steps: Step 1: input the 256x256 pulmonary embolism CT image and its quality score into the quality score guided encoder, expand the quality score dimension through linear transformation, and point multiply with the feature maps extracted by ResNet34 layer by layer to generate multi-scale coding features; Step 2: perform wavelet domain decomposition and reconstruction on the coding features through the wavelet transform fusion jump link module to optimize feature transmission; Step 3: use a multi-scale cross-enhanced decoder to perform multi-scale deconvolution fusion on the features, output the segmentation result combined with the efficient channel attention mechanism, and output the pulmonary embolism existence judgment through the classification head.

[0007] Preferably, in step 1, the quality score guided encoder includes a Stem module, four encoding modules and a classification head network architecture; The Stem module includes a 7x7 convolution layer with a step of 2, a batch normalization layer and a ReLU activation function, and the four encoding modules are stacked with 3, 4, 6 and 3 Res-Blocks respectively, the Res-Block contains two 3x3 convolution operations inside, and is matched with ReLU activation function and BN operation; A 2x2 convolution layer with a step of 2 is added to each of the encoding modules, combined with a batch normalization layer, for downsampling operation; The quality score guided encoder further comprises an image quality score module, which expands the quality score by 5 different linear layers for the input quality score S, gradually increasing the dimension of the quality score, respectively: [b, 3], [b, 64], [b, 128], [b, 256], [b, 512], the dimension of the quality score matches the dimension of the feature map extracted by ResNet34; The quality score and the image feature are aligned in the spatial dimension through the data broadcast mechanism to generate quality guide information with the same dimension as each layer of feature map, and the expanded quality score is , and the corresponding dimension is: [b, 3, 1, 1], [b, 64, 1, 1], [b, 128, 1, 1], [b, 256, 1, 1], [b, 512, 1, 1].

[0008] Preferably, the input image is , the weighted feature is obtained by point multiplication of the image X and the initial quality score , the weighted feature is input into the Stem module to obtain the preliminary feature , the feature is multiplied by the second-stage quality score to obtain the feature weighted by the quality score , and the feature is input into the subsequent Res-Block for feature extraction, the feature is multiplied by and input into the subsequent Res-Block, and five encoder features are obtained through continuous processing, and the formula is as follows: ; , wherein is the i-th Res-Block function; is the number of layers used in each layer, i.e. [3, 4, 6, 3]. Preferably, the classification head network architecture comprises an adaptive global average pooling layer, a linear layer, a ReLU activation function, another linear layer, and a Sigmoid activation function; The adaptive global average pooling layer globally pools all the encoded features, aggregates the information of each spatial position, generates a fixed-dimension feature vector, and converts the feature vector through a linear layer, introduces nonlinearity by using a ReLU activation function, and the formula is as follows:

[0009] . .

[0010] ​Preferably, the wavelet transform fusion jump link module, on one-dimensional discrete wavelet transform for the input signal , given the wavelet function , is the scale factor, is the time factor and scale function input signal in decomposition formula as follows: ; where, denotes the high frequency component, denotes the low frequency component, the input signal is gradually decomposed into wavelet domain signal; introducing vector respectively represent the high frequency and low frequency filter, the original signal in the wavelet base decomposition can be regarded as the original signal and the specific filter with step 2 recursive convolution, as shown in the formula: , , wavelet inverse transform is realized by the transpose convolution of two synthesis vectors by using two-dimensional discrete wavelet transform to extract the axial high frequency information, its data is expanded to two-dimensional, and the construction process of two-dimensional forward wavelet convolution kernel is designed to make it self-adapt to data distribution and feature layer, formula as follows: , , , set to learnable filter, respectively are the low frequency, horizontal high frequency, vertical high frequency and diagonal high frequency convolution operator obtained by vector outer product, these are spliced into wavelet kernel , the realization of the learnable wavelet transform is grouped convolution, given a group of input feature map , its projection in wavelet domain is generated by wavelet convolution; for complex given a transform filter, its transform can be expressed as then get corresponding transform , and satisfy the condition formula: ; The input wavelet domain component is separated into separate dimensions, wavelet domain feature extraction and conversion are performed through depth separable convolution of expansion factors, channel expansion and scaling are performed through convolution, and the wavelet domain feature map is restored to the spatial domain through a learnable wavelet inverse transform for output, to form a learnable wavelet network, the expansion factor is a, and a is 2 or 6.

[0011] Preferably, the multi-scale cross-enhanced decoder separates the last feature of the encoder into 4 feature blocks of the same size in the channel dimension, each feature block is upsampled through a deconvolution module of different sizes, and the convolution kernel sizes used are 2x2, 4x4, 6x6 and 8x8, respectively, to obtain upsampled features ; The features are spliced in the channel dimension to obtain features upsampled by parallel multi-scale deconvolution , the features processed by WF-SC are used , and are weighted through a Sigmoid function to obtain respective weights and ; The weights are cross-multiplied with the corresponding features and added to obtain fused features, which are input into a channel attention mechanism for attention feature enhancement to obtain the output of the decoder module, and the formula is as follows: ; wherein, represents an efficient channel attention mechanism, the efficient channel attention mechanism uses a global average pooling layer and dimension conversion to obtain a feature map of 1xC size, and the size of the adaptive convolution kernel in one-dimensional convolution operation is calculated , and the formula is: ; wherein, is the number of channels of the feature map, and are hyperparameters, and their default settings are used in this paper, is the nearest odd number operation, which can be represented as ; wherein, is the input feature, is the output feature, is an adaptive one-dimensional convolution with a convolution kernel size of , the channel weight is obtained through a sigmoid activation function, and the input feature map is multiplied by the weight to obtain the output of the efficient channel attention mechanism, i.e. the output of the multi-scale cross-enhanced decoder ​The subsequent decoder module sequentially fuses the features from the skip connections with the features from the lower-level decoder, performing feature upsampling. The specific formula is as follows: ; In the formula This indicates that multi-scale crossover adds decoding operations.

[0012] Preferably, the quality score is assessed by a radiologist on a 5-point scale, and calculated in conjunction with objective indicators such as SNR and CNR. The noise value is the standard deviation of the background area.

[0013] Preferably, the network training uses the Adam optimizer with an initial learning rate of 0.0001, a weight decay of 0.1, a decay every 25 rounds, 100 rounds of five-fold cross-validation, and a batch size of 16.

[0014] In summary, the present invention has the following beneficial technical effects: First, a quality score-guided encoder is used. By fusing the image quality score with the image data and combining it with a ResNet34 network for feature extraction, the guiding role of image quality in classification and segmentation tasks is enhanced. Second, a wavelet transform fusion skip link module is used to further refine image features through wavelet transform, enhancing the model's ability to capture details. Finally, a multi-scale cross-enhanced decoder module is employed. By fusing multi-scale information to optimize the decoder output, the segmentation accuracy is improved. This not only enables efficient detection of pulmonary embolism but also precise segmentation of lesion areas. Through quality score guidance and feature fusion techniques, this system demonstrates high robustness on images of varying quality, addressing the problem of insufficient adaptability of existing methods to low-quality images.

[0015] This method provides strong support for the early diagnosis of pulmonary embolism, the development of image-assisted diagnostic systems, and clinical applications, and has broad application prospects and profound social significance. Attached Figure Description

[0016] Fig. 1 This is a schematic diagram of a CT image pulmonary embolism segmentation and classification method that combines quality assessment in an embodiment of the present invention; Fig. 2 This is a schematic diagram of a module of a CT image pulmonary embolism segmentation and classification method that combines quality assessment in an embodiment of the present invention. Detailed Implementation

[0017] The following is in conjunction with the appendix Figs. 1-2 The present invention will be described in further detail below.

[0018] This invention discloses a CT image pulmonary embolism segmentation and classification method that incorporates quality assessment. (Refer to...) Figs. 1-2 A CT image segmentation and classification method for pulmonary embolism that incorporates quality assessment includes the following steps: Step 1: Input the 256×256 pulmonary embolism CT image and its quality score into the quality score-guided encoder. Expand the quality score dimension through linear transformation and fuse it with the feature map extracted by ResNet34 layer by layer to generate multi-scale encoded features. Step 2: Perform wavelet domain decomposition and reconstruction of the encoded features by fusing the skip link module with wavelet transform, and optimize feature transmission; Step 3: Use a multi-scale cross-enhanced decoder to perform multi-scale deconvolution fusion on the features, and output the segmentation results by combining an efficient channel attention mechanism. At the same time, output the pulmonary embolism presence judgment through the classification head.

[0019] By leveraging ResNet34's deep feature extraction capabilities and optimization strategies, multi-level information in images can be effectively processed, thereby improving the performance of pulmonary embolism classification and segmentation tasks.

[0020] Specifically, the quality score-guided encoder includes a Stem module, four encoding modules, and a classification head network architecture; The Stem module includes a 7×7 convolutional layer with a stride of 2, a batch normalization layer, and a ReLU activation function. The four encoding modules are stacked with 3, 4, 6, and 3 Res-Blocks respectively. Each Res-Block contains two 3×3 convolutional operations, along with a ReLU activation function and a BN operation. Each encoding module incorporates a 2×2 convolutional layer with a stride of 2, combined with a batch normalization layer, to perform downsampling operations; Specifically, the introduction of 7×7 large-kernel convolutional layers not only slightly increases the parameters but also expands the receptive field, helping the network capture global features in the image. This method helps extract rich low-level features in the initial stage of the network and provides a solid foundation for subsequent deep feature extraction. After the convolutional layers, the use of batch normalization layers can accelerate network training, reduce internal covariance shift, and enhance model stability. The four subsequent encoding modules are stacked with 3, 4, 6, and 3 Res-Blocks respectively (e.g., ...). Fig. 1As shown, each Res-Block contains two 3×3 convolutional operations, combined with ReLU activation function and BN operation to enhance the non-linear representation of features and the stability of training. Through this structure, the network can gradually extract and strengthen higher-level features in the image, thereby enabling the model to have stronger representation capabilities in subsequent tasks. In order to further optimize the spatial complexity and feature learning efficiency of the network, a 2×2 convolutional layer with a stride of 2 is added to each encoding module, combined with a batch normalization layer to perform downsampling operation. Each downsampling operation can not only halve the size of the feature map, but also effectively reduce the number of channels, thereby significantly reducing the feature dimension and network parameters and enhancing the computational efficiency of the network.

[0021] The quality score guided encoder also includes an image quality score module. The image quality score module expands the quality score S through five different linear layers, gradually increasing its dimension: [b, 3], [b, 64], [b, 128], [b, 256], [b, 512]. The dimension of the quality score matches the dimension of the feature map extracted by ResNet34. The quality score is aligned spatially with image features through a data broadcasting mechanism, generating quality guidance information with the same dimension as each feature map layer. The quality score is then expanded to... The corresponding dimensions are: [b, 3, 1, 1], [b, 64, 1, 1], [b, 128, 1, 1], [b, 256, 1, 1], [b, 512, 1, 1].

[0022] Specifically, the input image is By comparing image X with the initial quality score Perform a dot product to obtain weighted features, then input these weighted features into the Stem module to obtain preliminary features. ,feature Will be related to the second phase of quality scoring Perform a dot product to obtain the features after quality score weighting. This data is then fed into a subsequent Res-Block for feature extraction. will with The dot product is performed and then fed into the subsequent Res-Block. After continuous processing, five encoder features are obtained. The formula is as follows: ; in, For the first One Res-Block function; Use for each floor The quantity is [3, 4, 6, 3].

[0023] Specifically, the classification head network architecture includes an adaptive global average pooling layer, a linear layer, a ReLU activation function, another linear layer, and a Sigmoid activation function; An adaptive global average pooling layer performs global pooling on all encoded features, aggregating information from various spatial locations to generate a fixed-dimensional feature vector. This feature vector is then transformed by a linear layer, introducing non-linearity using the ReLU activation function, as shown in the following formula: .

[0024] By dynamically integrating image quality scores into the feature extraction process, the model's segmentation and classification performance for pulmonary embolism in CT images is improved. The core of this approach lies in constructing a hierarchical, cascaded quality guidance mechanism: firstly, low-dimensional quality scores are expanded to dimensions matching the feature maps of each layer of ResNet34 through multi-level linear transformations. Then, a broadcast mechanism is used to achieve automatic spatial alignment, allowing quality information to be fused with image features layer by layer through dot-multiplication, thereby guiding the network to dynamically adjust feature weight allocation based on image quality. This design not only preserves the spatial integrity of the original features but also enhances the model's adaptability to low-quality images through quality-aware weight modulation, effectively solving the feature shift problem caused by differences in medical image quality. In the feature decoding stage, a multi-scale classification head is introduced to aggregate multi-level features through global average pooling. Combined with nonlinear activation functions and linear transformations, this achieves efficient mapping from complex feature spaces to classification decisions. This hierarchical quality fusion strategy enables the network to simultaneously capture local details and global semantic information, exhibiting higher sensitivity and robustness in pulmonary embolism detection tasks, providing a reliable quality-aware feature foundation for subsequent accurate segmentation.

[0025] Specifically, the wavelet transform fusion jump link module performs a one-dimensional discrete wavelet transform on the input signal. Given a wavelet function , As a scale factor, For time factor and scaling function Input signal exist The decomposition formula is as follows: ; in, Represents high-frequency components, This indicates the low-frequency components; the input signal is gradually decomposed into wavelet domain signals. Introducing vectors Let represent the high-frequency and low-frequency filters, respectively. The decomposition of the original signal on the wavelet basis can be regarded as a recursive convolution of the original signal with a specific filter at a stride of 2, as shown in the formula: , , The inverse wavelet transform is obtained through two composite vectors. This is achieved through transposed convolution. Axial high-frequency information is extracted using two-dimensional discrete wavelet transform, extending the data to two dimensions. A learnable method is designed to adapt to data distribution and feature layers. The formula for constructing the two-dimensional forward wavelet convolution kernel is as follows: , , , Set as a learnable filter, These are low-frequency, horizontal high-frequency, vertical high-frequency, and diagonal high-frequency convolution operators obtained through vector outer products, which are then concatenated into a wavelet kernel. The learnable wavelet transform is implemented as grouped convolution, given a set of input feature maps. Its projection in the wavelet domain is Generated via wavelet convolution; for complex numbers Given a transform filter for an application, its transform can be expressed as: Then get Corresponding transformation And satisfy the condition formula: , The input wavelet domain components are separated into separate dimensions. Wavelet domain features are extracted and transformed through depthwise separable convolution with an expansion factor. Channel expansion and scaling are performed through convolution. The wavelet domain feature map is restored to the spatial domain for output through learnable wavelet inverse transform, thus forming a learnable wavelet network with an expansion factor of a, where a is 2 or 6.

[0026] By introducing a learnable wavelet transform fusion skip connection mechanism, the ability of multi-scale networks to recover detailed features of medical images is improved. Its core innovation lies in combining the time-frequency adaptive characteristics of traditional wavelet transform with deep neural networks: learnable low-frequency, horizontal high-frequency, vertical high-frequency, and diagonal high-frequency convolutional kernels are constructed based on two-dimensional discrete wavelet transform. Multi-directional filter banks are generated through outer product operations, achieving bidirectional mapping of image features between the spatial and wavelet domains. The filter parameters are constrained through the principle of perfect reconstruction, preserving the mathematical completeness of wavelet transform while endowing the network with the ability to adaptively adjust its frequency response range. In the feature decoding stage, the collaborative design of deep separable convolution and inverse wavelet transform effectively decouples the expression space of high-frequency details from low-frequency semantic information. Through multi-layered cascaded wavelet head modules and fusion modules, refined reconstruction of frequency features across scales is achieved. This mechanism fully utilizes the sensitivity of wavelet transform to abrupt signals, supplementing the high-frequency edge and texture information lost in traditional convolution through skip connections. While maintaining the spatial resolution of the feature map, it significantly enhances the localization accuracy of micro-embolic lesions. This differentiable wavelet domain feature interaction framework enables the network to automatically balance the representation weights of global semantics and local details during end-to-end training, providing a more robust multi-scale feature fusion scheme for complex medical image segmentation tasks.

[0027] Specifically, the multi-scale cross-enhanced decoder, for the last feature of the encoder output... The feature is divided into four identical feature blocks along the channel dimension. Each feature block is upsampled using deconvolution modules of different sizes, with kernel sizes of 2×2, 4×4, 6×6, and 8×8, to obtain the upsampled features. ; Will The features are concatenated along the channel dimension to obtain features that have undergone parallel multi-scale deconvolution upsampling. Using features processed by WF-SC Then, the Sigmoid function is used to... and We perform weighting to obtain their respective weights. and ; These weights are cross-multiplied with the corresponding features and then summed to obtain the fused features. These features are then fed into the channel attention mechanism for attention feature enhancement to obtain the output of the decoder module, as shown in the following formula: ; in, This represents an efficient channel attention mechanism. It uses a global average pooling layer and dimension transformation to obtain a 1×C feature map, and then calculates the size of the adaptive convolution kernel in the one-dimensional convolution operation. The formula is: ; In the formula, The number of channels in the feature map. and These are all hyperparameters, and their default settings are used in this paper. The operation of finding the nearest odd number can be represented as: ; In the formula, For input features, For output features, The kernel size is The adaptive one-dimensional convolution obtains channel weights through the sigmoid activation function, and multiplies the input feature map with the weights to obtain the output of the efficient channel attention mechanism, i.e., the output of the multi-scale cross-enhanced decoder. The subsequent decoder module sequentially fuses the features from the skip connections with the features from the lower-level decoder, performing feature upsampling. The specific formula is as follows: ; In the formula This indicates that multi-scale crossover adds decoding operations.

[0028] The design of a multi-scale cross-enhanced decoder (MC-Decoder) improves the accuracy of localization and feature recovery of small lesions in medical image segmentation tasks. Its core advantage lies in the integration of multi-scale large-kernel deconvolution and attention mechanisms: by dividing the encoded features into four parallel branches and upsampling them with deconvolution kernels of different sizes from 2×2 to 8×8, it reduces computational complexity while achieving differentiated extraction of multi-resolution features, effectively alleviating the problem of high-frequency detail loss caused by single upsampling operations. The introduction of channel-dimensional concatenation and sigmoid weighted cross-multiplication strategies enables dynamic interaction between low-level edge features and deep semantic features through skip connections, strengthening the complementarity of cross-level features. Combined with an efficient channel attention (ECA) mechanism, it uses adaptive one-dimensional convolution kernels to automatically calibrate the weight distribution of each channel, accurately focusing on key feature regions while reducing the number of parameters. This decoder expands the receptive field coverage through large-kernel deconvolution and, combined with the multi-scale context awareness capability of dilated convolution, solves the problem of traditional methods struggling to capture small embolic lesions on low-resolution feature maps. Its divide-and-conquer fusion architecture not only ensures the integrity of multi-scale feature representation, but also optimizes the continuity of segmentation boundaries through an attention-guided feature enhancement mechanism, ultimately achieving better detail preservation and spatial consistency in the pulmonary embolism detection task.

[0029] Specifically, the quality score is assessed by radiologists on a 5-point scale, and calculated in conjunction with objective indicators such as SNR and CNR. The noise value is the standard deviation of the background area.

[0030] Specifically, the network training uses the Adam optimizer with an initial learning rate of 0.0001, a weight decay of 0.1, a decay every 25 rounds, 100 rounds of five-fold cross-validation, and a batch size of 16.

[0031] experiment: After the image data was exported from the server in DICOM format, a physician with over three years of experience in radiology was responsible for delineating regions of interest (ROIs) on a GE Advanced Workstation post-processing workstation. To ensure measurement accuracy, all ROIs were set to circular shapes, and the largest possible area was selected for each measurement to avoid interference from factors such as thrombi, calcifications, and plaques on the vessel walls. ROIs included the main pulmonary artery, left pulmonary artery trunk, right pulmonary artery trunk, and latissimus dorsi muscle. For each ROI, its CT and SD values ​​were recorded for subsequent analysis.

[0032] Two radiologists with over 5 years of experience in CTPA diagnosis were responsible for independently conducting randomized, anonymous reviews of images on standardized display equipment, and providing subjective scores based on image quality. The subjective evaluation criteria for CTPA images were as follows: 5 points - Excellent image quality, sharp and clear details, no artifacts; 4 points - Good image quality, clear boundaries, only a few artifacts, fully meeting clinical diagnostic requirements; 3 points - Moderate image quality, although some quality issues exist, it still meets basic diagnostic requirements; 2 points - Poor image quality, with obvious artifacts or blurring, reducing the confidence in the diagnostic results; 1 point - Very poor image quality, almost unrecognizable, containing no information suitable for diagnosis. Only images with a subjective score of 3 or higher were considered to meet the basic requirements for clinical diagnosis. The average subjective score of all images participating in the evaluation was used as the mean opinion score (MOS). This scoring mechanism ensured the objectivity and accuracy of the evaluation, providing an important basis for subsequent analysis.

[0033] All images showing pulmonary embolism (PE) were manually delineated layer by layer in axial views using 3D Slicer software (version 5.4.0) by two radiologists with three years of experience. The segmentation results were then reviewed and confirmed by a radiologist with seven years of experience. To achieve accurate segmentation, all CT slice data for each PE case, from its first appearance to complete disappearance, were recorded and saved, with slices without PE used as negative training samples. In the data preprocessing stage, the window width and window level of all CTPA images were first set to 700 and 100, respectively. Then, a min-max normalization method was used to map all pixel values ​​in the images to the range [0, 1]. The image pixel size used in the experiment was adjusted to 512 x 512, and the segmentation area was enlarged by 50% to better fit the image. To further improve the clarity of the segmented area, a contrast-limited adaptive histogram equalization technique was applied, ultimately forming a three-channel image.

[0034] Considering the unique characteristics of CTPA images, the data augmentation strategy did not include brightness adjustment or random cropping to avoid affecting the accuracy of embolus location identification and segmentation. Accordingly, geometric transformations such as vertical rotation, horizontal rotation, and horizontal flipping were employed to quadruple the sample size, thereby improving the model's generalization ability. The dataset was randomly divided into five equal parts, with four parts used for training and the remaining part for testing. Since the division was based on case-specific data, there was no case-level data leakage issue. Five-fold cross-validation was used to fully evaluate the model's performance and stability.

[0035] The model designed in this invention is implemented using Python 3.7 and PyTorch 1.12. The image processing workstation is equipped with an Intel i9-13900K CPU and two NVIDIA RTX 4090 GPUs with 24GB of video memory. The initial parameters during model training are obtained using PyTorch's default initialization method, and the Adam optimizer is used to update the network parameters. Specifically, the initial learning rate is set to 0.0001, the weight decay coefficient is 0.1, the learning rate decays every 25 iterations, and the model is trained for a total of 100 iterations.

[0036] When training the model, the Dice function is used as the loss function for the segmentation results. The formula is as follows: ; In the formula, This serves as a true mask for pulmonary embolism on CT images. This serves as a mask for the model's predictions. The cross-entropy function is used as the loss function for the classification results. The formula is as follows: ; In the formula, The label value indicates the presence of pulmonary embolism in the image. This represents the result of the model classification. , The image indicates the presence of a pulmonary embolism. This indicates that there is no pulmonary embolism in the image.

[0037] like Fig. 1 As shown, the model's learning objectives include the detection and segmentation of pulmonary embolism; therefore, the final loss function is expressed as follows: ; In the formula, This represents the weighting factor, which is set to 0.6 in this experiment.

[0038] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A CT image pulmonary embolism segmentation and classification method incorporating quality assessment, characterized in that, Includes the following steps: Step 1: Input the 256×256 pulmonary embolism CT image and its quality score into the quality score-guided encoder. Expand the quality score dimension through linear transformation and fuse it with the feature map extracted by ResNet34 layer by layer to generate multi-scale encoded features. Step 2: Perform wavelet domain decomposition and reconstruction of the encoded features by fusing the skip link module with wavelet transform, and optimize feature transmission; Step 3: Use a multi-scale cross-enhanced decoder to perform multi-scale deconvolution fusion on the features, and output the segmentation results by combining an efficient channel attention mechanism. At the same time, output the pulmonary embolism presence judgment through the classification head.

2. The CT image pulmonary embolism segmentation and classification method combining quality assessment according to claim 1, characterized in that, In step one, the quality scoring guided encoder includes a Stem module, four encoding modules, and a classification head network architecture; The Stem module includes a 7×7 convolutional layer with a stride of 2, a batch normalization layer, and a ReLU activation function. The four encoding modules are stacked in 3, 4, 6, and 3 Res-Blocks respectively. Each Res-Block contains two 3×3 convolutional operations, along with a ReLU activation function and a BN operation. Each of the aforementioned encoding modules incorporates a 2×2 convolutional layer with a stride of 2, combined with a batch normalization layer, to perform downsampling operations; The quality score guided encoder also includes an image quality score module. The image quality score module expands the quality score S through 5 different linear layers, gradually increasing its dimension, namely: [b,3], [b, 64], [b, 128], [b, 256], [b, 512]. The dimension of the quality score matches the dimension of the feature map extracted by ResNet34. The quality score is aligned spatially with image features through a data broadcasting mechanism, generating quality guidance information with the same dimension as each feature map layer. The quality score is then expanded to... The corresponding dimensions are: [b, 3, 1, 1], [b, 64, 1, 1], [b, 128, 1, 1], [b, 256, 1, 1], [b, 512, 1, 1].

3. The CT image pulmonary embolism segmentation and classification method combined with quality assessment according to claim 2, characterized in that: The input image is By comparing image X with the initial quality score Perform a dot product to obtain weighted features, then input these weighted features into the Stem module to obtain preliminary features. ,feature Will be related to the second phase of quality scoring Perform a dot product to obtain the features after quality score weighting. This data is then fed into a subsequent Res-Block for feature extraction. will with The dot product is performed and then fed into the subsequent Res-Block. After continuous processing, five encoder features are obtained. The formula is as follows: ; in, For the first One Res-Block function; Use for each floor The quantity is [3, 4, 6, 3].

4. The CT image pulmonary embolism segmentation and classification method combined with quality assessment according to claim 2, characterized in that: The classification head network architecture includes an adaptive global average pooling layer, a linear layer, a ReLU activation function, another linear layer, and a Sigmoid activation function; An adaptive global average pooling layer performs global pooling on all encoded features, aggregating information from various spatial locations to generate a fixed-dimensional feature vector. This feature vector is then transformed by a linear layer, introducing non-linearity using the ReLU activation function, as shown in the following formula: 。 5. The CT image pulmonary embolism segmentation and classification method combined with quality assessment according to claim 1, characterized in that: The wavelet transform fusion jump link module, on the one-dimensional discrete wavelet transform, for the input signal... Given a wavelet function , As a scale factor, For time factor and scaling function Input signal exist The decomposition formula is as follows: ; in, Represents high-frequency components, This indicates the low-frequency components; the input signal is gradually decomposed into wavelet domain signals. Introducing vectors Let represent the high-frequency and low-frequency filters, respectively. The decomposition of the original signal on the wavelet basis can be regarded as a recursive convolution of the original signal with a specific filter at a stride of 2, as shown in the formula: , , The inverse wavelet transform is obtained through two composite vectors. This is achieved through transposed convolution. Axial high-frequency information is extracted using two-dimensional discrete wavelet transform, extending the data to two dimensions. A learnable method is designed to adapt to data distribution and feature layers. The formula for constructing the two-dimensional forward wavelet convolution kernel is as follows: , , , Set as a learnable filter, These are low-frequency, horizontal high-frequency, vertical high-frequency, and diagonal high-frequency convolution operators obtained through vector outer products, which are then concatenated into a wavelet kernel. The learnable wavelet transform is implemented as grouped convolution, given a set of input feature maps. Its projection in the wavelet domain is Generated via wavelet convolution; For complex numbers Given a transform filter for an application, its transform can be expressed as: Then get Corresponding transformation And satisfy the condition formula: ; The input wavelet domain components are separated into separate dimensions. Wavelet domain features are extracted and transformed through depthwise separable convolution with an expansion factor. Channel expansion and scaling are performed through convolution. The wavelet domain feature map is restored to the spatial domain for output through learnable wavelet inverse transform, thus forming a learnable wavelet network with an expansion factor of a, where a is 2 or 6.

6. The CT image pulmonary embolism segmentation and classification method combined with quality assessment according to claim 1, characterized in that: The multi-scale cross-enhanced decoder, for the last feature output by the encoder. The feature is divided into four identical feature blocks along the channel dimension. Each feature block is upsampled using deconvolution modules of different sizes, with kernel sizes of 2×2, 4×4, 6×6, and 8×8, to obtain the upsampled features. ; Will The features are concatenated along the channel dimension to obtain features that have undergone parallel multi-scale deconvolution upsampling. Using features processed by WF-SC Then, the Sigmoid function is used to... and We perform weighting to obtain their respective weights. and ; These weights are cross-multiplied with the corresponding features and then summed to obtain the fused features. These features are then fed into the channel attention mechanism for attention feature enhancement to obtain the output of the decoder module, as shown in the following formula: ; in, This represents an efficient channel attention mechanism. It uses a global average pooling layer and dimension transformation to obtain a 1×C feature map, and then calculates the size of the adaptive convolution kernel in the one-dimensional convolution operation. The formula is: ; In the formula, The number of channels in the feature map. and These are all hyperparameters, and their default settings are used in this paper. The operation of finding the nearest odd number can be represented as: ; In the formula, As input features, For output features, The kernel size is The adaptive one-dimensional convolution obtains channel weights through the sigmoid activation function, and multiplies the input feature map with the weights to obtain the output of the efficient channel attention mechanism, i.e., the output of the multi-scale cross-enhanced decoder. The subsequent decoder module sequentially fuses the features from the skip connections with the features from the lower-level decoder, performing feature upsampling. The specific formula is as follows: ; In the formula This indicates that multi-scale crossover adds decoding operations.

7. The CT image pulmonary embolism segmentation and classification method combining quality assessment according to claim 1, characterized in that: The quality score is calculated by radiologists on a 5-point scale, combined with objective indicators such as SNR and CNR. The noise value is the standard deviation of the background area.

8. The CT image pulmonary embolism segmentation and classification method combined with quality assessment according to claim 1, characterized in that: The network was trained using the Adam optimizer with an initial learning rate of 0.0001, a weight decay of 0.1, and a decay every 25 rounds. Five-fold cross-validation was used for 100 rounds of training, and the batch size was 16.

Citation Information

Patent Citations

  • Brain tumor MR image segmentation method

    CN114519719A

  • CT image whole heart segmentation method based on deep learning

    CN114596317A

  • Imaging optimization method based on magnetic resonance image quality evaluation

    CN117830228A

  • Deep learning-based pulmonary embolism segmentation method

    CN118212411A

  • PET-CT lung cancer image segmentation method and system based on deep learning

    CN119380027A

Cited By

  • Polyp segmentation method based on adaptive multi-path fusion and hierarchical perception collaboration

    CN121527112A

  • Intelligent evaluation system for lung collapse under thoracoscope

    CN121724993A