A method and device for brain image recognition
The feature extraction module is used in brain image recognition through the convolutional neural network model to generate feature images and determine the lesion area, which solves the problems of low efficiency and low accuracy of stroke diagnosis in the existing technology, and achieves faster and more accurate diagnosis. Judgment of condition.
Patent Information
- Application Number
- CN201811227491.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-10-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2038-10-22
AI Technical Summary
In the current technology, stroke diagnosis relies on manual viewing of brain images, which is inefficient and the accuracy is affected by human subjective factors, resulting in delayed and inaccurate judgment of the condition.
The convolutional neural network model is used for brain image recognition. The brain image is input to the down-sampling and up-sampling convolution blocks through the feature extraction module to generate feature images, and the lesion area is determined based on the probability distribution map to reduce manual intervention.
It improves the accuracy and efficiency of brain image recognition, reduces diagnostic errors caused by differences in doctor levels, and shortens the time to determine stroke conditions.
Smart Images

Figure CN109447963B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of machine learning, and in particular to a method and device for brain image recognition. Background Art
[0002] "Cerebral stroke" is also known as "stroke". It is an acute cerebrovascular disease. It is a group of diseases that cause brain tissue damage due to sudden rupture of brain blood vessels or blood vessel blockage that prevents blood from flowing into the brain, including ischemic and hemorrhagic strokes. Statistics show that the incidence of stroke in China is currently increasing at an annual rate of 8.7%, and cerebrovascular disease has become the number one cause of death among Chinese residents.
[0003] For stroke patients, the "time window" from onset to treatment is crucial to reducing mortality and disability rates. The "time window" for stroke treatment is very short, usually starting within 3 hours or 4.5 hours of onset, so hospitals need to do everything they can to shorten the intermediate links and gain time for treatment for patients. Taking CT images has become the best means of examination that takes both efficiency and economy into consideration. However, diagnosing stroke through manual film reading and judgment takes too long, which can easily lead to delays in the condition, and requires experienced doctors for diagnosis, which can easily lead to inaccurate judgments of the condition due to human differences.
[0004] In the prior art, the disease condition is mainly judged by manually viewing brain images, but the accuracy is affected by human subjective factors, the image is large, and the efficiency is low. Summary of the invention
[0005] In the prior art, the disease condition is mainly judged by manually viewing brain images, but the accuracy is affected by human subjective factors, the image is large, and the efficiency is low. The embodiment of the present invention provides a method and device for brain image recognition.
[0006] In a first aspect, an embodiment of the present invention provides a method for brain image recognition, comprising:
[0007] Acquire a brain image of a user to be detected; the brain image includes N frames of brain images; N is a positive integer;
[0008] Inputting a brain image to be identified into a feature extraction module, and outputting a feature image of the brain image to be identified; the feature image is determined according to feature images of different sizes; the brain image to be identified includes a brain image and a brain image adjacent to the brain image;
[0009] The lesion area of the brain image is determined according to the characteristic image of the brain image to be identified.
[0010] In a possible implementation, the feature extraction module includes M downsampling convolution blocks and M upsampling convolution blocks in sequence;
[0011] The step of inputting the brain image to be identified into a feature extraction module and outputting a feature image of the brain image to be identified comprises:
[0012] The brain image and the brain images adjacent to the brain image are used as multi-channels, and a first feature image of the brain image is extracted through M downsampling convolution blocks in sequence, wherein the size of the first feature image extracted by each downsampling convolution block is different, and M is greater than 0;
[0013] For the K-th upsampling convolution block, the upsampling convolution block combines the second feature image output by the K-1-th upsampling convolution block with the feature image output by the K-th downsampling convolution block as the feature image input by the upsampling convolution block; the size of the second feature image extracted by each upsampling convolution block is different; M≥K; K is a positive integer;
[0014] The second feature image output by the Mth upsampling convolution block is used as the feature image of the brain image.
[0015] In a possible implementation, determining the lesion area of the brain image according to the feature image of the brain image to be identified includes:
[0016] Convolving the characteristic image of the brain image to determine a probability distribution map of the brain image;
[0017] Segmenting the probability distribution map of the brain image according to a preset threshold;
[0018] A pixel block whose probability in the probability distribution map of the brain image is greater than the preset threshold is determined as a lesion area of the brain image.
[0019] In a possible implementation, the brain image is a first region image in the brain image to be identified; and the method further includes:
[0020] Inputting a second region image in the brain image to be identified into the feature extraction module, and outputting a reference feature image of the brain image to be identified; the second region image is symmetrical to the first region image;
[0021] Determining the lesion area of the brain image according to the characteristic image of the brain image to be identified includes:
[0022] A brain lesion region in the first region image is determined according to the feature image and the reference feature image.
[0023] In a second aspect, an embodiment of the present invention provides a device for brain image recognition, comprising:
[0024] An acquisition unit, used for acquiring a brain image of a user to be detected; the brain image includes N frames of brain images; N is a positive integer;
[0025] A processing unit is used to input a brain image to be identified into a feature extraction module, and output a feature image of the brain image to be identified; the feature image is determined according to feature images of different sizes; the brain image to be identified includes a brain image and brain images adjacent to the brain image; and the lesion area of the brain image is determined according to the feature image of the brain image to be identified.
[0026] In a possible implementation, the feature extraction module includes M downsampling convolution blocks and M upsampling convolution blocks in sequence; the processing module is specifically used to:
[0027] The brain image and the brain images adjacent to the brain image are taken as multi-channels, and the first feature image of the brain image is extracted in sequence through M down-sampling convolution blocks, the size of the first feature image extracted by each down-sampling convolution block is different, and M is greater than 0; for the Kth up-sampling convolution block, the up-sampling convolution block merges the second feature image output by the K-1th up-sampling convolution with the feature image output by the Kth down-sampling convolution block, and uses the result as the feature image input by the up-sampling convolution block; the size of the second feature image extracted by each up-sampling convolution block is different; M≥K; K is a positive integer; the second feature image output by the Mth up-sampling convolution block is used as the feature image of the brain image.
[0028] In a possible implementation manner, the processing module is specifically configured to:
[0029] The characteristic image of the brain image is convolved to determine a probability distribution map of the brain image; the probability distribution map of the brain image is segmented according to a preset threshold; and a pixel block in the probability distribution map of the brain image whose probability is greater than the preset threshold is determined as a lesion area of the brain image.
[0030] In a possible implementation, the brain image is a first region image in the brain image to be identified; and the processing module is further used to:
[0031] The second area image in the brain image to be identified is input into the feature extraction module, and a reference feature image of the brain image to be identified is output; the second area image is symmetrical with the first area image; and the brain lesion area in the first area image is determined based on the feature image and the reference feature image.
[0032] In a third aspect, an embodiment of the present invention provides a device for brain image recognition, comprising at least one processor and at least one memory, wherein the memory unit stores a computer program, and when the program is executed by the processor, the processor executes the steps of the method described in the first aspect.
[0033] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium storing a computer program executable by a brain image recognition device, wherein when the program is run on the brain image recognition device, the brain image recognition device executes the steps of the method described in the first aspect.
[0034] In the embodiment of the present invention, lesion identification is performed through a convolutional neural network model to determine the brain image condition of the user to be tested, without the need for human subjective judgment of the condition based on the brain image, thereby improving the accuracy of brain image recognition on the one hand, and improving the efficiency of brain image recognition on the other. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0036] Figure 1 A schematic diagram of a flow chart of a method for brain image recognition provided by an embodiment of the present invention;
[0037] Figure 2 A schematic diagram of a brain image provided by an embodiment of the present invention;
[0038] Figure 3 A schematic diagram of a brain image recognition method provided by an embodiment of the present invention;
[0039] Figure 4 A schematic diagram of the structure of a brain image recognition device provided by an embodiment of the present invention;
[0040] Figure 5 A schematic diagram of the structure of a brain image recognition device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and beneficial effects of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0042] In the existing technology, the traditional machine learning module is used to extract image features from brain sample images, which is costly and inefficient. It can only predict two types of stroke, hemorrhage or ischemia, and cannot adapt to stroke lesion detection. Or only for MRI input images, convolutional neural networks are used for brain tumor segmentation, which cannot be used for stroke lesion detection. There is currently no relevant algorithm for acute stroke lesion area detection in CT images because it relies heavily on expert experience.
[0043] Based on the above problems, Figure 1 The flowchart of a method for brain image recognition provided by an embodiment of the present invention is exemplarily shown. The flowchart can be executed by a brain image recognition device and specifically includes the following steps:
[0044] Step S101, obtaining a brain image of a user to be detected.
[0045] The brain image may include N frames of brain images, where N is a positive integer. N can be selected as needed and is not limited here.
[0046] Brain images refer to specific images taken with X-rays, such as CT images. They can be three-dimensional images or two-dimensional images. For example, brain images can be as follows: Figure 2 As shown in the left figure.
[0047] After obtaining the brain image of the user to be detected, the brain image may be preprocessed first, and the preprocessing process may mainly include image normalization.
[0048] Image normalization includes the following steps: convert the brain image into a DICOM format image, first select a fixed window width and window position according to the DICOM information, for example, the window width is W=80 and the window position is L=40, and convert it into a PNG format brain image. Interpolate and scale at least N frames of brain images to a fixed size, for example, 512*512 pixels. Before scaling, the aspect ratio of the brain image can also be adjusted to 1:1 by adding black borders on the upper or both sides of the brain image, which is not limited here.
[0049] Step S102, inputting the brain image to be identified into the feature extraction module, and outputting the feature image of the brain image to be identified; the feature image is determined according to feature images of different sizes; the brain image to be identified includes the brain image and the brain image adjacent to the brain image;
[0050] The adjacent brain images may be one brain image or multiple brain images, which is not limited here.
[0051] In order to reduce the amount of calculation of the model, the embodiment of the present invention can use a 2D convolutional neural network. A possible implementation method is as follows: Figure 3As shown, the feature extraction module includes M downsampling convolution blocks and M upsampling convolution blocks in sequence; and may include:
[0052] Step S301, taking the brain image and the brain images adjacent to the brain image as multi-channels, sequentially extracting the first feature image of the brain image through M downsampling convolution blocks, wherein the size of the first feature image extracted by each downsampling convolution block is different, and M is greater than 0;
[0053] For example, the multi-channel may be 3 channels.
[0054] Step S302: for the K-th upsampling convolution block, the upsampling convolution block combines the second feature image output by the K-1-th upsampling convolution block with the feature image output by the K-th downsampling convolution block to serve as the feature image input by the upsampling convolution block; the size of the second feature image extracted by each upsampling convolution block is different; M≥K; K is a positive integer;
[0055] Step S303: Use the second feature image output by the Mth upsampling convolution block as the feature image of the brain image to be identified.
[0056] In a possible implementation, the feature extraction module includes 2M convolution modules; the 2M convolution modules are downsampling convolution blocks and / or upsampling convolution blocks; the sizes of feature images extracted by each downsampling convolution block or upsampling convolution block are different, and each of the 2M convolution modules includes a first convolution layer and a second convolution layer; the number of feature images output by the first convolution layer is less than the number of feature images input by the first convolution layer; the number of feature images output by the second convolution layer is greater than the number of feature images input by the second convolution layer; M is greater than 0;
[0057] For example, the feature extraction module may include three downsampling convolution blocks. Each convolution module may include a first convolution layer and a second convolution layer, wherein the first convolution layer includes a convolution layer, a normalization (BatchNormalization, BN) layer connected to the convolution layer, and an activation function layer connected to the BN layer.
[0058] In order to increase the depth of the feature extraction module, a possible implementation method is that the step of passing the feature image through the convolution module may include:
[0059] Step 1: Input the feature image input by the convolution module to the first convolution layer to obtain a first feature image; the convolution kernel of the first convolution layer can be N1*m*m*N2; N1 is the number of channels of the feature image input by the convolution module, and N2 is the number of channels of the first feature image; N1>N2;
[0060] Step 2: input the first feature image into the second convolution layer to obtain the second feature image; the convolution kernel of the first convolution layer may be N2*m*m*N3; N3 is the number of channels of the second feature image; N3>N2;
[0061] Step three: after merging the feature image input by the convolution module and the second feature image, determine the feature image output by the convolution module.
[0062] In a specific embodiment, the number of feature images output by the second convolutional layer may be equal to the number of feature images input by the first convolutional layer, that is, N1=N2.
[0063] The method for determining the characteristic image corresponding to the brain image described above is only one possible implementation method. In other possible implementation methods, the characteristic image corresponding to the brain image may also be determined by other methods, which are not specifically limited.
[0064] It should be noted that the activation function in the embodiment of the present invention may be various types of activation functions, for example, it may be a rectified linear unit (ReLU), which is not specifically limited;
[0065] Since the input image in the embodiment of the present invention is a two-dimensional image, the feature extraction module in the embodiment of the present invention can be a feature extraction module in a (2Dimensions, 2D) convolutional neural network. Accordingly, the convolution kernel size of the first convolution layer can be m*m, and the convolution kernel size of the second convolution layer can be n*n; m and n can be the same or different, and are not limited here; wherein m and n are integers greater than or equal to 1. The number of feature images output by the first convolution layer is less than the number of feature images input by the first convolution layer; the number of feature images output by the second convolution layer is greater than the number of feature images input by the second convolution layer.
[0066] Furthermore, in order to optimize the feature extraction module, a possible implementation method is that a third convolution layer is included between the first convolution layer and the second convolution layer; the feature image input to the third convolution layer is the image output by the first convolution layer, and the feature image output by the third convolution layer is the image input by the second convolution layer.
[0067] The convolution kernel size of the third convolutional layer may be k*k, where k, m, and n may be the same or different and are not limited here.
[0068] In a specific embodiment, the size of the convolution kernel of the first convolution layer is 3*3; the size of the convolution kernel of the second convolution layer is 3*3; and the size of the convolution kernel of the third convolution layer is 1*1.
[0069] By setting the convolution kernel mentioned above, the receptive field of feature extraction can be effectively improved, which is beneficial to improving the accuracy of brain lesion identification.
[0070] Feature images of different sizes may be feature images of different pixels, for example, a feature image of pixels and a feature image of pixels are feature images of different sizes.
[0071] Optionally, a pre-trained brain lesion detection model is used to extract feature images of different sizes of the brain image to be identified, and the model is determined after training brain images of multiple labeled users using a 2D convolutional neural network.
[0072] Optionally, before extracting feature images of different sizes from the brain image, the brain image is scaled to a specific size so that the ratio between pixels and actual length in each direction is constant.
[0073] In another possible implementation, the feature extraction module includes M downsampling convolution blocks and M upsampling convolution blocks; and the step of obtaining feature images of different sizes of the brain image to be identified includes:
[0074] Extracting M first feature images of the brain images to be identified by sequentially passing the brain images to be identified through M downsampling convolution blocks;
[0075] The first feature image output by the Mth downsampling convolution block is sequentially passed through M upsampling convolution blocks to extract M second feature images of the brain image to be identified, and the size of the second feature image extracted by each upsampling convolution block is different;
[0076] After the first characteristic image and the second characteristic image of the same size are combined, N characteristic images of different sizes of the brain image to be identified are determined.
[0077] In order to improve the receptive field of feature extraction and improve the performance of feature extraction, a possible implementation method is that the feature extraction module also includes a feature preprocessing module before the feature extraction module; the feature preprocessing module includes a convolution layer, a BN layer, a ReLU layer and a pooling layer; the convolution kernel size of the feature preprocessing module is larger than the convolution kernel size of any convolution module in the N convolution modules.
[0078] Preferably, the convolution kernel size of the convolution layer can be 7*7, with an interval of 2 pixels. The pooling layer is 2*2 maximum pooling. Through the feature preprocessing module, the image area can be quickly reduced, and the side length can be reduced to 1 / 4 of the original, effectively improving the receptive field of the feature image, quickly extracting shallow features, and effectively reducing the loss of original information.
[0079] In a possible implementation, the feature preprocessing module includes a plurality of consecutive convolutional layers, a BN layer, a ReLU layer and a pooling layer; the convolution kernel size of the feature preprocessing module is equal to the size of the largest convolution kernel in the N convolution modules.
[0080] Step S103: determining the lesion area of the brain image according to the characteristic image of the brain image.
[0081] like Figure 2 The right figure shows an example of an identified lesion area provided in an embodiment of the present invention.
[0082] It can be seen that the embodiment of the present invention effectively improves the accuracy of brain image recognition through the feature extraction module and inputting adjacent brain images as multi-channels into the feature extraction module for feature extraction. It can reduce the diagnostic error rate caused by differences in doctor levels, thereby improving the accuracy of stroke lesion diagnosis.
[0083] In order to further improve the accuracy of brain lesion recognition, an embodiment of the present invention provides a method for brain image lesion recognition, comprising:
[0084] Step 301: Acquire a brain image, where the brain image is a first region image in the brain image to be identified;
[0085] For example, the first region image may be a brain image of a left brain region; the second region image may be a brain image of a right brain region;
[0086] Step 302: inputting the brain image and the brain images adjacent to the brain image into a feature extraction module to obtain a feature image of the brain image;
[0087] Step 303: inputting the second region image in the brain image to be identified into the feature extraction module, and outputting a reference feature image of the brain image to be identified;
[0088] Wherein, the second region image is symmetrical to the first region image;
[0089] Step 304: determining a brain lesion region in the first region image according to the feature image and the reference feature image;
[0090] Similarly, the brain lesion area in the second area image of the brain image to be identified can be determined based on the second area image of the brain image to be identified and the reference image of the second area image of the brain image (for example, the first area image); and the brain lesions in all areas of the brain image to be identified can be determined based on all brain lesion areas determined from the brain image to be identified.
[0091] By referring to the recognition of the characteristic image, the recognition accuracy in the lesion area in the characteristic image is further improved, the interference of normal brain tissue is avoided, and the lesion detection rate is improved.
[0092] The following is a detailed introduction to the process of determining a brain lesion detection model by training brain images of multiple users with marked brain lesions through a convolutional neural network, including the following steps:
[0093] Step 1: obtain brain images of multiple users as training samples. The brain images here can be multiple selected brain images or a single brain image, which is not limited here.
[0094] Specifically, the multiple brain images obtained can be directly used as training samples, or the multiple brain images obtained can be enhanced to expand the data volume of the training samples. The enhancement operations include but are not limited to: randomly translating a set pixel up, down, left, and right (for example, 0 to 20 pixels), randomly rotating a set angle (for example, -20 to 20 degrees), and randomly scaling a set multiple (for example, 0.8 to 1.2 times).
[0095] Step 2: Manually mark brain lesions in training samples.
[0096] The brain lesions in the training samples can be marked by professionals such as doctors, and the marked content includes the central coordinates of the brain lesions and the diameter of the brain lesions. Specifically, the brain lesions can be marked by multiple doctors, and the final brain lesions and brain lesion parameters are determined by multi-person voting synthesis, and the results are saved in the form of mask images. It should be noted that the enhancement operation of the brain lesions in the manually marked training samples and the training samples is not in order. The brain lesions in the training samples can be manually marked first, and then the training samples with marked brain lesions are enhanced. It is also possible to first perform the enhancement operation on the training samples, and then manually mark the training samples after the enhancement operation.
[0097] Step three: input the training samples into the convolutional neural network for training to determine the brain lesion recognition model.
[0098] The structure of the convolutional neural network includes an input layer, a downsampling convolution block, an upsampling convolution block, a target detection network and an output layer. The training samples are preprocessed and input into the convolutional neural network, and the output probability distribution map and the mask map of the pre-labeled training samples are used to calculate the loss function, and then the back propagation algorithm and the stochastic gradient descent (SGD) optimization algorithm are used to iterate repeatedly to determine the brain lesion detection model.
[0099] Furthermore, the process of extracting feature images of different sizes of the brain image to be identified by using the brain lesion detection model determined by the above training, wherein the feature extraction module sequentially includes M downsampling convolution blocks and M upsampling convolution blocks; comprises the following steps:
[0100] Step 1: taking the brain image and the brain images adjacent to the brain image as multi-channels, extracting the first feature image of the brain image through M downsampling convolution blocks in sequence, wherein the size of the first feature image extracted by each downsampling convolution block is different, and M is greater than 0;
[0101] Step 2: for the K-th upsampling convolution block, the upsampling convolution block combines the second feature image output by the K-1-th upsampling convolution block with the feature image output by the K-th downsampling convolution block, and uses the second feature image as the input feature image of the upsampling convolution block; the size of the second feature image extracted by each upsampling convolution block is different; M≥K; K is a positive integer;
[0102] Step three: using the second feature image output by the Mth upsampling convolution block as the feature image of the brain image to be identified.
[0103] In step S103, a possible implementation manner is to determine the lesion area of the brain image according to the feature image of the brain image to be identified, including:
[0104] Convolving the feature image to determine a probability distribution map of the brain image;
[0105] A lesion area of the brain image is determined according to the probability distribution map of the brain image.
[0106] In a possible implementation, determining the lesion area of the brain image according to the probability distribution map includes:
[0107] Segmenting the probability distribution map of the brain image according to a preset threshold;
[0108] A pixel block whose probability in the probability distribution map of the brain image is greater than the preset threshold is determined as a lesion area of the brain image.
[0109] For example, the probability result can be segmented by a preset threshold, and pixels larger than the preset threshold are retained. The largest connected blocks among all retained pixels are retained as the result of outputting the lesion area.
[0110] Specifically, the following steps may be included: first, Gaussian filtering is used on the probability distribution map of the entire brain image, and the filtering result is binarized. The binarization threshold is obtained by the maximum class spacing method of the image grayscale histogram. Then, the binarized result is expanded and a "seed filling" method (flood fill) is used to obtain independent area blocks, and the area of each area block is counted. The area block with the largest area is retained and determined as the segmented lesion area.
[0111] Another possible implementation method is to determine the characteristic image of the brain image based on characteristic images of different sizes. Specifically, the method of determining characteristic images of different sizes may include:
[0112] Step 1: The brain image to be identified is sequentially passed through M downsampling convolution blocks to extract n*M first feature images of the brain image to be identified, where n is the number of brain images in the brain image to be identified.
[0113] The size of the first feature image extracted by each downsampling convolution block is different, and M is greater than 0.
[0114] Optionally, the downsampling convolution block includes a first convolution layer and a second convolution layer, a group connection layer, a front-back connection layer, and a downsampling layer.
[0115] Step 2: The first feature image output by the Mth downsampling convolution block is sequentially passed through M upsampling convolution blocks to extract the second feature images of n*M brain images.
[0116] The size of the second feature image extracted by each upsampling convolution block is different.
[0117] Optionally, the upsampling convolution block includes a convolution layer, a group connection layer, a front-back connection layer, an upsampling layer, and a synthetic connection layer. The convolution layer includes a convolution operation, a BN layer, and a ReLU layer.
[0118] Step three, after merging the first characteristic image and the second characteristic image of the same size, determine n*M characteristic images of different sizes of the brain images.
[0119] The first feature image and the second feature image of the same size are merged by the synthetic connection layer in the upsampling convolution block to determine feature images of different sizes. Optionally, when merging, the number of channels of the first feature image and the second feature image are merged, and the size of the feature image obtained after merging is the same as the size of the first feature image and the second feature image.
[0120] In step S103, a possible implementation manner is to determine the lesion area of the brain image according to the feature image of the brain image to be identified, including:
[0121] Convolving the feature images of different sizes respectively to determine probability distribution maps corresponding to the feature images of different sizes;
[0122] The lesion area of the brain image is determined according to the probability distribution map.
[0123] By using feature images of different sizes, more information in the brain image to be identified can be obtained, which can further improve the lesion recognition rate.
[0124] Based on the same technical concept, an embodiment of the present invention provides a device for brain image recognition, such as Figure 4 As shown, the device 400 includes:
[0125] The acquisition module 401 is used to acquire the brain image of the user to be detected; the brain image includes N frames of brain images; N is a positive integer;
[0126] The processing module 402 is used to input the brain image to be identified into the feature extraction module, and output the feature image of the brain image to be identified; the feature image is determined according to feature images of different sizes; the brain image to be identified includes the brain image and the brain image adjacent to the brain image; according to the feature image of the brain image to be identified, the lesion area of the brain image is determined.
[0127] In a possible implementation, the feature extraction module includes M downsampling convolution blocks and M upsampling convolution blocks in sequence; the processing module 402 is specifically used to:
[0128] The brain image and the brain images adjacent to the brain image are taken as multi-channels, and the first feature image of the brain image is extracted in sequence through M down-sampling convolution blocks, the size of the first feature image extracted by each down-sampling convolution block is different, and M is greater than 0; for the Kth up-sampling convolution block, the up-sampling convolution block merges the second feature image output by the K-1th up-sampling convolution with the feature image output by the Kth down-sampling convolution block, and uses the result as the feature image input by the up-sampling convolution block; the size of the second feature image extracted by each up-sampling convolution block is different; M≥K; K is a positive integer; the second feature image output by the Mth up-sampling convolution block is used as the feature image of the brain image.
[0129] In a possible implementation, the processing module 402 is specifically configured to:
[0130] The characteristic image of the brain image is convolved to determine a probability distribution map of the brain image; the probability distribution map of the brain image is segmented according to a preset threshold; and a pixel block in the probability distribution map of the brain image whose probability is greater than the preset threshold is determined as a lesion area of the brain image.
[0131] In a possible implementation, the brain image is a first region image in the brain image to be identified; the processing module 402 is further configured to:
[0132] The second area image in the brain image to be identified is input into the feature extraction module, and a reference feature image of the brain image to be identified is output; the second area image is symmetrical with the first area image; and the brain lesion area in the first area image is determined based on the feature image and the reference feature image.
[0133] Based on the same technical concept, the embodiment of the present invention provides a device for brain image recognition, such as Figure 5 As shown, it includes at least one processor 501 and a memory 502 connected to the at least one processor. The specific connection medium between the processor 501 and the memory 502 is not limited in the embodiment of the present invention. Figure 5 For example, the processor 501 and the memory 502 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.
[0134] In the embodiment of the present invention, the memory 502 stores instructions that can be executed by at least one processor 501 , and the at least one processor 501 can execute the steps included in the aforementioned brain image recognition method by executing the instructions stored in the memory 502 .
[0135] Among them, the processor 501 is the control center of the device for brain image recognition, and various interfaces and lines can be used to connect various parts of the device for brain image recognition, and brain image recognition can be realized by running or executing instructions stored in the memory 502 and calling data stored in the memory 502. Optionally, the processor 501 may include one or more processing units, and the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501. In some embodiments, the processor 501 and the memory 502 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.
[0136] The processor 501 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present invention may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0137] The memory 502 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 502 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 502 is any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 502 in the embodiment of the present invention can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0138] Based on the same inventive concept, an embodiment of the present invention also provides a computer-readable medium, which stores a computer program that can be executed by a brain image recognition device. When the program runs on the brain image recognition device, the brain image recognition device executes the steps of the brain image recognition method.
[0139] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0140] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0141] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0142] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0143] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0144] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for brain image recognition, characterized in that: include: Acquire a brain image of a user to be detected; the brain image includes N frames of brain images; N is a positive integer; Inputting a brain image to be identified as a multi-channel into a feature extraction module, and outputting a feature image of the brain image to be identified; the feature image is determined according to feature images of different sizes; the brain image to be identified includes a brain image and at least one frame of a brain image adjacent to the brain image; the feature extraction module sequentially includes M downsampling convolution blocks and M upsampling convolution blocks; Determining a lesion area of the brain image according to the characteristic image of the brain image to be identified; The step of inputting the brain image to be identified as a multi-channel into a feature extraction module and outputting a feature image of the brain image to be identified comprises: The brain image and the brain images of frames adjacent to the brain image are used as multi-channels, and a first feature image of the brain image is extracted through M downsampling convolution blocks in sequence, wherein the size of the first feature image extracted by each downsampling convolution block is different, and M is greater than 0; For the K-th upsampling convolution block, the upsampling convolution block combines the second feature image output by the K-1-th upsampling convolution block with the feature image output by the K-th downsampling convolution block as the feature image input by the upsampling convolution block; the size of the second feature image extracted by each upsampling convolution block is different; M≥K; K is a positive integer; The second feature image output by the Mth upsampling convolution block is used as the feature image of the brain image to be identified.
2. The method according to claim 1, characterized in that Determining the lesion area of the brain image according to the characteristic image of the brain image to be identified includes: Convolving the characteristic image of the brain image to determine a probability distribution map of the brain image; Segmenting the probability distribution map of the brain image according to a preset threshold; A pixel block whose probability in the probability distribution map of the brain image is greater than the preset threshold is determined as a lesion area of the brain image.
3. The method according to claim 1, characterized in that The brain image is a first region image in the brain image to be identified; the method further includes: Inputting a second region image in the brain image to be identified into the feature extraction module, and outputting a reference feature image of the brain image to be identified; the second region image is symmetrical to the first region image; Determining the lesion area of the brain image according to the characteristic image of the brain image to be identified includes: A lesion region in the first region image is determined according to the feature image and the reference feature image.
4. A device for brain image recognition, characterized in that: include: An acquisition unit, used for acquiring a brain image of a user to be detected; the brain image includes N frames of brain images; N is a positive integer; A processing unit, used for inputting a brain image to be identified as a multi-channel into a feature extraction module, and outputting a feature image of the brain image to be identified; the feature image is determined according to feature images of different sizes; the brain image to be identified includes a brain image and brain images of frames adjacent to the brain image; the feature extraction module sequentially includes M downsampling convolution blocks and M upsampling convolution blocks; and according to the feature image of the brain image to be identified, determining a lesion area of the brain image; The processing module is specifically used for: The brain image and the brain images of frames adjacent to the brain image are taken as multi-channels, and the first feature image of the brain image is extracted through M down-sampling convolution blocks in sequence, the size of the first feature image extracted by each down-sampling convolution block is different, and M is greater than 0; for the Kth up-sampling convolution block, the up-sampling convolution block merges the second feature image output by the K-1th up-sampling convolution with the feature image output by the Kth down-sampling convolution block, and uses the result as the feature image input by the up-sampling convolution block; the size of the second feature image extracted by each up-sampling convolution block is different; M≥K; K is a positive integer; the second feature image output by the Mth up-sampling convolution block is used as the feature image of the brain image.
5. The device according to claim 4, characterized in that The processing module is specifically used for: The characteristic image of the brain image is convolved to determine a probability distribution map of the brain image; the probability distribution map of the brain image is segmented according to a preset threshold; and a pixel block in the probability distribution map of the brain image whose probability is greater than the preset threshold is determined as a lesion area of the brain image.
6. The device according to claim 4, characterized in that The brain image is a first region image in the brain image to be identified; the processing module is further used for: The second area image in the brain image to be identified is input into the feature extraction module, and a reference feature image of the brain image to be identified is output; the second area image is symmetrical with the first area image; and the brain lesion area in the first area image is determined based on the feature image and the reference feature image.
7. A device for brain image recognition, characterized in that: The invention comprises at least one processor and at least one memory, wherein the memory unit stores a computer program, and when the program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 3.
8. A computer-readable medium, characterized in that It stores a computer program executable by a brain image recognition device. When the program is run on the brain image recognition device, the brain image recognition device executes the steps of any one of the methods of claims 1 to 3.
