Lesion classification methods and related products based on multimodal data
Through the lesion classification method of multi-modal data, multiple neural networks are used to extract and fuse features of medical images under different imaging modes, which solves the problem of low classification accuracy under single modal data and achieves higher lesion classification accuracy. .
Patent Information
- Application Number
- CN202010482182.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-05-29
AI Technical Summary
Existing neural networks usually only use single-modality image data in lesion classification, resulting in low classification accuracy and inability to fully utilize multi-modal image information.
Using the lesion classification method of multi-modal data, feature extraction and fusion of medical images under different imaging modes are performed through three neural networks (deep network and two shallow networks) to obtain deep and shallow feature maps for lesion classification. .
The accuracy of lesion classification is improved. By integrating multi-modal image data for classification, the detailed information of feature extraction is enhanced and the accuracy of classification is improved.
Smart Images

Figure CN111695616B
Abstract
Description
Technical Field
[0001] The present application relates to the field of neural network technology, and in particular to a lesion classification method based on multimodal data and related products. Background Art
[0002] With the development of artificial intelligence, the application scope of neural networks is becoming more and more extensive. Using neural networks for image classification has become a part of people's lives. For example, using pre-trained neural networks to identify people in surveillance videos or tumors in MRI images.
[0003] Although neural networks have a good performance in image classification. However, current neural networks usually extract and analyze features of images of the same modality by deepening the network structure to obtain the deep features of the image. For image classification, there may be multiple images to be classified in each classification task, but in the actual classification process, only one image to be classified in one modality is used for image classification. For example, in the process of lesion classification, grayscale medical images or color medical images can be used for lesion classification. Therefore, in the process of lesion classification, the image data used is relatively single, resulting in relatively low classification accuracy. Summary of the invention
[0004] The embodiments of the present application provide a lesion classification method based on multimodal data and related products, which use multimodal image data for image classification to improve classification accuracy.
[0005] In a first aspect, an embodiment of the present application provides a lesion classification method based on multimodal data, the method being performed by a neural network, the neural network comprising a first network, a second network, and a third network, wherein the depth of the first network is greater than that of the second network and the third network, the method comprising:
[0006] Acquire a first medical image and a second medical image, wherein the first medical image and the second medical image are medical images of the same part obtained under different imaging modes, and the spatial complexity of the first medical image is greater than that of the second medical image;
[0007] Extracting features from the first medical image using the first network to obtain a first feature map;
[0008] Performing feature extraction on the first medical image through the second network to obtain a second feature map;
[0009] Performing feature extraction on the second medical image through the third network to obtain a third feature map;
[0010] Classification is performed according to the first feature map, the second feature map, and the third feature map to obtain the lesion corresponding to the part.
[0011] In a second aspect, an embodiment of the present application provides a lesion classification device based on multimodal data, wherein the lesion classification device performs a lesion classification process through a neural network, wherein the neural network includes a first network, a second network, and a third network, wherein the depth of the first network is greater than that of the second network and the third network, and the lesion classification device includes:
[0012] an acquisition unit, configured to acquire a first medical image and a second medical image, wherein the first medical image and the second medical image are medical images of the same part obtained under different imaging modes, and the spatial complexity of the first medical image is greater than that of the second medical image;
[0013] a feature extraction unit, configured to extract features from the first medical image through the first network to obtain a first feature map;
[0014] The feature extraction unit is further used to extract features from the first medical image through the second network to obtain a second feature map;
[0015] The feature extraction unit is further used to extract features from the second medical image through the third network to obtain a third feature map;
[0016] A classification unit is used to perform classification according to the first feature map, the second feature map and the third feature map to obtain the lesion corresponding to the part.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the method described in the first aspect.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method described in the first aspect.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer is operable to cause the computer to execute the method described in the first aspect.
[0020] Implementing the embodiments of the present application has the following beneficial effects:
[0021] It can be seen that in the implementation mode of the present application, the first network is used to extract deep features of the first medical image with relatively high spatial complexity to obtain a first feature map; at the same time, the second network is used to extract shallow features of the first medical image to obtain a second feature map; then, the third network is used to extract shallow features of the second medical image with lower spatial complexity to obtain a third feature map; finally, the first feature map, the second feature map and the third feature map are fused to perform lesion classification, thereby comprehensively classifying the image data under each modality, thereby improving the classification accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 A schematic diagram of a flow chart of a lesion classification method based on multimodal data provided in an embodiment of the present application;
[0024] Figure 2 A flowchart of a neural network training method provided in an embodiment of the present application;
[0025] Figure 3 A schematic diagram of a flow chart of another lesion classification method based on multimodal data provided in an embodiment of the present application;
[0026] Figure 4 A schematic diagram of a flow chart of another lesion classification method based on multimodal data provided in an embodiment of the present application;
[0027] Figure 5 A schematic diagram of a neural network structure provided in an embodiment of the present application
[0028] Figure 6 A schematic diagram of the structure of a lesion classification device provided in an embodiment of the present application;
[0029] Figure 7 A block diagram of the functional units of a lesion classification device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0032] Reference to "embodiments" herein means that a particular feature, result, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0033] The multimodal data-based lesion classification device in the present application may include a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a laptop computer, a mobile Internet device MID (Mobile Internet Devices, MID for short) or a wearable device, etc. In practical applications, the lesion classification device may also include a smart vehicle terminal, a computer device, etc.
[0034] See also Figure 1 , Figure 1 A flow chart of a lesion classification method based on multimodal data provided in an embodiment of the present application. The method is performed by a neural network, which is pre-trained. The training process of the neural network is described in detail later, and no further description is given here. The neural network includes a first network, a second network, and a third network, and the depth of the first network is greater than that of the second network and the third network. The method is applied to a lesion classification device. The method of this embodiment includes but is not limited to the following steps:
[0035] 101: A lesion classification device acquires a first medical image and a second medical image.
[0036] The first medical image and the second medical image are medical images of the same part obtained under different imaging modes, and the spatial complexity of the first medical image is greater than that of the second medical image, that is, the first medical image contains more detailed information, and a deep neural network is required to extract the features of the first medical image. The spatial complexity can also be understood as the storage space occupied by the medical image.
[0037] Exemplarily, the first medical image may be an ultrasound image (color image) obtained through color Doppler imaging and vector blood flow imaging, and the second medical image may be an ultrasound image (grayscale image) obtained through traditional ultrasound imaging.
[0038] 102: The lesion classification device extracts features from the first medical image through the first network to obtain a first feature map.
[0039] That is, the deep features of the first medical image are extracted through the first network (deep network) to obtain the first feature map.
[0040] Specifically, the first medical image can be feature extracted through multiple channels of the first network to obtain multiple sub-feature maps, and the multiple sub-feature maps are merged (for example, weighted processing) to obtain the first feature map.
[0041] 103: The lesion classification device extracts features from the first medical image through the second network to obtain a second feature map.
[0042] That is, the shallow features of the first medical image are extracted through the second network (shallow network) to obtain the second feature map. That is, while extracting deep features from the first medical image, shallow features are also extracted from the first medical image, thereby obtaining shallow features of the first medical image, and then obtaining more detailed information of the first medical image, thereby improving the accuracy of subsequent lesion classification.
[0043] 104: The lesion classification device extracts features from the second medical image through the third network to obtain a third feature map.
[0044] That is, the shallow features of the second medical image are extracted through the third network (shallow network) to obtain the third feature map. The third network and the second network can be the same network or different networks. This application does not limit this.
[0045] It should be noted that, in the case of extracting the third feature map through multiple channels, since the spatial complexity of the second medical image is relatively low, for example, a grayscale image, it is necessary to copy the second medical image to obtain input data corresponding to each channel.
[0046] 105: The lesion classification device performs classification according to the first feature map, the second feature map and the third feature map to obtain the lesion corresponding to the part.
[0047] Optionally, the lesion classification device may concatenate the first feature map, the second feature map and the third feature map, i.e., perform a concat operation, to obtain a target feature map; then, classify the lesions according to the target feature map to obtain the lesions corresponding to the part, i.e., determine the probability of falling into each lesion according to the target feature map, and take the lesion corresponding to the maximum probability as the lesion corresponding to the part.
[0048] Optionally, the lesion classification device can perform lesion classification based on the first characteristic map to obtain a first classification probability, that is, the classification probability that the first characteristic map falls into each lesion; and classify the lesions on the second characteristic map to obtain a second classification probability; classify the lesions on the third characteristic map to obtain a third classification probability; then, obtain the average of the first classification probability, the second classification probability and the third classification probability, that is, the average classification probability; according to the average classification probability, determine the lesion corresponding to the part, that is, the lesion corresponding to the maximum value in the classification probability is taken as the lesion corresponding to the part.
[0049] It can be seen that in the implementation mode of the present application, the first network is used to extract deep features of the first medical image with relatively high spatial complexity to obtain a first feature map; at the same time, the second network is used to extract shallow features of the first medical image to obtain a second feature map; then, the third network is used to extract shallow features of the second medical image with lower spatial complexity to obtain a third feature map; finally, the first feature map, the second feature map and the third feature map are fused to obtain a target feature map; and the target feature map is matched with each lesion image template to determine the probability of falling into each lesion, thereby realizing lesion classification, thereby comprehensively classifying the lesions by integrating the image data under each modality, thereby improving the classification accuracy.
[0050] In some possible implementations, the first network includes two first subnetworks, and the second network includes two second subnetworks. The two first subnetworks may be subnetworks with the same structure or subnetworks with different structures, which is not limited in this application. Similarly, the two second subnetworks may be subnetworks with the same structure or subnetworks with different structures, which is not limited in this application. In addition, the network depth of each first subnetwork is greater than the network depth of each second subnetwork. Therefore, the implementation process of extracting features from the first medical image through the first network to obtain the first feature map may include: extracting features from the first medical image through the first first subnetwork to obtain a first sub-feature map; extracting features from the first medical image through the first second subnetwork to obtain a second sub-feature map; concatenating the first sub-feature map and the second sub-feature map, i.e., concat operation, to obtain a target sub-feature map; inputting the target sub-feature map into the second first subnetwork to obtain a first feature map.
[0051] It can be seen that in this embodiment, the shallow features extracted by the second sub-network are spliced with the deep features extracted by the first sub-network, so that the first feature map (deep features) extracted by the second first sub-network will contain more detailed information in the first medical image, thereby improving the accuracy of subsequent lesion classification.
[0052] In some possible implementations, after acquiring the first medical image and the second medical image, the first brightness of the first medical image and the second brightness of the second medical image may also be acquired; when the first brightness and / or the second brightness are less than a threshold value, the first medical image and / or the second medical image are enhanced, that is, when the first brightness is less than the threshold value, the first medical image is enhanced, and when the second brightness is less than the threshold value, the second medical image is enhanced. The enhanced first medical image and / or the second medical image are used as the above-mentioned first medical image and / or the second medical image. That is, when the brightness of the medical image is less than the threshold value, the medical image is enhanced, and the enhanced medical image is used as the medical image for subsequent feature extraction.
[0053] The enhancement process of the first medical image is described in detail below by taking the first medical image as an example. The enhancement process of the second medical image is similar to that of the first medical image and will not be described again.
[0054] Specifically, each pixel point in the first medical image is decomposed in the high-frequency direction to obtain a first component in the horizontal direction, a second component in the vertical direction, and a third component in the diagonal direction of each pixel point, wherein the high-frequency directional decomposition of each pixel point is essentially to obtain the Hessian matrix of each pixel point, that is, to obtain the second-order partial differential in the horizontal direction, the second-order partial differential in the vertical direction, and the mixed partial differential in the diagonal direction of each pixel point, and to use the second-order partial differential in the horizontal direction as the first component of each pixel point, the second-order partial differential in the vertical direction as the second component, and the mixed partial differential in the diagonal direction as the third component. , wherein the process of obtaining partial differentials is a prior art and will not be described again; then, the first component of all pixels in the first medical image in the horizontal direction corresponds to a first component image, the second component in the vertical direction corresponds to a second component image, and the third component in the diagonal direction corresponds to a third component image; the first component image, the second component image and the third component image are sharpened to obtain the sharpened first component image, the second component image and the third component image; finally, the sharpened first component image, the second component image and the third component image are pixel-superimposed with the first medical image to obtain the enhanced first medical image.
[0055] It can be seen that in this embodiment, when the brightness of the medical image is low, the medical image is enhanced to enhance the detail information of the medical image, so that more detail information can be extracted during subsequent feature extraction, thereby improving the accuracy of lesion classification.
[0056] In some possible implementations, the first medical image and the second medical image may be stored in a blockchain, and the first medical image and the second medical image may be stored in the same node of the blockchain or in different nodes, which is not limited in this application. Therefore, it is necessary to first obtain access rights to the blockchain, and then obtain the first medical image and the second medical image from the blockchain; in addition, the first medical image and the second medical image after lesion classification may also be stored in the blockchain to ensure the security of medical image storage and prevent others from tampering with the images.
[0057] In some possible implementations, the present application can also be applied to smart medical care. For example, after taking a medical image of a patient (such as an X-ray image), the lesion classification method of the present application can be used to automatically classify the patient's lesions and determine the patient's disease. There is no need for doctors to perform manual diagnosis based on the medical image, thereby freeing up physician resources and promoting the construction of smart cities.
[0058] See also Figure 2 , Figure 2A flowchart of a neural network training method provided in an embodiment of the present application. The method in this embodiment includes but is not limited to the following steps:
[0059] 201: Obtain image sample pairs.
[0060] The image sample pair includes a first image sample and a second image sample, the first image sample and the second image sample are images of the same part obtained under different imaging modes, and the spatial complexity of the first image sample is greater than that of the second image sample.
[0061] The image sample pair has label information, namely, the actual lesion corresponding to the part.
[0062] 202: Perform feature extraction on the first image sample through the first network to obtain a fourth feature map.
[0063] 203: Perform feature extraction on the first image sample through the second network to obtain a fifth feature map.
[0064] 204: Perform feature extraction on the second image sample through the second network to obtain a sixth feature map.
[0065] 205: Concatenate the fourth feature map, the fifth feature map, and the sixth feature map to obtain a seventh feature map.
[0066] 206: Obtain a first loss according to the fourth characteristic map, obtain a second loss according to the sixth characteristic map, and obtain a third loss according to the seventh characteristic map.
[0067] Classification is performed according to the feature map to obtain a prediction result, and the loss is determined based on the prediction result and the label information.
[0068] 207: Adjust parameter values of network parameters of the neural network according to the first loss, the second loss, and the third loss.
[0069] The first loss, the second loss and the third loss are weighted to obtain a target loss, and the parameter values of the network parameters of the neural network are adjusted based on the target loss and the gradient descent method. The target loss can be expressed by formula (1):
[0070] Loss=k1*Loss1+k2*Loss2+k3*Loss3; (1)
[0071] Among them, Loss is the target loss, Loss1 is the first loss, Loss2 is the second loss, Loss3 is the third loss, and k1, k2, and k3 are preset weight coefficients.
[0072] It can be seen that in the implementation mode of the present application, the first network is used to extract deep features of the first medical image with relatively high spatial complexity to obtain a first feature map; at the same time, the second network is used to extract shallow features of the first medical image to obtain a second feature map; then, the third network is used to extract shallow features of the second medical image with lower spatial complexity to obtain a third feature map; finally, the first feature map, the second feature map and the third feature map are fused to perform lesion classification, thereby comprehensively classifying the image data under each modality, thereby improving the classification accuracy.
[0073] See also Figure 3 , Figure 3 A schematic diagram of a flow chart of another lesion classification method based on multimodal data provided in an embodiment of the present application. The method is applied to a lesion classification device. Figure 1 , Figure 2 The same contents as those in the embodiment shown are not described again here. The method of this embodiment includes but is not limited to the following steps:
[0074] 301: The lesion classification device obtains an image sample pair.
[0075] The image sample pair includes a first image sample and a second image sample, the first image sample and the second image sample are images of the same part obtained under different imaging modes, and the spatial complexity of the first image sample is greater than that of the second image sample.
[0076] 302: The lesion classification device extracts features from the first image sample through a first network to obtain a fourth feature map.
[0077] 303: The lesion classification device extracts features from the first image sample through a second network to obtain a fifth feature map.
[0078] 304: The lesion classification device extracts features from the second image sample through a second network to obtain a sixth feature map.
[0079] 305: The lesion classification device concatenates the fourth feature map, the fifth feature map, and the sixth feature map to obtain a seventh feature map.
[0080] 306: The lesion classification device obtains a first loss according to the fourth feature map, obtains a second loss according to the sixth feature map, and obtains a third loss according to the seventh feature map.
[0081] 307: The lesion classification device adjusts the parameter values of the network parameters of the neural network according to the first loss, the second loss and the third loss to obtain a trained neural network.
[0082] The neural network includes a first network, a second network and a third network.
[0083] 308: The lesion classification device acquires the first medical image and the second medical image.
[0084] The first medical image and the second medical image are medical images of the same part obtained under different imaging modes, and the spatial complexity of the first medical image is greater than that of the second medical image.
[0085] 309: The lesion classification device extracts features from the first medical image through the first network to obtain a first feature map.
[0086] 310: The lesion classification device extracts features from the first medical image through the second network to obtain a second feature map.
[0087] 311: The lesion classification device extracts features from the second medical image through the third network to obtain a third feature map.
[0088] 312: The lesion classification device performs classification according to the first feature map, the second feature map and the third feature map to obtain the lesion corresponding to the part.
[0089] It can be seen that in the implementation mode of the present application, the first network is used to extract deep features of the first medical image with relatively high spatial complexity to obtain a first feature map; at the same time, the second network is used to extract shallow features of the first medical image to obtain a second feature map; then, the third network is used to extract shallow features of the second medical image with lower spatial complexity to obtain a third feature map; finally, the first feature map, the second feature map and the third feature map are fused to perform lesion classification, thereby comprehensively classifying the image data under each modality, thereby improving the classification accuracy.
[0090] See also Figure 4 , Figure 4 A schematic diagram of a flow chart of another lesion classification method based on multimodal data provided in an embodiment of the present application. The method is applied to a lesion classification device. Figure 1 , Figure 2 as well as Figure 3 The same contents as those in the embodiment shown are not described again here. The method of this embodiment includes but is not limited to the following steps:
[0091] 401: The lesion classification device obtains an image sample pair.
[0092] The image sample pair includes a first image sample and a second image sample, the first image sample and the second image sample are images of the same part obtained under different imaging modes, and the spatial complexity of the first image sample is greater than that of the second image sample.
[0093] 402: The lesion classification device extracts features from the first image sample through a first network to obtain a fourth feature map.
[0094] 403: The lesion classification device extracts features from the first image sample through a second network to obtain a fifth feature map.
[0095] 404: The lesion classification device extracts features from the second image sample through a second network to obtain a sixth feature map.
[0096] 405: The lesion classification device concatenates the fourth feature map, the fifth feature map, and the sixth feature map to obtain a seventh feature map.
[0097] 406: The lesion classification device obtains a first loss according to the fourth feature map, obtains a second loss according to the sixth feature map, and obtains a third loss according to the seventh feature map.
[0098] 407: The lesion classification device adjusts parameter values of network parameters of the neural network according to the first loss, the second loss and the third loss to obtain a trained neural network.
[0099] The neural network includes a first network, a second network and a third network.
[0100] 408: The lesion classification device acquires the first medical image and the second medical image.
[0101] The first medical image and the second medical image are medical images of the same part obtained under different imaging modes, and the spatial complexity of the first medical image is greater than that of the second medical image.
[0102] 409: The lesion classification device obtains a first brightness of the first medical image and a second brightness of the second medical image.
[0103] 410: When the first brightness and / or the second brightness is less than a threshold value, the lesion classification device performs enhancement processing on the first medical image and / or the second medical image, and uses the enhanced first medical image and / or the second medical image as the first medical image and / or the second medical image.
[0104] 411: The lesion classification device extracts features from the first medical image through the first network to obtain a first feature map.
[0105] 412: The lesion classification device extracts features from the first medical image through the second network to obtain a second feature map.
[0106] 413: The lesion classification device extracts features from the second medical image through the third network to obtain a third feature map.
[0107] 414: The lesion classification device performs classification according to the first feature map, the second feature map and the third feature map to obtain the lesion corresponding to the part.
[0108] It can be seen that in the implementation mode of the present application, the first network is used to extract deep features of the first medical image with relatively high spatial complexity to obtain a first feature map; at the same time, the second network is used to extract shallow features of the first medical image to obtain a second feature map; then, the third network is used to extract shallow features of the second medical image with lower spatial complexity to obtain a third feature map; finally, the first feature map, the second feature map and the third feature map are fused to perform lesion classification, thereby comprehensively classifying the image data under each modality, thereby improving the classification accuracy.
[0109] See also Figure 5 , Figure 5 A schematic diagram of the structure of a neural network provided for the implementation of this application. The above-mentioned lesion classification method is applied to the neural network.
[0110] like Figure 5 As shown, the neural network includes a first network, a second network and a third network, wherein the first network includes two first sub-networks, the second network includes two second sub-networks, and the second network and the third network can be the same network structure or different network structures. Specifically, the first network can be composed of a backbone network. The second network includes multiple convolutional layers and pooling layers.
[0111] Specifically, the first first sub-network is used to extract features from the first medical image to obtain a first sub-feature map;
[0112] The first second sub-network is used to extract features from the first medical image to obtain a second sub-feature map, and concatenate the first sub-feature map and the second sub-feature map to obtain a target sub-feature map;
[0113] The second first sub-network is used to extract features from the target sub-feature map to obtain a first feature map;
[0114] The second second sub-network is used to extract features from the second sub-feature map to obtain a second feature map;
[0115] The third network is used to extract features from the second medical image to obtain a third feature map;
[0116] Finally, the first feature map, the second feature map and the third feature map are concatenated through the neural network to obtain the target feature map.
[0117] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of a lesion classification device provided in an embodiment of the present application. Figure 6 As shown, the lesion classification device 600 includes a processor, a memory, a communication interface, and one or more programs, and the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the following steps:
[0118] Acquire a first medical image and a second medical image, wherein the first medical image and the second medical image are medical images of the same part obtained under different imaging modes, and the spatial complexity of the first medical image is greater than that of the second medical image;
[0119] Extracting features from the first medical image using the first network to obtain a first feature map;
[0120] Performing feature extraction on the first medical image through the second network to obtain a second feature map;
[0121] Performing feature extraction on the second medical image through the third network to obtain a third feature map;
[0122] Classification is performed according to the first feature map, the second feature map, and the third feature map to obtain the lesion corresponding to the part.
[0123] In some possible implementations, the first network includes two first sub-networks, the second network includes two second sub-networks, and in terms of extracting features from the first medical image through the first network to obtain a first feature map, the above program is specifically used to execute instructions for the following steps:
[0124] Performing feature extraction on the first medical image through a first first sub-network to obtain a first sub-feature map;
[0125] Performing feature extraction on the first medical image through a first second sub-network to obtain a second sub-feature map;
[0126] Concatenating the first sub-feature map and the second sub-feature map to obtain a target sub-feature map;
[0127] The target sub-feature map is input into the second first sub-network to obtain a first feature map.
[0128] In some possible implementations, in terms of classifying according to the first feature map, the second feature map, and the third feature map to obtain the lesion corresponding to the part, the above program is specifically used to execute instructions of the following steps:
[0129] Concatenating the first feature map, the second feature map, and the third feature map to obtain a target feature map;
[0130] Classification is performed according to the target feature map to obtain the lesion corresponding to the part.
[0131] In some possible implementations, in terms of classifying according to the first feature map, the second feature map, and the third feature map to obtain the lesion corresponding to the part, the above program is specifically used to execute instructions of the following steps:
[0132] Classifying the first feature map to obtain a first classification probability;
[0133] Classifying the second feature map to obtain a second classification probability;
[0134] Classifying the third feature map to obtain a third classification probability;
[0135] Obtaining an average classification probability according to the first classification probability, the second classification probability and the third classification probability;
[0136] According to the average classification probability, the lesion corresponding to the part is obtained.
[0137] In some possible implementations, after acquiring the first medical image and the second medical image, the program is further used to execute instructions for the following steps:
[0138] Acquire a first brightness of the first medical image and a second brightness of the second medical image;
[0139] When the first brightness is less than a threshold, performing enhancement processing on the first medical image, and using the enhanced first medical image as the first medical image;
[0140] When the second brightness is less than the threshold, enhancement processing is performed on the second medical image, and the enhanced second medical image is used as the second medical image.
[0141] In some possible implementations, before acquiring the first medical image and the second medical image, the program is further used to execute instructions for the following steps:
[0142] Acquire an image sample pair, wherein the image sample pair includes a first image sample and a second image sample, the first image sample and the second image sample are images of the same part obtained under different imaging modes, and the spatial complexity of the first image sample is greater than that of the second image sample;
[0143] Performing feature extraction on the first image sample through the first network to obtain a fourth feature map;
[0144] Performing feature extraction on the first image sample through the second network to obtain a fifth feature map;
[0145] Performing feature extraction on the second image sample through the second network to obtain a sixth feature map;
[0146] splicing the fourth characteristic map, the fifth characteristic map and the sixth characteristic map to obtain a seventh characteristic map;
[0147] Obtain a first loss according to the fourth characteristic map, obtain a second loss according to the sixth characteristic map, and obtain a third loss according to the seventh characteristic map;
[0148] According to the first loss, the second loss and the third loss, the parameter values of the network parameters of the neural network are adjusted.
[0149] In some possible implementations, in terms of adjusting the parameter values of the network parameters of the neural network according to the first loss, the second loss, and the third loss, the above program is specifically used to execute instructions for the following steps:
[0150] Performing weighted processing on the first loss, the second loss, and the third loss to obtain a target loss;
[0151] The parameter values of the network parameters of the neural network are adjusted according to the target loss.
[0152] See also Figure 7 , Figure 7 The functional unit composition block diagram of a lesion classification device provided in an embodiment of the present application. The lesion classification device 700 includes: an acquisition unit 710, a feature extraction unit 720, and a classification unit 730, wherein:
[0153] An acquiring unit 710 acquires a first medical image and a second medical image, wherein the first medical image and the second medical image are medical images of the same part obtained under different imaging modes, and the spatial complexity of the first medical image is greater than that of the second medical image;
[0154] A feature extraction unit 720, configured to extract features from the first medical image through the first network to obtain a first feature map;
[0155] A feature extraction unit 720, configured to extract features from the first medical image through the second network to obtain a second feature map;
[0156] A feature extraction unit 720, configured to extract features from the second medical image through the third network to obtain a third feature map;
[0157] The classification unit 730 is used to perform classification according to the first feature map, the second feature map and the third feature map to obtain the lesion corresponding to the part.
[0158] In some possible implementations, the first network includes two first sub-networks, the second network includes two second sub-networks, and in terms of extracting features from the first medical image through the first network to obtain a first feature graph, the feature extraction unit 720 is specifically configured to:
[0159] Performing feature extraction on the first medical image through a first first sub-network to obtain a first sub-feature map;
[0160] Performing feature extraction on the first medical image through a first second sub-network to obtain a second sub-feature map;
[0161] Concatenating the first sub-feature map and the second sub-feature map to obtain a target sub-feature map;
[0162] The target sub-feature map is input into the second first sub-network to obtain a first feature map.
[0163] In some possible implementations, in terms of performing classification according to the first feature map, the second feature map, and the third feature map to obtain the lesion corresponding to the part, the classification unit 730 is specifically used to:
[0164] Concatenating the first feature map, the second feature map, and the third feature map to obtain a target feature map;
[0165] Classification is performed according to the target feature map to obtain the lesion corresponding to the part.
[0166] In some possible implementations, in terms of performing classification according to the first feature map, the second feature map, and the third feature map to obtain the lesion corresponding to the part, the classification unit 730 is specifically used to:
[0167] Classifying the first feature map to obtain a first classification probability;
[0168] Classifying the second feature map to obtain a second classification probability;
[0169] Classifying the third feature map to obtain a third classification probability;
[0170] Obtaining an average classification probability according to the first classification probability, the second classification probability and the third classification probability;
[0171] According to the average classification probability, the lesion corresponding to the part is obtained.
[0172] In some possible implementations, the lesion classification device further includes an enhancement unit 740. After acquiring the first medical image and the second medical image, the enhancement unit 740 is configured to:
[0173] Acquire a first brightness of the first medical image and a second brightness of the second medical image;
[0174] When the first brightness is less than a threshold, performing enhancement processing on the first medical image, and using the enhanced first medical image as the first medical image;
[0175] When the second brightness is less than the threshold, enhancement processing is performed on the second medical image, and the enhanced second medical image is used as the second medical image.
[0176] In some possible implementations, the lesion classification device further includes a training unit 750. Before acquiring the first medical image and the second medical image, the training unit 750 is configured to:
[0177] Acquire an image sample pair, wherein the image sample pair includes a first image sample and a second image sample, the first image sample and the second image sample are images of the same part obtained under different imaging modes, and the spatial complexity of the first image sample is greater than that of the second image sample;
[0178] Performing feature extraction on the first image sample through the first network to obtain a fourth feature map;
[0179] Performing feature extraction on the first image sample through the second network to obtain a fifth feature map;
[0180] Performing feature extraction on the second image sample through the second network to obtain a sixth feature map;
[0181] splicing the fourth characteristic map, the fifth characteristic map and the sixth characteristic map to obtain a seventh characteristic map;
[0182] Obtain a first loss according to the fourth characteristic map, obtain a second loss according to the sixth characteristic map, and obtain a third loss according to the seventh characteristic map;
[0183] According to the first loss, the second loss and the third loss, the parameter values of the network parameters of the neural network are adjusted.
[0184] In some possible implementations, in terms of adjusting the parameter values of the network parameters of the neural network according to the first loss, the second loss, and the third loss, the training unit 750 is specifically configured to:
[0185] Performing weighted processing on the first loss, the second loss, and the third loss to obtain a target loss;
[0186] The parameter values of the network parameters of the neural network are adjusted according to the target loss.
[0187] An embodiment of the present application also provides a computer storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement part or all of the steps of any one of the lesion classification methods based on multimodal data recorded in the above method embodiments.
[0188] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any one of the lesion classification methods based on multimodal data recorded in the above method embodiments.
[0189] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0190] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0191] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which 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 integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0192] The units described as separate components may or may not be physically separated, and the components shown 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 solution of this embodiment.
[0193] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software program module.
[0194] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0195] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0196] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A lesion classification method based on multimodal data, characterized in that: The method is performed by a neural network, the neural network includes a first network, a second network and a third network, wherein the depth of the first network is greater than that of the second network and the third network, and the method includes: Acquire an image sample pair, wherein the image sample pair includes a first image sample and a second image sample, the first image sample and the second image sample are images of the same part obtained under different imaging modes, and the spatial complexity of the first image sample is greater than that of the second image sample; Performing feature extraction on the first image sample through the first network to obtain a fourth feature map; Performing feature extraction on the first image sample through the second network to obtain a fifth feature map; Performing feature extraction on the second image sample through the second network to obtain a sixth feature map; splicing the fourth characteristic map, the fifth characteristic map and the sixth characteristic map to obtain a seventh characteristic map; Obtain a first loss according to the fourth characteristic map, obtain a second loss according to the sixth characteristic map, and obtain a third loss according to the seventh characteristic map; Adjusting parameter values of network parameters of the neural network according to the first loss, the second loss, and the third loss; Acquire a first medical image and a second medical image, wherein the first medical image and the second medical image are medical images of the same part obtained under different imaging modes, and the spatial complexity of the first medical image is greater than that of the second medical image; The first medical image is subjected to feature extraction by the first network to obtain a first feature map, wherein the first network includes two first sub-networks, and the second network includes two second sub-networks, including: Performing feature extraction on the first medical image through a first first sub-network to obtain a first sub-feature map; performing feature extraction on the first medical image through a first second sub-network to obtain a second sub-feature map; concatenating the first sub-feature map and the second sub-feature map to obtain a target sub-feature map; inputting the target sub-feature map into the second first sub-network to obtain a first feature map; Performing feature extraction on the first medical image through the second network to obtain a second feature map; Performing feature extraction on the second medical image through the third network to obtain a third feature map; Classifying according to the first feature map, the second feature map, and the third feature map to obtain the lesion corresponding to the part, including: splicing the first feature map, the second feature map, and the third feature map to obtain a target feature map; classifying according to the target feature map to obtain the lesion corresponding to the part, or classifying the first feature map to obtain a first classification probability; classifying the second feature map to obtain a second classification probability; classifying the third feature map to obtain a third classification probability; obtaining an average classification probability according to the first classification probability, the second classification probability, and the third classification probability; and obtaining the lesion corresponding to the part according to the average classification probability.
2. The method according to claim 1, characterized in that: After acquiring the first medical image and the second medical image, the method further includes: Acquire a first brightness of the first medical image and a second brightness of the second medical image; When the first brightness is less than a threshold, performing enhancement processing on the first medical image, and using the enhanced first medical image as the first medical image; When the second brightness is less than the threshold, enhancement processing is performed on the second medical image, and the enhanced second medical image is used as the second medical image.
3. The method according to claim 1, characterized in that The step of adjusting the parameter values of the network parameters of the neural network according to the first loss, the second loss and the third loss comprises: Performing weighted processing on the first loss, the second loss, and the third loss to obtain a target loss; The parameter values of the network parameters of the neural network are adjusted according to the target loss.
4. A lesion classification device based on multimodal data, characterized in that: The lesion classification device performs a lesion classification process through a neural network, the neural network includes a first network, a second network and a third network, wherein the depth of the first network is greater than that of the second network and the third network, and the lesion classification device includes: A training unit, configured to obtain an image sample pair, wherein the image sample pair includes a first image sample and a second image sample, the first image sample and the second image sample are images of the same part obtained under different imaging modes, and the spatial complexity of the first image sample is greater than that of the second image sample; Performing feature extraction on the first image sample through the first network to obtain a fourth feature map; Performing feature extraction on the first image sample through the second network to obtain a fifth feature map; Performing feature extraction on the second image sample through the second network to obtain a sixth feature map; splicing the fourth characteristic map, the fifth characteristic map and the sixth characteristic map to obtain a seventh characteristic map; Obtain a first loss according to the fourth characteristic map, obtain a second loss according to the sixth characteristic map, and obtain a third loss according to the seventh characteristic map; Adjusting parameter values of network parameters of the neural network according to the first loss, the second loss, and the third loss; an acquisition unit, configured to acquire a first medical image and a second medical image, wherein the first medical image and the second medical image are medical images of the same part obtained under different imaging modes, and the spatial complexity of the first medical image is greater than that of the second medical image; A feature extraction unit, configured to extract features from the first medical image through the first network to obtain a first feature map, wherein the first network includes two first sub-networks, and the second network includes two second sub-networks, including: Performing feature extraction on the first medical image through a first first sub-network to obtain a first sub-feature map; performing feature extraction on the first medical image through a first second sub-network to obtain a second sub-feature map; concatenating the first sub-feature map and the second sub-feature map to obtain a target sub-feature map; inputting the target sub-feature map into the second first sub-network to obtain a first feature map; The feature extraction unit is further used to extract features from the first medical image through the second network to obtain a second feature map; The feature extraction unit is further used to extract features from the second medical image through the third network to obtain a third feature map; A classification unit is used to classify according to the first feature map, the second feature map and the third feature map to obtain the lesion corresponding to the part, including: splicing the first feature map, the second feature map and the third feature map to obtain a target feature map; classifying according to the target feature map to obtain the lesion corresponding to the part, or classifying the first feature map to obtain a first classification probability; classifying the second feature map to obtain a second classification probability; classifying the third feature map to obtain a third classification probability; obtaining an average classification probability according to the first classification probability, the second classification probability and the third classification probability; and obtaining the lesion corresponding to the part according to the average classification probability.
5. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in any one of the methods of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Processing method and apparatus of video image
CN106412383A
Medical image semantic description method, description model construction method and model
CN109559799A
DCM myocardial diagnosis and treatment radiation image segmentation method based on a multi-scale feature pyramid
CN109584246A
Image filtering method and device and storage medium
CN109815965A
Neural network model training method and device, image recognition method and device
CN110443286A
