Thyroid section image quality assessment method, device, equipment and storage medium

Through artificial intelligence technology, cell image extraction and quality evaluation of thyroid slice images is solved, and the problem of the impact of impurities in thyroid slice images is achieved, high-precision quality evaluation is achieved, and high-quality thyroid cell slice images are obtained.

CN120070452BActive Publication Date: 2025-07-29SUN YAT SEN MEMORIAL HOSPITAL SUN YAT SEN UNIV +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510550822.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2025-07-29
Estimated Expiration
2045-04-29

AI Technical Summary

Technical Problem

Thyroid slice images contain a large number of impurities, which affects the accuracy of the quality evaluation of the scanning slice image.

Method used

Cell slice images are obtained through a scanner, and cell image extraction is performed using artificial intelligence technology, including blood area cleaning, image segmentation and cropping, identifying cell clumps and impurity information, combining confidence screening and image evaluation models to perform quality evaluation.

Benefits of technology

The accuracy of quality evaluation of thyroid cell section images was improved, and high-quality thyroid cell section images were obtained.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120070452B_ABST
    Figure CN120070452B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method and device, equipment, and storage medium for evaluating the quality of thyroid section images, belonging to the technical field of image processing. The method includes: obtaining a cell section image, where the cell section image is obtained by a scanner scanning a thyroid cell section; extracting cell images from the cell section image to obtain selected cell images; inputting the selected cell images into a preset thyroid cell information detection model for image content detection to obtain cell image content information, where the cell image content information includes cell mass information and image impurity information; inputting the cell mass information and image impurity information into a preset section quality evaluation model for quality evaluation to obtain the thyroid cell quality evaluation result of the cell section image. The embodiment of the present application can accurately evaluate the quality of the scanned section image and obtain high-quality thyroid cell section images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular, to a method and device, equipment, and storage medium for evaluating the quality of thyroid slice images. Background Art

[0002] The thyroid slice image is obtained by scanning the thyroid slice with a scanner, counting the number of cells in the scanned image, and finally evaluating the quality of the thyroid slice based on the cell count result. However, since the thyroid slice contains a large amount of impurities, it affects the accuracy of the quality evaluation of the scanned slice image. Therefore, how to accurately evaluate the quality of the scanned slice image has become an urgent problem to be solved. Summary of the Invention

[0003] The main purpose of the embodiments of this application is to propose a method and device, equipment, and storage medium for evaluating the quality of thyroid slice images, aiming to accurately evaluate the quality of the scanned slice image and obtain a high-quality thyroid cell slice image.

[0004] To achieve the above object, a first aspect of the embodiments of this application proposes a method for evaluating the quality of thyroid slice images, the method including:

[0005] Obtain a cell slice image; wherein, the cell slice image is obtained by scanning a thyroid cell slice with a scanner;

[0006] Extract cell images from the cell slice image to obtain selected cell images;

[0007] Input the selected cell images into a preset thyroid cell information detection model for image content detection to obtain cell image content information; wherein, the cell image content information includes: cell cluster information and image impurity information;

[0008] Input the cell cluster information and the image impurity information into a preset slice quality evaluation model for quality evaluation to obtain the thyroid cell quality evaluation result of the cell slice image.

[0009] In some embodiments, the cell cluster information includes thyroid follicular epithelial cell cluster information and impurity cell cluster information; the inputting the cell cluster information and the image impurity information into a preset slice quality evaluation model for quality evaluation to obtain the thyroid cell quality evaluation result of the cell slice image includes:

[0010] Obtain the confidence of the thyroid follicular epithelial cell cluster information to obtain thyroid follicular epithelial cell cluster confidence information;

[0011] Screen the thyroid follicular epithelial cell mass information according to a preset confidence threshold and the thyroid follicular epithelial cell mass confidence information to obtain selected cell mass information;

[0012] Input the selected cell mass information, the impurity cell mass information, and the image impurity information into the section quality assessment model for cell mass quantity statistics to obtain the number of thyroid cell masses;

[0013] Determine the thyroid cell quality assessment result of the cell section image according to a preset thyroid cell mass determination rule and the number of thyroid cell masses.

[0014] In some embodiments, the extracting cell images from the cell section image to obtain selected cell images includes:

[0015] Clean the blood area in the cell section image through a preset image blood area cleaning model to obtain a cell blood cleaning image;

[0016] Perform binary segmentation on the cell blood cleaning image to obtain a binary cell image;

[0017] Perform image cropping on the binary cell image to obtain selected cell images.

[0018] In some embodiments, the performing binary segmentation on the cell blood cleaning image to obtain a binary cell image includes:

[0019] Obtain the number of pixel points of the cell blood cleaning image, and obtain the pixel gray value of each pixel point in the cell blood cleaning image;

[0020] Classify the multiple pixel gray values according to a preset multiple gray value thresholds to obtain a pixel classification group pair corresponding to each gray value threshold; wherein, the pixel classification group pair includes a first pixel group and a second pixel group;

[0021] Obtain the ratio of each first pixel group to the number of pixel points to obtain a first ratio, and obtain the ratio of each second pixel group to the number of pixel points to obtain a second ratio;

[0022] Perform aggregation calculation on the second pixel group corresponding to each first pixel group, the first ratio, and the second ratio to obtain a pixel variance value of each gray value threshold;

[0023] Obtain the maximum pixel variance value to obtain a segmentation variance value, and obtain the corresponding gray value threshold according to the segmentation variance value to obtain a segmentation threshold;

[0024] Perform image binarization on the cell blood-washed image according to the segmentation threshold to obtain the binarized cell image.

[0025] In some embodiments, the image blood region cleaning model includes a color cleaning sub-model and a morphological cleaning sub-model; the step of cleaning the blood region in the cell section image through a preset image blood region cleaning model to obtain a cell blood-washed image includes:

[0026] Perform color screening on the cell section image through the color cleaning sub-model to obtain a selected color image; wherein, the selected color image represents an image without blood color.

[0027] Perform morphological screening on the selected color image through the morphological cleaning sub-model to obtain the cell blood-washed image; wherein, the cell blood-washed image represents an image without blood morphology.

