A method for diagnosing lesions by mammography

Through weakly supervised learning and multi-instance package technology, the problem of high labeling cost and difficulty in breast cancer screening is solved, three classifications of breast cancer are achieved, and the accuracy and efficiency of early breast cancer screening are improved.

CN117576052BActive Publication Date: 2024-10-11CHINA UNIV OF MINING & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311589761.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2024-10-11
Estimated Expiration
2043-11-27

AI Technical Summary

Technical Problem

Existing breast cancer screening and diagnosis problems include high labeling costs, difficulty in labeling, and the inability to effectively classify breast cancer into three categories. In particular, it is difficult to distinguish early benign lesions from normal tissues.

Method used

The weakly supervised learning method is used to obtain the DDSM breast data set, create a multi-instance package, use a shallow convolutional neural network to build a lesion detection model, use cross-entropy loss and ordered loss functions to optimize the model, select key instances for iterative training, and achieve Three categories of breast cancer.

Benefits of technology

It reduces the difficulty and cost of labeling breast cancer lesions, can identify the specific location and category of lesions, optimizes the learning speed of the lesion detection model, and improves the accuracy of early screening of breast cancer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117576052B_ABST
    Figure CN117576052B_ABST
Patent Text Reader

Abstract

The present invention discloses a mammographic lesion detection method, which is based on a multi-instance breast data set, selects the first K key instances with the smallest cross entropy loss value as the key instances of the key instance package according to a multi-classification cross entropy loss function, updates the parameters of the lesion detection model through an ordered loss function, and iterates and optimizes the training process until the lesion detection model converges. The present invention is a breast cancer detection and recognition method based on uncertain ordered multi-instance learning, which can identify the specific location and category of the lesion only by using the category label of the image, solves the problem that the breast lesion detection in the existing method needs to mark the lesion location in the image, and reduces the difficulty and cost of marking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a mammographic lesion diagnosis method, and belongs to a target detection technology in the field of weak supervision research. Background Art

[0002] Breast Cancer (BC) is one of the most fatal cancers in women, with a high incidence rate, which is usually related to genetics, lifestyle, hormone levels and environmental factors. But in fact, through early detection, early diagnosis and early treatment, the development of breast cancer can also be well controlled. Mammography can well reflect the abnormalities in breast tissue and is currently the simplest and most effective early screening tool for breast cancer. The most common lesions in breast cancer clinics include calcifications and masses. Among them, calcifications appear as small and bright clusters with high contrast, and masses appear as diverse shapes and boundaries. The categories of masses and calcifications are mainly benign and malignant. For masses, due to the different densities of individual breasts, the masses may be hidden in the breast tissue and are difficult to distinguish from normal breast tissue areas. In particular, the benign lesion area is very similar to the normal tissue characteristics of the breast, and it is difficult for doctors to identify the benign lesions in the image by human eyes. However, screening out benign lesions as early as possible plays a key role in preventing the deterioration of breast cancer.

[0003] Traditional breast cancer screening and diagnosis requires doctors to observe abnormalities in breast tissue through manual film reading. However, due to the subjectivity of manual diagnosis and the different levels of experience of doctors, the results of film reading vary greatly. At the same time, manual screening is time-consuming and labor-intensive, and it is easy to miss or misdetect. Therefore, in recent years, breast cancer medical diagnosis technology based on deep learning has also developed rapidly, mainly using target detection models such as FasterRCNN and YOLO to complete the training of mammary X-ray images and achieve end-to-end prediction. However, completing the training of these models requires doctors to manually mark the abnormal lesion areas at the specific location of each image, which is difficult to achieve in real tasks. On the contrary, hospitals provide more category information for each image, rather than the category information of each lesion area in the image.

[0004] Ordered multi-instance learning solves a weakly supervised scenario problem, where the instances in each training bag are not only multi-class, but also have a natural ordered relationship between the classes. Mammographic images can be regarded as bags, and the sub-blocks in the image can be regarded as instances. Most existing methods classify the lesion area of ​​mammographic images as benign or malignant, while ignoring the classification of normal areas in the image. Since the early benign lesion area on mammographic images is very similar to normal tissue, the three classifications of mammographic images are necessary for the screening of early benign lesions. Summary of the invention

