Thyroid nodule boundary clarity detection method, system, electronic device and medium

Through the combination of Thy-Enet deep neural network and multi-layer perceptron model, the aspect ratio, inner and outer ring difference and four-part intensity difference encoding are used to solve the problem of inaccuracy in judging the boundary clarity of thyroid nodules in ultrasound images, and achieve a more accurate High accuracy and applicability.

CN117333435BActive Publication Date: 2024-08-30TEND.AI MEDICAL TECHNOLOGY (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311196676.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-15
Publication Date
2024-08-30
Estimated Expiration
2043-09-15

AI Technical Summary

Technical Problem

The existing technology has inaccuracies in judging the boundary clarity of thyroid nodules in ultrasound images. It relies on a single imaging measurement index and doctor's experience, making it difficult to form specific standards. In addition, the resolution of ultrasound images is limited and the speckle noise has a large impact.

Method used

Using the Thy-Enet deep neural network combined with the multi-layer perceptron model, through aspect ratio coding, inner and outer ring difference coding and four-part intensity difference coding, the clarity features of the thyroid nodule boundary are extracted to assist doctors in making judgments and improve the clarity of the nodule boundary. degree of accuracy.

Benefits of technology

It improves the accuracy of thyroid nodule boundary definition results, enhances sonographers' ability to evaluate nodule boundary definition, is suitable for ultrasound images of different qualities and sources, and reduces dependence on thresholds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117333435B
    Figure CN117333435B
Patent Text Reader

Abstract

The present invention discloses a method, system, electronic device and medium for detecting the clarity of the boundary of a thyroid nodule, and relates to the field of image processing technology. The method comprises: calculating the aspect ratio coding according to the width and height of the circumscribed rectangle of the boundary of the thyroid nodule marked in the target thyroid nodule ultrasound picture; calculating the inner and outer ring difference coding according to the intensity mean of the outer ring image and the inner ring image; dividing the outer ring image and the inner ring image into four parts; obtaining the four-partition intensity difference coding according to the intensity mean of the outer ring image and the inner ring image after each division; inputting the preprocessed image into the trained Thy-Enet deep neural network to obtain the probability that the boundary of the thyroid nodule is clear; inputting the aspect ratio coding, the inner and outer ring difference coding, the four-partition intensity difference coding and the probability that the boundary of the thyroid nodule is clear into the trained multi-layer perceptron model to obtain the judgment result of the boundary of the thyroid nodule. The present invention can improve the accuracy of the result of the clarity of the boundary of the thyroid nodule.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method, system, electronic equipment and medium for detecting the boundary clarity of a thyroid nodule. Background Art

[0002] Thyroid nodules are one of the most common thyroid problems. Ultrasound imaging can quickly and accurately detect and locate thyroid nodules. Thyroid nodules can be detected in more than 20% of the population through ultrasound examination. Based on the ultrasound images of the nodule cross-section, the physician can judge the nature and development expectations of the nodule, and then formulate a subsequent diagnosis and treatment plan. Among the ultrasonic characteristics of the nodule, the clarity of the nodule boundary is one of the important indicators. Nodules with clear boundaries are often associated with benign nodules, while nodules with unclear boundaries are often invasive and may develop into malignant tumors, or already have the characteristics of malignant tumors.

[0003] Ultrasound images have limited resolution and inherent speckle noise. It is difficult to judge the clarity of nodule boundaries in ultrasound images. It is highly dependent on the doctor's experience and it is difficult to form a specific standard. However, methods based on computer image processing and computer vision can characterize image clarity and assist physicians in making judgments by setting thresholds. However, existing methods are often based on only a single imaging measurement indicator and do not refer to the doctor's actual judgment experience. Therefore, the ability to measure nodule clarity is limited, making the final clarity result inaccurate. Summary of the invention

[0004] The purpose of the present invention is to provide a thyroid nodule boundary clarity detection method, system, electronic equipment and medium, which can improve the accuracy of thyroid nodule boundary clarity results.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A method for detecting the boundary clarity of a thyroid nodule, comprising:

[0007] Obtaining an ultrasound image of a target thyroid nodule; the ultrasound image of the target thyroid nodule is marked with a boundary of the thyroid nodule in the form of dots;

[0008] Taking a circumscribed rectangle for the thyroid nodule boundary marked in the target thyroid nodule ultrasound image, and calculating the aspect ratio code of the target thyroid nodule ultrasound image according to the width and height of the circumscribed rectangle;

[0009] The circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image is expanded and retracted respectively to obtain an expanded boundary and an retracted boundary; the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image is obtained by sequentially connecting all points in the thyroid nodule boundary marked in the target thyroid nodule ultrasound image in a counterclockwise or clockwise direction;

[0010] The inner and outer ring difference codes of the target thyroid nodule ultrasound image are calculated according to the intensity mean of the outer ring image and the intensity mean of the inner ring image; the outer ring image is the target thyroid nodule ultrasound image between the outward expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image; the inner ring image is the target thyroid nodule ultrasound image between the inward expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image;

[0011] Divide the outer ring image and the inner ring image equally into four parts according to the same segmentation method to obtain four divided outer ring images and four divided inner ring images;

[0012] Obtaining a four-region intensity difference code of the target thyroid nodule ultrasound image according to the intensity mean of each segmented outer ring image and the intensity average of each segmented inner ring image;

[0013] Input the preprocessed image into the trained Thy-Enet deep neural network to obtain the probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; the preprocessed image is the target thyroid nodule ultrasound image within the target circumscribed rectangle after expansion; the target circumscribed rectangle after expansion is obtained by expanding the circumscribed rectangle of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image; the Thy-Enet deep neural network includes an input layer, an EfficientNetV2B0 skeleton layer, a global pooling layer, a loss layer and a Sigmoid function connected in sequence;

[0014] Input the aspect ratio coding of the target thyroid nodule ultrasound image, the inner and outer ring difference coding of the target thyroid nodule ultrasound image, the four-region intensity difference coding of the target thyroid nodule ultrasound image, and the probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear into the trained multi-layer perceptron model to obtain the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear;

[0015] A judgment result of the thyroid nodule boundary of the target thyroid nodule ultrasound image is obtained according to the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; the judgment result is clear or unclear.

[0016] Optionally, calculating the aspect ratio encoding of the target thyroid nodule ultrasound image according to the width of the circumscribed rectangle and the height of the circumscribed rectangle specifically includes:

[0017] Calculate the ratio of the height of the circumscribed rectangle to the width of the circumscribed rectangle to obtain the aspect ratio;

[0018] The aspect ratio code of the target thyroid nodule ultrasound image is obtained according to the aspect ratio.

[0019] Optionally, calculating the inner and outer ring difference coding of the target thyroid nodule ultrasound image according to the intensity mean of the outer ring image and the intensity mean of the inner ring image specifically includes:

[0020] The absolute value of the difference between the intensity mean of the outer ring image and the intensity mean of the inner ring image is calculated to obtain the inner and outer ring difference code of the target thyroid nodule ultrasound image.

[0021] Optionally, the outer ring image and the inner ring image are equally divided into four parts according to the same segmentation method to obtain four-part outer ring images and four-part inner ring images, specifically including:

[0022] Taking the center of the outer ring image as the origin, counterclockwisely divide the outer ring image into four equal parts according to the angular coordinates of 0 degrees to 90 degrees, 90 degrees to 180 degrees, 180 degrees to 270 degrees, and 270 degrees to 360 degrees to obtain the four divided outer ring images;

[0023] Taking the center of the inner ring image as the origin, the inner ring image is equally divided into four parts counterclockwise from 0 degree angular coordinate to 90 degree angular coordinate, 90 degree angular coordinate to 180 degree angular coordinate, 180 degree angular coordinate to 270 degree angular coordinate and 270 degree angular coordinate to 360 degree angular coordinate to obtain the four divided inner ring images.

[0024] Optionally, obtaining the four-region intensity difference encoding of the target thyroid nodule ultrasound image according to the intensity mean of each segmented outer ring image and the intensity mean of each segmented inner ring image specifically includes:

[0025] The first difference is obtained by calculating the difference between the intensity mean of the first segmented outer ring image and the intensity mean of the first segmented inner ring image; the position of the first segmented outer ring image in the outer ring image is the same as the position of the first segmented inner ring image in the inner ring image;

[0026] Calculate the difference between the intensity mean of the second segmented outer ring image and the intensity mean of the second segmented inner ring image to obtain a second difference; the position of the second segmented outer ring image in the outer ring image is the same as the position of the second segmented inner ring image in the inner ring image;

[0027] Calculate the difference between the intensity mean of the outer ring image after the third segmentation and the intensity mean of the inner ring image after the third segmentation to obtain a third difference; the position of the outer ring image after the third segmentation in the outer ring image is the same as the position of the inner ring image after the third segmentation in the inner ring image;

[0028] Calculate the difference between the intensity mean of the outer ring image after the fourth segmentation and the intensity mean of the inner ring image after the fourth segmentation to obtain a fourth difference; the position of the outer ring image after the fourth segmentation in the outer ring image is the same as the position of the inner ring image after the fourth segmentation in the inner ring image;

[0029] Determine the minimum value among the first difference, the second difference, the third difference and the fourth difference as the four-region intensity difference code of the target thyroid nodule ultrasound image.

[0030] Optionally, the determination process of the trained Thy-Enet deep neural network is:

[0031] Acquire a sample set; the sample set includes a plurality of sample thyroid nodule ultrasound images and a true probability that the thyroid nodule boundary of each sample thyroid nodule ultrasound image is clear; the sample thyroid nodule ultrasound image is marked with a thyroid nodule boundary;

[0032] Performing data enhancement processing on each sample thyroid nodule ultrasound image in the sample set to obtain a plurality of enhanced sample thyroid nodule ultrasound images, wherein one sample thyroid nodule ultrasound image corresponds to one enhanced sample thyroid nodule ultrasound image;

[0033] The Thy-Enet deep neural network is trained according to the multiple enhanced sample thyroid nodule ultrasound images and the true probability that the thyroid nodule boundary of each sample thyroid nodule ultrasound image is clear to obtain a trained Thy-Enet deep neural network.

[0034] Optionally, the process of determining the trained multi-layer perceptron model is as follows:

[0035] Obtaining the judgment result of the thyroid nodule boundary of each sample thyroid nodule ultrasound image;

[0036] Determine the aspect ratio coding of each of the sample thyroid nodule ultrasound images, the inner and outer ring difference coding of each of the sample thyroid nodule ultrasound images, the four-zone intensity difference coding of each of the sample thyroid nodule ultrasound images, and the probability that the thyroid nodule boundary of each of the sample thyroid nodule ultrasound images is clear; the probability that the thyroid nodule boundary of the sample thyroid nodule ultrasound image is clear is obtained by inputting the sample preprocessed image into the trained Thy-Enet deep neural network; the sample preprocessed image is the sample thyroid nodule ultrasound image within the sample circumscribed rectangle after expansion; the sample circumscribed rectangle after expansion is obtained by expanding the circumscribed rectangle of the thyroid nodule boundary of the sample thyroid nodule ultrasound image;

[0037] The multi-layer perceptron model is trained according to the aspect ratio coding of each sample thyroid nodule ultrasound image, the inner and outer ring difference coding of each sample thyroid nodule ultrasound image, the four-region intensity difference coding of each sample thyroid nodule ultrasound image, the probability that the thyroid nodule boundary of each sample thyroid nodule ultrasound image is clear, and the judgment result of the thyroid nodule boundary of each sample thyroid nodule ultrasound image to obtain a trained multi-layer perceptron model.

[0038] A thyroid nodule boundary clarity detection system, comprising:

[0039] An acquisition module, used for acquiring an ultrasonic image of a target thyroid nodule; the ultrasonic image of the target thyroid nodule is marked with a boundary of the thyroid nodule in the form of dots;

[0040] an aspect ratio coding calculation module, configured to obtain a circumscribed rectangle for the thyroid nodule boundary marked in the target thyroid nodule ultrasound image, and calculate the aspect ratio coding of the target thyroid nodule ultrasound image according to the width and height of the circumscribed rectangle;

[0041] A boundary expansion and retraction module, for respectively expanding and retracting the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image to obtain an expanded boundary and an retracted boundary; the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image is obtained by sequentially connecting all points in the thyroid nodule boundary marked in the target thyroid nodule ultrasound image in a counterclockwise or clockwise direction;

[0042] An inner and outer ring difference coding calculation module, used for calculating the inner and outer ring difference coding of the target thyroid nodule ultrasound picture according to the intensity mean of the outer ring image and the intensity mean of the inner ring image; the outer ring image is the target thyroid nodule ultrasound picture between the outward expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound picture; the inner ring image is the target thyroid nodule ultrasound picture between the inward expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound picture;

[0043] A segmentation module, used for equally dividing the outer ring image and the inner ring image into four parts according to the same segmentation method to obtain four segmented outer ring images and four segmented inner ring images;

[0044] A four-partition intensity difference coding calculation module, used for obtaining the four-partition intensity difference coding of the target thyroid nodule ultrasound image according to the intensity mean of each segmented outer ring image and the intensity mean of each segmented inner ring image;

[0045] A clear probability calculation module, for inputting a preprocessed image into a trained Thy-Enet deep neural network to obtain the probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; the preprocessed image is the target thyroid nodule ultrasound image within the target circumscribed rectangle after expansion; the target circumscribed rectangle after expansion is obtained by expanding the circumscribed rectangle of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image; the Thy-Enet deep neural network includes an input layer, an EfficientNetV2B0 skeleton layer, a global pooling layer, a loss layer and a Sigmoid function connected in sequence;

[0046] A clear final probability calculation module is used to input the aspect ratio coding of the target thyroid nodule ultrasound image, the inner and outer ring difference coding of the target thyroid nodule ultrasound image, the four-zone intensity difference coding of the target thyroid nodule ultrasound image, and the probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear into the trained multi-layer perceptron model to obtain the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear;

[0047] A judgment result calculation module is used to obtain a judgment result of the thyroid nodule boundary of the target thyroid nodule ultrasound image according to the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; the judgment result is clear or unclear.

[0048] An electronic device, comprising:

[0049] A memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the thyroid nodule boundary clarity detection method described above.

[0050] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the above-mentioned method for detecting the boundary clarity of a thyroid nodule.

[0051] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0052] The present invention adopts the Thy-Enet deep neural network to extract the probability that the thyroid nodule boundary is clear, and inputs the aspect ratio coding, the inner and outer ring difference coding, the four-partition intensity difference coding and the probability that the thyroid nodule boundary is clear into the multi-layer perceptron model to obtain the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear. The judgment result is obtained according to the final probability, which can improve the accuracy of the thyroid nodule boundary clarity result and assist ultrasound physicians in improving the ability to evaluate the clarity of thyroid nodule boundaries. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0054] Figure 1 A flow chart of a method for detecting thyroid nodule boundary clarity provided in an embodiment of the present invention;