[0028] In some embodiments, the step of performing image cropping on the binarized cell image to obtain a selected cell image includes:

[0029] Perform image scaling on the binarized cell image according to a preset image scaling ratio to obtain a selected scaled image.

[0030] Perform image cropping on the selected scaled image according to a preset cropping window to obtain the selected cell image.

[0031] In some embodiments, after inputting the cell cluster information and the image impurity information into a preset slice quality evaluation model for quality evaluation to obtain the thyroid cell quality evaluation result of the cell section image, it further includes:

[0032] If the thyroid cell quality evaluation result indicates that the number of thyroid cell clusters conforms to the thyroid cell cluster determination rule, output slice qualified information.

[0033] If the thyroid cell quality evaluation result indicates that the number of thyroid cell clusters does not conform to the thyroid cell cluster determination rule, perform image sliding cropping on the selected scaled image according to a preset sliding window step length and the cropping window to obtain an updated image; input the updated image into the thyroid cell information detection model for image content detection to obtain updated image content information; wherein, the updated image content information includes updated cell cluster information and updated impurity information; input the updated cell cluster information and the updated impurity information into the slice quality evaluation model to perform quality evaluation on the updated image to obtain an updated cell quality evaluation result.

[0034] To achieve the above object, a second aspect of the embodiments of the present application provides a device for evaluating the quality of thyroid slice images, the device comprising:

[0035] An acquisition module, configured to acquire cell slice images; wherein, the cell slice images are obtained by a scanner scanning thyroid cell slices;

[0036] An extraction module, configured to extract cell images from the cell slice images to obtain selected cell images;

[0037] A detection module, configured to input the selected cell images into a preset thyroid cell information detection model for image content detection to obtain cell image content information; wherein, the cell image content information includes: cell mass information and image impurity information;

[0038] An evaluation module, configured to input the cell mass information and the image impurity information into a preset slice quality evaluation model for quality evaluation to obtain the thyroid cell quality evaluation result of the cell slice images.

[0039] To achieve the above object, a third aspect of the embodiments of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the method described in the first aspect when executing the computer program.

[0040] To achieve the above object, a fourth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium storing a computer program, and the computer program implementing the method described in the first aspect when executed by a processor.

[0041] A method, device, equipment, and storage medium for evaluating the quality of thyroid slice images proposed in this application extract cell images from cell slice images obtained by scanning thyroid cell slices with a scanner, extract the image content related to thyroid cells from the cell slice images to obtain selected cell images, thereby excluding interference information in the images and avoiding interference from the interference information in the images on subsequent image processing. Then, the selected cell images are input into a thyroid cell information detection model for image content detection to obtain cell cluster information and image impurity information. Subsequently, the cell cluster information and image impurity information are input into a slice quality evaluation model for quality evaluation, and the quality evaluation result of thyroid cells is obtained. By inputting the image impurity information and cell cluster information into the slice quality evaluation model simultaneously and combining the cell impurity information and cell cluster information to evaluate the quality of thyroid cell slices, the amount of information input to the slice quality model is increased, thereby improving the accuracy of the slice quality evaluation model for evaluating the quality of cell slice images. That is, the method for evaluating the quality of thyroid slice images provided in this disclosure can improve the accuracy of evaluating the quality of scanned slice images and obtain high-quality thyroid cell slice images. Description of the Drawings

[0042] Figure 1 is a flowchart of the method for evaluating the quality of thyroid slice images provided by an embodiment of this application;

[0043] Figure 2 is Figure 1 a flowchart of step S102 in

[0044] Figure 3 is Figure 2 a flowchart of step S201 in

[0045] Figure 4 is Figure 2 a flowchart of step S202 in

[0046] Figure 5 is Figure 2 a flowchart of step S203 in

[0047] Figure 6 is Figure 1 a flowchart of step S104 in

[0048] Figure 7 is a flowchart of the method for evaluating the quality of thyroid slice images provided by another embodiment of this application;

[0049] Figure 8 is a schematic structural diagram of the device for evaluating the quality of thyroid slice images provided by an embodiment of this application;

[0050] Figure 9 is a schematic hardware structure diagram of the electronic device provided by an embodiment of this application;

[0051] Figure 10 is a schematic diagram of image cropping provided by an embodiment of the present application;

[0052] Figure 11 is the overall flowchart of the method for evaluating the quality of thyroid section images provided by an embodiment of the present application. Detailed implementation manners

[0053] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] It should be noted that although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the order in the flowchart. Terms such as "first" and "second" in the specification, claims and the above-mentioned drawings are used to distinguish similar objects and do not have to be used to describe a specific order or sequence.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0056] First, several terms involved in the present application are analyzed:

[0057] Whole Slide Image: It is a high-resolution two-dimensional image of a cell sample obtained by a scanner and is a biomedical image for studying cell structure and function. The whole slide image belongs to the interdisciplinary field of biomedical imaging and cell biology. It is an image obtained by scanning a cell sample to study cell structure and function, used to observe and analyze cell morphology, tissue structure, and pathological changes, and assist in scientific research and medical diagnosis. This technology has important applications in the fields of biomedical research, clinical pathology, cancer research, and drug development.

[0058] Degenerate Cell Mass: It is a cell mass that has lost its normal function and structure and usually changes due to disease or aging. The degenerate cell mass belongs to the research fields of biomedicine and pathology, mainly used to study the cell degeneration mechanism and pathological process, help diagnose and treat various diseases, and has important applications in the fields of clinical pathology, cancer research, neurodegenerative disease research, and regenerative medicine.

[0059] Neutrophil Cluster: A cluster of neutrophils that forms in the body, usually in response to infection or inflammation. Neutrophil clusters belong to the research fields of immunology and pathology and are mainly used to study and understand immune responses and their role in anti-infection and inflammation processes. Neutrophil clusters have important applications in clinical diagnosis, research on infectious diseases, research on inflammatory diseases, and immunotherapy, etc.

