Medical image recognition detection method, device and computer readable storage medium
Through the normalization, noise reduction and enhancement processing of glomerular pathological images, combined with the model training of gradient descent algorithm, the automation of glomerular detection is realized, solving the problems of low efficiency and subjective dependence in clinical diagnosis, and improving the efficiency of glomerular pathology. Detection accuracy and efficiency.
Patent Information
- Application Number
- CN202010069864.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-01-20
AI Technical Summary
In the pathological diagnosis of clinical renal biopsy, doctors observe the pathological morphology and cell proliferation distribution of glomeruli with the naked eye. The efficiency is low and the diagnostic results are easily affected by subjective factors, making it difficult to perform pathological analysis quickly and accurately.
The medical image recognition and detection method is adopted, including obtaining a pathological image set for normalization, noise reduction and enhancement processing, inputting a pre-built pathology detection model for training, and using the gradient descent algorithm to update the weight parameters to achieve automated detection of the images to be detected.
It improves the efficiency and accuracy of glomerular detection, reduces the reliance on doctors' subjective judgment, and enables the intelligent identification of glomerular and other disease detection results from medical images.
Smart Images

Figure CN111275689B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a medical image recognition detection method, device and computer-readable storage medium. Background Art
[0002] With the penetration and application of deep learning in the field of medical imaging, the application of AI technology in medical image analysis can help doctors locate lesions and analyze the condition, and assist doctors in making accurate and rapid diagnoses. At present, in the field of medical imaging, AI applications are mainly concentrated in lung nodules, fundus, breast, etc. With the continuous imaging of AI technology and the increasing clinical demand, AI technology has also been applied in digital pathology diagnosis.
[0003] At present, in the clinical renal biopsy pathological diagnosis process, pathologists use optical microscopes to observe the pathological morphology of glomeruli in pathological slice images, the distribution of cell proliferation in glomeruli, and their own experience to perform pathological analysis and give pathological diagnosis reports. Due to the large number of glomeruli in the slice images, the workload of identifying glomeruli by naked eye observation is extremely large, the efficiency is relatively low, and the diagnosis results are easily affected by the doctor's subjective factors. Summary of the invention
[0004] The present invention provides a medical image recognition detection method, device and computer-readable storage medium, the main purpose of which is to provide an intelligent glomerulus detection solution.
[0005] To achieve the above object, the present invention provides a medical image recognition and detection method, comprising:
[0006] Acquire a pathological image set, perform a normalization operation on the pathological image set, and perform image denoising on the pathological image set after the normalization operation to obtain a standard pathological image set;
[0007] Performing image enhancement processing on the standard pathological image to obtain an enhanced pathological image set;
[0008] Inputting the enhanced pathological image set into a pre-built pathological detection model, obtaining weight parameters of the enhanced pathological image set through forward propagation in the pathological detection model, and updating the weight parameters using a gradient descent algorithm until the pathological detection model converges, thereby obtaining a trained pathological detection model;
[0009] The pathological image to be detected input by the user is received, the pathological image to be detected is detected by the above-mentioned trained pathological detection model, and the detection result is returned to the user.
[0010] Optionally, the normalization operation includes:
[0011] x=(x-μ) / σ
[0012] Wherein, x represents the image data in the pathological image set, μ is the mean of the image data in the pathological image set, and σ is the standard deviation of the image data in the pathological image set.
[0013] Optionally, the image noise reduction processing includes:
[0014]
[0015] Among them, f(x,y) represents the pathological image after denoising, g(x,y) represents the pathological image to be processed, represents the noise variance of the pathological image, represents the mean grayscale value of the pathological image pixels, Represents the variance of pixel grayscale of pathological images.
[0016] Optionally, the weight parameters of the enhanced pathology image set are obtained by forward propagation in the pathology detection model, including:
[0017] After the enhanced pathological image set is subjected to classification branch processing, the foreground points of the enhanced pathological image set are obtained, the frame boundary positions of the foreground points are calculated by a neutral branch algorithm, and the weight parameters of the enhanced pathological image set are calculated according to the frame boundary positions using a predetermined weight parameter calculation formula.
[0018] Optionally, calculating the weight parameter of the enhanced pathological image set according to the border position using a predetermined weight parameter calculation formula includes:
[0019] The weight parameter of the enhanced pathological image set is calculated using the following formula:
[0020]
[0021] Among them, Loss iou represents the weight parameter, l p 、r p ,t p , b p They represent the predicted distance values of the upper, lower, left, and right borders of the foreground points of the enhanced pathological image set, respectively. g 、r g ,t g , b g They respectively represent the actual distance values above, below, left and right of the border of the foreground point of the enhanced pathological image set.
[0022] In addition, to achieve the above-mentioned purpose, the present invention further provides a medical image recognition detection device, which includes a memory and a processor, wherein the memory stores a medical image recognition detection program that can be run on the processor, and when the medical image recognition detection program is executed by the processor, the following steps are implemented:
[0023] Acquire a pathological image set, perform a normalization operation on the pathological image set, and perform image denoising on the pathological image set after the normalization operation to obtain a standard pathological image set;
[0024] Performing image enhancement processing on the standard pathological image to obtain an enhanced pathological image set;
[0025] Inputting the enhanced pathological image set into a pre-built pathological detection model, obtaining weight parameters of the enhanced pathological image set through forward propagation in the pathological detection model, and updating the weight parameters using a gradient descent algorithm until the pathological detection model converges, thereby obtaining a trained pathological detection model;
[0026] The pathological image to be detected input by the user is received, the pathological image to be detected is detected by the above-mentioned trained pathological detection model, and the detection result is returned to the user.
[0027] Optionally, the normalization operation includes:
[0028] x=(x-μ) / σ
[0029] Wherein, x represents the image data in the pathological image set, μ is the mean of the image data in the pathological image set, and σ is the standard deviation of the image data in the pathological image set.
[0030] Optionally, the image noise reduction processing includes:
[0031]
[0032] Among them, f(x,y) represents the pathological image after denoising, g(x,y) represents the pathological image to be processed, represents the noise variance of the pathological image, represents the mean grayscale value of the pathological image pixels, Represents the variance of pixel grayscale of pathological images.
[0033] Optionally, the weight parameters of the enhanced pathology image set are obtained by forward propagation in the pathology detection model, including:
[0034] After the enhanced pathological image set is subjected to classification branch processing, the foreground points of the enhanced pathological image set are obtained, the frame boundary positions of the foreground points are calculated by a neutral branch algorithm, and the weight parameters of the enhanced pathological image set are calculated according to the frame boundary positions using a predetermined weight parameter calculation formula.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a medical image recognition and detection program is stored. The medical image recognition and detection program can be executed by one or more processors to implement the steps of the medical image recognition and detection method as described above.
[0036] The medical image recognition detection method, device and computer-readable storage medium proposed in the present invention, when a user performs glomerulus detection, obtains a pathological image set, normalizes, performs image noise reduction and image enhancement processing on the pathological image set, and can obtain an enhanced pathological cell image set. The enhanced pathological cell image set is used to train a pre-constructed pathological detection model to obtain a trained pathological detection model. The pathological image to be detected is detected according to the trained pathological detection model, and the detection result is returned to the user, thereby realizing intelligent recognition of the detection results of diseases such as glomeruli from medical images. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of a process flow of a medical image recognition and detection method provided by an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of the internal structure of a medical image recognition and detection device provided by an embodiment of the present invention;
[0039] Figure 3 A schematic diagram of modules of a medical image recognition and detection program in a medical image recognition and detection device provided in an embodiment of the present invention.
[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0042] The present invention provides a medical image recognition detection method. Figure 1 FIG. 1 is a flow chart of a medical image recognition and detection method provided by an embodiment of the present invention. The method can be executed by a device, and the device can be implemented by software and / or hardware.
[0043] In this embodiment, the medical image recognition and detection method includes:
[0044] S1. Acquire a pathological image set, perform a normalization operation on the pathological image set, and perform image denoising on the pathological image set after the normalization operation to obtain a standard pathological image set.
[0045] In a preferred embodiment of the present invention, the pathological image set may be, for example, a pathological image of cell proliferation in the glomerulus. The acquisition of the pathological image set in a preferred embodiment of the present invention includes: taking a renal tissue of a preset size, and placing it in a liquid fixative to fix the renal tissue, dehydrating the fixed renal tissue using ethanol of different concentrations, staining the dehydrated renal tissue by Papanicolaou staining, and slicing the stained renal tissue according to preset specifications using a pathological slice scanner, thereby obtaining the pathological image set. Among them, in the present invention, the preset size is 2.0cm*2.0cm*0.3cm renal tissue, the dehydration process is completed by automatic control of the dehydrator, and the preset specification is a pathological image of 1024*1024.
[0046] Furthermore, the normalization of the data is to scale the data so that it falls into a small specific interval. In the embodiment of the present invention, the normalization processing method used in the present invention is the z-score normalization method, and its core idea is as follows:
[0047] x=(x-μ) / σ
[0048] Wherein, x represents the image data in the pathological image set, μ is the mean of the image data in the pathological image set, and σ is the standard deviation of the image data in the pathological image set.
[0049] Furthermore, since the effect of image denoising directly affects the subsequent processing steps and the final recognition result, in the embodiment of the present invention, the pathological image set after the normalization operation is subjected to image denoising by a filtering algorithm to obtain a standard pathological image set. The filtering algorithm includes:
[0050]
[0051] Among them, f(x,y) represents the pathological image after denoising, g(x,y) represents the pathological image to be processed, represents the noise variance of the pathological image, represents the mean grayscale value of the pathological image pixels, Represents the variance of pixel grayscale of pathological images.
[0052] S2. Perform image enhancement processing on the standard pathological image to obtain an enhanced pathological image set.
[0053] Since excessive data enhancement will destroy the distribution of the original data and affect the network training effect, the embodiment of the present invention uses data enhancement technology to perform image enhancement processing on the standard pathology image set. Among them, the data enhancement technology of the present invention includes random flipping and random cropping.
[0054] In detail, the present invention uses the cv2 instruction in the python library to set corresponding flip parameters for the standard pathology image set, so that the standard pathology image set has a 1 / 3 probability of horizontal flipping, vertical flipping, and horizontal and vertical flipping, where cv.flip(img,1) represents a rotation of 180 degrees in the horizontal direction, cv.flip(img,0) represents a rotation of 180 degrees in the vertical direction, and cv.flip(img,-1) represents a rotation of 180 degrees in both the horizontal and vertical directions.
[0055] Furthermore, the present invention uses the randomCrop(image) function to randomly crop the pathological image set after random flipping, so that the size of the cropped pathological image is 2 / 3 of the width and height of the original image. Based on this, the present invention realizes data enhancement of the pathological cell image and obtains the enhanced pathological cell image set.
[0056] S3. Input the enhanced pathology image set into a pre-built pathology detection model, obtain weight parameters of the enhanced pathology image set through forward propagation in the pathology detection model, and update the weight parameters using a gradient descent algorithm until the pathology detection model converges to obtain a trained pathology detection model.
[0057] In a preferred embodiment of the present invention, the pre-constructed kidney proportional glomerulus detection model is implemented based on the Mask R-CNN framework, which is a detection and instance segmentation model framework. The weight parameters of the enhanced pathological image set obtained by forward propagation in the pathological detection model include: obtaining the foreground points of the enhanced pathological image set after classification branch processing of the enhanced pathological image set, calculating the border position of the foreground point by a neutral branch algorithm, and calculating the weight parameters of the enhanced pathological image set according to the border position using a predetermined weight parameter calculation formula.
[0058] The classification branch algorithm includes:
[0059]
[0060] Among them, Centerness represents the border position of the foreground point of the enhanced pathological image set, l p 、r p ,t p 、b pThey respectively represent the predicted distance values of the upper, lower, left and right borders of the foreground points of the enhanced pathological image set.
[0061] The weight parameter calculation formula is:
[0062]
[0063] Among them, Loss iou represents the weight parameter, l p 、r p ,t p 、b p They represent the predicted distance values of the upper, lower, left, and right borders of the foreground points of the enhanced pathological image set, respectively. g 、r g ,t g 、b g They respectively represent the actual distance values above, below, left and right of the border of the foreground point of the enhanced pathological image set.
[0064] Furthermore, the gradient descent algorithm is an optimization algorithm in neural network model training. In order to find the weight parameters to which the pre-constructed pathology detection model tends to converge, it is necessary to update the variables in the direction opposite to the gradient vector of the pre-constructed pathology detection model. This can make the gradient decrease as quickly as possible until the pre-constructed pathology detection model converges, thereby obtaining the pathology detection model after the training is completed.
[0065] S4, receiving the image to be detected input by the user, detecting the image to be detected by using the trained pathology detection model, obtaining the detection result of the image, and returning the detection result to the user.
[0066] In a preferred embodiment of the present invention, an image to be detected input by a user is received, and the image to be detected input by the user is detected according to the pathological detection model after the above training is completed, to obtain the detection result of the image, and the detection result is returned to the user. The detection result includes two types: normal nos and hardened gs.
[0067] The present invention also provides a medical image recognition and detection device. Figure 2 , which is a schematic diagram of the internal structure of a medical image recognition and detection device provided by an embodiment of the present invention.
[0068] In this embodiment, the medical image recognition and detection device 1 can be a PC (Personal Computer), or a terminal device such as a smart phone, a tablet computer, a portable computer, or a server, etc. The medical image recognition and detection device 1 at least includes a memory 11, a processor 12, a communication bus 13, and a network interface 14.
[0069] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 11 can be an internal storage unit of the medical image recognition detection device 1 in some embodiments, such as the hard disk of the medical image recognition detection device 1. The memory 11 can also be an external storage device of the medical image recognition detection device 1 in other embodiments, such as a plug-in hard disk equipped on the medical image recognition detection device 1, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 11 can also include both the internal storage unit of the medical image recognition detection device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the medical image recognition detection device 1, such as the code of the medical image recognition detection program 01, etc., but also can be used to temporarily store data that has been output or is to be output.
[0070] In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 11, such as executing a medical image recognition detection program 01.
[0071] The communication bus 13 is used to realize the connection and communication between these components.
[0072] The network interface 14 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is generally used to establish a communication connection between the device 1 and other electronic devices.
[0073] Optionally, the device 1 may also include a user interface, which may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the medical image recognition and detection device 1 and to display a visual user interface.
[0074] Figure 2Only the medical image recognition and detection device 1 having components 11-14 and the medical image recognition and detection program 01 is shown. It can be understood by those skilled in the art that Figure 1 The structure shown does not constitute a limitation on the medical image recognition and detection device 1, and may include fewer or more components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0075] exist Figure 2 In the embodiment of the device 1 shown, the memory 11 stores a medical image recognition detection program 01; when the processor 12 executes the medical image recognition detection program 01 stored in the memory 11, the following steps are implemented:
[0076] Step 1: Obtain a pathological image set, perform a normalization operation on the pathological image set, and perform image denoising on the pathological image set after the normalization operation to obtain a standard pathological image set.
[0077] The pathological image set obtained in the preferred embodiment of the present invention includes: taking a renal tissue of a preset size, and putting the renal tissue into a liquid fixative to fix the renal tissue, dehydrating the fixed renal tissue using ethanol of different concentrations, staining the dehydrated renal tissue by Papanicolaou staining, and slicing the stained renal tissue according to preset specifications using a pathological slice scanner, thereby obtaining the pathological image set. Among them, in the present invention, the preset size is 2.0cm*2.0cm*0.3cm renal tissue, the dehydration is completed by automatic control of the dehydrator, and the preset specification is a pathological image of 1024*1024.
[0078] Furthermore, the normalization of the data is to scale the data so that it falls into a small specific interval. In the embodiment of the present invention, the normalization processing method used in the present invention is the z-score normalization method, and its core idea is as follows:
[0079] x=(x-μ) / σ
[0080] Wherein, x represents the image data in the pathological image set, μ is the mean of the image data in the pathological image set, and σ is the standard deviation of the image data in the pathological image set.
[0081] Furthermore, since the effect of image denoising directly affects the subsequent processing steps and the final recognition result, in the embodiment of the present invention, the pathological image set after the normalization operation is subjected to image denoising by a filtering algorithm to obtain a standard pathological image set. The filtering algorithm includes:
[0082]
[0083] Among them, f(x,y) represents the pathological image after denoising, g(x,y) represents the pathological image to be processed, represents the noise variance of the pathological image, represents the mean grayscale value of the pathological image pixels, Represents the variance of pixel grayscale of pathological images.
[0084] Step 2: Perform image enhancement processing on the standard pathological image to obtain an enhanced pathological image set.
[0085] Since excessive data enhancement will destroy the distribution of the original data and affect the network training effect, the embodiment of the present invention uses data enhancement technology to perform image enhancement processing on the standard pathology image set. Among them, the data enhancement technology of the present invention includes random flipping and random cropping.
[0086] In detail, the present invention uses the cv2 instruction in the python library to set corresponding flip parameters for the standard pathology image set, so that the standard pathology image set has a 1 / 3 probability of horizontal flipping, vertical flipping, and horizontal and vertical flipping, where cv.flip(img,1) represents a rotation of 180 degrees in the horizontal direction, cv.flip(img,0) represents a rotation of 180 degrees in the vertical direction, and cv.flip(img,-1) represents a rotation of 180 degrees in both the horizontal and vertical directions.
[0087] Furthermore, the present invention uses the randomCrop(image) function to randomly crop the pathological image set after random flipping, so that the size of the cropped pathological image is 2 / 3 of the width and height of the original image. Based on this, the present invention realizes data enhancement of the pathological cell image and obtains the enhanced pathological cell image set.
[0088] Step three: input the enhanced pathology image set into a pre-built pathology detection model, obtain the weight parameters of the enhanced pathology image set through forward propagation in the pathology detection model, and use the gradient descent algorithm to update the weight parameters until the pathology detection model converges to obtain the trained pathology detection model.
[0089] In a preferred embodiment of the present invention, the pre-constructed kidney proportional glomerulus detection model is implemented based on the Mask R-CNN framework, which is a detection and instance segmentation model framework. The weight parameters of the enhanced pathological image set obtained by forward propagation in the pathological detection model include: obtaining the foreground points of the enhanced pathological image set after classification branch processing of the enhanced pathological image set, calculating the border position of the foreground point by a neutral branch algorithm, and calculating the weight parameters of the enhanced pathological image set according to the border position using a predetermined weight parameter calculation formula.
[0090] The classification branch algorithm includes:
[0091]
[0092] Among them, Centerness represents the border position of the foreground point of the enhanced pathological image set, l p 、r p ,t p , b p They respectively represent the predicted distance values of the upper, lower, left and right borders of the foreground points of the enhanced pathological image set.
[0093] The weight parameter calculation formula is:
[0094]
[0095] Among them, Loss iou represents the weight parameter, l p 、r p ,t p , b p They represent the predicted distance values of the upper, lower, left, and right borders of the foreground points of the enhanced pathological image set, respectively. g 、r g ,t g , b g They respectively represent the actual distance values above, below, left and right of the border of the foreground point of the enhanced pathological image set.
[0096] Furthermore, the gradient descent algorithm is the most commonly used optimization algorithm for neural network model training. In order to find the weight parameters to which the pre-constructed pathology detection model tends to converge, it is necessary to update the variables in the direction opposite to the gradient vector of the pre-constructed pathology detection model. This can make the gradient decrease as quickly as possible until the pre-constructed pathology detection model converges, thereby obtaining the pathology detection model after the training is completed.
[0097] Step 4: receiving the image to be detected input by the user, detecting the image to be detected by the trained pathology detection model, and returning the detection result to the user.
[0098] In a preferred embodiment of the present invention, an image to be detected input by a user is received, and the image to be detected input by the user is detected according to the pathological detection model after the above training is completed, to obtain the detection result of the image, and the detection result is returned to the user. The detection result includes two types: normal nos and hardened gs.
[0099] Optionally, in other embodiments, the medical image recognition and detection program can also be divided into one or more modules, one or more modules are stored in the memory 11, and are executed by one or more processors (processor 12 in this embodiment) to complete the present invention. The module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions, which are used to describe the execution process of the medical image recognition and detection program in the medical image recognition and detection device.
[0100] For example, refer to Figure 3 FIG. 1 is a schematic diagram of a program module of a medical image recognition and detection program in an embodiment of a medical image recognition and detection device of the present invention. In this embodiment, the medical image recognition and detection program can be divided into a normalization denoising module 10, an image enhancement module 20, a model training module 30 and a detection module 40. For example:
[0101] The normalization denoising module 10 is used to: acquire a pathological image set, perform a normalization operation on the pathological image set, and perform image denoising processing on the pathological image set after the normalization operation to obtain a standard pathological image set.
[0102] The image enhancement module 20 is used to perform image enhancement processing on the standard pathological image to obtain an enhanced pathological cell image set.
[0103] The model training module 30 is used to: input the enhanced pathology image set into a pre-constructed pathology detection model, obtain the weight parameters of the enhanced pathology image set through forward propagation in the pathology detection model, and use the gradient descent algorithm to update the weight parameters until the pathology detection model converges, thereby obtaining the pathology detection model after training.
[0104] The detection module 40 is used to receive an image to be detected input by a user, detect the image to be detected using the trained pathology detection model, obtain a detection result of the image, and return the detection result to the user.
[0105] The functions or operation steps implemented when the program modules such as the normalization denoising module 10, the image enhancement module 20, the model training module 30 and the detection module 40 are executed are substantially the same as those in the above-mentioned embodiments and will not be repeated here.
[0106] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a medical image recognition and detection program is stored. The medical image recognition and detection program can be executed by one or more processors to implement the following operations:
[0107] Acquire a pathological image set, perform a normalization operation on the pathological image set, and perform image denoising on the pathological image set after the normalization operation to obtain a standard pathological image set;
[0108] Performing image enhancement processing on the standard pathological image to obtain an enhanced pathological image set;
[0109] Inputting the enhanced pathological image set into a pre-built pathological detection model, obtaining weight parameters of the enhanced pathological image set through forward propagation in the pathological detection model, and updating the weight parameters using a gradient descent algorithm until the pathological detection model converges, thereby obtaining a trained pathological detection model;
[0110] The image to be detected is received from the user, the image to be detected is detected by the trained pathology detection model, a detection result of the image is obtained, and the detection result is returned to the user.
[0111] The specific implementation of the computer-readable storage medium of the present invention is basically the same as the above-mentioned embodiments of the medical image recognition and detection device and method, and will not be repeated here.
[0112] It should be noted that the serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0114] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A medical image recognition and detection method, characterized in that: The method comprises: Acquire a pathological image set, perform a normalization operation on the pathological image set, and perform image denoising on the pathological image set after the normalization operation to obtain a standard pathological image set; Setting corresponding flipping parameters for the standard pathology image set so that the standard pathology image set has a probability of 1 / 3 of being flipped horizontally, vertically, and horizontally and vertically, and randomly cropping the standard pathology image set after random flipping so that the size of the cropped standard pathology image is 2 / 3 of the width and height of the original image, thereby obtaining an enhanced pathology image set; Inputting the enhanced pathological image set into a pre-constructed pathological detection model, performing classification and branching processing on the enhanced pathological image set to obtain foreground points of the enhanced pathological image set, calculating the border position of the foreground point by a neutral branch algorithm, and calculating the weight parameter of the enhanced pathological image set according to the border position by using a predetermined weight parameter calculation formula; The formula of the neutral branch algorithm includes: Among them, Centerness represents the border position of the foreground point of the enhanced pathological image set, l p 、r p ,t p 、b p Respectively represent the predicted distance values of the upper, lower, left, and right borders of the foreground points of the enhanced pathological image set; The formula for calculating the weight parameters of the enhanced pathological image set includes: Among them, Loss iou represents the weight parameter, l p 、r p ,t p 、b p They represent the predicted distance values of the upper, lower, left, and right borders of the foreground points of the enhanced pathological image set, respectively. g 、r g ,t g 、b g They represent the actual distance values above, below, left and right of the border of the foreground point of the enhanced pathological image set respectively; The weight parameters are updated by using a gradient descent algorithm until the pathology detection model converges to obtain a trained pathology detection model; The image to be detected input by the user is received, the image to be detected is detected by the trained pathology detection model, a detection result of the image to be detected is obtained, and the detection result is returned to the user.
2. The medical image recognition and detection method according to claim 1, characterized in that: The normalization operation includes: x=(x-μ) / σ Wherein, x represents the image data in the pathological image set, μ is the mean of the image data in the pathological image set, and σ is the standard deviation of the image data in the pathological image set.
3. The medical image recognition and detection method according to claim 1, characterized in that: The image noise reduction process comprises: Among them, f(x,y) represents the pathological image after denoising, g(x,y) represents the pathological image to be processed, represents the noise variance of the pathological image, represents the mean grayscale value of the pathological image pixels, Represents the variance of pixel grayscale of pathological images.
4. A medical image recognition and detection device, characterized in that: The device includes a memory and a processor, wherein the memory stores a medical image recognition and detection program that can be run on the processor, and when the medical image recognition and detection program is executed by the processor, the following steps are implemented: Acquire a pathological image set, perform a normalization operation on the pathological image set, and perform image denoising on the pathological image set after the normalization operation to obtain a standard pathological image set; Setting corresponding flipping parameters for the standard pathology image set so that the standard pathology image set has a probability of 1 / 3 of being flipped horizontally, vertically, and horizontally and vertically, and randomly cropping the standard pathology image set after random flipping so that the size of the cropped standard pathology image is 2 / 3 of the width and height of the original image, thereby obtaining an enhanced pathology image set; Inputting the enhanced pathological image set into a pre-built pathological detection model, After performing classification and branching processing on the enhanced pathological image set, foreground points of the enhanced pathological image set are obtained, the border positions of the foreground points are calculated by a neutral branch algorithm, and the weight parameters of the enhanced pathological image set are calculated according to the border positions using a predetermined weight parameter calculation formula; The formula of the neutral branch algorithm includes: Among them, Centerness represents the border position of the foreground point of the enhanced pathological image set, l p 、r p ,t p 、b p Respectively represent the predicted distance values of the upper, lower, left, and right borders of the foreground points of the enhanced pathological image set; The formula for calculating the weight parameters of the enhanced pathological image set includes: Among them, Loss iou represents the weight parameter, l p 、r p ,t p 、b p They represent the predicted distance values of the upper, lower, left, and right borders of the foreground points of the enhanced pathological image set, respectively. g 、r g ,t g 、b g They represent the actual distance values above, below, left and right of the border of the foreground point of the enhanced pathological image set respectively; The weight parameters are updated by using a gradient descent algorithm until the pathology detection model converges to obtain a trained pathology detection model; The pathological image to be detected input by the user is received, the pathological image to be detected is detected by the above-mentioned trained pathological detection model, and the detection result is returned to the user.
5. The medical image recognition and detection device according to claim 4, characterized in that: The normalization operation includes: x=(x-μ) / σ Wherein, x represents the image data in the pathological image set, μ is the mean of the image data in the pathological image set, and σ is the standard deviation of the image data in the pathological image set.
6. The medical image recognition and detection device according to claim 4, characterized in that: The image noise reduction process comprises: Among them, f(x,y) represents the pathological image after denoising, g(x,y) represents the pathological image to be processed, represents the noise variance of the pathological image, represents the mean grayscale value of the pathological image pixels, Represents the variance of pixel grayscale of pathological images.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a medical image recognition and detection program, which can be executed by one or more processors to implement the steps of the medical image recognition and detection method as described in any one of claims 1 to 3.