[0055] Figure 2 Sketch a schematic diagram for the nodule boundary;

[0056] Figure 3 It is a schematic diagram of the circumscribed rectangle of the nodule area;

[0057] Figure 4 Schematic diagram of the expansion and retraction of the circumscribed polygon of the nodule boundary;

[0058] Figure 5 Schematic diagram of the Thy-Enet deep neural network structure;

[0059] Figure 6 is the outer ring image;

[0060] Figure 7 is the inner ring image;

[0061] Figure 8 For Figure 6Schematic diagram of the result of equal division;

[0062] Fig. 9 It is a schematic diagram of the multi-layer perceptron model;

[0063] Fig.10 A more specific flow chart of a method for detecting thyroid nodule boundary clarity provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0065] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0066] like Fig.10 As shown, an embodiment of the present invention provides a method for detecting the boundary clarity of a thyroid nodule, comprising:

[0067] Step 101: Obtain an ultrasound image of a target thyroid nodule. The ultrasound image of the target thyroid nodule is marked with a thyroid nodule boundary and is manually outlined by a doctor in the form of dots.

[0068] Step 102: Take a circumscribed rectangle for the thyroid nodule boundary marked in the target thyroid nodule ultrasound image, and calculate the aspect ratio code of the target thyroid nodule ultrasound image according to the width and height of the circumscribed rectangle.