[0060] Interstitial Fluid: The liquid component in cell tissues, belonging to the fields of biology and medicine. It contains water, electrolytes, nutrients, and metabolites, etc., and is an important medium for the exchange of substances inside and outside cells. In biology, the study of interstitial fluid helps to understand the influence of the internal and external environments of cells on the functions and metabolism of organisms, as well as the interaction mechanisms between cells. In the medical field, the analysis of interstitial fluid can be used for disease diagnosis, monitoring of physiological states, and evaluation of treatment effects. For example, blood, lymph fluid, and interstitial fluid between cells are all important interstitial fluids.

[0061] Confidence Level: In statistics, it refers to the degree of estimation of the probability of an event occurring. In the fields of data analysis and machine learning, the confidence level is used to measure the confidence of the model in the prediction result. A high confidence level indicates that the model has a high certainty in the prediction result, while a low confidence level indicates that the model has a high uncertainty in the result. In practical applications, the concept of confidence level is widely used in decision-making, risk assessment, and reliability analysis of prediction results, etc.

[0062] Thyroid slice images are obtained by scanning thyroid slices with a scanner, counting the number of cells in the scanned images, and finally evaluating the quality of the thyroid slices based on the cell count results. However, due to the large amount of impurities in thyroid slices, it affects the accuracy of the quality assessment of the scanned slice images. Therefore, how to accurately evaluate the quality of the scanned slice images has become an urgent problem to be solved.

[0063] Based on this, the embodiments of this application provide a method, device, equipment, and storage medium for evaluating the quality of thyroid slice images, aiming to accurately evaluate the quality of the scanned slice images and obtain high-quality thyroid cell slice images.

[0064] The method, device, equipment, and storage medium for evaluating the quality of thyroid slice images provided by the embodiments of this application are specifically described through the following embodiments. First, the method for evaluating the quality of thyroid slice images in the embodiments of this application is described.

[0065] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is a theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results.

[0066] Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technologies mainly include several major directions such as computer vision technology, robotics, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0067] The thyroid slice image quality assessment method provided by the embodiments of the present application relates to the field of image processing technology. The thyroid slice image quality assessment method provided by the embodiments of the present application can be applied to a terminal, or to a server side, or can also be software running on a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, or can also be configured as a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the thyroid slice image quality assessment method, etc., but is not limited to the above forms.

[0068] The present application can be used in many general-purpose or special-purpose computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet-type devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and so on. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in a distributed computing environment where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0069] Figure 1It is an optional flowchart of the thyroid slice image quality assessment method provided by the embodiments of the present application. Figure 1 The method in it may include but is not limited to steps S101 to S104.

[0070] Step S101, obtain a cell slice image; wherein, the cell slice image is obtained by a scanner scanning a thyroid cell slice.

[0071] Step S102, perform cell image extraction on the cell slice image to obtain a selected cell image.

[0072] Step S103, input the selected cell image into a preset thyroid cell information detection model for image content detection to obtain cell image content information; wherein, the cell image content information includes: cell cluster information and image impurity information.

[0073] Step S104, input the cell cluster information and the image impurity information into a preset slice quality assessment model for quality assessment to obtain the thyroid cell quality assessment result of the cell slice image.

[0074] Steps S101 to S104 shown in the embodiments of the present application perform cell image extraction on the cell slice image obtained by scanning the thyroid cell slice by a scanner, extract the image content related to thyroid cells in the cell slice image to obtain a selected cell image, so as to exclude the interference information in the image, avoid the interference of the interference information in the image on the subsequent image processing, and input the selected cell image into the thyroid cell information detection model for image content detection to obtain cell cluster information and image impurity information, and then input the cell cluster information and the image impurity information into the slice quality assessment model for quality assessment, the thyroid cell quality assessment result, input the image impurity information and the cell cluster information into the slice quality assessment model at the same time, and combine the cell impurity information and the cell cluster information to perform quality assessment on the thyroid cell slice, which improves the amount of information input to the slice quality model, thereby improving the quality assessment accuracy of the slice quality assessment model for the cell slice image, that is, the thyroid slice image quality assessment method provided by the present disclosure can improve the quality assessment accuracy of the scanned slice image and obtain a high-quality thyroid cell slice image.

[0075] In step S101 of some embodiments, a thyroid tissue is punctured and sectioned to obtain a thyroid slice, and the thyroid slice is scanned by a scanner to obtain a thyroid cell slice image, that is, the cell slice image.

[0076] Please refer to Figure 2 , in some embodiments, step S102 may include but is not limited to steps S201 to S203:

[0077] Step S201, clean the blood area in the cell section image through a preset image blood area cleaning model to obtain a cell blood cleaning image;

[0078] Step S202, perform binary segmentation on the cell blood cleaning image to obtain a binary cell image;

[0079] Step S203, perform image cropping on the binary cell image to obtain a selected cell image.

[0080] Steps S201 to S203 illustrated in the embodiments of the present application, by performing blood area removal processing on the cell section image, obtain a cell blood cleaning image, avoid interference of the blood area on subsequent quality assessment, perform binary segmentation on the cell blood cleaning image to obtain a binary cell image, adaptively determine the segmentation threshold, accurately extract and segment thyroid cells, remove irrelevant image content in the image, reduce the area that needs to be processed for image processing, improve the speed of quality assessment of thyroid section images, reduce the area that needs to be processed for image processing, and finally perform image cropping on the binary cell image to obtain a selected cell image to obtain the effective area of the binary cell image, thereby accelerating the speed of quality assessment of the cell section image.

[0081] Please refer to Figure 3 , in some embodiments, the image blood area cleaning model includes: a color cleaning sub-model and a morphological cleaning sub-model; Step S201 may include but is not limited to steps S301 to S302:

[0082] Step S301, perform color screening on the cell section image through the color cleaning sub-model to obtain a selected color image; wherein, the selected color image represents an image without blood color;

[0083] Step S302, perform morphological screening on the selected color image through the morphological cleaning sub-model to obtain a cell blood cleaning image; wherein, the cell blood cleaning image represents an image without blood morphology.