[0005] Purpose of the invention: In order to overcome the deficiencies in the prior art, the present invention provides a method for diagnosing lesions in breast X-ray photography, which is intended to solve the problems of high cost and difficulty in labeling breast X-ray photography mentioned in the prior art, and to achieve three-classification of breast cancer using the information of ordered categories in the image.

[0006] Technical solution: To achieve the above purpose, the technical solution adopted by the present invention is:

[0007] A mammographic lesion detection method belongs to a detection and recognition technology of breast lesions in the field of weakly supervised learning; specifically, the method comprises the following steps:

[0008] S1. Obtain the public DDSM breast dataset;

[0009] S2, making the DDSM breast dataset into a multi-instance package and dividing it into a training set and a test set;

[0010] S3, taking the category of the multi-instance package as a pseudo-label for all instances in the multi-instance package;

[0011] S4. Establish a mammography lesion detection model based on a shallow convolutional neural network (e.g., a five-layer convolutional neural network);

[0012] S5, inputting the multi-instance package in the training set into the lesion detection model, calculating the cross entropy loss value of each instance in each multi-instance package, selecting the first K instances with the smallest cross entropy loss value in each multi-instance package as key instances to form a key instance package, taking the category of the multi-instance package as the category of the key instance package, and taking the category of the key instance package as the pseudo-label of all key instances in the key instance package;

[0013] S6, inputting the key instance package into the lesion detection model, calculating the ordered loss value of each key instance in each key instance package, and optimizing the lesion detection model by gradient descent method;

[0014] S7, repeating steps S5 and S6. Before the lesion detection model training is completed, the key instances selected each time will change to some extent. When all the key instances remain unchanged for two consecutive times, it can be considered that the lesion detection model has reached a relatively stable state, that is, the lesion detection model has converged; therefore, if the key instance packages selected from all multi-instance packages in the training set are the same for two consecutive times (the more times, the better), the training of the lesion detection model can be considered completed;

[0015] S8. Send the multi-instance package in the test set to the trained lesion detection model to predict the category of the multi-instance package.

[0016] Specifically, in step S2, the DDSM breast dataset is made into a multi-instance package, including the following steps:

[0017] S21, cropping normal, benign and malignant original images of different sizes in the DDSM breast dataset into N grid blocks with uniform aspect ratio;

[0018] S22, creating folders corresponding to the original images one by one as multi-instance packages of the original images, and using the cropped N grid blocks as instances in the corresponding multi-instance packages;

[0019] S23, preprocessing the instances in the multi-instance package, and then dividing the multi-instance package into a training set and a test set.

[0020] Specifically, in step S23, preprocessing the instances in the multi-instance package includes the following steps:

[0021] S231, for any instance, calculate the ratio of pixel points whose pixel values ​​are lower than the threshold value β1 or higher than the threshold value β2 to all pixel points of the instance: if the obtained ratio exceeds the threshold value γ (generally set to be above 70%), the instance is determined to be a noise instance and filtered out; otherwise, the instance is determined to be a useful instance;

[0022] S232, performing data enhancement on all useful instances in each multi-instance package, and increasing the number of instances in the multi-instance package to N by operations including flipping and rotating;

[0023] S233, unify the sizes of all instances in the multi-instance package to a×a.

[0024] Specifically, in step S5, the multi-instance package in the training set is input into the lesion detection model to predict the category of each instance in the multi-instance package, and the cross entropy loss value of each instance in the multi-instance package is calculated using a cross entropy loss function; the multi-classification cross entropy loss function is:

[0025]

[0026] L in =-c i log(p in )