[0069] Step 103: Expand and retract the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image to obtain an expanded boundary and an retracted boundary respectively; the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image is obtained by connecting all points in the thyroid nodule boundary marked in the target thyroid nodule ultrasound image in a counterclockwise or clockwise direction.

[0070] Step 104: Calculate the inner and outer ring difference code of the target thyroid nodule ultrasound image according to the intensity mean of the outer ring image and the intensity mean of the inner ring image. The outer ring image is the target thyroid nodule ultrasound image between the outer expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image; the inner ring image is the target thyroid nodule ultrasound image between the inner expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image.

[0071] Step 105: Divide the outer ring image and the inner ring image equally into four parts according to the same segmentation method to obtain four-part outer ring images and four-part inner ring images.

[0072] Step 106: Obtain the four-region intensity difference code of the target thyroid nodule ultrasound image according to the intensity mean value of each segmented outer ring image and the intensity mean value of each segmented inner ring image.

[0073] Step 107: Input the preprocessed image into the trained Thy-Enet deep neural network to obtain the probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear. The preprocessed image is the target thyroid nodule ultrasound image within the target circumscribed rectangle after expansion; the target circumscribed rectangle after expansion is obtained by expanding the circumscribed rectangle of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image; the Thy-Enet deep neural network includes an input layer, an EfficientNetV2B0 skeleton layer, a global pooling layer, a loss layer, and a Sigmoid function connected in sequence.

[0074] Step 108: Encode the aspect ratio of the target thyroid nodule ultrasound image c h / w , the inner and outer ring difference coding c of the target thyroid nodule ultrasound image out-in , the four-zone intensity difference coding c of the target thyroid nodule ultrasound image quar and the probability c that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear pred Input the trained multi-layer perceptron model to obtain the final probability p that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear output .