[0084] Steps S301 to S302 illustrated in the embodiments of the present application, through the color cleaning sub-model and the morphological cleaning sub-model, remove the blood image in the cell section image, avoid interference of the subsequent blood image on quality assessment, and thus improve the accuracy of quality assessment of the cell section image.

[0085] In step S301 of some embodiments, the image content in the cell section image that matches the blood color is removed by the color cleaning sub-model to obtain a cell blood cleaning image. Since when making a thyroid section, due to the influence of the puncture and section preparation processes, a small amount of blood will be contained in the thyroid section, and the image obtained after passing through the scanner includes a blood area. The blood area in the image is removed to improve the quality of the cell section image and the accuracy of subsequent quality assessment of the cell section image.

[0086] In one embodiment, the color cleaning sub-model is a Mask R-CNN model, which is used to extract the blood in the cell section image according to the blood color. Mask R-CNN is formed by sequentially connecting a preliminary prediction layer, a feature extraction layer, a fully connected classification layer, a bounding box regression layer, and a pixel prediction layer. The preliminary prediction layer is used to slide in the cell section image to generate multiple anchor boxes that may contain blood, and then the feature extraction layer extracts the image features of each anchor box. The fully connected classification layer determines whether the image in each anchor box is a blood image according to the image features to obtain a discrimination result. Furthermore, the bounding box regression layer corrects the boundary of each anchor box containing the blood image through the discrimination result, and then inputs the anchor box with the corrected boundary into the pixel prediction layer to judge each pixel point in the anchor box and output a binary matrix with the same size as the cell section image. The binary matrix represents whether each pixel point in the cell section image is a blood pixel point. According to the binary matrix, each blood pixel point in the cell section image is assigned a value of zero, completing the color screening operation of the cell section image according to the blood color.

[0087] In one embodiment, the color cleaning sub-model is a threshold segmentation model, which is used to perform threshold segmentation on the cell section image according to a preset blood color threshold range. When the pixel point of the cell section image is within the blood color threshold range, the pixel point is set to zero, thereby completing the color screening of the cell section image according to the blood color.

[0088] In step S302 of some embodiments, the selected cell image is obtained by removing the image content in the cell section image that does not conform to the morphology of thyroid cells and conforms to the morphology of blood through the morphology cleaning sub-model.

[0089] In one embodiment, the morphology cleaning sub-model is an edge detection model, which detects and removes the image content in the image that does not conform to the morphology of thyroid cells and conforms to the morphology of blood to obtain a cell blood cleaning image.

[0090] In one embodiment, the morphological cleaning sub-model is an opening operation model, which specifically includes performing an image erosion operation on the selected cell image to obtain an eroded image, and then performing an image dilation operation on the eroded image to obtain a cell blood cleaning image. In the selected cell image, the blood occupies a small part of the area, and the opening operation model can remove small objects in the image and smooth the object boundaries, thereby accurately removing the blood image.

[0091] Please refer to Figure 4 , in some embodiments, step S202 may include but is not limited to steps S401 to S406:

[0092] Step S401, obtain the number of pixel points of the cell blood cleaning image, and obtain the pixel gray value of each pixel point in the cell blood cleaning image;

[0093] Step S402, classify the multiple pixel gray values according to a preset multiple gray value thresholds to obtain a pixel classification pair corresponding to each gray value threshold; wherein, the pixel classification pair includes a first pixel group and a second pixel group;

[0094] Step S403, obtain the ratio of each first pixel group to the number of pixel points to obtain a first ratio, and obtain the ratio of each second pixel group to the number of pixel points to obtain a second ratio;

[0095] Step S404, perform an aggregation calculation on the second pixel group, the first ratio, and the second ratio corresponding to each first pixel group to obtain a pixel variance value for each gray value threshold;

[0096] Step S405, obtain the maximum pixel variance value to obtain a segmentation variance value, and obtain the corresponding gray value threshold according to the segmentation variance value to obtain a segmentation threshold;

[0097] Step S406, perform image binarization processing on the cell blood cleaning image according to the segmentation threshold to obtain a binarized cell image.

[0098] Steps S401 to S406 shown in the embodiments of the present application perform variance processing on the cell blood cleaning image according to a preset multiple gray value thresholds, obtain the gray value threshold with the largest variance as the segmentation threshold, and perform binarization on the cell blood cleaning image according to the segmentation threshold, thereby realizing the adaptive calculation of the pixel points of the image to obtain the optimal segmentation threshold and improving the accuracy of image segmentation.

[0099] In step S401 of some embodiments, the cell blood cleaning image includes multiple pixel points. First, obtain the number of pixel points of the cell blood cleaning image, and then obtain the pixel gray value of each pixel point.

[0100] In step S402 of some embodiments, there are a total of 256 grayscale value thresholds, which are grayscale value thresholds from 0 to 255 respectively. According to each grayscale value threshold, multiple pixel grayscale values are classified to obtain 256 groups of pixel classification teams.

[0101] In one embodiment, if the grayscale value threshold is 232, multiple pixel grayscale values are classified according to 232 to obtain a first pixel group and a second pixel group. Among them, the first pixel group is the set of pixel points less than or equal to 232 in the cell blood cleaning image, and the second pixel group is the set of pixel points greater than 232 in the cell blood cleaning image.

[0102] In one embodiment, if the grayscale value threshold is 200, multiple pixel grayscale values are classified according to 200 to obtain a first pixel group and a second pixel group. Among them, the first pixel group is the set of pixel points less than or equal to 200 in the cell blood cleaning image, and the second pixel group is the set of pixel points greater than 200 in the cell blood cleaning image.

[0103] In step S403 of some embodiments, the number of pixel points in the first pixel group is calculated with the pixel points of the cell blood cleaning image to obtain the proportion of the pixel points in the first pixel group in the pixel points of the cell blood cleaning image, and a first ratio is obtained. Then, the proportion of the pixel points in the second pixel group in the pixel points of the cell blood cleaning image is obtained to obtain a second ratio.

[0104] In step S404 of some embodiments, calculations are performed according to the second pixel group corresponding to the first pixel group, the first ratio, and the second ratio to obtain the pixel variance value of each grayscale value. Among them, the aggregated calculation to obtain the pixel contrast difference is shown in formula (1):