[0027] in: represents the softmax output of the mth neuron in the last fully connected layer of the lesion detection model for the nth instance in the i-th multi-instance bag; Represents y in_m The softmax output of in_m Indicates that the nth instance in the i-th multi-instance package belongs to category c m The predicted probability, m = 1, 2, ..., M, M represents the total number of categories; L inrepresents the cross entropy loss value of the nth instance in the i-th multi-instance bag; c i represents the category of the i-th multi-instance package, that is, the pseudo label of the n-th instance in the i-th multi-instance package, c i ∈{c m}; p in Represents the output probability distribution of each category predicted for the nth instance in the i-th multi-instance bag.

[0028] Specifically, the lesion detection model includes an input layer, a convolutional layer I, a pooling layer, a convolutional layer II, a fully connected layer I, a fully connected layer II and an output layer which are connected in sequence.

[0029] Specifically, in step S6, the key instance package is input into the lesion detection model, and the ordered loss value of each key instance in each key instance package is calculated using an ordered loss function to optimize the lesion detection model; the ordered loss function is:

[0030]

[0031] Where: L o_ik represents the ordered loss value of the kth key instance in the i-th key instance bag; y ik_m Indicates that the kth key instance in the i-th key instance package belongs to category c m The predicted probability, m = 1, 2, ..., M, M represents the total number of categories; y ik represents the predicted category of the kth key instance in the i-th key instance bag; c i represents the category of the i-th key instance package, that is, the pseudo label of the n-th key instance in the i-th key instance package, c i ∈{c m};|y ik -c i | represents the distance between the predicted category and the pseudo label of the kth key instance in the i-th key instance bag, and α is a hyperparameter that determines the strength of the distance coefficient.

[0032] Specifically, the images in the DDSM breast dataset are grayscale images, and the categories of the multi-instance bag include at least three categories: normal, benign, and malignant.

[0033] Specifically, in step S2, the DDSM breast dataset is made into a multi-instance package, and divided into a training set and a test set; generally, the training set accounts for a larger proportion, and preferably the training set and the test set are divided in a ratio of 8:2.

[0034] Specifically, in step S22, folders corresponding to the original images are created as multi-instance packages of the original images, and the folder names are named using the original image names.

[0035] Beneficial effects: The lesion detection method for breast X-ray photography provided by the present invention is a breast cancer detection and identification method based on uncertain ordered multi-instance learning. The specific location and category of the lesion can be identified only by using the category label of the image, which solves the problem that breast lesion detection in the existing method requires marking the lesion location in the image, and reduces the difficulty and cost of marking; at the same time, the present invention optimizes the parameters of the lesion detection model in an iterative manner, and allows the optimization process of the lesion detection model and the selection process of key instances to promote each other until the optimization of the lesion detection model is completed, thereby accelerating the learning speed of the lesion detection model. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic diagram of the implementation process of the method of the present invention. DETAILED DESCRIPTION

[0037] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0038] like Figure 1 The figure shows a mammographic lesion detection method, which belongs to the detection and identification technology of breast lesions in the field of weakly supervised learning. The following is an explanation of each step based on a specific embodiment.

[0039] S1. Obtain the public DDSM breast dataset.

[0040] The DDSM breast dataset is a database created by a US medical institution specifically for storing breast cancer images. It contains four types of data: normal, benign, benign_without_callback, and cancer. This case requires at least three types of datasets: normal, benign, and cancer. The download process of the DDSM breast dataset is as follows:

[0041] S11. Install winscp software, which can be used for remote ftp download;

[0042] S12. Open the software, select ftp, enter the DDSM website, and log in anonymously;

[0043] S13. Select the / pub / DDSM / cases directory path of the remote database and download all data sets under the normal, benign, and cancer files.

[0044] S14, converting the downloaded LJPEG format image into a PNG format image;

[0045] S15. Move the images of the three categories of normal, benign, and cancer to the folders of the three categories of normal, benign, and malignant respectively; the final DDSM breast dataset consists of all images of the three categories of normal, benign, and malignant, each category has 1700 images, and the sizes of some images are inconsistent.

[0046] S2. The DDSM breast dataset is made into a multi-instance package and divided into a training set and a test set.