[0075] Step 109: Obtain a judgment result Pred of the thyroid nodule boundary of the target thyroid nodule ultrasound image according to the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear. final The judgment result is clear or unclear. If the final probability of clarity is greater than or equal to 0.5, the boundary of the nodule is judged to be clear, otherwise, the boundary of the nodule is judged to be unclear.

[0076] In practical applications, the aspect ratio encoding of the target thyroid nodule ultrasound image is calculated according to the width of the circumscribed rectangle and the height of the circumscribed rectangle, specifically including:

[0077] The aspect ratio is calculated by calculating the ratio of the height of the circumscribed rectangle to the width of the circumscribed rectangle.

[0078] The aspect ratio code of the target thyroid nodule ultrasound image is obtained according to the aspect ratio.

[0079] In practical applications, the inner and outer ring difference coding of the target thyroid nodule ultrasound image is calculated according to the intensity mean of the outer ring image and the intensity mean of the inner ring image, specifically including:

[0080] The absolute value of the difference between the intensity mean of the outer ring image and the intensity mean of the inner ring image is calculated to obtain the inner and outer ring difference code of the target thyroid nodule ultrasound image.

[0081] In practical applications, the outer ring image and the inner ring image are equally divided into four parts according to the same segmentation method to obtain four divided outer ring images and four divided inner ring images, which specifically includes:

[0082] Taking the center of the outer ring image as the origin, the outer ring image is equally divided into four parts counterclockwise from 0 degree angular coordinate to 90 degree angular coordinate, 90 degree angular coordinate to 180 degree angular coordinate, 180 degree angular coordinate to 270 degree angular coordinate and 270 degree angular coordinate to 360 degree angular coordinate to obtain the four divided outer ring images.

[0083] Taking the center of the inner ring image as the origin, the inner ring image is equally divided into four parts counterclockwise from 0 degree angular coordinate to 90 degree angular coordinate, 90 degree angular coordinate to 180 degree angular coordinate, 180 degree angular coordinate to 270 degree angular coordinate and 270 degree angular coordinate to 360 degree angular coordinate to obtain the four divided inner ring images.

[0084] In practical applications, the four-zone intensity difference encoding of the target thyroid nodule ultrasound image is obtained according to the intensity mean of each segmented outer ring image and the intensity mean of each segmented inner ring image, which specifically includes:

[0085] The first difference is obtained by calculating the difference between the intensity mean of the first segmented outer ring image and the intensity mean of the first segmented inner ring image; the position of the first segmented outer ring image in the outer ring image is the same as the position of the first segmented inner ring image in the inner ring image.

[0086] The second difference is calculated by calculating the difference between the intensity mean of the outer ring image after the second segmentation and the intensity mean of the inner ring image after the second segmentation; the position of the outer ring image after the second segmentation in the outer ring image is the same as the position of the inner ring image after the second segmentation in the inner ring image.

[0087] The third difference is obtained by calculating the difference between the intensity mean of the outer ring image after the third segmentation and the intensity mean of the inner ring image after the third segmentation; the position of the outer ring image after the third segmentation in the outer ring image is the same as the position of the inner ring image after the third segmentation in the inner ring image.

[0088] The fourth difference is obtained by calculating the difference between the intensity mean of the outer ring image after the fourth segmentation and the intensity mean of the inner ring image after the fourth segmentation; the position of the outer ring image after the fourth segmentation in the outer ring image is the same as the position of the inner ring image after the fourth segmentation in the inner ring image.

[0089] Determine the minimum value among the first difference, the second difference, the third difference and the fourth difference as the four-region intensity difference code of the target thyroid nodule ultrasound image.

[0090] In practical applications, the determination process of the trained Thy-Enet deep neural network is:

[0091] A sample set is obtained; the sample set includes a plurality of sample thyroid nodule ultrasound images and a true probability that the thyroid nodule boundary of each sample thyroid nodule ultrasound image is clear; and the thyroid nodule boundary is marked on the sample thyroid nodule ultrasound image.

[0092] Data enhancement processing is performed on each sample thyroid nodule ultrasound image in the sample set to obtain multiple enhanced sample thyroid nodule ultrasound images, and one sample thyroid nodule ultrasound image corresponds to one enhanced sample thyroid nodule ultrasound image.

[0093] The Thy-Enet deep neural network is trained according to the multiple enhanced sample thyroid nodule ultrasound images and the true probability that the thyroid nodule boundary of each sample thyroid nodule ultrasound image is clear to obtain a trained Thy-Enet deep neural network.

[0094] In practical applications, the determination process of the trained multi-layer perceptron model is as follows:

[0095] Obtain the judgment result of the thyroid nodule boundary of each sample thyroid nodule ultrasound image.

[0096] Determine the aspect ratio coding of each of the sample thyroid nodule ultrasound images, the inner and outer ring difference coding of each of the sample thyroid nodule ultrasound images, the four-region intensity difference coding of each of the sample thyroid nodule ultrasound images, and the probability that the thyroid nodule boundary of each of the sample thyroid nodule ultrasound images is clear; the probability that the thyroid nodule boundary of the sample thyroid nodule ultrasound image is clear is obtained by inputting the sample preprocessed image into the trained Thy-Enet deep neural network; the sample preprocessed image is the sample thyroid nodule ultrasound image within the sample circumscribed rectangle after expansion; the sample circumscribed rectangle after expansion is obtained by expanding the circumscribed rectangle of the thyroid nodule boundary of the sample thyroid nodule ultrasound image.

[0097] The multi-layer perceptron model is trained according to the aspect ratio coding of each sample thyroid nodule ultrasound image, the inner and outer ring difference coding of each sample thyroid nodule ultrasound image, the four-region intensity difference coding of each sample thyroid nodule ultrasound image, the probability that the thyroid nodule boundary of each sample thyroid nodule ultrasound image is clear, and the judgment result of the thyroid nodule boundary of each sample thyroid nodule ultrasound image to obtain a trained multi-layer perceptron model.