[0105] (1),

[0106] Among them, is the pixel variance value, is the first ratio, is the second ratio, is the average grayscale value of the first pixel group, is the average grayscale value of the second pixel group.

[0107] In step S405 of some embodiments, the maximum pixel variance value is obtained, and the corresponding grayscale value threshold is obtained according to the maximum variance value to obtain the segmentation threshold, thereby completing the adaptive segmentation of the image. There is no need to set the segmentation threshold manually. In this embodiment, the optimal segmentation threshold is adaptively calculated based on the pixel points of the image, improving the accuracy of image segmentation.

[0108] In step S406 of some embodiments, the cell blood washing image is binarized by a segmentation threshold. Pixel points in the cell blood washing image with pixel values greater than or equal to the segmentation threshold are set to 0, and pixel points in the cell blood washing image with pixel values less than the segmentation threshold are set to 1, obtaining a binarized cell image.

[0109] Please refer to Figure 5 , in some embodiments, step S203 includes but is not limited to steps S501 to S502:

[0110] Step S501, image-scaling the binarized cell image according to a preset image scaling ratio to obtain a selected scaled image;

[0111] Step S502, image-cropping the selected scaled image according to a preset cropping window to obtain a selected cell image.

[0112] Steps S501 to S502 illustrated in the embodiments of the present application, by image-scaling the binarized cell image to scale the image to a preset image size, and image-cropping the scaled image to obtain the valid region of the scaled image, without performing full-scale recognition on the image, improving the speed of evaluating the quality of cell slice images.

[0113] In step S501 of some embodiments, the image resolution of the binarized cell image is consistent with the resolution of the cell slice image, and the cell slice image is an image after a thyroid slice is scanned by a scanner. The cells are small in the binarized cell image. Image-enlarging the binarized cell image according to the image scaling ratio facilitates subsequent image content detection and improves the detection accuracy of the thyroid cell information detection model for the selected cell image.

[0114] Please refer to Figure 10 , in step S502 of some embodiments, the cropping window is a cropping size of 1024*1024. First, the image is cropped according to the cropping window to obtain a first selected cell image, and it is determined whether the first selected cell image is a valid region. When the first selected cell image is not a valid region, the cropping window is continuously slid to crop the next selected cell image until the cropped selected cell image is a valid region.

[0115] In step S103 of some embodiments, the selected cell image includes a thyroid cell image and an impurity image. The thyroid cell detection model judges the selected cell image. The thyroid cell detection model first performs image recognition to determine the cell mass image and the impurity image in the selected cell image, then calculates the confidence of each cell mass image to obtain cell mass information, and calculates the confidence of the impurity image to obtain impurity information.

[0116] In one embodiment, the thyroid cell detection model includes a convolutional neural network and a multi-class neural network. The convolutional neural network performs image recognition on the selected cell image to identify the positions of cell clusters and impurities in the selected cell image, and inputs the positions of cell clusters and impurities into the multi-class neural network to obtain the confidence of each cell cluster and the confidence of each impurity.

[0117] In one embodiment, the thyroid cell detection model is a support vector machine model. The selected cell image is input into the support vector machine model, and the support vector machine model classifies the selected cell image based on the pixel values of the selected cell image to obtain an image classification result, and calculates the confidence of the image classification result to obtain the confidence of each cell cluster and the confidence of each impurity.

[0118] Please refer to Figure 6 , in some embodiments, the cell cluster information includes thyroid follicular epithelial cell cluster information and impurity cell cluster information; step S104 includes but is not limited to steps S601 to S604:

[0119] Step S601, obtaining the confidence of the thyroid follicular epithelial cell cluster information to obtain the thyroid follicular epithelial cell cluster confidence information;

[0120] Step S602, screening the thyroid follicular epithelial cell cluster information according to a preset confidence threshold and the thyroid follicular epithelial cell cluster confidence information to obtain the selected cell cluster information;

[0121] Step S603, inputting the selected cell cluster information, impurity cell cluster information, and image impurity information into a slice quality assessment model to perform cell cluster quantity statistics to obtain the thyroid cell cluster quantity;

[0122] Step S604, determining the thyroid cell quality assessment result of the cell slice image according to a preset thyroid cell cluster determination rule and the thyroid cell cluster quantity.

[0123] Steps S601 to S604 shown in the embodiments of the present application obtain the confidence information of thyroid follicular epithelial cell mass information, obtain the confidence information of thyroid follicular epithelial cell mass, and screen the thyroid follicular epithelial cell mass information according to the preset confidence threshold and the confidence information of thyroid follicular epithelial cell mass to obtain the selected cell mass information. Then, the selected cell mass information, impurity cell mass information, and image impurity information are input into the slice quality assessment model for cell mass counting to obtain the number of thyroid cell masses. Thus, by inputting the thyroid follicular epithelial cell mass, impurity cell mass information, and image impurity information with high confidence into the slice quality assessment model for cell mass counting, the accuracy of the statistical quantity of thyroid follicular epithelial cell masses is improved. Further, according to the thyroid cell mass determination rule, the thyroid cell quality assessment result of the number of the thyroid cell masses is accurately determined.

[0124] In step S601 of some embodiments, the evaluation data of the thyroid follicular epithelial cell mass information includes the confidence information of the thyroid follicular epithelial cell mass and the position information of the thyroid follicular epithelial cell mass. The confidence information of the thyroid follicular epithelial cell mass represents the probability that the cell mass is a thyroid follicular epithelial cell mass. The greater the confidence, the greater the probability that the cell mass is a thyroid follicular epithelial cell mass.

[0125] In step S602 of some embodiments, the confidence threshold is the top 10 thyroid follicular epithelial cell masses with the largest confidence. The top 10 confidence information of the thyroid follicular epithelial cell masses is obtained from the multiple confidence information of the thyroid follicular epithelial cell masses, and the corresponding thyroid follicular epithelial cell mass information is obtained to obtain the selected cell mass information. When the number of the confidence information of the thyroid follicular epithelial cell masses is less than 10, zero-padding processing is performed to make the number of the confidence information of the thyroid follicular epithelial cell masses reach 10. Screening the thyroid follicular epithelial cell mass information through the confidence threshold avoids the input of interference information, thereby improving the accuracy of quality assessment.