[0047] S21, taking normal, benign and malignant breast X-ray images of different sizes in the DDSM breast dataset as original images;

[0048] S22, cropping the original image into N=98 grid blocks with an aspect ratio of 14:7.

[0049] S23, create folders corresponding to the original images as multi-instance packages of the original images, name the folders with the original image names, and use the cropped N=98 grid blocks as instances in the corresponding multi-instance packages. The grid blocks can be named in combination with their positions in the grid and other information (e.g., package name + cropping number, the numerical order of the cropping numbers is arranged from left to right). Finally, there are 1700 multi-instance packages under each category, and each multi-instance package has 98 instances.

[0050] S24. Since the breast in a mammary X-ray image only occupies a portion of the entire image, there are a large number of noise areas (non-breast areas) in the image, and the segmented noise area is much larger than the breast area; therefore, it is necessary to pre-process the multi-instance package to filter out the grid blocks (i.e., useful instances) of the breast area; the specific process is as follows:

[0051] S241, for any instance, calculate the ratio of pixel points with pixel values ​​lower than 90 or higher than 200 to all pixel points of the instance: if the obtained ratio exceeds 90%, the instance is determined to be a noise instance and filtered out; otherwise, the instance is determined to be a useful instance;

[0052] S242, based on the above threshold screening operation, the number of instances in each multi-instance package will no longer be uniform; data enhancement is performed on all useful instances in each multi-instance package, and the number of instances in the multi-instance package is increased to N=98 through operations including flipping and rotating;

[0053] S243, unify the sizes of all instances in the multi-instance package to 224×224;

[0054] S25. Divide all multi-instance packages into training set and test set in a ratio of 8:2. After the division, there are 1360 multi-instance packages in each category in the training set and 340 multi-instance packages in each category in the test set.

[0055] S3. Use the category of the multi-instance bag as a pseudo label for all instances in the multi-instance bag.

[0056] S4. Establish a mammography lesion detection model based on a shallow convolutional neural network.

[0057] The five-layer convolutional neural network of the lesion detection model in this case includes an input layer, a convolution layer I, a pooling layer, a convolution layer II, a fully connected layer I, a fully connected layer II, and an output layer connected in sequence. The input image of the lesion detection model is a grayscale image with a size of 224×224; first, the input image passes through the convolution layer I and the output size becomes 220×220. The convolution layer I consists of a 5×5 convolution kernel and a Relu activation function; then, after passing through the pooling layer, the output size becomes 110×110; then, after passing through the convolution layer II, the output size becomes 108×108. The convolution layer II consists of a 3×3 convolution kernel and a Relu activation function; then, after passing through a fully connected layer I with 500 neurons and a fully connected layer II with 3 neurons, the predicted probability of each category is output. The specific parameter settings of the lesion detection model are shown in Table 1.

[0058] Table 1 Specific parameter settings of the lesion detection model

[0059] Network Layer enter Output Convolution Kernel Step Length filling Parameter quantity Input size 224×224×1 224×224×1 - - - 0 Convolutional Layer I 224×224×1 220×220×10 5×5×10 1 0 260 Relu activation function 220×220×10 220×220×10 - - - 0 Pooling Layer 220×220×10 110×110×10 2×2 2 0 0 Convolutional Layer II 110×110×10 108×108×20 3×3×20 1 0 1,820 Relu activation function 108×108×20 108×108×20 - - - 0 Fully connected layer I 108×108×20 500 - - - 116,640,500 Fully connected layer II 500 3 - - - 1503

[0060] S5. Input the multi-instance package in the training set into the lesion detection model, calculate the cross entropy loss value of each instance in each multi-instance package, select the top K instances with the smallest cross entropy loss value in each multi-instance package as key instances to form a key instance package, use the category of the multi-instance package as the category of the key instance package, and use the category of the key instance package as the pseudo-label of all key instances in the key instance package.

[0061] The multi-classification cross entropy loss function calculates the cross entropy loss between the one-hot encoding of the packet tag of each multi-instance packet and the probability distribution of the instance, expressed as:

[0062]

[0063] L in =-c i log(p in )

[0064] in: represents the softmax output of the mth neuron in the last fully connected layer of the lesion detection model for the nth instance in the i-th multi-instance bag; Represents y in_m The softmax output of in_m Indicates that the nth instance in the i-th multi-instance package belongs to category c m The predicted probability, m = 1, 2, ..., M, M represents the total number of categories; L in represents the cross entropy loss value of the nth instance in the i-th multi-instance bag; c i represents the category of the i-th multi-instance package, that is, the pseudo label of the n-th instance in the i-th multi-instance package, c i ∈{c m}; p in Represents the output probability distribution of each category predicted for the nth instance in the i-th multi-instance bag.

[0065] Compare the size of the cross entropy loss value and sort it, that is, for L i1 ,L i2 ,…,L in ,…,L iN Sort in ascending order and select the first K instances with the smallest cross entropy loss values ​​as key instances.

[0066] S6. Input the key instance package into the lesion detection model, calculate the ordered loss value of each key instance in each key instance package, and optimize the lesion detection model by gradient descent method.

[0067] The ordered loss function is:

[0068]

[0069] Where: L o_ik represents the ordered loss value of the kth key instance in the i-th key instance bag; y ik_m Indicates that the kth key instance in the i-th key instance package belongs to category c m The predicted probability, m = 1, 2, ..., M, M represents the total number of categories; y ik represents the predicted category of the kth key instance in the i-th key instance bag; c i represents the category of the i-th key instance package, that is, the pseudo label of the n-th key instance in the i-th key instance package, c i ∈{c m};|y ik -c i | represents the distance between the predicted category and the pseudo label of the kth key instance in the i-th key instance bag, and α is a hyperparameter that determines the strength of the distance coefficient.

[0070] In this example, the ordered loss function means that the farther the predicted category is from the true category (pseudo-label), the greater the loss should be; otherwise, the loss should be smaller. The categories of breast cancer are ordered, and the loss generated by the predicted category should be positively correlated with the absolute value of the distance from the true category.

[0071] S7, repeating steps S5 and S6 until the key instance packages selected from all multi-instance packages in two consecutive training sets are the same, thus completing the training of the lesion detection model.

[0072] The hyperparameter settings during the iteration process are shown in Table 2.

[0073] Table 2 Experimental parameter settings

[0074] Initial Iteration 0 Iteration rounds 100 Batch size 32 Optimizer Adam Learning Rate 0.0001 Weight decay rate 0.0005 Number of key instances selected 4 Number of GPUs 1 Number of CPUs 16 Number of parallel worker threads 8

[0075] S8. Send the multi-instance package in the test set to the trained lesion detection model to predict the category of the multi-instance package.

[0076] The instances in the test package are sent to the model for prediction. If the instance category prediction in the package shows that there is a malignant category, then the package is in the malignant category; if the instance prediction in the package does not show that there is a malignant category, but there are instances of the benign category, then the package is in the benign category; if all instance categories in the package are predicted to be normal categories, then the package is in the normal category.

[0077] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the present invention in any form, and any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.

Claims

