A method for detecting clarity of a thyroid nodule boundary, comprising:
- acquiring a target thyroid nodule ultrasonic image, wherein a thyroid nodule boundary is labelled in the target thyroid nodule ultrasonic image in a form of dots;
- obtaining a bounding rectangle for the thyroid nodule boundary labelled in the target thyroid nodule ultrasonic image, and calculating an aspect ratio coefficient of the target thyroid nodule ultrasonic image according to a width of the bounding rectangle and a height of the bounding rectangle;
- outwardly expanding and inwardly retracting a bounding polygon of the thyroid nodule boundary labelled in the target thyroid nodule ultrasonic image, to obtain an outwardly expanded boundary and an inwardly retracted boundary, wherein the bounding polygon of the thyroid nodule boundary labelled in the target thyroid nodule ultrasonic image is obtained by connecting all points in the thyroid nodule boundary labelled in the target thyroid nodule ultrasonic image counterclockwise or clockwise in sequence;
- calculating an inner and outer ring difference coefficient of the target thyroid nodule ultrasonic image according to an intensity average of an outer ring image and an intensity average of an inner ring image, wherein the outer ring image is a first partial target thyroid nodule ultrasonic image between the outwardly expanded boundary and the bounding polygon of the thyroid nodule boundary labelled in the target thyroid nodule ultrasonic image;
- the inner ring image is a second partial target thyroid nodule ultrasonic image between the inwardly retracted boundary and the bounding polygon of the thyroid nodule boundary labelled in the target thyroid nodule ultrasonic image;
- segmenting the outer ring image and the inner ring image into four parts equally in a same segmenting manner to obtain four segmented outer ring images and four segmented inner ring images;
- obtaining a four-partitioning intensity difference coefficient of the target thyroid nodule ultrasonic image according to the intensity average of each segmented outer ring image and the intensity average of each segmented inner ring image;
- inputting a preprocessed image into a trained Thy-Enet deep neural network to obtain a probability that the thyroid nodule boundary of the target thyroid nodule ultrasonic image is clear, wherein the preprocessed image is a target thyroid nodule ultrasonic image in an outwardly expanded target bounding rectangle, the outwardly expanded target bounding rectangle is obtained by outwardly expanding the bounding rectangle of the thyroid nodule boundary labelled in the target thyroid nodule ultrasonic image, the trained Thy-Enet deep neural network comprises an input layer, an EfficientNetV2B0 backbone, a global pooling layer, a dropout layer and a Sigmoid function which are connected in sequence;
- inputting the aspect ratio coefficient of the target thyroid nodule ultrasonic image, the inner and outer ring difference coefficient of the target thyroid nodule ultrasonic image, the four-partitioning intensity difference coefficient of the target thyroid nodule ultrasonic image and the probability that the thyroid nodule boundary of the target thyroid nodule ultrasonic image is clear, into a trained multi-layer perceptron model, to obtain a final probability that the thyroid nodule boundary of the target thyroid nodule ultrasonic image is clear;
- and
- obtaining a determination result of the thyroid nodule boundary of the target thyroid nodule ultrasonic image according to the final probability that the thyroid nodule boundary of the target thyroid nodule ultrasonic image is clear, wherein the determination result is that thyroid nodule boundary is clear or unclear.