[0126] It should be noted that the present application does not limit the value of the confidence threshold, and it can be set to other values in other embodiments.

[0127] In step S603 of some embodiments, the impurity cell mass information includes eosinophil mass information, lymphocyte mass information, macrophage mass information, and multinucleated giant cell mass information. In the cell section image, the eosinophil mass information and lymphocyte mass information have a positive effect on the thyroid follicular epithelial cell mass, while the skeletal muscle cell information, ciliated cell information, macrophage mass information, and multinucleated giant cell mass information can be used as screening information to screen the cell masses in the image. The image impurity information includes colloid information and cell degeneration product information. By inputting the selected cell mass information, impurity cell mass information, and image impurity information into the section quality assessment model for cell mass quantity statistics, the input information amount is increased, so that the section quality assessment model can accurately perform quantity statistics on the thyroid follicular epithelial cell mass and obtain the quantity of thyroid cell masses.

[0128] In one embodiment, the section quality assessment model is a decision tree model. The selected cell mass information, impurity cell mass information, and image impurity information are input into the decision tree model, and the quantity of thyroid cell masses is obtained.

[0129] In one embodiment, the section quality assessment model is a DNN model. The quantity of thyroid cell masses is obtained by inputting the selected cell mass information, impurity cell mass information, and image impurity information into the DNN model.

[0130] In step S604 of some embodiments, the thyroid cell mass determination rules include a quantity determination rule and a quality determination rule. The thyroid cell mass determination rule is that the set cell mass threshold is 6 masses. When the quantity of thyroid cell masses is greater than or equal to 6 masses, it is determined that the cell section image is a qualified quality section. The quality determination rule is that when the quantity of thyroid cell masses is less than 6 masses, colloid information is obtained from the image impurity information. If the colloid information in the image is greater than the preset colloid information threshold, it is determined that the cell section image is a qualified quality section. When both the quantity determination rule and the quality determination rule are not met, it is determined that the cell section image is a non-qualified quality section.

[0131] Please refer to Figure 7 , in some embodiments, after step S104, it may further include but is not limited to steps S701 to S702:

[0132] After inputting the cell mass information and the image impurity information into a preset section quality assessment model for quality assessment to obtain the thyroid cell quality assessment result of the cell section image, it further includes:

[0133] Step S701, if the thyroid cell quality assessment result indicates that the quantity of thyroid cell masses conforms to the thyroid cell mass determination rule, output section qualified information;

[0134] Step S702: If the thyroid cell mass assessment result indicates that the number of thyroid cell clusters does not conform to the thyroid cell cluster determination rule, perform image sliding cropping on the selected scaled image according to the preset sliding window step size and cropping window to obtain an updated image; input the updated image into the thyroid cell information detection model for image content detection to obtain updated image content information; wherein, the updated image content information includes cell cluster update information and impurity update information; input the cell cluster update information and the impurity update information into the slice quality assessment model to perform quality assessment on the updated image to obtain an updated cell mass assessment result.

[0135] In steps S701 to S702 illustrated in the embodiments of the present application, when the thyroid cell mass assessment result indicates that the number of thyroid cell clusters conforms to the thyroid cell cluster determination rule, slice qualified information is output; when the thyroid cell mass assessment result indicates that the number of thyroid cell clusters does not conform to the thyroid cell cluster determination rule, perform image sliding cropping on the selected scaled image according to the preset sliding window step size and cropping window to obtain an updated image; input the updated image into the thyroid cell information detection model for image content detection to obtain updated image content information; wherein, the updated image content information includes cell cluster update information and impurity update information; input the cell cluster update information and the impurity update information into the slice quality assessment model to perform quality assessment on the updated image to obtain an updated cell mass assessment result. In this way, it is not necessary to perform full-scale recognition on the cell slice image, and rapid quality assessment of the cell slice image can be achieved.

[0136] In step S701 of some embodiments, when the thyroid cell mass assessment result indicates that the number of thyroid cell clusters conforms to the thyroid cell cluster determination rule, slice qualified information is output.

[0137] In step S702 of some embodiments, when the thyroid cell mass assessment result indicates that the number of thyroid cell clusters does not conform to the thyroid cell cluster determination rule, perform image sliding cropping on the selected scaled image according to the preset sliding window step size and cropping window to obtain an updated image; input the updated image into the thyroid cell information detection model for image content detection to obtain updated image content information; wherein, the updated image content information includes cell cluster update information and impurity update information; input the cell cluster update information and the impurity update information into the slice quality assessment model to perform quality assessment on the updated image to obtain an updated cell mass assessment result.

[0138] In one embodiment, when the evaluation result of the thyroid cell mass indicates that the number of thyroid cell clusters does not conform to the Susonghu thyroid cell cluster determination rule, the selected scaled image is subjected to image sliding cropping according to the sliding window step size and the cropping window to obtain an updated image, and the updated image is input into the thyroid cell information detection model for image content detection to obtain the confidence information of the thyroid follicular epithelial cell clusters in the updated image. Then, the updated image and the corresponding confidence information of the thyroid follicular epithelial cell clusters are added to a preset updated image set. Next, screening is performed according to the confidence information of each thyroid follicular epithelial cell cluster in the updated image set to obtain the top 5 updated images corresponding to the confidence information in the updated image set, and the selected updated image is obtained. Then, the quality of the selected updated image is evaluated. It should be noted that in this embodiment, the specific number of the top 5 updated images corresponding to the confidence information obtained in this application is not specifically limited, and the specific number of images obtained can be set to other values in other scenarios.