1. A mammographic lesion detection method, characterized in that: The following steps are involved: S1. Obtain the public DDSM breast dataset; S2, making the DDSM breast dataset into a multi-instance package and dividing it into a training set and a test set; S3, taking the category of the multi-instance package as a pseudo-label for all instances in the multi-instance package; S4. Establishing a lesion detection model for mammography based on a shallow convolutional neural network; The multi-instance package in the training set is input into the lesion detection model to predict the category of each instance in the multi-instance package, and the cross entropy loss value of each instance in the multi-instance package is calculated using the cross entropy loss function; the multi-classification cross entropy loss function is: L in =-c i log(p in ) in: represents the softmax output of the mth neuron in the last fully connected layer of the lesion detection model for the nth instance in the i-th multi-instance bag; Represents y in_m The softmax output of in_m Indicates that the nth instance in the i-th multi-instance package belongs to category c m The predicted probability, m = 1, 2, ..., M, M represents the total number of categories; L in represents the cross entropy loss value of the nth instance in the i-th multi-instance bag; c i represents the category of the i-th multi-instance package, that is, the pseudo label of the n-th instance in the i-th multi-instance package, c i ∈{c m }; p in represents the output probability distribution of each category predicted by the nth instance in the i-th multi-instance package; S5, inputting the multi-instance package in the training set into the lesion detection model, calculating the cross entropy loss value of each instance in each multi-instance package, selecting the first K instances with the smallest cross entropy loss value in each multi-instance package as key instances to form a key instance package, taking the category of the multi-instance package as the category of the key instance package, and taking the category of the key instance package as the pseudo-label of all key instances in the key instance package; S6, inputting the key instance package into the lesion detection model, calculating the ordered loss value of each key instance in each key instance package, and optimizing the lesion detection model by gradient descent method; S7, repeating steps S5 and S6 until the key instance packages selected from all multi-instance packages in two consecutive training sets are the same, thus completing the training of the lesion detection model; S8. Send the multi-instance package in the test set to the trained lesion detection model to predict the category of the multi-instance package.

2. The method for detecting lesions by mammography according to claim 1, characterized in that: In step S2, the DDSM breast dataset is made into a multi-instance package, comprising the following steps: S21, cropping the original image in the DDSM breast dataset into N grid blocks with uniform aspect ratio; S22, creating folders corresponding to the original images one by one as multi-instance packages of the original images, and using the cropped N grid blocks as instances in the corresponding multi-instance packages; S23, preprocessing the instances in the multi-instance package, and then dividing the multi-instance package into a training set and a test set.

3. The method for detecting lesions by mammography according to claim 2, characterized in that: In step S23, preprocessing the instances in the multi-instance package includes the following steps: S231, for any instance, calculate the ratio of pixel points whose pixel values ​​are lower than the threshold β1 or higher than the threshold β2 to all pixel points of the instance: if the obtained ratio exceeds the threshold γ, the instance is determined to be a noise instance and filtered out; otherwise, the instance is determined to be a useful instance; S232, performing data enhancement on all useful instances in each multi-instance package, and increasing the number of instances in the multi-instance package to N by operations including flipping and rotating; S233, unify the sizes of all instances in the multi-instance package to a×a.

4. The method for detecting lesions by mammography according to claim 1, characterized in that: The lesion detection model includes an input layer, a convolutional layer I, a pooling layer, a convolutional layer II, a fully connected layer I, a fully connected layer II and an output layer which are connected in sequence.

5. The method for detecting lesions by mammography according to claim 1, characterized in that: In step S6, the key instance package is input into the lesion detection model, and the ordered loss value of each key instance in each key instance package is calculated using an ordered loss function to optimize the lesion detection model; the ordered loss function is: Where: L o_ik represents the ordered loss value of the kth key instance in the i-th key instance bag; y ik_m Indicates that the kth key instance in the i-th key instance package belongs to category c m The predicted probability, m = 1, 2, ..., M, M represents the total number of categories; y ik represents the predicted category of the kth key instance in the i-th key instance bag; c i represents the category of the i-th key instance package, that is, the pseudo label of the n-th key instance in the i-th key instance package, c i ∈{c m };|y ik -c i | represents the distance between the predicted category and the pseudo label of the kth key instance in the i-th key instance bag, and α is a hyperparameter that determines the strength of the distance coefficient.

6. The method for detecting lesions by mammography according to claim 1, characterized in that: The images in the DDSM breast dataset are grayscale images, and the categories of the multi-instance bag include at least three categories: normal, benign, and malignant.

7. The method for detecting lesions by mammography according to claim 1, characterized in that: In the step S2, the DDSM breast dataset is prepared into a multi-instance package, and the training set and the test set are divided into a ratio of 8:

2.

8. The method for detecting lesions by mammography according to claim 1, characterized in that: In the step S22, folders corresponding to the original images are created as multi-instance packages of the original images, and the folders are named using the names of the original images.