[0098] The present invention provides a more specific embodiment to introduce the above method in detail. Figure 1 As shown, the method:

[0099] S1. Image preprocessing and enhancement:

[0100] S1.1 Image preprocessing:

[0101] The embodiment of the present invention uses 3127 ultrasound images of thyroid nodules (sample ultrasound images of thyroid nodules) with nodule boundary contours marked by professional ultrasound physicians. The ultrasound physicians outline the nodule positions and boundaries in the form of dots to form a point set (x i ,y i )∈P, ensuring that for any node, P contains at least ten outline points, such as Figure 2 For each nodule image, the physician marks the nodule boundary as clear or unclear. In the ultrasound image, the outlined boundary is enclosed by a rectangle, such as Figure 3 As shown. That is, the circumscribed rectangle is located to satisfy the formula Rect(x,y,e,h) is the bounding rectangle of the nodule in the image, x and y are the horizontal and vertical coordinates of the upper left corner of the bounding rectangle, w and h are the width and height of the bounding rectangle, P x is the set of horizontal coordinates of all outline points, P y It is the vertical coordinate set of all outline points.

[0102] After obtaining the basic circumscribed rectangle, according to the formula ratio = According to the size of the nodule's circumscribed rectangle, the rectangle expansion ratio ratio is dynamically obtained, and max(w, h) is the larger value of the rectangle width and height.

[0103] Then according to this ratio and formula Expand the circumscribed rectangle, where Rect new (x new ,y new , w new ,h new ) is the enclosed rectangle of the image after expansion, x new and new are the horizontal and vertical coordinates of the upper left corner of the circumscribed rectangle, w new and h new is the width and height of the circumscribed rectangle, x old and old are the horizontal and vertical coordinates of the upper left corner of the circumscribed rectangle before expansion, w old and h old is the width and height of the circumscribed rectangle before expansion. When the expansion exceeds the boundary of the image itself, the value of the image boundary is taken as the coordinate point of the boundary after expansion. After the expansion is completed, all points on the outlined boundary are connected one by one to obtain the circumscribed polygon of the thyroid nodule boundary. The circumscribed polygon is expanded 30% equidistantly to obtain the outline of the expanded polygon, i.e., the expansion boundary. The circumscribed polygon is moved 30% toward the center of the polygon to obtain the inward polygon, i.e., the inward boundary. Figure 4 As shown in the figure, the bounding rectangular area is captured and the area is uniformly scaled to 192x192 pixels using the Lanczos interpolation algorithm.

[0104] S1.2 Image data enhancement:

[0105] In order to make the present invention have a better effect on ultrasound images of different brightness, contrast, and clarity, as well as nodules of different sizes and types, the following method is used to enhance the image during the training process. Before each round of image data is input into the network, one of the following four methods is randomly selected to perform the following online enhancement on the image:

[0106] S1.2.1 Random brightness changes:

[0107] For a picture, calculate the intensity value I of each pixel after the change bnew :I bnew =I old +delta(-thre b ≤delta≤thre b ), and at the same time ensure Among them, I oldis the pixel intensity value before the corresponding pixel enhancement, delta is the brightness change amplitude, where thre b Take 32, delta in -thre b to thre b Pick a random integer between .

[0108] S1.2.2 Random contrast changes:

[0109] Calculate the intensity value I of each pixel after the change cnew =alpha*I old (1-thre c ≤alpha≤1+thre c ), and at the same time ensure Here thre c Take 0.3.

[0110] Among them, alpha is the change ratio of contrast, I cnew is the pixel intensity value after the image contrast is changed.

[0111] S1.2.3 Image translation:

[0112] Move the image randomly in one of the four directions: up, down, left, or right. m pixels, and the excess is supplemented with 0-intensity pixels. Here, thre m Randomly pick 0-20.

[0113] S1.2.4 Image rotation:

[0114] Rotate the image in either clockwise or counterclockwise direction randomly by thre a Angle, the excess part is supplemented with 0 intensity pixels, here thre a Randomly select 0-15.

[0115] S2: Thy-Enet deep neural network construction and training:

[0116] The input size of the Thy-Enet deep neural network input layer is (w, h, c), where w = 192, h = 192, c = 3. The convolution output in the EfficientNetV2B0 skeleton layer is expanded using a global average pooling layer, then connected to a dropout layer with a probability of 0.5, and finally connected to the output layer using a Sigmoid activation function, as shown in Figure 5As shown. The middle layer uses leaky ReLU as the activation function. The model input is an ultrasound thyroid nodule image of size (192x192x3), and outputs the probability that the nodule boundary is clear. From the above 3127 enhanced images, 2501 images are extracted as training sets, 313 images are used as validation sets during training, and 313 images are used as test sets. During training, the Adam optimizer is used for parameter back propagation.

[0117] S3: Multilayer Perceptron model input preprocessing:

[0118] S3.1: Calculate the aspect ratio of the nodule. Calculate the aspect ratio based on the width w and height h of the circumscribed rectangle obtained in S1.1. h / w =h / w, generate aspect ratio encoding

[0119] S3.2: Calculate the intensity difference between the inner and outer rings of the nodule edge:

