Ultrasound endoscopy-based lesion invasion depth assessment system, method and storage medium
Through convolutional neural network technology, the features of endoscopic ultrasound images are extracted and fused, and the attention mechanism is used to process the feature map to achieve accurate identification and classification of lesion areas and infiltration depths, solving the problem of identifying and classifying lesion areas in endoscopic ultrasound images. The problem of inaccurate determination of penetration depth type.
Patent Information
- Application Number
- CN202410805547.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-21
AI Technical Summary
Automated segmentation and classification of endoscopic ultrasound images is difficult, especially due to low contrast, echo heterogeneity, motion artifacts, and noise effects, leading to inaccurate identification of lesion areas and determination of infiltration depth types.
A lesion infiltration depth assessment system based on convolutional neural network is adopted. The feature extraction module performs layer-by-layer feature extraction. The feature fusion module performs feature aggregation. The decoder module uses the attention mechanism to process feature maps and combines with the category prediction module to achieve lesion area segmentation and Classification of depth of penetration.
It improves the accuracy of lesion area identification and classification accuracy of infiltration depth types, reduces misidentification and misclassification rates, and provides more accurate lesion infiltration depth assessment results.
Smart Images

Figure CN118397066B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lesion image data processing, and in particular to a lesion infiltration depth assessment system, method and storage medium based on ultrasonic endoscope. Background Art
[0002] Endoscopic Ultrasound (EUS) is an advanced medical imaging method that combines endoscopy and ultrasound scanning technology. It enables doctors to perform high-resolution ultrasound scans deep inside the body by installing a miniature ultrasound probe at the tip of an endoscope, especially for imaging the digestive tract and surrounding organs such as the pancreas, gallbladder, liver, esophagus, etc. EUS can not only provide detailed images of anatomical structures, but also evaluate the pathological state of tissues. It has extremely important clinical value for early tumor detection, tumor staging, and guiding precise tissue biopsy.
[0003] Although endoscopic ultrasound has great advantages in diagnosis, there are still some challenges and difficulties in the automated segmentation and classification of ultrasound images. First, EUS images are often affected by low contrast, echo heterogeneity, motion artifacts, and noise generated by the instrument itself, which reduce the clarity of the image and increase the difficulty of identifying the lesion area. Secondly, lesions appear in various forms in EUS images, ranging from tiny structural changes to large-scale abnormal areas. Different types of lesions have different characteristics in the image, which poses great challenges to both doctor identification and automatic segmentation and classification based on computer technology.
[0004] Early computer-assisted image segmentation and classification research was mainly based on manual feature extraction, such as edge detection, threshold segmentation, morphological operations, etc. These methods rely on artificially defined rules, have poor adaptability to complex lesion structures, limited segmentation accuracy, and extremely inaccurate classification. In recent years, deep learning technologies such as convolutional neural networks (CNN) and Transformer have shown significant advantages in EUS image analysis, and can automatically learn advanced features to improve the accuracy of segmentation and classification. However, due to the presence of non-lesion areas similar to lesion areas and blurred lesion boundaries in ultrasound images, it is difficult to accurately identify lesions and determine the type of infiltration depth, and the misidentification rate and misclassification rate are high. Therefore, it is urgent to develop a lesion infiltration depth assessment system, method and storage medium based on ultrasound endoscopy with high lesion recognition accuracy. Summary of the invention
[0005] In view of the above problems, the present invention provides a lesion infiltration depth assessment system, method and storage medium based on ultrasonic endoscopy. Based on the present invention, the lesion contour can be identified and the infiltration depth type can be determined more accurately.
[0006] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0007] In a first aspect, the present invention provides a lesion invasion depth assessment system based on ultrasound endoscopy, comprising:
[0008] An image acquisition module, used for acquiring an endoscopic ultrasound image from a video acquired by the endoscopic ultrasound;
[0009] A model creation module is used to create a convolutional neural network model; the convolutional neural network model includes a feature extraction module, a feature fusion module, a decoder module and a category prediction module, the feature extraction module is used to perform layer-by-layer feature extraction of at least three layers of the ultrasonic endoscopic image to obtain a coding feature map, and the feature fusion module is used to perform feature fusion on at least three groups of the coding feature maps to obtain a first fused feature map The decoder module is used to process the encoding feature map used in the feature fusion module and the feature map obtained by the feature fusion module using the attention mechanism to obtain a plurality of decoding feature maps, and is used to perform image segmentation on the finally obtained decoding feature map to obtain the lesion area, and the category prediction module is used to perform image segmentation on the first fusion feature map and decoded feature maps to classify the lesion invasion level;
[0010] A model training module is used to train and test the convolutional neural network model based on a data set as an ultrasound endoscopy-based lesion infiltration depth assessment model; the data set includes a number of ultrasound endoscopy images marked with lesion contours and infiltration depth types.
[0011] In a preferred embodiment, the feature extraction module includes 5 groups of convolutional neural network modules arranged in sequence, and the 5 groups of convolutional neural network modules perform layer-by-layer feature extraction on the ultrasonic endoscopic image to obtain the first coding feature map f1, the second coding feature map f2, the third coding feature map f3, the fourth coding feature map f4 and the fifth coding feature map f5 in turn; the feature fusion module is used to perform feature fusion on the fifth coding feature map f5, the fourth coding feature map f4 and the third coding feature map f3 to obtain the first fusion feature map .
[0012] In a preferred embodiment, the feature fusion module is specifically used to Perform upsampling operation on the fifth encoded feature map after upsampling Perform convolution operation to get the graph , the figure And the fourth encoding feature map Multiply element by element, and then upsample and convolve the result of element by element to get the image , for the figure and Figure Perform concatenation operation, and then perform convolution operation to obtain the first aggregated feature map; And the third encoding feature map Multiply element by element, and convolve the multiplication result to obtain the second aggregate feature map. Concatenate the first aggregate feature map and the second aggregate feature map and convolve them to obtain the first fusion feature map. .
[0013] In a preferred embodiment, the decoder module includes a first local decoder, a second local decoder, a third local decoder and a segmentation prediction module, wherein the first local decoder is used to apply the first attention module thereon to the initially decoded feature map and the fifth encoding feature map f5 to extract features, and obtain the first decoding feature map S5. According to the global mapping feature map S m Obtain; the second local decoder is used to use the first attention module thereon to perform feature extraction on the first decoding feature map S5 and the fourth encoding feature map f4 to obtain the second decoding feature map S4; the third local decoder is used to use the first attention module thereon to perform feature extraction on the second decoding feature map S4 and the third encoding feature map f3 to obtain the third decoding feature map S3; the segmentation prediction module is used to process the third decoding feature map S3 to obtain a first segmentation prediction map of the lesion area, and the processing includes image segmentation.
[0014] In a preferred embodiment, the segmentation prediction module is specifically used to upsample the third decoding feature map S3 to restore it to the size of the ultrasonic endoscopic image, activate the upsampled third decoding feature map S3 through a Sigmoid activation function, and then perform the image segmentation to obtain a first segmentation prediction map of the lesion area.
[0015] In a preferred embodiment, the first local decoder is specifically configured to decode the initial feature map The fifth encoding feature map f5 is processed by the first attention module to obtain the first attention feature R5, and the first attention feature R5 and the global mapping feature map S6 are added to obtain the first decoding feature map S5;
[0016] The second local decoder is specifically used to upsample the first decoding feature map S5, process the upsampled first decoding feature map S5 and the fourth encoding feature map f4 through the first attention module to obtain a second attention feature R4, and add the second attention feature R4 and the upsampled first decoding feature map S5 to obtain a second decoding feature map S4;
[0017] The third local decoder is specifically used to upsample the second decoding feature map S4, process the upsampled second decoding feature map S4 and the third encoding feature map f3 through the first attention module to obtain the third attention feature R3, and add the third attention feature R3 and the upsampled second decoding feature map S4 to obtain the third decoding feature map S3.
[0018] In a preferred embodiment, the category prediction module is specifically used to multiply the third encoding feature map f3 and the third decoding feature map S3 to obtain the feature , multiply the fourth encoding feature map f4 and the second decoding feature map S4 to obtain the feature , multiply the fifth encoding feature map f5 and the first decoding feature map S5 to obtain the feature ; Used for the first fusion feature map f h Perform attention weighting to obtain the first fusion weighted feature map ; Used to fuse the first weighted feature map , features after convolution , features after convolution , features after convolution The input is sent to the fully connected layer, and the output of the fully connected layer is operated by the SOFTMAX function to obtain the category prediction function.
[0019] In a second aspect, the present invention provides a method for real-time assessment of lesion invasion depth based on ultrasound endoscopy, comprising:
[0020] Acquire real-time video captured by endoscopic ultrasound;
[0021] acquiring an endoscopic ultrasound image from the real-time video;
[0022] Using the endoscopic ultrasound image as an input of a lesion invasion depth assessment model based on endoscopic ultrasound obtained in the lesion invasion depth assessment system based on endoscopic ultrasound as described in any one of the first aspects;
[0023] Obtain the output of the endoscopic ultrasound-based lesion invasion depth assessment model.
[0024] In a third aspect, the present invention provides a method for assessing the depth of lesion invasion based on ultrasound endoscopy, comprising:
[0025] Acquire endoscopic ultrasound images from videos acquired by endoscopic ultrasound;
[0026] Creating a convolutional neural network model; the convolutional neural network model includes a feature extraction module, a feature fusion module, a decoder module and a category prediction module, the feature extraction module is used to perform layer-by-layer feature extraction of at least three layers of the ultrasonic endoscopic image to obtain a coding feature map, and the feature fusion module is used to perform feature fusion on at least three groups of the coding feature maps to obtain a first fused feature map The decoder module is used to process the encoding feature map used in the feature fusion module and the feature map obtained by the feature fusion module using the attention mechanism to obtain a plurality of decoding feature maps, and is used to perform image segmentation on the finally obtained decoding feature map to obtain the lesion area, and the category prediction module is used to perform image segmentation on the first fusion feature map and decoded feature maps to classify the lesion invasion level;
[0027] The convolutional neural network model is trained and tested based on a data set to obtain an ultrasound endoscopy-based lesion infiltration depth assessment model; the data set includes a number of ultrasound endoscopy images marked with lesion contours and infiltration depth types.
[0028] In a fourth aspect, the present invention provides a storage medium storing a computer program, which, when executed by a processor, implements the method for assessing the depth of lesion infiltration based on ultrasound endoscopy described in the third aspect.
[0029] The present invention is based on the lesion infiltration depth assessment system, method and storage medium of ultrasound endoscope, obtains ultrasound endoscope images from the video collected by ultrasound endoscope, builds and trains the model, and extracts features layer by layer through the feature extraction module to generate a pyramid feature map; the feature fusion module aggregates the feature maps of different resolutions together to form a unified feature, which can be used to cooperate with the decoder module as the initial guide area of the decoder module, and can also cooperate with the category prediction module to further mine the feature information required for classification; the decoder module uses the attention mechanism to decode and process the partial encoding feature map and the feature map obtained by the feature fusion module, further strengthen the features, accurately estimate the edge and area of the lesion, and further calculates the results of the decoder module and the feature fusion module through the category prediction module to achieve the classification of the lesion infiltration level. Based on such a design, the present invention realizes a more accurate evaluation and prediction of the lesion area and the lesion infiltration depth type compared with the prior art. The present invention solves the problems of inaccurate lesion area identification and inaccurate lesion infiltration depth classification under artificial intelligence-assisted ultrasound endoscope images, and improves the prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a framework diagram of the lesion invasion depth assessment system based on endoscopic ultrasound.
[0031] Figure 2Flow chart of the method for real-time assessment of lesion invasion depth.
[0032] Figure 3 Flow chart of the method for assessing the depth of lesion invasion.
[0033] In the figure, 10, image acquisition module; 20, model creation module, 21, feature extraction module; 22, feature fusion module, 23, decoder module, 24, category prediction module, 30, model training module. DETAILED DESCRIPTION
[0034] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0035] Today's lesion assessment based on ultrasound endoscopy mostly uses convolutional neural networks. However, in today's assessments, there are non-lesion areas in the ultrasound images that are similar to the lesion areas, or the lesion boundaries are blurred, making it difficult to accurately identify the lesions and determine the type of infiltration depth, resulting in high misidentification and misclassification rates.
[0036] To this end, the present invention provides a lesion infiltration depth assessment system, method and storage medium based on ultrasound endoscopy to improve the accuracy of lesion infiltration depth assessment based on ultrasound endoscopy photography, so as to better support medical work.
[0037] The following embodiments of the present invention can be executed separately, or in combination with each other, and the embodiments of the present invention do not specifically limit this. In the embodiments of the present invention, "first", "second", etc. are used only for distinction, and do not have the meaning of order, size, etc. The technical solutions between the following embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0038] The following describes an ultrasound endoscopy-based lesion infiltration depth assessment system, method, storage medium, and technical effects thereof.
[0039] Figure 1 The figure is a modular schematic diagram of a lesion invasion depth assessment system based on ultrasound endoscopy. The lesion invasion depth assessment system based on ultrasound endoscopy includes:
[0040] An image acquisition module 10 is used to acquire an endoscopic ultrasound image from a video acquired by the endoscopic ultrasound;
[0041] A model creation module 20, used to create a convolutional neural network model;
[0042] A model training module 30 is used to train and test the convolutional neural network model based on a data set as a lesion invasion depth assessment model based on ultrasound endoscopy; the data set includes a number of ultrasound endoscopy images marked with lesion contours and invasion depth types;
[0043] The convolutional neural network model includes a feature extraction module 21, a feature fusion module 22 (FAM for short), a decoder module 23 and a category prediction module 24. The feature extraction module 21 is used to perform at least three layers of layer-by-layer feature extraction on the ultrasonic endoscopic image to obtain a coding feature map; the feature fusion module 22 is used to perform feature fusion on at least three groups of the coding feature maps to obtain a first fused feature map. The decoder module 23 is used to process the encoding feature map used in the feature fusion module 22 and the feature map obtained by the feature fusion module 22 using the attention mechanism to obtain a plurality of decoding feature maps, which are used to perform image segmentation on the finally obtained decoding feature map to obtain the lesion area; the category prediction module 24 is used to predict the lesion area according to the first fusion feature map and decoded feature maps to classify the lesion invasion level.
[0044] It can be understood that the feature extraction module 21 includes at least 3 convolutional neural network modules, which are arranged in sequence, each convolutional neural network module as a feature extraction layer, and the output of each convolutional neural network module is a set of coded feature maps, that is, each layer of feature extraction is performed to obtain a set of coded feature maps. The coded feature map used by the feature fusion module 22 is the same as the coded feature map required to be used by the decoder module 23. For example, if the feature extraction module 21 has a total of 5 convolutional neural network modules, 5 groups of coded feature maps are obtained, and the 5 groups of coded feature maps are respectively called the first coded feature map f1, the second coded feature map f2, the third coded feature map f3, the fourth coded feature map f4, and the fifth coded feature map f5. If the feature fusion module 22 does not use the first coded feature map f1, but uses the second coded feature map f2, the third coded feature map f3, the fourth coded feature map f4, and the fifth coded feature map f5, then the decoder module 23 also only uses the second coded feature map f2, the third coded feature map f3, the fourth coded feature map f4, and the fifth coded feature map f5. The “feature map obtained by the feature fusion module 22” may be the first fused feature map , but not limited to the first fusion feature map .
[0045] In this embodiment, the lesion invasion depth assessment system based on ultrasound endoscopy further includes:
[0046] A video acquisition module, used for acquiring the video collected by the ultrasonic endoscope;
[0047] A data set acquisition module, for constructing a data set using an ultrasound endoscopic image with marked contours and invasion depth types;
[0048] The model training module 30 verifies the tested convolutional neural network model based on the data set, and the verified convolutional neural network model is used as an ultrasound endoscopy-based lesion infiltration depth assessment model.
[0049] In this embodiment, the feature extraction module 21 includes 5 convolutional neural network modules arranged in sequence. In this embodiment, Res2Net is used. It should be known that the present invention can be implemented by other convolutional neural network modules, such as DenseNet, GoogleNet, SENet, etc. The first group of convolutional neural network modules implements feature extraction on the ultrasonic endoscopic image through convolution operation to obtain the first coded feature map f1, the second group of convolutional neural network modules implements feature extraction on the first coded feature map f1 through convolution operation to obtain the second coded feature map f2, the third group of convolutional neural network modules implements feature extraction on the second coded feature map f2 through convolution operation to obtain the third coded feature map f3, the fourth group of convolutional neural network modules implements feature extraction on the third coded feature map f3 through convolution operation to obtain the fourth coded feature map f4, and the fifth group of convolutional neural network modules implements feature extraction on the fourth coded feature map f4 through convolution operation to obtain the fifth coded feature map f5.
[0050] Specifically, the feature extraction module 21 can extract The 5-level feature map , one-to-one corresponding to the first coding feature map f1 to the fifth coding feature map f5, wherein h and w represent the height and width of the ultrasonic endoscopic image, respectively. In this embodiment, k=i, but k=i is not limited, and k can be specifically set according to the dimensionality reduction process of feature extraction.
[0051] In this embodiment, in the feature fusion module 22, the decoder module 23 and the category prediction module 24, the third encoding feature map f3, the fourth encoding feature map f4 and the fifth encoding feature map f5 are all used, that is, i takes the values 3, 4, and 5.
[0052] In this embodiment, the feature fusion module 22 is used to perform feature fusion on the fifth coding feature map f5, the fourth coding feature map f4 and the third coding feature map f3 to obtain a first fused feature map .
[0053] Specifically, the feature fusion module 22 is used to combine the fifth encoding feature map Perform upsampling operation on the fifth encoded feature map after upsampling Perform convolution operation to get the graph , for the figure And the fourth encoding feature map Multiply element by element, and then upsample and convolve the result of element by element to get the image , for the figure and Figure Perform concatenation operation, and then perform convolution operation to obtain the first aggregated feature map; And the third encoding feature map Multiply element by element, and convolve the multiplication result to obtain the second aggregate feature map. Concatenate the first aggregate feature map and the second aggregate feature map and convolve them to obtain the first fusion feature map. .
[0054] Here, according to the first fusion feature map , the first aggregated feature map and / or the second aggregated feature map can obtain a global mapping feature map S m . Global mapping feature map S m is a mapping diagram of lesion features. As an example and not a limitation, the global mapping feature map S m According to the first aggregate feature map, the second aggregate feature map and / or the first fusion feature map The acquisition method is as follows: determining the mapping position according to the lesion position information and the infiltration depth type information, and determining the mapping position according to the mapping position and the feature map obtained by the feature fusion module 22 (the first fused feature map , at least one of the first aggregate feature map and the second aggregate feature map) to obtain a global mapping feature map S m .
[0055] In this embodiment, the decoder module 23 includes a first local decoder, a second local decoder, a third local decoder and a segmentation prediction module.
[0056] The first local decoder, the second local decoder and the third local decoder all include a first attention module. The first attention module receives two sets of feature maps (Figure f i and Figure S i+1 ) input, using attention weights , through a parallel-series structure, we can get ,in, represents the upsampling operation, is the Sigmoid activation function, is a matrix of all 1s A transposition operation that subtracts the input from Represents a matrix of all 1s minus The operation of or S belowi Both represent decoded feature maps, which are initially used by decoder module 23 By global mapping feature map get, It is called the initial decoding feature map. According to the global mapping feature map Get, as an example, is the downsampled global map feature map .Next From the previous Perform attention-related calculations to obtain yes The relevant calculations are obtained. yes The relevant calculations are obtained. yes The relevant calculation is performed. For part of the encoding feature map f i Multiply the attention weights , through the convolutional layer in the first attention module Then get the attention features corresponding to the output ,in, Represents element-wise multiplication.
[0057] The first local decoder is used to use the first attention module in the first local decoder to map the global feature map and the fifth encoding feature map f5 to obtain a first decoding feature map S5; specifically, the global mapping feature map Downsample to get the initial decoded feature map , the initially decoded feature map The first attention feature R5 is obtained by the first attention module, and the first attention feature R5 is added to the initial decoding feature map S6 to obtain the first decoding feature map S5 ( , represents element-by-element addition, i=5 at this time). The second local decoder is used to use the first attention module in the second local decoder to extract features from the first decoding feature map S5 and the fourth encoding feature map f4 using the first attention module to obtain a second decoding feature map S4; specifically, up-sample the first decoding feature map S5, pass the up-sampled first decoding feature map S5 and the fourth encoding feature map f4 through the first attention module to obtain a second attention feature R4, and add the second attention feature R4 to the up-sampled first decoding feature map S5 ( , i=4 at this time), and obtain the second decoding feature map S4. The third local decoder uses the first attention module in the third local decoder to extract features from the second decoding feature map S4 and the third encoding feature map f3 to obtain the third decoding feature map S3; specifically, the second decoding feature map S4 is upsampled, and the upsampled second decoding feature map S4 and the third encoding feature map f3 are passed through the first attention module to obtain the third attention feature R3, and the third attention feature R3 is added to the upsampled second decoding feature map S4 ( , at this time i=3), and the third decoding feature map S3 is obtained.
[0058] The segmentation prediction module is used to process the third decoding feature map S3 to obtain a first segmentation prediction map of the lesion area, and the processing includes image segmentation. Specifically, the segmentation prediction module is used to perform an upsampling operation on the third decoding feature map S3 to restore it to the size of the input image (ultrasound endoscopic image), and after the Sigmoid activation function, perform image segmentation to further clarify the lesion area, that is, to obtain the lesion area, and segment the lesion area and the third decoding feature map S3 to obtain a first segmentation prediction map. The first segmentation prediction map shows the lesion area, which is called the first segmentation prediction map of the lesion area. For example, the contrast between the lesion area and other areas is enhanced in the first segmentation prediction map, for example, the contour of the lesion area is displayed with a special color and / or line, and the method is not limited.
[0059] Here, the first attention module obtains the attention weights through activation functions and transposition operations, and further strengthens the features through element-by-element multiplication and convolution operations. The erasing mechanism driven by attention can eventually refine the inaccurate and rough estimates into accurate and complete edge prediction maps, thereby establishing the relationship between regions and boundary cues.
[0060] In this embodiment, the category prediction module 24 uses the third decoding feature map S3, the second decoding feature map S4, and the first decoding feature map S5 obtained by the decoder module 23 as attention weights to screen out features. , the filtered features Used for classification of lesion invasion levels.
[0061] Specific:
[0062] The category prediction module 24 is used to multiply the third encoding feature map f3 and the third decoding feature map S3 to obtain the feature , multiply the fourth encoding feature map f4 and the second decoding feature map S4 to obtain the feature , multiply the fifth encoding feature map f5 and the first decoding feature map S5 to obtain the feature ;
[0063] The category prediction module 24 is used to predict the first fusion feature map f h Pay attention Weighted to get the first fused weighted feature map ; Specifically, the first fusion feature map f h After the average pooling layer, the first fusion feature map f h After the maximum pooling layer is processed, the output results of the average pooling layer and the maximum pooling layer are spliced, and the spliced results are convolved and activated in sequence. The obtained result and the first fusion feature map f h Multiply, the result of the multiplication and the first fusion feature map f h Add together to get the first fusion weighted feature map .
[0064] The category prediction module 24 is used to transform the first fused weighted feature map , features after convolution , features after convolution , features after convolution After passing through the fully connected layer, the output of the fully connected layer is operated through the normalized exponential function (SOFTMAX function) to obtain the category prediction function, which can be used to classify and obtain the category prediction result.
[0065] The category prediction module 24 includes a second attention module, which is based on the second attention module, the first fusion feature map The features obtained by maximum pooling and average pooling are connected together, and the attention map is obtained through convolution and activation function. The features selected by the second attention module are obtained through element-by-element multiplication and addition of residual operations, providing the required information for the classification task.
[0066] See also Figure 2 The present invention provides a method for real-time assessment of lesion invasion depth based on ultrasound endoscopy, comprising:
[0067] S11, obtaining real-time video collected by ultrasound endoscopy;
[0068] S12, reading the real-time video to obtain an ultrasonic endoscopic image in the real-time video;
[0069] S13, using the endoscopic ultrasound image as input to the lesion invasion depth assessment model based on endoscopic ultrasound obtained by the model training module 30;
[0070] S14. Obtain the output of the lesion invasion depth assessment model based on ultrasound endoscopy.
[0071] The output of the lesion invasion depth assessment model based on ultrasound endoscopy is the lesion contour and invasion depth type.
[0072] The method for obtaining the lesion contour and the invasion depth type by the lesion invasion depth assessment model in S13 includes:
[0073] S131, (through 5 groups of convolutional neural network modules) extracting features of the ultrasonic endoscopic image layer by layer to obtain a first coding feature map f1, a second coding feature map f2, a third coding feature map f3, a fourth coding feature map f4 and a fifth coding feature map f5 in turn;
[0074] S132, perform feature fusion on the fifth coding feature map f5, the fourth coding feature map f4 and the third coding feature map f3 to obtain a first fused feature map Specifically, for the fifth encoding feature map Perform upsampling operation on the fifth encoded feature map after upsampling Perform convolution operation to get the graph , the figure And the fourth encoding feature map Multiply element by element, and then upsample and convolve the result of element by element to get the image , for the figure and Figure Perform concatenation operation, and then perform convolution operation to obtain the first aggregated feature map; And the third encoding feature map Multiply element by element, and convolve the multiplication result to obtain the second aggregate feature map. Concatenate the first aggregate feature map and the second aggregate feature map and convolve them to obtain the first fusion feature map. ;
[0075] S133, initially decoding feature map The first attention feature R5 is obtained by processing the first attention feature R5 and the fifth coding feature map f5 through the first attention module, and the first attention feature R5 and the global mapping feature map S6 are added to obtain the first decoding feature map S5; the first decoding feature map S5 is upsampled, and the upsampled first decoding feature map S5 and the fourth coding feature map f4 are processed through the first attention module to obtain the second attention feature R4, and the second attention feature R4 and the upsampled first decoding feature map S5 are added to obtain the second decoding feature map S4; the second decoding feature map S4 is upsampled, and the upsampled second decoding feature map S4 and the third coding feature map f3 are processed through the first attention module to obtain the third attention feature R3, and the third attention feature R3 and the upsampled second decoding feature map S4 are added to obtain the third decoding feature map S3;
[0076] S134, upsampling the third decoding feature map S3 to restore it to the size of the ultrasonic endoscopic image, activating the upsampled third decoding feature map S3 through a Sigmoid activation function, and then performing image segmentation to obtain a first segmentation prediction map of the lesion area. Compared with the ultrasonic endoscopic image, the lesion area is easier to identify in the first segmentation prediction map;
[0077] S135, multiply the third encoding feature map f3 and the third decoding feature map S3 to obtain a feature , multiply the fourth encoding feature map f4 and the second decoding feature map S4 to obtain the feature , multiply the fifth encoding feature map f5 and the first decoding feature map S5 to obtain the feature ;
[0078] S136, the first fusion feature map f h Perform attention (second attention module) weighting to obtain the first fusion weighted feature map ;
[0079] S137: fusion of the first weighted feature map , features after convolution , features after convolution , features after convolution The input is sent to the fully connected layer, and the output of the fully connected layer is operated by the SOFTMAX function to obtain the category prediction function.
[0080] See also Figure 3 The present invention provides a method for evaluating the depth of lesion invasion based on ultrasound endoscopy, comprising:
[0081] S21, obtaining an endoscopic ultrasound image from a video acquired by the endoscopic ultrasound;
[0082] S22, creating a convolutional neural network model; the convolutional neural network model includes a feature extraction module 21, a feature fusion module 22, a decoder module 23 and a category prediction module 24, the feature extraction module 21 is used to perform at least three layers of layer-by-layer feature extraction on the ultrasonic endoscopic image to obtain a coding feature map (at least three groups, each layer of feature extraction corresponds to a group of coding feature maps); the feature fusion module 22 is used to perform feature fusion on at least three groups of coding feature maps to obtain a first fused feature map The decoder module 23 is used to process the encoding feature map used in the feature fusion module 22 and the feature map obtained by the feature fusion module 22 using the attention mechanism to obtain a plurality of decoding feature maps, and is used to perform image segmentation on the finally obtained decoding feature map to obtain the lesion area. The category prediction module 24 is used to perform image segmentation on the first fusion feature map according to the first fusion feature map. and decoded feature maps to classify the lesion invasion level;
[0083] S23. Training and testing the convolutional neural network model based on a data set to obtain an ultrasound endoscopy-based lesion infiltration depth assessment model; the data set includes a number of ultrasound endoscopy images marked with lesion contours and infiltration depth types.
[0084] Specifically, it also includes the process of annotating the lesion contour and the infiltration depth type of the ultrasound endoscopy image to obtain a data set.
[0085] Specifically, the method also includes the step of verifying the lesion infiltration depth assessment model based on ultrasound endoscopy obtained through training and testing. After verification, the lesion infiltration depth assessment model based on ultrasound endoscopy is obtained.
[0086] When the lesion infiltration depth assessment method based on ultrasonic endoscopy is specifically implemented, reference may be made to the specific embodiments of the lesion infiltration depth assessment system based on ultrasonic endoscopy in any of the above embodiments, and the specific implementation steps will not be repeated here.
[0087] The present invention also provides a storage medium storing a computer program, wherein the storage medium includes instructions. When the instructions are executed on a computer, the computer executes the various steps of the method for assessing the depth of lesion infiltration based on ultrasound endoscopy described in the above-mentioned embodiment, thereby implementing the method for assessing the depth of lesion infiltration based on ultrasound endoscopy.
[0088] The present invention also provides a computer program product, including a computer program or an instruction, characterized in that when the computer program or the instruction is executed by a processor, the method for assessing the depth of lesion invasion based on ultrasonic endoscopy is implemented.
[0089] The effects of the lesion infiltration depth assessment system, method and storage medium based on ultrasound endoscopy of the present invention are:
[0090] The present invention obtains ultrasonic endoscopic images from the video collected by ultrasonic endoscopy, builds and trains the model, and generates a pyramid feature map by layer-by-layer feature extraction through the feature extraction module 21; the feature maps of different resolutions are aggregated together through the feature fusion module 22 to form a unified feature, which can be used to cooperate with the decoder module 23 as the initial guide area of the decoder module 23, and can also cooperate with the category prediction module 24 to further mine the feature information required for classification; the decoder module 23 uses the attention mechanism to decode and process the partial encoding feature map and the feature map obtained by the feature fusion module 22, further strengthen the features, accurately estimate the edge and area of the lesion, and further calculate the results of the decoder module 23 and the feature fusion module 22 through the category prediction module 24 to achieve the classification of the lesion infiltration level. Based on such a design, the present invention realizes a more accurate evaluation and prediction of the lesion area and the lesion infiltration depth type. The present invention solves the problem of inaccurate lesion area identification and inaccurate lesion infiltration depth classification under artificial intelligence-assisted ultrasonic endoscopic images.
[0091] It should be emphasized that the present invention proposes a universal solution. The application scenarios of the present invention include but are not limited to the determination of the depth of lesion infiltration. According to the present invention, it can be expanded to the determination of tumor properties, tumor imaging classification, etc.
[0092] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for the part not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments. The parts not described in detail in the present invention can be known based on the prior art.
[0093] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. The lesion invasion depth assessment system based on ultrasound endoscopy is characterized by: include: An image acquisition module, used for acquiring an endoscopic ultrasound image from a video acquired by the endoscopic ultrasound; A model creation module is used to create a convolutional neural network model; the convolutional neural network model includes a feature extraction module, a feature fusion module, a decoder module and a category prediction module, the feature extraction module is used to perform layer-by-layer feature extraction of at least three layers of the ultrasonic endoscopic image to obtain a coding feature map, and the feature fusion module is used to perform feature fusion on at least three groups of the coding feature maps to obtain a first fused feature map The decoder module is used to process the encoding feature map used in the feature fusion module and the feature map obtained by the feature fusion module using the attention mechanism to obtain a plurality of decoding feature maps, and is used to perform image segmentation on the finally obtained decoding feature map to obtain the lesion area, and the category prediction module is used to perform image segmentation on the first fusion feature map and decoded feature maps to classify the lesion invasion level; A model training module, which trains and tests the convolutional neural network model based on a data set to serve as an endoscopic ultrasound-based lesion invasion depth assessment model; the data set includes a number of endoscopic ultrasound images marked with lesion contours and invasion depth types; The feature extraction module includes five groups of convolutional neural network modules arranged in sequence, and the five groups of convolutional neural network modules extract features layer by layer on the ultrasonic endoscopic image to obtain a first coding feature map f1, a second coding feature map f2, a third coding feature map f3, a fourth coding feature map f4 and a fifth coding feature map f5 in turn; the feature fusion module is used to perform feature fusion on the fifth coding feature map f5, the fourth coding feature map f4 and the third coding feature map f3 to obtain a first fused feature map ; The feature fusion module is specifically used to Perform upsampling operation on the fifth encoded feature map after upsampling Perform convolution operation to get the graph , the figure And the fourth encoding feature map Multiply element by element, and then upsample and convolve the result of element by element to get the image , for the figure and Figure Perform concatenation operation, and then perform convolution operation to obtain the first aggregated feature map; And the third encoding feature map Multiply element by element, and convolve the multiplication result to obtain the second aggregate feature map. Concatenate the first aggregate feature map and the second aggregate feature map and convolve them to obtain the first fusion feature map. .
2. The lesion invasion depth assessment system based on ultrasound endoscopy according to claim 1, characterized in that: The decoder module includes a first local decoder, a second local decoder, a third local decoder and a segmentation prediction module, wherein the first local decoder is used to apply the first attention module thereon to the initial decoded feature map and the fifth encoding feature map f5 to extract features, and obtain the first decoding feature map S5. According to the global mapping feature map S m Obtain; the second local decoder is used to use the first attention module thereon to perform feature extraction on the first decoding feature map S5 and the fourth encoding feature map f4 to obtain the second decoding feature map S4; the third local decoder is used to use the first attention module thereon to perform feature extraction on the second decoding feature map S4 and the third encoding feature map f3 to obtain the third decoding feature map S3; the segmentation prediction module is used to process the third decoding feature map S3 to obtain a first segmentation prediction map of the lesion area, and the processing includes image segmentation.
3. The lesion invasion depth assessment system based on ultrasound endoscopy according to claim 2, characterized in that: The segmentation prediction module is specifically used to upsample the third decoding feature map S3 to restore it to the size of the ultrasonic endoscopic image, activate the upsampled third decoding feature map S3 through a Sigmoid activation function, and then perform the image segmentation to obtain a first segmentation prediction map of the lesion area.
4. The lesion invasion depth assessment system based on ultrasound endoscopy according to claim 2, characterized in that: The first local decoder is specifically used to decode the initial feature map The fifth encoding feature map f5 is processed by the first attention module to obtain the first attention feature R5, and the first attention feature R5 and the global mapping feature map S6 are added to obtain the first decoding feature map S5; The second local decoder is specifically used to upsample the first decoding feature map S5, process the upsampled first decoding feature map S5 and the fourth encoding feature map f4 through the first attention module to obtain a second attention feature R4, and add the second attention feature R4 and the upsampled first decoding feature map S5 to obtain a second decoding feature map S4; The third local decoder is specifically used to upsample the second decoding feature map S4, process the upsampled second decoding feature map S4 and the third encoding feature map f3 through the first attention module to obtain the third attention feature R3, and add the third attention feature R3 and the upsampled second decoding feature map S4 to obtain the third decoding feature map S3.
5. The lesion invasion depth assessment system based on ultrasound endoscopy according to claim 2, characterized in that: The category prediction module is specifically used to multiply the third encoding feature map f3 and the third decoding feature map S3 to obtain a feature , multiply the fourth encoding feature map f4 and the second decoding feature map S4 to obtain the feature , multiply the fifth encoding feature map f5 and the first decoding feature map S5 to obtain the feature ; For the first fusion feature map f h Perform attention weighting to obtain the first fusion weighted feature map ; For the first fusion weighted feature map , features after convolution , features after convolution , features after convolution The input is sent to the fully connected layer, and the output of the fully connected layer is operated by the SOFTMAX function to obtain the category prediction function.
6. A method for real-time assessment of lesion invasion depth based on endoscopic ultrasound, characterized in that: include: Acquire real-time video captured by endoscopic ultrasound; acquiring an endoscopic ultrasound image from the real-time video; Using the endoscopic ultrasound image as an input to a lesion invasion depth assessment model based on endoscopic ultrasound obtained in the lesion invasion depth assessment system based on endoscopic ultrasound as claimed in any one of claims 1 to 5; Obtain the output of the endoscopic ultrasound-based lesion invasion depth assessment model.
7. A method for assessing the depth of lesion invasion based on endoscopic ultrasound, characterized in that: include: Acquire endoscopic ultrasound images from videos acquired by endoscopic ultrasound; Creating a convolutional neural network model; the convolutional neural network model includes a feature extraction module, a feature fusion module, a decoder module and a category prediction module, the feature extraction module is used to perform layer-by-layer feature extraction of at least three layers of the ultrasonic endoscopic image to obtain a coding feature map, and the feature fusion module is used to perform feature fusion on at least three groups of the coding feature maps to obtain a first fused feature map The decoder module is used to process the encoding feature map used in the feature fusion module and the feature map obtained by the feature fusion module using the attention mechanism to obtain a plurality of decoding feature maps, and is used to perform image segmentation on the finally obtained decoding feature map to obtain the lesion area, and the category prediction module is used to perform image segmentation on the first fusion feature map and decoded feature maps to classify the lesion invasion level; The convolutional neural network model is trained and tested based on a data set to obtain an endoscopic ultrasound-based lesion infiltration depth assessment model; the data set includes a number of endoscopic ultrasound images marked with lesion contours and infiltration depth types; The feature extraction module includes five groups of convolutional neural network modules arranged in sequence, and the five groups of convolutional neural network modules extract features layer by layer on the ultrasonic endoscopic image to obtain a first coding feature map f1, a second coding feature map f2, a third coding feature map f3, a fourth coding feature map f4 and a fifth coding feature map f5 in turn; the feature fusion module is used to perform feature fusion on the fifth coding feature map f5, the fourth coding feature map f4 and the third coding feature map f3 to obtain a first fused feature map ; The feature fusion module is specifically used to Perform upsampling operation on the fifth encoded feature map after upsampling Perform convolution operation to get the graph , the figure And the fourth encoding feature map Multiply element by element, and then upsample and convolve the result of element by element to get the image , for the figure and Figure Perform concatenation operation, and then perform convolution operation to obtain the first aggregated feature map; And the third encoding feature map Multiply element by element, and convolve the multiplication result to obtain the second aggregate feature map. Concatenate the first aggregate feature map and the second aggregate feature map and convolve them to obtain the first fusion feature map. .
8. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for assessing the lesion infiltration depth based on ultrasonic endoscopy described in claim 7 is implemented.