[0139] Please refer to Figure 11 , in the embodiment of the present application, after obtaining the cell section image, blood clearance processing is first performed, and the cell section image is cleared of blood from both the color and morphology aspects to obtain a cell blood cleaning image. Then, the cell blood cleaning image is subjected to adaptive binarization processing to obtain the optimal segmentation threshold based on the pixel points of the image, and the cell blood cleaning image is binarized according to the segmentation threshold to obtain a binarized cell image. Then, the binarized image is cropped to obtain a selected cell image, and the selected cell image is input into the thyroid cell detection model for image content detection to obtain the cell cluster information and impurity information in the image. Then, the cell cluster information and impurity information are input into the slice quality evaluation model for quality evaluation to obtain a quality evaluation result, which provides a large amount of image information for the slice quality evaluation model and improves the accuracy of thyroid cell cluster recognition. When the quality evaluation result indicates that the number of thyroid cell clusters in the selected cell image is greater than or equal to the cell cluster threshold, slice qualified information is output. When the quality evaluation result indicates that the number of thyroid cell clusters in the selected cell image is less than the cell cluster threshold, it is determined whether it is the last image block in the binarized image. When it is not the last image block, the next selected cell image is obtained according to the sliding window step size and the cropping window, thus avoiding full-scale recognition of the image and accelerating the speed of image quality evaluation. When it is the last image block, the entire quality evaluation process ends.

[0140] Please refer to Figure 8 , the embodiment of the present application also provides a thyroid slice image quality evaluation device, which can implement the above-mentioned thyroid slice image quality evaluation method. The device includes:

[0141] An acquisition module 801, configured to acquire a cell section image; wherein, the cell section image is obtained by scanning a thyroid cell section by a scanner;

[0142] An extraction module 802, configured to extract cell images from a cell section image to obtain selected cell images;

[0143] A detection module 803, configured to input the selected cell images into a preset thyroid cell information detection model for image content detection to obtain cell image content information; wherein, the cell image content information includes: cell cluster information and image impurity information;

[0144] An evaluation module 804, configured to input the cell cluster information and the image impurity information into a preset section quality evaluation model for quality evaluation to obtain a thyroid cell quality evaluation result of the cell section image.

[0145] The specific implementation manner of the thyroid section image quality evaluation device is basically the same as the specific embodiments of the above-mentioned thyroid section image quality evaluation method, and will not be elaborated herein.

[0146] An embodiment of the present application further provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the above-mentioned thyroid section image quality evaluation method is implemented. The electronic device can be any intelligent terminal including a tablet computer, a vehicle-mounted computer, etc.

[0147] Please refer to Figure 9 , Figure 9 , which schematically shows the hardware structure of an electronic device in another embodiment. The electronic device includes:

[0148] A processor 901, which can be implemented in a general-purpose CPU (Central Processing Unit, central processor), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., and is configured to execute relevant programs to implement the technical solutions provided by the embodiments of the present application;

[0149] A memory 902, which can be implemented in the form of a read-only memory (ReadOnly Memory, ROM), a static storage device, a dynamic storage device, or a random access memory (Random Access Memory, RAM), etc. The memory 902 can store an operating system and other application programs. When implementing the technical solutions provided by the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 902 and are called by the processor 901 to execute the thyroid section image quality evaluation method of the embodiments of the present application;

[0150] An input / output interface 903, configured to implement information input and output;

[0151] A communication interface 904, which is used to implement communication interaction between this device and other devices, can achieve communication through wired means (such as USB, network cable, etc.) or through wireless means (such as mobile network, WIFI, Bluetooth, etc.);

[0152] A bus 905, which transmits information between various components of the device (such as a processor 901, a memory 902, an input / output interface 903, and a communication interface 904);

[0153] Among them, the processor 901, the memory 902, the input / output interface 903, and the communication interface 904 achieve communication connections with each other inside the device through the bus 905.

[0154] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned thyroid slice image quality assessment method is implemented.

[0155] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory can include high-speed random access memory, and can also include non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory can optionally include a memory remotely set relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above-mentioned network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0156] The thyroid slice image quality assessment method, thyroid slice image quality assessment device, device, and storage medium provided by the embodiment of the present application extract cell images from the cell slice images obtained by scanning thyroid cell slices by a scanner, extract the image content related to thyroid cells in the cell slice images to obtain selected cell images, so as to exclude the interference information in the images, avoid the interference of the interference information in the images on subsequent image processing, and input the selected cell images into a thyroid cell information detection model for image content detection to obtain cell mass information and image impurity information, and then input the cell mass information and image impurity information into a slice quality assessment model for quality assessment, the thyroid cell quality assessment result, input the image impurity information and cell mass information into the slice quality assessment model at the same time, and combine the cell impurity information and cell mass information to perform quality assessment on the thyroid cell slice, which improves the amount of information input to the slice quality model, thereby improving the quality assessment accuracy of the slice quality assessment model for cell slice images, that is, the thyroid slice image quality assessment method provided by the present disclosure can improve the quality assessment accuracy of scanned slice images and obtain high-quality thyroid cell slice images.

[0157] The embodiments described in the embodiments of the present application are to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. As can be known to those skilled in the art, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0158] Those skilled in the art can understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or combine certain steps, or different steps.

[0159] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0160] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and their appropriate combinations.

[0161] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0162] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or its similar expression refers to any combination of these items, including any combination of single item (one) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0163] In several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the above division of units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be in electrical, mechanical or other forms.

[0164] The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0165] In addition, in each embodiment of this application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0166] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes: various media that can store programs, such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.

[0167] The preferred embodiments of the embodiments of this application have been described above with reference to the accompanying drawings, which does not limit the scope of the rights of the embodiments of this application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of this application shall be within the scope of the rights of the embodiments of this application.

Claims