[0120] According to the method in S1.1, the circumscribed polygon formed by the nodule boundary outlined by the doctor is expanded and retracted in equal proportion, and the outer ring image (such as Figure 6 As shown) and the inner ring image (as Figure 7 The intensity mean i out andi in . Generate inner and outer ring difference code c out-in =|i out -i in |.

[0121] S3.3: Calculate the minimum intensity difference between the inner and outer rings of the four-zone nodule edge:

[0122] According to the method in S1, the circumscribed polygon formed by the nodule boundary outlined by the doctor is expanded and retracted in equal proportion, and the image is divided into 0-90: ur; 90-180: ul; 180-270: dl; 270-360: dr according to the angular coordinates in a counterclockwise direction with the center of the image as the origin. Figure 8 As shown. Calculate the mean difference {d ur , d ul , d dl , d ar}, take the minimum value of the intensity difference as the intensity difference encoding of the four partitions, that is, c quar =min({d ur , d ul , d dl , d dr}).

[0123] S3.4: Calculate the first-level network prediction code:

[0124] The image preprocessed by S1.1 is used as input into the Thy-Enet deep neural network to obtain the network's inference output value, that is, the probability that the nodule boundary predicted by the Thy-Enet deep neural network is clear, denoted as c pred .

[0125] S4: Multilayer Perceptron Model Construction and Training:

[0126] Construct a four-input multilayer perceptron model, where the first layer is the input layer, which contains 4 input units, the second layer is the hidden layer, which contains 256 computing units, the third layer is the hidden layer, which contains 32 computing units, and the fourth layer is the output layer, which contains one output unit. Fig. 9 As shown. The hidden layer uses the ReLU activation function, and the output layer uses the sigmoid activation function. h / w c out-in c quar c pred ] The encoded value is input into the multi-layer perceptron model network, and the output result is a floating point number p between 0 and 1 output , get the final judgment result based on the floating point number where thre p The training set is 2501 groups corresponding to 2501 images in the Thy-Enet deep neural network training set [c h / w c out-in c quar c pred ] encoding and the clear and unclear labels of the corresponding images. The validation set and test set in the training process also use the encoding and clear and unclear labels corresponding to the validation set and test set of the Thy-Enet deep neural network. The Adam optimizer is used for parameter back propagation during the training process.

[0127] S5: Determination of the clarity of the boundary of the target thyroid nodule on ultrasound image:

[0128] For the target thyroid nodule ultrasound image, the physician first marks the boundary of the thyroid nodule, and then obtains the input image of the Thy-Enet deep neural network through the image preprocessing process described in S1.1. The image is input into the trained Thy-Enet deep neural network, and the Thy-Enet deep neural network prediction output c is obtained. pred Then, according to the methods described in 3.1, 3.2 and 3.3, calculate c for this image h / w 、c out-in 、c quar and c pred , c h / w 、c out-in 、c quar and cpred The trained multi-layer perceptron model is input, and finally the clarity probability of the output of the trained multi-layer perceptron model is obtained. When this probability is greater than or equal to 0.5, it is judged that the nodule boundary is clear, otherwise it is judged that the nodule boundary is unclear.

[0129] The embodiment of the present invention provides a thyroid nodule boundary clarity detection system corresponding to the above method, including:

[0130] The acquisition module is used to acquire an ultrasonic image of a target thyroid nodule; the ultrasonic image of the target thyroid nodule is marked with a thyroid nodule boundary in the form of dots.

[0131] The aspect ratio coding calculation module is used to obtain a circumscribed rectangle for the thyroid nodule boundary marked in the target thyroid nodule ultrasound image, and calculate the aspect ratio coding of the target thyroid nodule ultrasound image according to the width and height of the circumscribed rectangle.

[0132] The boundary expansion and retraction module is used to expand and retract the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image to obtain an expanded boundary and an retracted boundary respectively; the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image is obtained by connecting all points in the thyroid nodule boundary marked in the target thyroid nodule ultrasound image in a counterclockwise or clockwise direction.

[0133] An inner and outer ring difference coding calculation module is used to calculate the inner and outer ring difference coding of the target thyroid nodule ultrasound image according to the intensity mean of the outer ring image and the intensity mean of the inner ring image; the outer ring image is the target thyroid nodule ultrasound image between the outward expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image; the inner ring image is the target thyroid nodule ultrasound image between the inward expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image.

[0134] The segmentation module is used to divide the outer ring image and the inner ring image into four equal parts according to the same segmentation method to obtain four segmented outer ring images and four segmented inner ring images.

[0135] The four-partition intensity difference coding calculation module is used to obtain the four-partition intensity difference coding of the target thyroid nodule ultrasound image according to the intensity mean of each segmented outer ring image and the intensity mean of each segmented inner ring image.

[0136] A clear probability calculation module is used to input the preprocessed image into the trained Thy-Enet deep neural network to obtain the probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; the preprocessed image is the target thyroid nodule ultrasound image within the target circumscribed rectangle after expansion; the target circumscribed rectangle after expansion is obtained by expanding the circumscribed rectangle of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image; the Thy-Enet deep neural network includes an input layer, an EfficientNetV2B0 skeleton layer, a global pooling layer, a loss layer and a Sigmoid function connected in sequence.

[0137] The clear final probability calculation module is used to input the aspect ratio encoding of the target thyroid nodule ultrasound image, the inner and outer ring difference encoding of the target thyroid nodule ultrasound image, the four-partition intensity difference encoding of the target thyroid nodule ultrasound image, and the probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear into the trained multi-layer perceptron model to obtain the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear.

[0138] A judgment result calculation module is used to obtain a judgment result of the thyroid nodule boundary of the target thyroid nodule ultrasound image according to the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; the judgment result is clear or unclear.

[0139] An embodiment of the present invention further provides an electronic device, including:

[0140] A memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the thyroid nodule boundary clarity detection method described in the above embodiment.

[0141] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the method for detecting the boundary clarity of a thyroid nodule described in the above embodiment is implemented.

[0142] The present invention has the following advantages over the prior art:

[0143] 1. Compared with the traditional method based on calculating image indicators such as edge area variance, entropy, and intensity difference, this method uses the Thy-Enet deep neural network to extract multiple deep features related to the clarity of nodule boundaries, and combines the image measurement method to achieve the goal of multi-dimensional measurement of nodule edge clarity, which has a higher accuracy rate than the existing methods. In addition, this method adapts to ultrasound images of different quality and sources through image data enhancement methods, and has a low degree of dependence on artificially set thresholds, and has a wider applicability.

[0144] 2. Compared with the method of using only deep neural network reasoning to judge the clarity of nodule boundaries, this method, based on the neural network, designs the common indicators used by ultrasound physicians to evaluate nodules, such as aspect ratio, ultrasound intensity difference inside and outside the nodule, etc. as the input of the multi-layer perceptron model, making this method more comprehensive and accurate while increasing the interpretability of the method. Compared with other machine learning-based methods, this method uses a large number of images for training and covers a wide range of nodule types, which also ensures that this method can make accurate measurements on nodules of different categories.

