A method and device for recognizing prostate cancer images
By combining MRI and CT images and using pruning models to identify and risk assess prostate cancer, it solves the problems of detection, segmentation and diagnosis in multi-modal medical images, and improves identification accuracy and diagnostic efficiency.
Patent Information
- Application Number
- CN202410780336.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-18
AI Technical Summary
In the existing technology, the detection, segmentation and diagnosis of lesions in multi-modal medical images have high technical requirements for doctors, are time-consuming and labor-intensive, and lack a model that can simultaneously perform detection, segmentation and diagnosis.
By acquiring MRI and CT images, the pruned first classification model is used for preliminary identification. If the identification result is that there are diseased cells, the MRI and CT images are combined for the second round of identification, the image features are extracted and fused, and the second classification model is used. Obtain risk level information to verify and improve identification results.
It improves the accuracy of the recognition results, reduces the workload of doctors, speeds up diagnosis, and reduces the amount of model parameters through pruning technology, improving the detection speed.
Smart Images

Figure CN118365968B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image recognition, and in particular to a prostate cancer image recognition method and a prostate cancer image recognition device. Background Art
[0002] Prostate cancer (PCa) is a malignant tumor that occurs in the male prostate gland. MRI technology can provide images of different contrasts (i.e., modalities) and is a non-invasive, good soft tissue contrast imaging method. MRI images can provide information such as the shape, size, and location of organs and lesions, and play a key role in disease analysis and diagnosis. The Prostate Imaging-Reporting and Data System (PI-RADS) is a structured reporting protocol for multi-parametric prostate MRI to evaluate suspected prostate cancer in untreated prostate glands.
[0003] Compared with single-modality medical images, multimodal medical images can provide more information about the lesion area and its surrounding areas from multiple levels, and display the characteristics of the lesions from different angles. They have become an important means for patients to diagnose tumors in recent years. However, the detection, segmentation and diagnosis of lesions in multimodal medical images require high technical skills from doctors and are time-consuming and labor-intensive. Using deep learning technology to automatically detect, segment and diagnose lesions in multimodal medical images can reduce the workload of doctors and speed up diagnosis. It has been a research hotspot in the field of medical image segmentation in recent years. However, the existing technology has difficulties in extracting and fusing multimodal medical image features, and lacks a model that can perform detection, segmentation and diagnosis simultaneously.
[0004] Therefore, it is hoped that a technical solution can be provided to solve or at least alleviate the above-mentioned deficiencies of the prior art. Summary of the invention
[0005] The object of the present invention is to provide a prostate cancer image recognition method to solve at least one of the above-mentioned technical problems.
[0006] The present invention provides the following scheme:
[0007] According to one aspect of the present invention, a method for recognizing prostate cancer images is provided, the method comprising:
[0008] Acquire an MRI image to be identified;
[0009] Extracting image features of the MRI image to be identified;
[0010] Obtain the pruned first classification model;
[0011] Inputting the image features into the pruned image recognition model to obtain a recognition result;
[0012] When the identification result is that there are diseased cells, obtaining a CT image to be identified;
[0013] Acquire classification image features according to the CT image to be identified and the MRI image to be identified;
[0014] Obtain the second classification model;
[0015] The classified image features are input into the second classification model to obtain risk level information.
[0016] Optionally, obtaining the pruned first classification model includes:
[0017] Training the first classification model;
[0018] Calculate the L2 norm value of each convolution kernel in the first classification model after training respectively;
[0019] Obtain scatter plots of each convolution kernel of the first classification model according to the L2 norm value of each convolution kernel;
[0020] Set multiple range areas;
[0021] Divide each norm point in the scatter plot of each convolution kernel according to each range area, so as to obtain the number of range areas occupied by each convolution kernel;
[0022] The convolution kernel with the largest number of range areas occupied by each convolution kernel is retained as the first retained convolution kernel;
[0023] Retain each convolution kernel whose number of range areas occupied by each convolution kernel exceeds a first preset threshold as a second reserved convolution kernel and set a first limiting condition for it;
[0024] The convolution kernel with the longest horizontal coordinate length in each scatter plot is retained as the third retained convolution kernel;
[0025] Delete other convolution kernels.
[0026] Optionally, the first limiting condition includes:
[0027] The feature channel dilation of the second convolution kernel is prohibited.
[0028] Optionally, acquiring classification image features according to the CT image to be identified and the MRI image to be identified includes:
[0029] Extracting a feature of the CT image to be identified as a first feature;
[0030] Extracting a feature of the MRI image to be identified as a second feature;
[0031] The first feature and the second feature are fused to obtain a fused feature as a classification image feature.
[0032] Optionally, acquiring classification image features according to the CT image to be identified and the MRI image to be identified further includes:
[0033] The fused features are enhanced to obtain the enhanced fused features as classification image features.
[0034] Optionally, the step of enhancing the fused features to obtain the enhanced fused features as the classified image features includes:
[0035] Two linear Conv convolution modules are used to divide the input fusion features into multiple paths, one linear Conv convolution module corresponds to one path, and each path of divided fusion features is called a branch feature;
[0036] Select one of the branch features to perform linear transformation to obtain the transformation feature;
[0037] Perform Sigmoid activation on the other feature;
[0038] The transformed features are fused with the branch features that undergo Sigmoid activation to serve as the classification image features.
[0039] Optionally, the first classification model is a YOLOv8n model.
[0040] Optionally, the second classification model is a Retina U-Net model.
[0041] The present application also provides a prostate cancer image recognition device, the prostate cancer image recognition device comprising:
[0042] An MRI image to be recognized acquisition module, wherein the MRI image to be recognized acquisition module is used to acquire the MRI image to be recognized;
[0043] An image feature extraction module, wherein the image feature extraction module is used to extract image features of the MRI image to be identified;
[0044] A first classification model acquisition module, wherein the first classification model acquisition module is used to acquire a pruned first classification model;
[0045] An image recognition module, wherein the image recognition module is used to input the image features into the pruned image recognition model to obtain a recognition result;
[0046] A judgment acquisition module, wherein the judgment acquisition module is used to acquire a CT image to be identified when the identification result is determined to contain diseased cells;
[0047] A classification image feature acquisition module, the classification image feature acquisition module is used to acquire classification image features according to the CT image to be identified and the MRI image to be identified;
[0048] A second classification model acquisition module, wherein the second classification model acquisition module is used to acquire a second classification model;
[0049] A risk level acquisition module is used to input the classification image features into the second classification model to obtain risk level information.
[0050] The prostate cancer image recognition method of the present application first performs result recognition through a first classification model. If the result recognition contains diseased cells, a second round of recognition is performed in combination with the CT image to be recognized and the MRI image to be recognized. On the one hand, the recognition result can be made more accurate by fusing features. On the other hand, the result of the first recognition can be further verified by two recognitions. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a flowchart of a prostate cancer image recognition method in one embodiment of the present application.
[0052] Figure 2 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application.
[0053] Figure 3 It is a structural diagram of the first classification model in the prior art.
[0054] Figure 4 It is a scatter plot of L2 norm values based on the L2 norm. The horizontal axis is the network layer number where the convolution kernel is located, and the vertical axis is the L2 norm value of the convolution kernel. The area between each two horizontal lines represents a range. DETAILED DESCRIPTION
[0055] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] Figure 1 It is a flowchart of a prostate cancer image recognition method in one embodiment of the present application.
[0057] like Figure 1The prostate cancer image recognition method shown includes:
[0058] Step 1: Obtain the MRI image to be identified;
[0059] Step 2: extracting image features of the MRI image to be identified;
[0060] Step 3: Obtain the pruned first classification model;
[0061] Step 4: inputting the image features into the pruned image recognition model to obtain a recognition result;
[0062] Step 5: When the identification result is that there are diseased cells, obtaining a CT image to be identified;
[0063] Step 6: Acquire classification image features according to the CT image to be identified and the MRI image to be identified;
[0064] Step 7: Obtain the second classification model;
[0065] Step 8: Input the classified image features into the second classification model to obtain risk level information.
[0066] The prostate cancer image recognition method of the present application first performs result recognition through a first classification model. If the result recognition contains diseased cells, a second round of recognition is performed in combination with the CT image to be recognized and the MRI image to be recognized. On the one hand, the recognition result can be made more accurate by fusing features. On the other hand, the result of the first recognition can be further verified by two recognitions.
[0067] In this embodiment, the reason why a comprehensive judgment is made through the CT image to be identified and the MRI image to be identified only after the MRI model determines that there are diseased cells is because the CT image taken in the early stage of prostate cancer is not obvious, that is, the significance is not strong. If the MRI image to be identified has been determined to have diseased cells, the combination of the CT image to be identified and the MRI image to be identified can, on the one hand, enrich the features, and on the other hand, prevent the situation where the MRI image to be identified cannot be determined, and the CT image to be identified and the MRI image to be identified are directly used in combination, which does not reflect the role of the CT image to be identified.
[0068] See also Figure 3 as well as Figure 4 In this embodiment, obtaining the pruned first classification model includes:
[0069] Training the first classification model;
[0070] Calculate the L2 norm value of each convolution kernel in the first classification model after training respectively;
[0071] Obtain scatter plots of each convolution kernel of the first classification model according to the L2 norm value of each convolution kernel;
[0072] Set multiple range areas;
[0073] Divide each norm point in the scatter plot of each convolution kernel according to each range area, so as to obtain the number of range areas occupied by each convolution kernel;
[0074] The convolution kernel with the largest number of range areas occupied by each convolution kernel is retained as the first retained convolution kernel;
[0075] Retain each convolution kernel whose number of range areas occupied by each convolution kernel exceeds a first preset threshold as a second reserved convolution kernel and set a first limiting condition for it;
[0076] Retain each convolution kernel whose number of range areas occupied by each convolution kernel does not exceed the first preset threshold but exceeds the second preset threshold as a third reserved convolution kernel;
[0077] The convolution kernel with the longest horizontal coordinate length in each scatter plot is retained as the fourth retained convolution kernel;
[0078] Delete other convolution kernels.
[0079] See also Figure 4 In this embodiment, the range area can be set as an interval every 0.25. For example, 0-0.25 is a range area, and 0.25 to 0.5 is a range area.
[0080] See also Figure 3 In this embodiment, the first classification model of the present application is divided into 10 intervals (interval A, interval B, interval C, interval D, interval E, interval F, interval G, interval H, interval I, interval J).
[0081] See also Figure 4 In this embodiment, the convolution kernel corresponding to interval A is the one with the largest number of range areas occupied by various convolution kernels.
[0082] The first preset threshold can be set as needed. For example, in this embodiment, the first preset threshold is 3. Figure 4 It can be seen that the interval E, interval H, and interval I all exceed the first preset threshold, then the convolution kernel corresponding to the interval E, interval H, and interval I is the second retained convolution kernel.
[0083] See also Figure 4In this embodiment, the interval corresponding to the convolution kernel with the longest horizontal coordinate length in the scatter plot is interval C, and the convolution kernel corresponding to interval C is the third retained convolution kernel.
[0084] In this way, in order to solve the problem of parameter redundancy of the original model and the problem that the traditional L2 norm-based weight threshold model pruning method ignores the distribution of weight parameters, the above pruning method is used to prune the original model. By retaining the sparsity of the model to a greater extent, the purpose of retaining the model detection accuracy to a greater extent is achieved.
[0085] In this embodiment, the first limiting condition includes:
[0086] The feature channel dilation of the second convolution kernel is prohibited.
[0087] In this embodiment, acquiring classification image features according to the CT image to be identified and the MRI image to be identified includes:
[0088] Extracting a feature of the CT image to be identified as a first feature;
[0089] Extracting a feature of the MRI image to be identified as a second feature;
[0090] The first feature and the second feature are fused to obtain a fused feature as a classification image feature.
[0091] In this embodiment, the step of acquiring classification image features according to the CT image to be identified and the MRI image to be identified further includes:
[0092] The fused features are enhanced to obtain the enhanced fused features as classification image features.
[0093] In this embodiment, the step of enhancing the fused features to obtain the enhanced fused features as the classified image features includes:
[0094] Two linear Conv convolution modules are used to divide the input fusion features into multiple paths, one linear Conv convolution module corresponds to one path, and each path of divided fusion features is called a branch feature;
[0095] Select one of the branch features to perform linear transformation to obtain the transformation feature;
[0096] Perform Sigmoid activation on the other feature;
[0097] The transformed features are fused with the branch features that undergo Sigmoid activation to serve as the classification image features.
[0098] In this embodiment, different input features are fused to further enhance the current local features of the input.
[0099] In this embodiment, the first classification model is a YOLOv8n model.
[0100] In this embodiment, the second classification model is a Retina U-Net model.
[0101] On the Linux platform Red Hat 4.8.5-28, Python3.6.6 was used to build a network model using the deep learning framework torch1.7.1+cu101. The training Epoch was set to 600 and the Batchsize was set to 8. The other default YOLOv8n parameter settings were used. The existing YOLOv8n model was directly tested using the constructed data set, and the method of this application was used for training and verification. The verification results are shown in the following table:
[0102] Table 1 Model validation results
[0103]
[0104] It can be seen from Table 1 that compared with the original YOLOv8n model, the mAP@0.5-0.95 of the method of this application is improved by 1.1 percentage points, the number of parameters is reduced by about 80%, and the detection speed is 151FPS, which meets the real-time detection requirements.
[0105] The present application also provides a prostate cancer image recognition device, which includes an MRI image acquisition module to be recognized, an image feature extraction module, a first classification model acquisition module, an image recognition module, a judgment acquisition module, a classification image feature acquisition module, a second classification model acquisition module and a risk degree acquisition module, wherein:
[0106] The MRI to-be-recognized image acquisition module is used to acquire the MRI to-be-recognized image;
[0107] The image feature extraction module is used to extract the image features of the MRI image to be identified;
[0108] The first classification model acquisition module is used to obtain the pruned first classification model;
[0109] The image recognition module is used to input the image features into the pruned image recognition model to obtain a recognition result;
[0110] The judgment acquisition module is used to acquire the CT image to be identified when judging that the identification result is that there are diseased cells;
[0111] The classification image feature acquisition module is used to acquire classification image features according to the CT image to be identified and the MRI image to be identified;
[0112] The second classification model acquisition module is used to obtain the second classification model;
[0113] The risk level acquisition module is used to input the classification image features into the second classification model to obtain risk level information.
[0114] Figure 2 It is a structural block diagram of an electronic device provided by one or more embodiments of the present invention.
[0115] like Figure 2 As shown, the present application also discloses an electronic device, including: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the prostate cancer image recognition method.
[0116] The present application also provides a computer-readable storage medium storing a computer program executable by an electronic device. When the computer program runs on the electronic device, the steps of the prostate cancer image recognition method can be implemented.
[0117] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0118] The electronic device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory. The operating system can be any one or more computer operating systems that implement electronic device control through a process, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. In addition, in an embodiment of the present invention, the electronic device can be a handheld device such as a smart phone or a tablet computer, or can be an electronic device such as a desktop computer or a portable computer, which is not particularly limited in the embodiment of the present invention.
[0119] The execution subject of the electronic device control in the embodiment of the present invention may be an electronic device, or a functional module in the electronic device that can call and execute a program. The electronic device may obtain the firmware corresponding to the storage medium. The firmware corresponding to the storage medium is provided by the supplier. The firmware corresponding to different storage media may be the same or different, which is not limited here. After the electronic device obtains the firmware corresponding to the storage medium, the firmware corresponding to the storage medium may be written into the storage medium, specifically, the firmware corresponding to the storage medium may be burned into the storage medium. The process of burning the firmware into the storage medium may be implemented using existing technology, which will not be described in detail in the embodiment of the present invention.
[0120] The electronic device may also obtain a reset command corresponding to the storage medium. The reset command corresponding to the storage medium is provided by the supplier. The reset commands corresponding to different storage media may be the same or different, and are not limited here.
[0121] At this time, the storage medium of the electronic device is a storage medium in which the corresponding firmware is written, and the electronic device can respond to the reset command corresponding to the storage medium in the storage medium in which the corresponding firmware is written, so that the electronic device resets the storage medium in which the corresponding firmware is written according to the reset command corresponding to the storage medium. The process of resetting the storage medium according to the reset command can be implemented by the existing technology and will not be described in detail in the embodiments of the present invention.
[0122] For the convenience of description, the above devices are described in terms of functions and are divided into various units and modules. Of course, when implementing the present application, the functions of each unit and module can be implemented in the same or multiple software and / or hardware.
[0123] Those skilled in the art will appreciate that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined.
[0124] For the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0125] It can be known from the description of the above implementation modes that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server or a network device, etc.) to execute the methods described in the various implementation modes of the present application or certain parts of the implementation modes.
[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A prostate cancer image recognition method, characterized in that: The prostate cancer image recognition method comprises: Acquire an MRI image to be identified; Extracting image features of the MRI image to be identified; Obtain the pruned first classification model; Inputting the image features into the pruned first classification model to obtain a recognition result; When the identification result is that there are diseased cells, obtaining a CT image to be identified; Acquire classification image features according to the CT image to be identified and the MRI image to be identified; Obtain the second classification model; Inputting the classified image features into the second classification model to obtain risk level information; The obtaining of the pruned first classification model comprises: Training the first classification model; Calculate the L2 norm value of each convolution kernel in the first classification model after training respectively; Obtain scatter plots of each convolution kernel of the first classification model according to the L2 norm value of each convolution kernel; Set multiple range areas; Divide each norm point in the scatter plot of each convolution kernel according to each range area, so as to obtain the number of range areas occupied by each convolution kernel; The convolution kernel with the largest number of range areas occupied by each convolution kernel is retained as the first retained convolution kernel; Retain each convolution kernel whose number of range areas occupied by each convolution kernel exceeds a first preset threshold as a second reserved convolution kernel and set a first limiting condition for it; The convolution kernel with the longest horizontal coordinate length in each scatter plot is retained as the third retained convolution kernel; Delete other convolution kernels.
2. The prostate cancer image recognition method according to claim 1, characterized in that: The first limiting condition includes: The feature channel dilation of the second convolution kernel is prohibited.
3. The prostate cancer image recognition method according to claim 2, characterized in that: The acquiring of classification image features according to the CT image to be identified and the MRI image to be identified comprises: Extracting a feature of the CT image to be identified as a first feature; Extracting a feature of the MRI image to be identified as a second feature; The first feature and the second feature are fused to obtain a fused feature as a classification image feature.
4. The prostate cancer image recognition method according to claim 3, characterized in that: The acquiring of classification image features according to the CT image to be identified and the MRI image to be identified further comprises: The fused features are enhanced to obtain the enhanced fused features as classification image features.
5. The prostate cancer image recognition method according to claim 4, characterized in that: The step of enhancing the fused features to obtain the enhanced fused features as the classified image features includes: Two linear Conv convolution modules are used to divide the input fusion features into multiple paths, one linear Conv convolution module corresponds to one path, and each path of divided fusion features is called a branch feature; Select one of the branch features to perform linear transformation to obtain the transformation feature; Perform Sigmoid activation on the other feature; The transformed features are fused with the branch features that undergo Sigmoid activation to serve as the classification image features.
6. The prostate cancer image recognition method according to claim 5, characterized in that: The first classification model is a YOLOv8n model.
7. The prostate cancer image recognition method according to claim 6, characterized in that: The second classification model is a Retina U-Net model.
8. A prostate cancer image recognition device, characterized in that: The prostate cancer image recognition device comprises: An MRI image to be recognized acquisition module, wherein the MRI image to be recognized acquisition module is used to acquire the MRI image to be recognized; An image feature extraction module, wherein the image feature extraction module is used to extract image features of the MRI image to be identified; A first classification model acquisition module, wherein the first classification model acquisition module is used to acquire a pruned first classification model; An image recognition module, wherein the image recognition module is used to input the image features into the pruned first classification model to obtain a recognition result; A judgment acquisition module, wherein the judgment acquisition module is used to acquire a CT image to be identified when the identification result is determined to contain diseased cells; A classification image feature acquisition module, the classification image feature acquisition module is used to acquire classification image features according to the CT image to be identified and the MRI image to be identified; A second classification model acquisition module, wherein the second classification model acquisition module is used to acquire a second classification model; A risk level acquisition module, the risk level acquisition module is used to input the classification image features into the second classification model, so as to obtain risk level information; The obtaining of the pruned first classification model comprises: Training the first classification model; Calculate the L2 norm value of each convolution kernel in the first classification model after training respectively; Obtain scatter plots of each convolution kernel of the first classification model according to the L2 norm value of each convolution kernel; Set multiple range areas; Divide each norm point in the scatter plot of each convolution kernel according to each range area, so as to obtain the number of range areas occupied by each convolution kernel; The convolution kernel with the largest number of range areas occupied by each convolution kernel is retained as the first retained convolution kernel; Retain each convolution kernel whose number of range areas occupied by each convolution kernel exceeds a first preset threshold as a second reserved convolution kernel and set a first limiting condition for it; The convolution kernel with the longest horizontal coordinate length in each scatter plot is retained as the third retained convolution kernel; Delete other convolution kernels.
