Image processing method, device and storage medium
By combining the recognition model of global and local feature images in CT image processing, the problem of automation and accuracy of lesion area recognition in CT images is solved, the diagnostic efficiency and accuracy are improved, and auxiliary diagnostic support is provided for doctors.
Patent Information
- Application Number
- CN202010573708.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-09-20
AI Technical Summary
It is difficult for existing technology to automatically and accurately identify the lesion area or location in computed tomography (CT) images, causing doctors to have certain difficulties and uncertainties in the diagnosis process.
An image processing method is used to process CT images through a recognition model, combine global feature images and local feature images, use semantic correlation and spatial correlation for recognition, and automatically identify the target area to be identified and its location in the CT image. The method includes performing a convolution operation on the CT image to extract the basic feature map, followed by maximum pooling and average pooling operations to obtain global and local feature images, and finally processing the feature image through a perceptron to identify the target area.
It achieves accurate and automatic identification of lesion areas or organs and lesion locations in CT images, improves the accuracy and efficiency of diagnosis, and provides doctors with auxiliary diagnostic information.
Smart Images

Figure CN111783774B
Abstract
Description
Technical Field
[0001] The present application relates to image processing technology, and in particular to an image processing method, device and computer-readable storage medium. Background Art
[0002] In medicine, most doctors identify the lesion area or location of patients in CT (Computed Tomography) images based on their own experience. If there is a solution that can automatically and accurately identify the lesion area or location in CT images, it will surely provide effective assistance for doctors to diagnose patients. Summary of the invention
[0003] To solve the existing technical problems, the embodiments of the present application provide an image processing method, device and computer-readable storage medium.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application provides an image processing method, the method comprising:
[0006] Obtaining a computerized tomography (CT) image, wherein the CT image at least includes a target area to be identified;
[0007] Inputting the CT image into a recognition model;
[0008] The CT image is processed by the recognition model to obtain the processing result; the processing result is characterized by at least a recognition result of a target area to be recognized in the CT image and a recognition result of a position of the target area to be recognized in the CT image;
[0009] Wherein, the processing result is obtained at least based on the global feature image and the local feature image for the CT image obtained by the recognition model; the global feature image is characterized by the semantic correlation between the pixel points of the CT image; the local feature image is characterized by the spatial correlation between the pixel points of the CT image.
[0010] In the above scheme, the processing of the CT image by the recognition model to obtain the processing result includes:
[0011] The recognition model processes the CT image to obtain a basic feature map of the CT image;
[0012] According to the basic feature map, obtaining the global feature image and the local feature image;
[0013] The processing result is obtained according to the global feature image and the local feature image.
[0014] In the aforementioned solution, obtaining the global feature image based on the basic feature map includes:
[0015] Performing a maximum pooling operation and an average pooling operation on the basic feature map in a spatial dimension to obtain a first pooling image and a second pooling image;
[0016] Processing the first pooled image and the second pooled image through a first perceptron to obtain a weight parameter for a basic feature map;
[0017] The global feature image is obtained according to the basic feature map and the weight parameters for the basic feature map.
[0018] In the above scheme, obtaining the local feature image according to the basic feature map includes:
[0019] Sampling the basic feature map to obtain a sampled image;
[0020] Performing a maximum pooling operation and an average pooling operation in the channel dimension on the sampled image to obtain a third pooled image and a fourth pooled image;
[0021] Performing at least one convolution operation on the third pooled image and the fourth pooled image to obtain a weight parameter for a sampled image;
[0022] The local feature image is obtained according to the sampled image and a weight parameter for the sampled image.
[0023] In the above scheme, obtaining the processing result according to the global feature image and the local feature image includes:
[0024] Obtaining a feature image for the global feature image based on the global feature image;
[0025] According to the feature image for the global feature image and the local feature image, a target region to be identified in the CT image and a position of the target region to be identified in the CT image are identified.
[0026] In the aforementioned solution, obtaining a feature image for the global feature image based on the global feature image includes:
[0027] Performing a maximum pooling operation and an average pooling operation on the global feature image in a spatial dimension to obtain a fifth pooled image and a sixth pooled image;
[0028] The fifth pooling operation and the sixth pooling image are processed by the second perceptron to obtain a feature image for the global feature image, where the feature image is characterized by the semantic correlation between the pixels of the global feature image.
[0029] In the above scheme, the recognition model processes the CT image to obtain a basic feature map of the CT image, including:
[0030] Performing N convolution operations on the CT image in sequence, where N is a positive integer greater than or equal to 1; wherein each convolution operation obtains a feature map of the CT image corresponding to each convolution operation;
[0031] Extracting a feature map obtained by performing any one of the N convolution operations on the CT image;
[0032] The extracted feature map is determined as the basic feature image.
[0033] In the above scheme, the target area to be identified includes a lesion area, or an organ and a lesion area;
[0034] The step of processing the CT image by the recognition model to obtain the processing result includes: processing the CT image by the recognition model to identify a lesion area in the CT image and a position of the lesion area in the CT image;
[0035] Alternatively, the organ and the lesion area in the CT image, and the positions of the organ and the lesion area in the CT image are identified.
[0036] The present application provides an image processing device, including:
[0037] An obtaining unit, used for obtaining a computerized tomography (CT) image, wherein the CT image at least includes a target area to be identified;
[0038] An input unit, used for inputting the CT image into the recognition model;
[0039] A recognition model is used to process the CT image to obtain the processing result; the processing result is characterized by at least a recognition result of a target area to be recognized in the CT image and a recognition result of a position of the target area to be recognized in the CT image;
[0040] Wherein, the processing result is obtained at least based on the global feature image and the local feature image for the CT image obtained by the recognition model; the global feature image is characterized as the semantic correlation between the pixels of the CT image; the local feature image is characterized as the spatial correlation between the pixels of the CT image.
[0041] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the aforementioned method when the program is executed by a processor.
[0042] The embodiment of the present application provides an image processing method, device and computer-readable storage medium, wherein the method comprises: obtaining a computer tomography (CT) image, wherein the CT image comprises at least a target area to be identified; inputting the CT image into a recognition model; processing the CT image by the recognition model to obtain the processing result; the processing result is at least characterized by a recognition result of the target area to be identified in the CT image and a recognition result of a position of the target area to be identified in the CT image; wherein the processing result is obtained at least based on a global feature image and a local feature image for the CT image obtained by the recognition model; the global feature image is characterized by a semantic correlation between pixel points of the CT image; and the local feature image is characterized by a spatial correlation between pixel points of the CT image.
[0043] In the embodiment of the present application, the recognition model is used to identify the target area to be identified and the position of the target area to be identified in the CT image, which is an automatic recognition scheme. The recognition model is based on two feature images (global feature image and local feature image), which is equivalent to combining the semantic correlation (semantic correlation) and spatial correlation (spatial correlation) between the pixels of the CT image for recognition, which can further ensure the recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0045] Figure 1 The following is a schematic diagram of the implementation process of the image processing method of the present application embodiment. Figure 1 ;
[0046] Figure 2 The following is a schematic diagram of the implementation process of the image processing method of the present application embodiment. Figure 2 ;
[0047] Figure 3 The following is a schematic diagram of the implementation process of the image processing method of the present application embodiment. Figure 3 ;
[0048] Figure 4 The following is a schematic diagram of the implementation process of the image processing method of the present application embodiment. Figure 4 ;
[0049] Figure 5 Schematic diagram of the recognition model of the embodiment of the present application Figure 1 ;
[0050] Figure 6 Schematic diagram of the recognition model of the embodiment of the present application Figure 2 ;
[0051] Figure 7 A schematic diagram of a global context attention mechanism model in an identification model according to an embodiment of the present application;
[0052] Figure 8 A schematic diagram of a local context attention mechanism model in a recognition model according to an embodiment of the present application;
[0053] Fig. 9 A schematic diagram of the structure of an image processing device according to an embodiment of the present application;
[0054] Fig.10 Schematic diagram of the hardware structure of the image processing device according to an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. The steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. In addition, although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here.
[0056] The technical solution provided in the embodiment of the present application can be applied to medical images. In practical applications, the medical image can specifically be a CT image. The CT image in the embodiment of the present application at least includes a target area to be identified, and the target area to be identified can be an area or position where a lesion occurs in the CT image. Considering that some lesions are attached to organs, the target area to be identified is an area in the CT image that includes both organs and lesions. In addition, the target to be identified can also include organ areas, lesion areas, and background areas. The technical solution provided in the embodiment of the present application is described below.
[0057] The first embodiment of the image processing method provided by the present application can be applied to an image processing device. Figure 1 As shown, the method includes:
[0058] S101: Obtaining a computerized tomography (CT) image, wherein the CT image at least includes a target area to be identified;
[0059] In this step, the CT image is obtained by collecting CT images, such as taking a CT image of a suspected diseased part of the patient, such as the liver, or by reading a CT image that has been taken to obtain the CT image.
[0060] S102: inputting the CT image into a recognition model;
[0061] In this step, the acquired or read CT image is input into the recognition model.
[0062] S103: The recognition model is used to process the CT image to obtain the processing result; the processing result is at least characterized by a recognition result of a target area to be identified in the CT image and a recognition result of a position of the target area to be identified in the CT image; wherein the processing result is obtained at least based on a global feature image and a local feature image for the CT image obtained by the recognition model; the global feature image is characterized by a semantic correlation between pixel points of the CT image; and the local feature image is characterized by a spatial correlation between pixel points of the CT image.
[0063] In this step, the recognition model processes the CT image to obtain a recognition result of the target area to be identified in the CT image and a recognition result of the position of the target area to be identified in the CT image, and the aforementioned recognition results are obtained based on the global feature image and the local feature image of the CT image obtained by the recognition model.
[0064] The subject that executes S101 to S103 is an image processing device.
[0065] In the above scheme, the recognition model is used to identify the target area to be identified and the position of the target area to be identified in the CT image, which is an automatic recognition scheme. In addition, the recognition model has certain stability and robustness, and is not easily disturbed by the external environment. The recognition model can ensure the recognition accuracy. Furthermore, the recognition model is based on two feature images (global feature image and local feature image), which is equivalent to combining the semantic correlation (semantic correlation) and spatial correlation (spatial correlation) between the pixels of the CT image for recognition, which can further ensure the recognition accuracy.
[0066] In practical applications, the CT image at least includes a target area to be identified and a non-target area to be identified. The non-target area to be identified can be specifically a background area. The scheme in the embodiment of the present application, through the processing results obtained by S101 to S103, is intended to identify which areas or positions in the CT image are the target areas to be identified, and the positions of the target areas to be identified in the CT image. Among them, the semantic correlation between the pixels of the CT image, that is, the semantic correlation, can be regarded as the correlation between the pixels belonging to the target area to be identified or the non-target area to be identified. Generally, the semantic correlation between the pixels belonging to the target area to be identified or the non-target area to be identified is stronger, and the semantic correlation between the pixels belonging to the same area (target area to be identified or non-target area to be identified) is weaker. In this way, according to the strength of the semantic correlation between the pixels in the CT image, which areas or positions are the target areas to be identified. The spatial correlation between the pixels of the CT image, that is, the spatial correlation, can be regarded as the positions of the pixels belonging to the target area to be identified or the non-target area to be identified in the CT image. The spatial correlation between pixels belonging to the target area to be identified or the target area not to be identified is stronger, and the spatial correlation between pixels not belonging to the same area (target area to be identified or target area not to be identified) is weaker. In this way, the position of the target area to be identified in the CT image can be identified based on the strength of the spatial correlation between the pixels in the CT image.
[0067] As mentioned above, the target area to be identified in the embodiment of the present application can be the area or position where the lesion occurs in the CT image, or it can be an organ and a lesion area. Using the above-mentioned S103 scheme is equivalent to processing the CT image by the recognition model to identify the lesion area in the CT image and the position of the lesion area in the CT image; or, identifying the organ and the lesion area in the CT image and the position of the organ and the lesion area in the CT image. In this way, the automatic recognition of the lesion position or area in the CT image and the recognition of its position in the CT image is realized, or the automatic recognition of the organ area in the CT image and the lesions attached to the organ and the recognition of its position in the CT image is realized.
[0068] Based on the above first embodiment, the present application provides a second embodiment of the image processing method. Figure 2 As shown, the solution of processing the CT image by the recognition model to obtain the processing result can be achieved by the following steps:
[0069] S1031: The recognition model processes the CT image to obtain a basic feature map of the CT image;
[0070] S1032: Obtaining the global feature image and the local feature image according to the basic feature map;
[0071] S1033: Obtain the processing result according to the global feature image and the local feature image.
[0072] The execution subject of the aforementioned S1031 to S1033 is an image processing device, specifically a recognition model in the image processing device. In S1031 to S1033, the basic feature map of the CT image is obtained by the recognition model, and the global feature image characterized by the semantic correlation between the pixels of the CT image and the local feature image characterized by the spatial correlation between the pixels of the CT image are obtained from the basic feature map. The semantic correlation (semantic correlation) between the pixels of the CT image is used to identify which areas or positions in the CT image are the target areas to be identified; the spatial correlation (spatial correlation) between the pixels of the CT image is used to identify the position of the target area to be identified in the CT image. This is equivalent to combining the two aspects of semantic correlation and spatial correlation for identification, which can further ensure the accuracy of identification. Among them, the global feature image and the local feature image are obtained based on the basic feature image of the CT image. The basic feature image reflects the characteristics of the CT image in terms of contour, edge, color, and / or texture. The global feature image and the local feature image are obtained by using the basic feature image, which can enhance the spatial and semantic compactness of the image pixels of the CT, thereby effectively improving the accuracy of identification.
[0073] The specific implementation process of the aforementioned S1031 is:
[0074] S1031a: performing N convolution operations on the CT image in sequence, where N is a positive integer greater than or equal to 1; wherein each convolution operation obtains a feature map of the CT image corresponding to each convolution operation;
[0075] In this step, the CT image is subjected to the first convolution operation among N convolution operations to obtain a feature map corresponding to the first convolution operation, such as feature Figure 1 ; The feature Figure 1 Perform the second convolution operation to obtain the feature map corresponding to the second convolution operation, such as the feature Figure 2 ; Similarly, the feature map (N-1) is subjected to the Nth convolution operation to obtain the feature map corresponding to the Nth convolution operation, such as feature map N.
[0076] S1031b: extracting a feature map obtained by performing any one of the N convolution operations on the CT image;
[0077] S1031c: Determine the extracted feature image as the basic feature image;
[0078] In S1031b and S1031c, features can be extracted Figure 1 ,feature Figure 2 …Any feature map in the feature maps N is used as the basic feature image in S1031.
[0079] The execution subject of the aforementioned S1031a to S1031c is an image processing device, specifically a recognition model in the image processing device. In S1031a to S1031c, different feature maps of the CT image are obtained by using convolution operations, and any feature map is used as a basic feature image for obtaining global and local feature images, which can ensure the accuracy of obtaining the basic feature image.
[0080] As an optional solution, in the aforementioned S1031a to S1031c, a feature map such as feature map N obtained by performing the last convolution operation on the CT image can be extracted as a basic feature image. Considering that each convolution operation is equivalent to extracting different features of the CT image, such as contour, edge, color, and texture features, taking the feature map obtained by the last convolution operation as the basic feature image is equivalent to taking an image having all features such as contour features, edge features, color features, and texture features as the basic feature image. On the one hand, the accuracy of obtaining global and local features can be guaranteed. On the other hand, different CT images have slight differences in contour features, edge features, color features, and texture features. The basic feature image extracted from all the above features will highlight the aforementioned differences, and it can be ensured that a (basic feature) image that can highlight the characteristics of each CT image itself is determined for different CT images.
[0081] As an example, Figure 3 As shown, in S1032, obtaining the global feature image according to the basic feature image includes:
[0082] S1032a: Performing a maximum pooling operation and an average pooling operation on the basic feature map in a spatial dimension to obtain a first pooled image and a second pooled image;
[0083] S1032b: Processing the first pooled image and the second pooled image via a first perceptron to obtain a weight parameter for a basic feature map;
[0084] S1032c: Obtain the global feature image according to the basic feature map and the weight parameters for the basic feature map.
[0085] As an example, Figure 4 As shown, in S1032, obtaining the local feature image according to the basic feature map includes:
[0086] S1032aa: Sampling the basic feature map to obtain a sampled image;
[0087] S1032bb: performing a maximum pooling operation and an average pooling operation in a channel dimension on the sampled image to obtain a third pooled image and a fourth pooled image;
[0088] S1032cc: performing at least one convolution operation on the third pooled image and the fourth pooled image to obtain a weight parameter for a sampled image;
[0089] S1032dd: Obtain the local feature image according to the sampled image and the weight parameter for the sampled image.
[0090] The execution subject of S1032a~S1032c and S1032aa~S1032dd is an image processing device, specifically a recognition model in the image processing device. In S1032a~S1032c and S1032aa~S1032dd, it should be known that the basic feature map is a four-dimensional data, which is data of four dimensions of L*W*H*C, wherein L represents the length dimension, W represents the width dimension, H represents the height dimension, and C represents the channel dimension. Among them, if L*W*H is regarded as the spatial dimension (S), then from the overall point of view, the basic feature map is represented as S*H data. In the process of calculating the global feature image, the basic feature map is subjected to the maximum pooling operation and the average pooling operation of the spatial dimension, which is equivalent to compressing the basic feature map in the spatial dimension, and obtaining the global feature image represented as the semantic correlation between the pixels of the CT image from the channel dimension, which can ensure the accuracy of obtaining the global feature image, thereby improving the recognition accuracy of the target area to be identified and its position. In the process of calculating the local feature image, the sampled image obtained by sampling the basic feature map is subjected to the maximum pooling operation and the average pooling operation in the channel dimension, which is equivalent to compressing the basic feature map in the channel dimension, and obtaining the local feature image represented by the spatial correlation between the pixels of the CT image from the spatial dimension, which can ensure the accuracy of the local feature image, and thus improve the recognition accuracy of the target area and its position to be identified.
[0091] The scheme of the aforementioned embodiment can be used by the recognition model to identify the target area to be identified in the CT image and the position of the area in the CT image based on the global feature image and the local feature image. In addition, the scheme of obtaining the processing result based on the global feature image and the local feature image in S1033 can also be implemented by the following scheme: based on the global feature image, obtain a feature image for the global feature image; based on the feature image for the global feature image and the local feature image, identify the target area to be identified in the CT image and the position of the target area to be identified in the CT image. The aforementioned global feature image is represented by the semantic correlation between pixels, that is, the correlation between pixels belonging to the same target area to be identified or the same non-target area to be identified. The feature image for the global feature image is equivalent to enhancing the correlation between the pixels in the CT image that belong to the target area to be identified or the target area not to be identified, and weakening the correlation between the pixels that belong to the same area (target area to be identified or the target area not to be identified) (equivalent to enhancing the non-correlation between the pixels that do not belong to the same area). In this way, based on the feature image for the global feature image, it is easier to identify which areas or positions in the CT image are the target areas to be identified.
[0092] As an embodiment, the aforementioned method of obtaining a feature image for the global feature image based on the global feature image includes: performing a maximum pooling operation and an average pooling operation in a spatial dimension on the global feature image to obtain a fifth pooling image and a sixth pooling image; processing the fifth pooling operation and the sixth pooling image via a second perceptron to obtain a feature image for the global feature image, wherein the feature image is characterized by the semantic correlation between the pixels of the global feature image. Here, performing a maximum pooling operation and an average pooling operation in a spatial dimension on the global feature image is equivalent to compressing the global feature image in a spatial dimension, and obtaining a feature image for the global feature image from a channel dimension, so that the correlation between the pixels in the global feature image belonging to the same region (the same target region to be identified, or the non-target region to be identified) is enhanced, and the correlation between the pixels that do not belong to the same region is weakened. In this way, the accuracy of identifying which regions or positions in the CT image are target regions to be identified can be improved.
[0093] The first perceptron and the second perceptron mentioned above can be the same perceptron or different perceptrons, which can be realized by a fully connected neural network at the technical level. Please refer to the relevant description for details, which will not be repeated here.
[0094] The following is combined with Figure 5-8 And specific embodiments are further described in detail for this application.
[0095] In this application scenario, the CT image is a liver CT image as an example. The liver CT image includes the liver organ area, the tumor area and the background area. The liver CT image that has been taken for the patient is read and input into the recognition model. The recognition model first extracts features from the liver CT image to obtain a basic feature image (F), and then obtains a global feature image (F) based on the basic feature image F. g ) and local feature image (F l );Based on the global feature image F g Calculate the global feature enhanced image (Vg); finally, based on the global feature enhanced image (V g ) and local feature image F l , identify the target area to be identified, such as the tumor area, from the liver CT image; or identify the target area to be identified, such as the liver area and the tumor area; or identify the target area to be identified, such as the liver area, the tumor area, and the background area. In this application scenario, the liver area, the tumor area, and the background area are all identified from the liver CT image, and the respective positions of the three areas in the liver CT image are identified as an example.
[0096] In this application scenario, the recognition model includes the following parts: Convolutional Neural Network (CNN) model, Global Context Attention Module, Local Context Attention Module, and Context Aware Module. For the convenience of description, the Global Context Attention Module is referred to as the Global Model, the Local Context Attention Module is referred to as the Local Model, and the Context Aware Module is referred to as the Aware Model. Figure 5 As shown in FIG. 1 , the CNN model is used to extract features from the liver CT image to obtain the basic feature image F; the global model and the local model are connected to the CNN model respectively, and the global model is used to calculate the global feature image F based on the basic feature image F. g , the local model is used to calculate the local feature image F based on the basic feature image F l ; The perception model is used to connect with the global model and the local model respectively; The perception model is used to calculate the global feature image F g Calculate the feature image V for the global feature image g , and according to the image V g and local feature image F l , liver area, tumor area and background area are identified from liver CT images. Figure 5The input (In) of the recognition model is the liver CT image; the output (Out) is the recognition results of the liver area, tumor area and background area and their respective positions in the liver CT image.
[0097] The following is an introduction to the main parts of the recognition model.
[0098] Part 1: CNN model;
[0099] The CNN model in this application scenario includes at least the following layers: a data input layer and a convolutional calculation layer (CONV layer). The read patient's liver CT image is input into the recognition model, and further input into the data input layer of the CNN model. The data input layer regards the input liver CT image as raw image data and can preprocess the liver CT image. The preprocessing operation may include the following operations:
[0100] De-meaning: Center all dimensions of the original image data to 0, and try to pull the center of the original image data to the origin of the coordinate system. The original image data has four dimensions: length, width, height, and channel.
[0101] Normalization: Normalize the amplitude of the original image data to the same range, such as converting the pixel values in the original image into data in the range of 0-1.
[0102] Dimensionality reduction operation: The original image data is reduced in dimension using the principal component analysis method (PCA).
[0103] In this application scenario, the data input layer performs de-meaning, normalization and dimension reduction operations on the original image data in sequence. In addition, only de-meaning and normalization operations can be performed; or only de-meaning or normalization operations can be performed. The specific setting depends on the actual application. For the specifics of the above operations, please refer to the existing relevant instructions and will not be repeated.
[0104] The data input layer is preprocessed as above to obtain preprocessed image data, and the preprocessed image data is input to the convolution calculation layer. The convolution calculation layer includes at least two convolution layers, that is, the aforementioned N is preferably a positive integer greater than or equal to 2. Each convolution layer performs a convolution operation on the corresponding image data, and each convolution operation obtains a feature map corresponding to each convolution operation. For example, taking the convolution calculation layer including three convolution layers as an example, the first convolution layer performs a convolution operation on the preprocessed image data to obtain a feature map F1, and uses an excitation function such as a corrected unit function (ReLu) to perform nonlinear mapping on the feature map F1 to obtain the first mapping result; the first mapping result is input to the second convolution layer, and the second convolution layer performs a convolution operation on the first mapping result to obtain a feature map F2, and uses an excitation function such as a corrected unit function (ReLu) to perform nonlinear mapping on the feature map F2 to obtain the second mapping result; the second mapping result is input to the third convolution layer, and the third convolution layer performs a convolution operation on the second mapping result to obtain a feature map F3. The convolution operations of the aforementioned convolutional layers can realize the corresponding extraction of different features of the original image data, such as contours, edges, colors, textures, etc. For example, the first convolution operation is used to extract contour features, the second convolution operation is used to extract edge features, and the third convolution operation is used to extract texture features. The output of each convolutional layer is used as the input of the next convolutional layer, which can be understood as a feature map with all features obtained after the operation of the last convolutional layer. In this application scenario, the feature map obtained by the convolution operation of the last convolutional layer is extracted as the basic feature image F, for example, the aforementioned feature map F3 is used as the basic feature image F. Such a basic feature image F can better reflect the features of the liver CT image in various aspects, such as contours, edges, and textures. Based on such a basic feature image, a more accurate global feature image and local feature image can be obtained. The aforementioned convolutional layer is explained by taking 3 convolutional layers as an example. In addition, those skilled in the art should know that any other reasonable number of convolutional layers are within the coverage of the embodiments of the present application, such as 5 convolutional layers, 6 convolutional layers, or 4 convolutional layers. The specific number of convolutional layers used can be determined according to the actual application.
[0105] It can be understood that the basic feature image F obtained by the first part of the CNN model is the feature map with the minimum resolution of the original image. The aforementioned CNN model can also be regarded as Figure 6The encoder in is used to encode the original image data at least once to obtain at least one feature map, and select a feature map as the basic feature image, such as selecting the feature map obtained by the last encoding as the basic feature image F. Both the global model and the local model can use this image F to obtain the images they need: the global feature image and the local feature image. The CNN model inputs the basic feature image F into the global model and the local model respectively. The global model and the local model can operate on the basic feature image F in parallel. The following first introduces the process of the global model operating the basic feature image F to obtain the global feature image, and then introduces the process of the local model operating the basic feature image F to obtain the local feature image.
[0106] Before introducing the main implementation principles of the global model and the local model, we first explain why the global model and the local model are used. Like the original image data, the basic feature map can be a four-dimensional data, which is data of four dimensions L*W*H*C. Among them, if L*W*H is regarded as the spatial dimension (S), then from the overall point of view, the basic feature map is represented as S*H (spatial dimension * channel dimension), which is equivalent to the data multiplied by two dimensions. The global model needs to compress the basic feature image F in the spatial dimension, and calculate the global feature image represented by the semantic correlation between the pixels of the liver CT image from the channel dimension, which is equivalent to looking at the correlation between the pixels of the CT image from the channel or semantic perspective. The semantic correlation between the pixels of the liver CT image is obtained by using the global model. The semantic correlation lies in identifying which area each pixel on the liver CT image belongs to, such as the tumor area, the liver area, or the background area. The local model needs to compress the basic feature image F in the channel dimension, and calculate the local feature image represented by the spatial correlation between the pixels of the CT image from the spatial dimension, which is equivalent to looking at the correlation between the pixels of the CT image from the spatial perspective. The local model is used to obtain the spatial correlation between the pixels of the liver CT image. The spatial correlation is to identify the position of the pixels belonging to the tumor area, the position of the pixels belonging to the liver area, and the position of the pixels belonging to the background area in the liver CT image. In other words, the global feature image calculated by the global model is intended to identify the tumor area, liver area and background area in the CT image through the global feature image. The local feature image calculated by the local model is intended to identify the respective positions of the tumor area, liver area and background area in the CT image through the local feature image. Let's take a look at the functions or uses of the global model and the local model respectively.
[0107] Part 2: Global Model;
[0108] Combination Figure 7As shown in FIG. 1 , in the process of calculating the global feature image by the global model, the basic feature map is first compressed in the spatial dimension, such as performing the maximum pooling operation (Max Pool) of the spatial dimension on the basic feature map F to obtain the first pooled image (image C max ), the basic feature map F is averaged pooled in the spatial dimension (Avg Pool) to obtain the second pooled image (image C avg ). It can be understood that image C max and image C avg It is an image obtained by compressing the spatial dimension of image F (basic feature image) accordingly, which can also be regarded as a feature image. max and C avg At the same time, it is input into the first perceptron. On the technical level, the first perceptron is a fully connected neural network (Fully Connected Layer). The fully connected neural network in this application scenario includes a 2-layer neural network, and the weight parameters of the 2-layer neural network are W g0 and W g1 . Among them, the image C max The data input to the first perceptron is W g1 *ReLu(W g0 *C max ). Image C avg The data input to the first perceptron is W g1 *ReLu(W g0 *C avg ). Among them, RuLu is a kind of excitation function, specifically a linear correction unit function, ReLu() is used to perform nonlinear mapping on the data in (). Then image C max and image C avg The two data input to the first perceptron are added, and then stimulated by the activation function σ to obtain the weight parameter A for the basic feature map F g That is, the weight parameter A of the basic feature image F is obtained g The process can be obtained by formula (1):
[0109] A g =σ(W g1 *ReLu(W g0* C max )+W g1 *ReLu(W g0* C avg )) (1)
[0110] The activation function σ may specifically be a sigmoid function.
[0111] Then the weight parameter A gMultiply it with the basic feature image F to get the global feature image F g , see formula (2):
[0112]
[0113] The data involved in the above formulas, such as Ag, F, and Fg, can all be regarded as data in matrix or array form. Multiplication is equivalent to multiplying the elements of two matrices or arrays. If each pixel in the basic feature image F is regarded as an element, then This is equivalent to calculating the correlation between the pixels in the basic feature image. For example, assume that there are three pixels (pixel 1, 2, and pixel 3) in the basic feature image F. The calculation shows that the correlation coefficient between pixels 1 and 2 is 0.8, the correlation coefficient between pixels 1 and 3 is 0.2, and the correlation coefficient between pixels 3 and 2 is 0.3. If the correlation coefficient is greater than or equal to the set correlation threshold value such as 0.6, it is considered to be highly correlated, otherwise it is considered to be less correlated. Then, the semantic correlation between pixels 1 and 2 is large, the semantic correlation between pixels 2 and 3 is small, and the semantic correlation between pixels 1 and 3 is small. It can be understood that the global model is a calculation of the global feature image using semantic correlation. Pixels with large semantic correlation in the liver CT image usually belong to the same area, such as the tumor area, liver area or background area. Pixels with small semantic correlation in the liver CT image usually belong to different areas, such as one pixel belongs to the tumor area and another pixel belongs to the liver area. In this way, based on the global feature image, it is possible to identify which pixels of the liver CT image belong to the same area from the semantic perspective of the liver CT image, that is, from the global context perspective of the liver CT image.
[0114] The global feature image F calculated by the global model g This is equivalent to enhancing the correlation between pixels in the original image-liver CT image that belong to the same area, such as the tumor area, and weakening or reducing the correlation between pixels that do not belong to the same area, such as the tumor area. This greatly facilitates the subsequent identification of the tumor, liver, and background areas.
[0115] Part III: Local Model;
[0116] Combination Figure 8As shown, in the process of calculating the local feature image by the local model, since the basic feature image is an image obtained by extracting features from the original image, its size is smaller than the original image. To facilitate the calculation of the local model, the local model first samples the basic feature map F, specifically upsampling it to obtain a sampled image (image S). The purpose of sampling is to make the size of the basic feature image F consistent with the original image. Then, the sampled image S is subjected to the maximum pooling operation (Max Pool) of the channel dimension to obtain the third pooled image (image S max ), perform an average pooling operation (Avg Pool) on the sampled image S in the channel dimension to obtain the fourth pooled image (image S avg ). It is equivalent to compressing the channel dimension of the sampled image S. It can be understood that the sampled image S is obtained by upsampling the basic feature map F. The compression of the channel dimension of the sampled image S is equivalent to the compression of the channel dimension of the basic feature map F. It can be understood that the image S max and image S avg It is an image obtained by compressing the channel dimension of image F (basic feature image) accordingly, which can also be regarded as a feature image. max and S avg At the same time, the two images are input into at least one convolution layer, and at least one convolution layer performs a convolution operation on the two images to obtain a convolution operation result Conv k ([S avg ; S max ]). Then the above convolution operation result is excited by the excitation function σ to obtain the weight parameter A for the sampled image S l . Specifically, as shown in formula (3):
[0117] A l =σ(Conv k ([S avg ; S max ])) (3)
[0118] Where k represents the size of the convolution kernel of at least one convolutional layer.
[0119] Then the sampled image S and weight parameter A l Multiply them, as shown in formula (4), and get the local feature image F l :
[0120]
[0121] The data involved in the above formula is as follows: l , S, F l Both can be viewed as data in matrix or array form. Multiplication is equivalent to multiplying the elements of two matrices or arrays. If each pixel in the sampled image S is regarded as an element, then This is equivalent to calculating the spatial correlation between the pixels in the basic feature image. For example, assume that there are three pixels (pixel 1, 2, and pixel 3) in the sampled image S. The calculation shows that the correlation coefficient between pixels 1 and 2 is 0.8, the correlation coefficient between pixels 1 and 3 is 0.2, and the correlation coefficient between pixels 3 and 2 is 0.3. If the correlation coefficient is greater than or equal to the set correlation threshold, such as 0.6, it is considered to be highly correlated, otherwise it is considered to be less correlated. Then, the spatial correlation between pixels 1 and 2 is large, the spatial correlation between pixels 2 and 3 is small, and the spatial correlation between pixels 1 and 3 is small. The greater the spatial correlation, the closer the positions of the two pixels in the liver CT, and the smaller the spatial correlation, the more distant the positions of the two pixels in the liver CT. In this way, it is convenient to subsequently identify the respective positions of the tumor area, liver area, and background area in the CT image.
[0122] The local feature image F calculated by the local model l This is equivalent to enhancing the correlation between pixels that are close in space, i.e., in spatial positions, in the original image - liver CT image, and weakening or reducing the correlation between pixels that are far away. This greatly facilitates the subsequent identification of the positions of the tumor, liver, and background areas in the liver CT image.
[0123] Part 4: Perception Model;
[0124] The perception model is used to transform the global feature image F g and local feature image F l By combining the above, the tumor, liver and background regions, as well as the locations of each region in the liver CT image, are identified. Here, the global feature image F g The semantic closeness of each pixel point can also be determined by the global feature image F g , calculate the feature image V for the global feature image g , through the image V g and local feature image F l , to identify the tumor, liver and background areas, as well as the location of each area in the liver CT image.
[0125] Specifically, Figure 6 As shown, first transform the global feature image F g Compress the spatial dimension and transform the global feature image F gPerform the maximum pooling operation (Max Pool) of the spatial dimension to obtain the fifth pooled image (image V max ), perform an average pooling operation (Avg Pool) on the basic feature map F in the spatial dimension to obtain the sixth pooled image (image V avg ). It can be understood that image V max and image V avg is the image F g The spatial dimension of is compressed accordingly, which can also be regarded as a feature image. max and V avg At the same time, it is input to the second perceptron. On the technical level, the second perceptron is a fully connected neural network (Fully Connected Layer). The fully connected neural network in this application scenario includes two layers of neural networks, and the weight parameters of the two layers of neural networks are W c0 and W c1 Among them, the image V max The data input to the second perceptron is W c1 *ReLu(W c0 *V max ). avg The data input to the second perceptron is W c1 *ReLu(W c0 *V avg ). RuLu is the linear correction unit function, and ReLu() is used to perform nonlinear mapping on the data in (). Then the image V max and image V avg The two data input to the second perceptron are added, and then stimulated by the excitation function σ to obtain the global feature image F g The feature image V g .
[0126] That is, we get the global feature image F g The feature image V g The process can be obtained by formula (5):
[0127] V g =σ(W c1 *ReLu(W c0 *V max )+W c1 *ReLu(W c0 *V avg )) (5)
[0128] The activation function σ may specifically be a sigmoid function.
[0129] In liver CT images, different regions of the tumor, liver, and background have different features. The perception model calculates the global feature image F g The feature image V g This is equivalent to converting the global feature image F g The feature extraction of the pixel is performed. According to the feature of the pixel, the probability of the pixel belonging to the liver pixel, the tumor pixel or the background pixel is calculated. For example, if the probability of a pixel belonging to the tumor pixel is 0.8 after calculation, which is greater than the set first probability threshold, the pixel is considered to be a pixel belonging to the tumor. The probability of another pixel belonging to the liver pixel is 0.76, which is greater than the set second probability threshold such as 0.7, then the pixel is considered to be a pixel belonging to the liver. The probability of another pixel belonging to the background pixel is 0.68, which is greater than the set third probability threshold such as 0.7, then the pixel is considered to be a pixel belonging to the background. In this way, it is possible to identify which area (liver area, tumor area or background area) each pixel belongs to. The collection of all pixels belonging to the same area constitutes each area, thereby identifying the liver area, tumor area and background area in the original image. Among them, the first, second and third probability thresholds can be the same, or different, and can be flexibly set depending on the specific situation.
[0130] From the above content, we can know that the local feature image F calculated by the local model l This is equivalent to enhancing the correlation between pixels that are close in space, i.e., in spatial position, in the original image - liver CT image, and weakening or reducing the correlation between pixels that are far away. Calculate the position of pixels that are close in space in the liver CT image. Pixels that are close in space may be pixels in the same area of the process, such as pixels that may constitute a tumor area, pixels that may constitute a liver area, or pixels that constitute a background area. Combined with the image V g The recognition results of the liver area, the tumor area and the background area in the original image are identified to identify the position of each area in the original image.
[0131] In addition, the perception model can combine the recognition results of each region and the position of each region through formula (6) to achieve joint or combined output. g Multiply it with the basic feature image F, and the result of the multiplication is then subjected to a convolution operation and added with the local feature image F l , and get the output result Out, see formula (6):
[0132]
[0133] It can be understood that the output result Out includes both the recognition results of the three regions of the original image and the recognition results of the positions of the regions in the original image. This is equivalent to the output result Out combining or outputting the recognition results of the three regions in the original image and the recognition results of the positions of the three regions in the original image.
[0134] Understandably, due to F l It is obtained by compressing the channel dimension of the sampled image S by the local model, that is, by semantically compressing the sampled image S. In this way, F l It can be regarded as an image obtained by using the local semantic information of the sampled image S. Since the sampled image S is obtained by upsampling the feature image of the original image, F l It can be regarded as an image obtained by using the local semantic information of the original image. g is obtained by using the full semantic information of the original image. Using the full semantic information of the original image can obtain the semantic correlation between the pixels in the original image. Using the local semantic information is equivalent to obtaining the semantic correlation between some pixels in the original image. In this way, it is equivalent to V g What is obtained is the semantic correlation between the pixels of the original image, F l What is obtained is the semantic correlation between some pixels of the original image. The operation is equivalent to using the semantic correlation information between the pixels of the original image to correct the semantic correlation between some pixels of the original image, for example, enhancing or weakening the semantic correlation between the pixels in the said part of the pixels. Assuming that the pixels 11 and 12 in the part of the pixels belong to the same area in the original image, such as the tumor area, l The semantic correlation parameter is 0.6; The operation changes the semantic correlation parameter of pixels 11 and 12 from 0.6 to 0.8, which is equivalent to enhancing the correlation between pixels belonging to the same region. It can be understood that the larger the value of the correlation parameter, the greater the probability that the pixels belong to the same region; the smaller the value of the correlation parameter, the smaller the probability that the pixels belong to the same region and the greater the probability that they belong to different regions. In other words, The operation can not only enhance or increase the correlation between pixels belonging to the same region, but also weaken or reduce the correlation between pixels belonging to different regions. For example, suppose that pixels 13 and 14 in the partial pixels belong to different regions in the original image, such as one belongs to the tumor region and the other belongs to the background region. l The semantic relevance parameter is 0.5; The operation changes the semantic correlation parameter of pixels 13 and 14 from 0.5 to 0.2, which is equivalent to weakening or reducing the correlation between pixels that do not belong to the same area or belong to different areas. The operation is equivalent to using the global semantic information (global context information) of the original image to enhance or weaken the local semantic information (local context semantic information). On the basis of The probability of a pixel in the image belonging to the liver, tumor or background is calculated to identify the liver area, tumor area and background area in the original image. Then, the local feature image F l , the perception model can simultaneously or jointly output the recognition results of the liver area, tumor area and background area in the original image, as well as the recognition results of the positions of each area in the liver CT image.
[0135] The above scheme is explained by taking the medical image as a CT image as an example. In addition, other reasonable medical images can be applied to the technical scheme of the embodiment of the present application, such as replacing the nuclear magnetic resonance image (film) in actual application with the CT image of the above embodiment, thereby realizing the recognition of the target area to be identified in the nuclear magnetic resonance image and the recognition of its position in the nuclear magnetic resonance image.
[0136] It can be seen from the above scheme that the technical solution of the embodiment of the present application has at least the following beneficial effects:
[0137] 1) The recognition model is used to realize the automatic recognition of the target area to be recognized in the CT image, as well as the automatic recognition of the location of the target area to be recognized in the CT image, which can provide doctors with certain auxiliary information for the diagnosis of the diseased area and location of the patient;
[0138] 2) Recognition is performed based on two feature images (global feature image and local feature image), which is equivalent to combining the semantic correlation (semantic correlation) and spatial correlation (spatial correlation) between the pixels of the CT image to identify the target area to be identified, as well as the position of the target area to be identified in the CT image, which can further ensure the recognition accuracy;
[0139] 3) From another perspective, the scheme using semantic correlation for identification is regarded as identification using global semantic information, and the scheme using spatial correlation for identification is regarded as identification using local semantics. Then, the technical scheme of the embodiment of the present application is equivalent to using the global semantic information and local semantic information of the original image to identify the liver area, tumor area and background area, and the position of each area in the liver CT image, which is equivalent to combining the global semantic information and the local semantic information to identify the three areas and the position of each area in the CT image, which can ensure the accuracy of identification;
[0140] 4) Based on the basic feature image of the original image, the global model and the local model are used for recognition, which is equivalent to identifying the three regions and the positions of each region in the CT image from the perspective of the features of the original image, which can improve the recognition accuracy;
[0141] 5) Using the global model to identify the three regions is equivalent to identifying the three regions from the perspective of the semantic relevance of the pixels of the original image, which can ensure the accuracy of the recognition of the three regions;
[0142] 6) Using the local model to identify the position of each area in the original image is equivalent to identifying from the perspective of the spatial position correlation of the pixels of the original image, which can ensure the accuracy of identifying the positions of the three areas in the original image.
[0143] 7) If Figure 5-8 The recognition model shown is implemented by a neural network. It can be understood that the neural network has certain stability and robustness and is not easily disturbed by the external environment. The recognition model of the embodiment of the present application performs recognition of the three regions and the positions of each region in the CT image, which can ensure recognition accuracy and stability. For CT images of the same diseased part of the same patient taken at different angles, the recognition results of the three regions and the positions of each region in the CT image are not much different.
[0144] The present application also provides an image processing device, such as Fig. 9 As shown, it includes: an acquisition unit 1001, an input unit 1002 and a recognition model 1003; wherein,
[0145] The obtaining unit 1001 is used to obtain a computerized tomography (CT) image, wherein the CT image at least includes a target area to be identified;
[0146] The input unit 1002 is used to input the CT image into the recognition model;
[0147] The recognition model 1003 is used to process the CT image to obtain the processing result; the processing result is at least characterized by a recognition result of the target area to be recognized in the CT image and a recognition result of the position of the target area to be recognized in the CT image;
[0148] Wherein, the processing result is obtained at least based on the global feature image and the local feature image for the CT image obtained by the recognition model; the global feature image is characterized as the semantic correlation between the pixels of the CT image; the local feature image is characterized as the spatial correlation between the pixels of the CT image.
[0149] In an optional solution, the recognition model 1003 is used to:
[0150] The recognition model processes the CT image to obtain a basic feature map of the CT image;
[0151] According to the basic feature map, obtaining the global feature image and the local feature image;
[0152] The processing result is obtained according to the global feature image and the local feature image.
[0153] In an optional solution, the recognition model 1003 is used to:
[0154] Performing a maximum pooling operation and an average pooling operation on the basic feature map in a spatial dimension to obtain a first pooled image and a second pooled image;
[0155] Processing the first pooled image and the second pooled image through a first perceptron to obtain a weight parameter for a basic feature map;
[0156] The global feature image is obtained according to the basic feature map and the weight parameters for the basic feature map.
[0157] In an optional solution, the recognition model 1003 is used to:
[0158] Sampling the basic feature map to obtain a sampled image;
[0159] Performing a maximum pooling operation and an average pooling operation in the channel dimension on the sampled image to obtain a third pooled image and a fourth pooled image;
[0160] Processing the third pooled image and the fourth pooled image via a second perceptron to obtain a weight parameter for a sampled image;
[0161] The local feature image is obtained according to the sampled image and a weight parameter for the sampled image.
[0162] In an optional solution, the recognition model 1003 is used to:
[0163] Obtaining a feature image for the global feature image based on the global feature image;
[0164] According to the feature image for the global feature image and the local feature image, a target region to be identified in the CT image and a position of the target region to be identified in the CT image are identified.
[0165] In an optional solution, the recognition model 1003 is used to:
[0166] Performing a maximum pooling operation and an average pooling operation on the global feature image in a spatial dimension to obtain a fifth pooled image and a sixth pooled image;
[0167] The fifth pooling operation and the sixth pooling image are processed by the second perceptron to obtain a feature image for the global feature image, where the feature image is characterized by the semantic correlation between the pixels of the global feature image.
[0168] In an optional solution, the recognition model 1003 is used to:
[0169] Performing N convolution operations on the CT image in sequence, where N is a positive integer greater than or equal to 1; wherein each convolution operation obtains a feature map of the CT image corresponding to each convolution operation;
[0170] Extracting a feature map obtained by performing any one of the N convolution operations on the CT image;
[0171] The extracted feature map is determined as the basic feature image.
[0172] The target area to be identified includes a lesion area, or an organ and a lesion area;
[0173] In an optional solution, the recognition model 1003 is used to: process the CT image to identify the lesion area in the CT image and the position of the lesion area in the CT image; or, identify the organ and the lesion area in the CT image and the position of the organ and the lesion area in the CT image.
[0174] In the device embodiment of the present application, the acquisition unit 1001, the input unit 1002 and the recognition model 1003 can all be implemented by a central processing unit (CPU), a digital signal processor (DSP), a microcontroller unit (MCU) or a programmable gate array (FPGA) in practical applications.
[0175] It should be noted that the image processing device of the embodiment of the present application solves the problem based on a principle similar to that of the aforementioned image processing method. Therefore, the implementation process and implementation principle of the image processing device can refer to the description of the implementation process and implementation principle of the aforementioned image processing method, and the repeated parts will not be repeated.
[0176] The present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the program is at least used to execute when executed by a processor Figures 1 to 8 The steps of any of the methods shown. The computer readable storage medium may be a memory. The memory may be Fig.10 The memory 62 is shown.
[0177] Fig.10 Schematic diagram of the hardware structure of the image processing device according to the embodiment of the present application. Fig.10 As shown in FIG. 1 , the image processing device includes: a communication component 63 for data transmission, at least one processor 61, and a memory 62 for storing a computer program that can be run on the processor 61. The various components in the terminal are coupled together through a bus system 64. It can be understood that the bus system 64 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 64 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.10 Various buses are labeled as bus system 64.
[0178] Wherein, when the processor 61 executes the computer program, at least Figures 1 to 8 Any of the steps of the method shown.
[0179] It can be understood that the memory 62 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 62 described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
[0180] The method disclosed in the above embodiment of the present application can be applied to the processor 61, or implemented by the processor 61. The processor 61 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 61 or the instruction in the form of software. The above processor 61 can be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 61 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 62, and the processor 61 reads the information in the memory 62 and completes the steps of the above method in combination with its hardware.
[0181] In an exemplary embodiment, the image processing device can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), FPGA, general-purpose processor, controller, MCU, microprocessor, or other electronic components to execute the aforementioned image processing method.
[0182] The present application also provides a recognition model, which can be specifically as follows: Figure 5 and / or Figure 6 The recognition model shown can be executed Figure 1 to Figure 5 The identification model also includes Figure 7 and / or Figure 8 The hardware structure of the recognition model can also be Fig.10 The hardware shown is similar.
[0183] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0184] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0185] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0186] A person skilled in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, etc. Various media that can store program codes.
[0187] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0188] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0189] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0190] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0191] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An image processing method, the method include: Obtaining a computerized tomography (CT) image, wherein the CT image at least includes a target area to be identified; The CT image is obtained by photographing the diseased part, or by reading the photographed CT image; Inputting the CT image into a recognition model; Processing the CT image by the recognition model to obtain a processing result; The processing result is characterized by at least a recognition result of the target region to be recognized in the CT image and a recognition result of the position of the target region to be recognized in the CT image; Wherein, the processing result is obtained at least based on the global feature image and the local feature image for the CT image obtained by the recognition model; the global feature image is characterized by the semantic correlation between the pixel points of the CT image; the local feature image is characterized by the spatial correlation between the pixel points of the CT image.
2. The method according to claim 1, wherein the recognition model processes the CT image to obtain the processing result. include: The recognition model processes the CT image to obtain a basic feature map of the CT image; According to the basic feature map, obtaining the global feature image and the local feature image; The processing result is obtained according to the global feature image and the local feature image.
3. The method according to claim 2, wherein the global feature image is obtained based on the basic feature map. include: Performing a maximum pooling operation and an average pooling operation on the basic feature map in a spatial dimension to obtain a first pooling image and a second pooling image; Processing the first pooled image and the second pooled image through a first perceptron to obtain a weight parameter for a basic feature map; The global feature image is obtained according to the basic feature map and the weight parameters for the basic feature map.
4. The method according to claim 2, wherein the local feature image is obtained based on the basic feature map. include: Sampling the basic feature map to obtain a sampled image; Performing a maximum pooling operation and an average pooling operation in the channel dimension on the sampled image to obtain a third pooled image and a fourth pooled image; Performing at least one convolution operation on the third pooled image and the fourth pooled image to obtain a weight parameter for a sampled image; The local feature image is obtained according to the sampled image and a weight parameter for the sampled image.
5. The method according to any one of claims 2 to 4, wherein the processing result is obtained based on the global feature image and the local feature image. include: Obtaining a feature image for the global feature image based on the global feature image; According to the feature image for the global feature image and the local feature image, a target region to be identified in the CT image and a position of the target region to be identified in the CT image are identified.
6. The method according to claim 5, wherein the feature image for the global feature image is obtained based on the global feature image. include: Performing a maximum pooling operation and an average pooling operation on the global feature image in a spatial dimension to obtain a fifth pooled image and a sixth pooled image; The fifth pooling operation and the sixth pooling image are processed by the second perceptron to obtain a feature image for the global feature image, where the feature image is characterized by the semantic correlation between the pixels of the global feature image.
7. The method according to any one of claims 2 to 4, wherein the recognition model processes the CT image to obtain a basic feature map of the CT image, include: Performing N convolution operations on the CT image in sequence, where N is a positive integer greater than or equal to 1; wherein each convolution operation obtains a feature map of the CT image corresponding to each convolution operation; Extracting a feature map obtained by performing any one of the N convolution operations on the CT image; The extracted feature map is determined as the basic feature image.
8. The method according to any one of claims 1 to 4, wherein the target area to be identified comprises a lesion area, or an organ and a lesion area; The CT image is processed by the recognition model to obtain the processing result, include: The recognition model processes the CT image to identify a lesion area in the CT image and a position of the lesion area in the CT image; Alternatively, the organ and the lesion area in the CT image, and the positions of the organ and the lesion area in the CT image are identified.
9. An image processing device, include: An obtaining unit, used for obtaining a computerized tomography (CT) image, wherein the CT image at least includes a target area to be identified; The CT image is obtained by photographing the diseased part, or by reading the photographed CT image; An input unit, used for inputting the CT image into the recognition model; A recognition model is used to process the CT image to obtain a processing result; The processing result is characterized by at least a recognition result of the target region to be recognized in the CT image and a recognition result of the position of the target region to be recognized in the CT image; Wherein, the processing result is obtained at least based on the global feature image and the local feature image for the CT image obtained by the recognition model; the global feature image is characterized as the semantic correlation between the pixels of the CT image; the local feature image is characterized as the spatial correlation between the pixels of the CT image.
10. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