[0145] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0146] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for detecting the boundary clarity of a thyroid nodule, characterized in that: include: Obtaining an ultrasound image of a target thyroid nodule; the ultrasound image of the target thyroid nodule is marked with a boundary of the thyroid nodule in the form of dots; Taking a circumscribed rectangle for the thyroid nodule boundary marked in the target thyroid nodule ultrasound image, and calculating the aspect ratio code of the target thyroid nodule ultrasound image according to the width and height of the circumscribed rectangle; The circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image is expanded and retracted respectively to obtain an expanded boundary and an retracted boundary; the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image is obtained by sequentially connecting all points in the thyroid nodule boundary marked in the target thyroid nodule ultrasound image in a counterclockwise or clockwise direction; The inner and outer ring difference codes of the target thyroid nodule ultrasound image are calculated according to the intensity mean of the outer ring image and the intensity mean of the inner ring image; the outer ring image is the target thyroid nodule ultrasound image between the outward expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image; the inner ring image is the target thyroid nodule ultrasound image between the inward expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image; Divide the outer ring image and the inner ring image equally into four parts according to the same segmentation method to obtain four divided outer ring images and four divided inner ring images; Obtaining a four-region intensity difference code of the target thyroid nodule ultrasound image according to the intensity mean of each segmented outer ring image and the intensity average of each segmented inner ring image; Input the preprocessed image into the trained Thy-Enet deep neural network to obtain the probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; the preprocessed image is the target thyroid nodule ultrasound image within the target circumscribed rectangle after expansion; the target circumscribed rectangle after expansion is obtained by expanding the circumscribed rectangle of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image; the Thy-Enet deep neural network includes an input layer, an EfficientNetV2B0 skeleton layer, a global pooling layer, a loss layer and a Sigmoid function connected in sequence; Input the aspect ratio coding of the target thyroid nodule ultrasound image, the inner and outer ring difference coding of the target thyroid nodule ultrasound image, the four-region intensity difference coding of the target thyroid nodule ultrasound image, and the probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear into the trained multi-layer perceptron model to obtain the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; Obtaining a judgment result of the thyroid nodule boundary of the target thyroid nodule ultrasound image according to a final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; the judgment result is clear or unclear; The intensity difference coding of the four-zones of the target thyroid nodule ultrasound image is obtained according to the intensity mean value of each segmented outer ring image and the intensity mean value of each segmented inner ring image, which specifically includes: The first difference is obtained by calculating the difference between the intensity mean of the first segmented outer ring image and the intensity mean of the first segmented inner ring image; the position of the first segmented outer ring image in the outer ring image is the same as the position of the first segmented inner ring image in the inner ring image; Calculate the difference between the intensity mean of the second segmented outer ring image and the intensity mean of the second segmented inner ring image to obtain a second difference; the position of the second segmented outer ring image in the outer ring image is the same as the position of the second segmented inner ring image in the inner ring image; Calculate the difference between the intensity mean of the outer ring image after the third segmentation and the intensity mean of the inner ring image after the third segmentation to obtain a third difference; the position of the outer ring image after the third segmentation in the outer ring image is the same as the position of the inner ring image after the third segmentation in the inner ring image; Calculate the difference between the intensity mean of the outer ring image after the fourth segmentation and the intensity mean of the inner ring image after the fourth segmentation to obtain a fourth difference; the position of the outer ring image after the fourth segmentation in the outer ring image is the same as the position of the inner ring image after the fourth segmentation in the inner ring image; Determine the minimum value among the first difference, the second difference, the third difference and the fourth difference as the four-region intensity difference code of the target thyroid nodule ultrasound image.

2. The method for detecting thyroid nodule boundary clarity according to claim 1, characterized in that: Calculating the aspect ratio encoding of the target thyroid nodule ultrasound image according to the width of the circumscribed rectangle and the height of the circumscribed rectangle specifically includes: Calculate the ratio of the height of the circumscribed rectangle to the width of the circumscribed rectangle to obtain the aspect ratio; The aspect ratio code of the target thyroid nodule ultrasound image is obtained according to the aspect ratio.

3. The method for detecting thyroid nodule boundary clarity according to claim 1, characterized in that: The inner and outer ring difference codes of the target thyroid nodule ultrasound image are calculated according to the intensity mean of the outer ring image and the intensity mean of the inner ring image, specifically including: The absolute value of the difference between the intensity mean of the outer ring image and the intensity mean of the inner ring image is calculated to obtain the inner and outer ring difference code of the target thyroid nodule ultrasound image.

4. The method for detecting thyroid nodule boundary clarity according to claim 1, characterized in that: The outer ring image and the inner ring image are equally divided into four parts according to the same segmentation method to obtain four divided outer ring images and four divided inner ring images, specifically including: Taking the center of the outer ring image as the origin, counterclockwisely divide the outer ring image into four equal parts according to the angular coordinates of 0 degrees to 90 degrees, 90 degrees to 180 degrees, 180 degrees to 270 degrees, and 270 degrees to 360 degrees to obtain the four divided outer ring images; Taking the center of the inner ring image as the origin, the inner ring image is equally divided into four parts counterclockwise from 0 degree angular coordinate to 90 degree angular coordinate, 90 degree angular coordinate to 180 degree angular coordinate, 180 degree angular coordinate to 270 degree angular coordinate and 270 degree angular coordinate to 360 degree angular coordinate to obtain the four divided inner ring images.

5. The method for detecting thyroid nodule boundary clarity according to claim 1, characterized in that: The determination process of the trained Thy-Enet deep neural network is: Acquire a sample set; the sample set includes a plurality of sample thyroid nodule ultrasound images and a true probability that the thyroid nodule boundary of each sample thyroid nodule ultrasound image is clear; the sample thyroid nodule ultrasound image is marked with a thyroid nodule boundary; Performing data enhancement processing on each sample thyroid nodule ultrasound image in the sample set to obtain a plurality of enhanced sample thyroid nodule ultrasound images, wherein one sample thyroid nodule ultrasound image corresponds to one enhanced sample thyroid nodule ultrasound image; The Thy-Enet deep neural network is trained according to the multiple enhanced sample thyroid nodule ultrasound images and the true probability that the thyroid nodule boundary of each sample thyroid nodule ultrasound image is clear to obtain a trained Thy-Enet deep neural network.