1. A method for evaluating the quality of thyroid slice images, characterized in that, The method includes: Obtaining a cell section image; wherein, the cell section image is obtained by scanning a thyroid cell section with a scanner; Cleaning the blood area in the cell section image through a preset image blood area cleaning model to obtain a cell blood-cleaned image; Performing binary segmentation on the cell blood-cleaned image to obtain a binary cell image; Performing image cropping on the binary cell image to obtain a selected cell image; Inputting the selected cell image into a preset thyroid cell information detection model for image content detection to obtain cell image content information; wherein, the cell image content information includes: cell cluster information and image impurity information; the cell cluster information includes thyroid follicular epithelial cell cluster information and impurity cell cluster information; the thyroid follicular epithelial cell cluster information includes thyroid follicular epithelial cell cluster confidence information and thyroid follicular epithelial cell cluster position information; the impurity cell cluster information includes eosinophilic cell cluster information, lymphocyte cluster information, macrophage cluster information, and multinucleated cell cluster information; the image impurity information includes colloid information and cell degeneration product information; Screening the thyroid follicular epithelial cell cluster information according to a preset confidence threshold and the thyroid follicular epithelial cell cluster confidence information to obtain selected cell cluster information; Inputting the thyroid follicular epithelial cell cluster confidence information corresponding to the selected cell cluster information, the thyroid follicular epithelial cell cluster position information corresponding to the selected cell cluster information, the eosinophilic cell cluster information, the lymphocyte cluster information, the macrophage cluster information, the multinucleated cell cluster information, the colloid information, and the cell degeneration product information into a preset slice quality assessment model for cell cluster quantity statistics to obtain the quantity of thyroid cell clusters; Determining the thyroid cell quality assessment result of the cell section image according to a preset thyroid cell cluster determination rule and the quantity of thyroid cell clusters.

2. The method according to claim 1, wherein The performing binary segmentation on the cell blood-cleaned image to obtain a binary cell image includes: Obtaining the number of pixel points of the cell blood-cleaned image, and obtaining the pixel gray value of each pixel point in the cell blood-cleaned image; Classifying the multiple pixel gray values according to a preset plurality of gray value thresholds to obtain a pixel classification pair corresponding to each gray value threshold; wherein, the pixel classification pair includes a first pixel group and a second pixel group; Obtaining the ratio of each first pixel group to the number of pixel points to obtain a first ratio, and obtaining the ratio of each second pixel group to the number of pixel points to obtain a second ratio; Performing an aggregation calculation on the second pixel group corresponding to each first pixel group, the first ratio, and the second ratio to obtain a pixel variance value of each gray value threshold; Obtaining the maximum pixel variance value to obtain a segmentation variance value, and obtaining the corresponding gray value threshold according to the segmentation variance value to obtain a segmentation threshold; Performing image binarization processing on the cell blood-cleaned image according to the segmentation threshold to obtain the binary cell image.

3. The method according to claim 1, characterized in that, The image blood region cleaning model includes a color cleaning sub-model and a morphology cleaning sub-model; the blood region in the cell slice image is cleaned using the preset image blood region cleaning model to obtain a cell blood cleaned image, including: Performing color screening on the cell slice image using the color cleaning sub-model to obtain a selected color image; wherein the selected color image represents an image without blood color; The selected color image is subjected to morphological screening by the morphological cleaning sub-model to obtain the cell-blood cleaned image; wherein the cell-blood cleaned image represents an image without blood morphology.

4. The method according to claim 1, wherein The step of cropping the binarized cell image to obtain a selected cell image includes: Performing image scaling on the binarized cell image according to a preset image scaling ratio to obtain a selected scaled image; The selected zoomed image is cropped according to a preset cropping window to obtain the selected cell image.

5. The method according to claim 4, wherein After inputting the cell cluster information and the image impurity information into a preset slice quality assessment model for quality assessment to obtain a thyroid cell quality assessment result of the cell slice image, the method further includes: If the thyroid cell quality assessment result indicates that the number of thyroid cell clusters meets the thyroid cell cluster determination rule, outputting slice qualification information; If the thyroid cell quality assessment result is characterized by the number of thyroid cell clusters not meeting the thyroid cell cluster determination rule, the selected zoomed image is subjected to image sliding cropping according to a preset sliding window step size and the cropping window to obtain an updated image; the updated image is input into the thyroid cell information detection model for image content detection to obtain updated image content information; wherein, the updated image content information includes cell cluster update information and impurity update information; the cell cluster update information and the impurity update information are input into the slice quality assessment model to perform quality assessment on the updated image to obtain an updated cell quality assessment result.

6. A thyroid slice image quality assessment device, characterized in that: The device comprises: An acquisition module is used to acquire a cell slice image; wherein the cell slice image is obtained by scanning a thyroid cell slice with a scanner; an extraction module, configured to clean the blood region in the cell slice image using a preset image blood region cleaning model to obtain a cell blood cleaned image; performing binary segmentation on the cell blood cleansing image to obtain a binary cell image; performing image cropping on the binarized cell image to obtain a selected cell image; a detection module, configured to input the selected cell image into a preset thyroid cell information detection model for image content detection to obtain cell image content information; wherein the cell image content information includes: cell cluster information and image impurity information; the cell cluster information includes thyroid follicular epithelial cell cluster information and impurity cell cluster information; the thyroid follicular epithelial cell cluster information includes thyroid follicular epithelial cell cluster confidence information and thyroid follicular epithelial cell cluster location information; the impurity cell cluster information includes eosinophil cluster information, lymphocyte cluster information, macrophage cluster information, and multinuclear cell cluster information; the image impurity information includes colloid information and cell degeneration product information; an evaluation module, configured to screen the thyroid follicular epithelial cell cluster information according to a preset confidence threshold and the confidence information of the thyroid follicular epithelial cell cluster to obtain selected cell cluster information; The confidence information of the thyroid follicular epithelial cell cluster corresponding to the selected cell cluster information, the position information of the thyroid follicular epithelial cell cluster corresponding to the selected cell cluster information, the eosinophil cluster information, the lymphocyte cluster information, the macrophage cluster information, the multinuclear cell cluster information, the colloid information, and the cell degeneration product information are input into a preset slice quality assessment model to perform cell cluster number statistics to obtain the number of thyroid cell clusters; The thyroid cell quality assessment result of the cell slice image is determined according to a preset thyroid cell cluster determination rule and the number of the thyroid cell clusters.

7. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the thyroid slice image quality assessment method according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, the method for evaluating thyroid slice image quality according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Cellular pathology image quality evaluation method

    CN114820510A