6. The method for detecting the boundary clarity of thyroid nodules according to claim 5, characterized in that: The determination process of the trained multi-layer perceptron model is as follows: Obtaining the judgment result of the thyroid nodule boundary of each sample thyroid nodule ultrasound image; Determine the aspect ratio coding of each of the sample thyroid nodule ultrasound images, the inner and outer ring difference coding of each of the sample thyroid nodule ultrasound images, the four-zone intensity difference coding of each of the sample thyroid nodule ultrasound images, and the probability that the thyroid nodule boundary of each of the sample thyroid nodule ultrasound images is clear; the probability that the thyroid nodule boundary of the sample thyroid nodule ultrasound image is clear is obtained by inputting the sample preprocessed image into the trained Thy-Enet deep neural network; the sample preprocessed image is the sample thyroid nodule ultrasound image within the sample circumscribed rectangle after expansion; the sample circumscribed rectangle after expansion is obtained by expanding the circumscribed rectangle of the thyroid nodule boundary of the sample thyroid nodule ultrasound image; The multi-layer perceptron model is trained according to the aspect ratio coding of each sample thyroid nodule ultrasound image, the inner and outer ring difference coding of each sample thyroid nodule ultrasound image, the four-region intensity difference coding of each sample thyroid nodule ultrasound image, the probability that the thyroid nodule boundary of each sample thyroid nodule ultrasound image is clear, and the judgment result of the thyroid nodule boundary of each sample thyroid nodule ultrasound image to obtain a trained multi-layer perceptron model.

7. A thyroid nodule boundary clarity detection system, characterized in that: include: An acquisition module, used to acquire an ultrasound image of a target thyroid nodule; The target thyroid nodule ultrasound image is marked with a thyroid nodule boundary in the form of dots; an aspect ratio coding calculation module, configured to obtain a circumscribed rectangle for the thyroid nodule boundary marked in the target thyroid nodule ultrasound image, and calculate the aspect ratio coding of the target thyroid nodule ultrasound image according to the width and height of the circumscribed rectangle; A boundary expansion and retraction module, for respectively expanding and retracting the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image to obtain an expanded boundary and an retracted boundary; the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image is obtained by sequentially connecting all points in the thyroid nodule boundary marked in the target thyroid nodule ultrasound image in a counterclockwise or clockwise direction; An inner and outer ring difference coding calculation module, used for calculating the inner and outer ring difference coding of the target thyroid nodule ultrasound picture according to the intensity mean of the outer ring image and the intensity mean of the inner ring image; the outer ring image is the target thyroid nodule ultrasound picture between the outward expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound picture; the inner ring image is the target thyroid nodule ultrasound picture between the inward expansion boundary and the circumscribed polygon of the thyroid nodule boundary marked in the target thyroid nodule ultrasound picture; A segmentation module, used for equally dividing the outer ring image and the inner ring image into four parts according to the same segmentation method to obtain four segmented outer ring images and four segmented inner ring images; A four-partition intensity difference coding calculation module, used for obtaining the four-partition intensity difference coding of the target thyroid nodule ultrasound image according to the intensity mean of each segmented outer ring image and the intensity mean of each segmented inner ring image; The intensity difference coding of the four-zones of the target thyroid nodule ultrasound image is obtained according to the intensity mean value of each segmented outer ring image and the intensity mean value of each segmented inner ring image, which specifically includes: The first difference is obtained by calculating the difference between the intensity mean of the first segmented outer ring image and the intensity mean of the first segmented inner ring image; the position of the first segmented outer ring image in the outer ring image is the same as the position of the first segmented inner ring image in the inner ring image; Calculate the difference between the intensity mean of the second segmented outer ring image and the intensity mean of the second segmented inner ring image to obtain a second difference; the position of the second segmented outer ring image in the outer ring image is the same as the position of the second segmented inner ring image in the inner ring image; Calculate the difference between the intensity mean of the outer ring image after the third segmentation and the intensity mean of the inner ring image after the third segmentation to obtain a third difference; the position of the outer ring image after the third segmentation in the outer ring image is the same as the position of the inner ring image after the third segmentation in the inner ring image; Calculate the difference between the intensity mean of the outer ring image after the fourth segmentation and the intensity mean of the inner ring image after the fourth segmentation to obtain a fourth difference; the position of the outer ring image after the fourth segmentation in the outer ring image is the same as the position of the inner ring image after the fourth segmentation in the inner ring image; Determine the minimum value among the first difference, the second difference, the third difference and the fourth difference as the four-zone intensity difference code of the target thyroid nodule ultrasound image A clear probability calculation module, for inputting a preprocessed image into a trained Thy-Enet deep neural network to obtain the probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; the preprocessed image is the target thyroid nodule ultrasound image within the target circumscribed rectangle after expansion; the target circumscribed rectangle after expansion is obtained by expanding the circumscribed rectangle of the thyroid nodule boundary marked in the target thyroid nodule ultrasound image; the Thy-Enet deep neural network includes an input layer, an EfficientNetV2B0 skeleton layer, a global pooling layer, a loss layer and a Sigmoid function connected in sequence; A clear final probability calculation module is used to input the aspect ratio coding of the target thyroid nodule ultrasound image, the inner and outer ring difference coding of the target thyroid nodule ultrasound image, the four-zone intensity difference coding of the target thyroid nodule ultrasound image, and the probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear into the trained multi-layer perceptron model to obtain the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; A judgment result calculation module is used to obtain a judgment result of the thyroid nodule boundary of the target thyroid nodule ultrasound image according to the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasound image is clear; the judgment result is clear or unclear.

8. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the thyroid nodule boundary clarity detection method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the thyroid nodule boundary clarity detection method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • PET image reconstruction method and apparatus

    CN104408756A

  • Thyroid boundary smoothness detection device

    CN112001894A