Thyroid nodular lesion classification model training method, classification method and device
By using a fully grouped convolutional neural optimization model in the classification of thyroid nodule ultrasound images, combined with dense connection and atrous convolution technology, the problem of poor diagnostic performance of existing technologies in follicular tumors and medullary cancers has been solved and achieved. Higher classification accuracy and reliability can assist clinical diagnosis and treatment decisions.
Patent Information
- Application Number
- CN202410852304.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing ultrasound imaging-assisted diagnosis software for thyroid nodules has limited diagnostic effect on malignant nodules such as follicular tumors and medullary carcinomas, and is prone to misdiagnosis and missed diagnosis, making it difficult to effectively assist clinicians in making diagnosis and treatment decisions.
Using a fully grouped convolutional neural optimization model, by adding a dense connection module to the original model and replacing the maximum pooling layer with a dilated convolution layer, a model that can be used for thyroid nodular lesion classification is trained, combining dense connections and dilated convolutions. Accumulation technology makes full use of intermediate features and retains shallow features to improve diagnostic accuracy and reliability.
It effectively improves the classification accuracy and reliability of thyroid nodular lesions, reduces the diagnostic pressure on doctors, can more accurately assist clinicians in making diagnosis and treatment decisions, and reduces calculation costs.
Smart Images

Figure CN118397380B
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical image processing technology, and in particular to a thyroid nodular lesion classification model training method, classification method and device. Background Art
[0002] The thyroid gland is an important endocrine gland in the human body and the largest endocrine gland in the human body. It plays a vital role in feedback regulation, affecting metabolism, and promoting development. Thyroid nodules are a very common thyroid lesion. Among the large number of patients currently existing, most thyroid nodules are benign nodules, and a small number have malignant risks, mainly including papillary carcinoma, follicular tumors, and medullary carcinoma. After the thyroid nodules are discovered by ultrasound examination during clinical work, it is necessary to predict the nature and malignant risk of each nodule. Experienced ultrasound physicians can usually identify follicular tumors, but there is also a certain misdiagnosis rate, and doctors in hospitals may also have difficulties in identification.
[0003] Computer-aided diagnosis technology has been widely used in ultrasound image analysis of thyroid nodules, but the existing auxiliary diagnosis software is based on the Thyroid Imaging Reporting and Data System (TIRADS) for grading. This system focuses on the screening of papillary thyroid carcinoma. It has limited diagnostic effect on malignant nodules with higher malignancy and less obvious malignant signs, such as follicular tumors and medullary carcinomas, and is prone to misdiagnosis and missed diagnosis.
[0004] Therefore, researchers and radiologists are in urgent need of adopting new technologies to complete the screening of thyroid follicular tumors and medullary carcinoma, thereby assisting clinicians in their diagnosis and treatment decisions and reducing their diagnostic pressure. Summary of the invention
[0005] In view of this, the embodiments of the present application provide a thyroid nodular lesion classification model training method, classification method and device to eliminate or improve one or more defects existing in the prior art.
[0006] One aspect of the present application provides a thyroid nodular lesion classification model training method, comprising:
[0007] A preset fully grouped convolutional neural optimization model is trained using ultrasound image training samples that are respectively provided with labels, wherein the fully grouped convolutional neural optimization model is formed by adding a dense connection module to the original fully grouped convolutional neural model and replacing the maximum pooling layer in the original fully grouped convolutional neural model with a dilated convolutional layer; wherein the label is used to indicate the type of thyroid nodular lesions to which the corresponding ultrasound image training sample belongs; the types of thyroid nodular lesions include: nodular goiter, thyroid follicular tumor, thyroid papillary carcinoma and thyroid medullary carcinoma;
[0008] The trained full-group convolutional neural optimization model is determined as the thyroid nodule lesion classification model currently used to predict the type of thyroid nodule lesions to which the ultrasound image belongs.
[0009] In some embodiments of the present application, the fully grouped convolutional neural optimization model includes: an optimized input stream module, a first dense connection module, an intermediate stream module, a second dense connection module, an optimized output stream module, and a fully connected layer connected in sequence;
[0010] The first dense connection module is also connected to the input end of the optimized input flow module; the second dense connection module is also connected to the input end of the optimized input flow module, the output end of the optimized input flow module and the input end of the intermediate flow module respectively;
[0011] The optimized input stream module is used to extract features from the ultrasound image training sample currently obtained from its own input end to obtain a first output feature map;
[0012] The first dense connection module is used to connect the ultrasound image training sample currently transmitted from the input end of the optimized input stream module with the first output feature map transmitted from the output end of the optimized input stream module in the channel dimension to obtain a corresponding first input feature map, and transmit the first input feature map to the input end of the intermediate stream module;
[0013] The intermediate stream module is used to perform feature extraction on the first input feature map currently obtained from its own input end to obtain a second output feature map;
[0014] The second dense connection module is used to connect the ultrasound image training sample currently obtained from the input end of the optimized input stream module, the first output feature map obtained from the output end of the optimized input stream module, and the second output feature map obtained from the output end of the intermediate stream module in the channel dimension to obtain a corresponding second input feature map, and transmit the second input feature map to the input end of the optimized output stream module;
[0015] The optimized output stream module is used to perform feature extraction on the second input feature map currently obtained from its own input end to obtain a corresponding target output feature map;
[0016] The fully connected layer is used to classify the target output feature map output by the optimized output stream module into thyroid nodular lesions, so as to obtain the type of thyroid nodular lesions to which the ultrasound image training sample belongs.
[0017] In some embodiments of the present application, the original fully grouped convolutional neural model includes: an input stream module, an intermediate stream module, an output stream module, and a fully connected layer connected in sequence;
[0018] Correspondingly, before using the ultrasound image training samples with labels to train the preset full group convolutional neural optimization model, it also includes:
[0019] Replacing each maximum pooling layer in the input stream module with a hole convolution layer to form a corresponding optimized input stream module, and replacing each maximum pooling layer in the output stream module with a hole convolution layer to form a corresponding optimized output stream module;
[0020] A first dense connection module is added between the output end of the optimized input flow module and the input end of the intermediate flow module, and a second dense connection module is added between the output end of the intermediate flow module and the input end of the optimized output flow module, thereby constructing a fully grouped convolutional neural optimization model including the optimized input flow module, the first dense connection module, the intermediate flow module, the second dense connection module, the optimized output flow module and the fully connected layer connected in sequence.
[0021] In some embodiments of the present application, the fully grouped convolutional neural optimization model also includes: a transition layer arranged between the input end of the optimization input flow module and the first dense connection module for reducing the image dimension and reducing the image size, and another transition layer arranged between the input end of the intermediate flow module and the second dense connection module.
[0022] In some embodiments of the present application, the method of training a preset full-group convolutional neural optimization model using ultrasound image training samples respectively provided with labels includes:
[0023] Pre-training the fully grouped convolutional neural optimization model based on each ultrasound image data in the open source dataset;
[0024] Based on a preset hybrid loss function, each labeled ultrasound image training sample extracted from clinical data is used to fine-tune the pre-trained fully grouped convolutional neural optimization model.
[0025] In some embodiments of the present application, before using the ultrasound image training samples respectively provided with labels to train the preset full group convolution neural optimization model, the method further includes:
[0026] Binarizing the grayscale ultrasound images of each patient in the clinical data and extracting a connected region list corresponding to each grayscale ultrasound image, wherein the connected region list is used to store each connected region in the corresponding grayscale ultrasound image;
[0027] Determining the maximum connected area corresponding to each of the grayscale ultrasound images from each of the connected area lists;
[0028] Marking pixel coordinates of each of the maximum connected regions, so as to respectively intercept each of the maximum connected regions in each of the grayscale ultrasound images, and using each of the maximum connected regions as ultrasound image training samples;
[0029] The label is set for each of the ultrasound image training samples.
[0030] In some embodiments of the present application, the hybrid loss function is a hybrid loss that minimizes a cross entropy loss function and a focal loss function.
[0031] Another aspect of the present application provides a method for classifying thyroid nodular lesions, comprising:
[0032] receiving a grayscale ultrasound image of a target patient, and extracting a maximum connected region from the grayscale ultrasound image to obtain a target ultrasound image;
[0033] The target ultrasound image is input into a thyroid nodule lesion classification model so that the thyroid nodule lesion classification model outputs the thyroid nodule lesion type to which the target ultrasound image belongs, wherein the thyroid nodule lesion classification model is pre-trained based on the thyroid nodule lesion classification model training method.
[0034] The third aspect of the present application provides a thyroid nodular lesion classification model training device, comprising:
[0035] A model training module, for training a preset full-group convolutional neural optimization model using ultrasound image training samples respectively provided with labels, wherein the full-group convolutional neural optimization model is formed by adding a dense connection module to the original full-group convolutional neural model in advance and replacing the maximum pooling layer in the original full-group convolutional neural model with a dilated convolutional layer; wherein the label is used to indicate the type of thyroid nodular lesions to which the corresponding ultrasound image training sample belongs; the types of thyroid nodular lesions include: nodular goiter, thyroid follicular tumor, thyroid papillary carcinoma and thyroid medullary carcinoma;
[0036] The model determination module is used to determine the trained full-group convolutional neural optimization model as the thyroid nodule lesion classification model currently used to predict the thyroid nodule lesion type to which the ultrasound image belongs.
[0037] The fourth aspect of the present application provides a thyroid nodular lesion classification device, comprising:
[0038] An image receiving module, used for receiving a grayscale ultrasound image of a target patient, and extracting a maximum connected area from the grayscale ultrasound image to obtain a target ultrasound image;
[0039] A type prediction module is used to input the target ultrasound image into a thyroid nodule lesion classification model so that the thyroid nodule lesion classification model outputs the thyroid nodule lesion type to which the target ultrasound image belongs, wherein the thyroid nodule lesion classification model is pre-trained based on the thyroid nodule lesion classification model training method.
[0040] The fifth aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the processor implements the thyroid nodular lesion classification model training method and / or implements the thyroid nodular lesion classification method.
[0041] The sixth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the thyroid nodular lesion classification model training method and / or implements the thyroid nodular lesion classification method.
[0042] The seventh aspect of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the thyroid nodular lesion classification model training method and / or implements the thyroid nodular lesion classification method.
[0043] The thyroid nodular lesion classification model training method provided in the present application uses each ultrasound image training sample with a label to train a preset fully-grouped convolutional neural optimization model, wherein the fully-grouped convolutional neural optimization model is formed by adding a dense connection module to the original fully-grouped convolutional neural model and replacing the maximum pooling layer in the original fully-grouped convolutional neural model with a dilated convolutional layer; wherein the label is used to indicate the type of thyroid nodular lesion to which the corresponding ultrasound image training sample belongs; the types of thyroid nodular lesions include: nodular goiter, thyroid follicular tumor, thyroid papillary carcinoma and thyroid medullary carcinoma; the trained fully-grouped convolutional neural optimization model is determined as the thyroid nodular lesion classification model currently used to predict the type of thyroid nodular lesions to which the ultrasound image belongs. The present application optimizes a fully grouped convolutional neural optimization model based on the original fully grouped convolutional neural model, so that the optimization model can make full use of all intermediate features in the training process and effectively retain shallow features. At the same time, it can solve the problems of the original fully grouped convolutional neural model, such as the unlearnability of the maximum pooling layer and the easy loss of spatial hierarchical information (especially global information) of the feature graph. As a result, the fully grouped convolutional neural optimization model can be trained as a thyroid nodular lesion classification model for classifying nodular goiter, thyroid follicular tumor, thyroid papillary carcinoma and medullary thyroid carcinoma. It can not only effectively control the computational cost in the training process of the thyroid nodular lesion classification model, but also effectively improve the prediction accuracy and reliability of the thyroid nodular lesion classification model for predicting the type of thyroid nodular lesions, and thus effectively assist clinical physicians in their diagnosis and treatment decisions to reduce the diagnostic pressure of doctors.
[0044] Additional advantages, purposes, and features of the present application will be partially described in the following description, and will become partially apparent to those skilled in the art after studying the following, or may be learned from the practice of the present application. The purposes and other advantages of the present application can be achieved and obtained by the structures specifically pointed out in the specification and the drawings.
[0045] Those skilled in the art will understand that the purposes and advantages that can be achieved by the present application are not limited to the above specific description, and the above and other purposes that can be achieved by the present application will be more clearly understood based on the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The drawings described herein are used to provide a further understanding of the present application, constitute a part of the present application, and do not constitute a limitation of the present application. The components in the drawings are not drawn to scale, but are only for the purpose of illustrating the principles of the present application. In order to facilitate the illustration and description of some parts of the present application, the corresponding parts in the drawings may be enlarged, that is, they may become larger relative to other components in the exemplary device actually manufactured according to the present application. In the drawings:
[0047] Figure 1 This is a first flow chart of a method for training a thyroid nodular lesion classification model in one embodiment of the present application.
[0048] Figure 2 The figure is a schematic diagram showing an example of dense connection in an embodiment of the present application.
[0049] Figure 3 This is a schematic diagram of the first architecture of the fully grouped convolutional neural optimization model in one embodiment of the present application.
[0050] Figure 4 Schematic diagram of the architecture of the original fully grouped convolutional neural model.
[0051] Figure 5 This is a second flow chart of the thyroid nodular lesion classification model training method in one embodiment of the present application.
[0052] Figure 6 This is a schematic diagram of the architecture of the optimized input stream module in the fully grouped convolutional neural optimization model in one embodiment of the present application.
[0053] Figure 7 This is a schematic diagram of the architecture of the optimized output stream module in the fully grouped convolutional neural optimization model in one embodiment of the present application.
[0054] Figure 8 This is an architectural comparison diagram between a normal convolutional layer and a dilation rate 2 dilation rate hole convolutional layer.
[0055] Fig. 9 This is a schematic diagram of the second architecture of the fully grouped convolutional neural optimization model in one embodiment of the present application.
[0056] Fig.10 Schematic diagram of the flow of a method for classifying thyroid nodular lesions in one embodiment of the present application.
[0057] Fig.11 Schematic diagram of the structure of a thyroid nodular lesion classification model training device in one embodiment of the present application.
[0058] Fig.12 Schematic diagram of the structure of a device for classifying thyroid nodular lesions in one embodiment of the present application.
[0059] Fig.13 This is a structural diagram of the fully grouped convolutional neural optimization model after introducing dense connections in an application example of the present application.
[0060] Fig.14 This is a schematic diagram of the user interface of the thyroid nodular lesion classification program in an application example of the present application. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the implementation modes and the accompanying drawings. Here, the illustrative implementation modes and descriptions of the present application are used to explain the present application, but are not intended to limit the present application.
[0062] It should also be noted here that in order to avoid obscuring the present application due to unnecessary details, only the structures and / or processing steps closely related to the scheme according to the present application are shown in the accompanying drawings, while other details that are not very relevant to the present application are omitted.
[0063] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.
[0064] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.
[0065] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.
[0066] It should be noted in advance that the thyroid gland is an important endocrine gland in the human body and the largest endocrine gland in the human body. It plays a vital role in feedback regulation, affecting metabolism, and promoting development. Thyroid nodules are a very common thyroid lesion. Among the large number of patients currently existing, most thyroid nodules are benign nodules, and a small number have malignant risks, mainly including papillary carcinoma, follicular tumors, and medullary carcinoma. After the thyroid nodules are found by ultrasound examination in the clinical work, the nature and malignant risk of each nodule need to be predicted. Experienced ultrasound physicians can usually identify follicular tumors, but there is also a certain misdiagnosis rate, and doctors in hospitals may also have difficulties in identification.
[0067] There have been many studies on the classification of thyroid ultrasound images based on machine learning, but there are still some problems in the existing research: the classification method based on machine learning is too dependent on the subjective choice of researchers, which may cause great interference to the results depending on the different experiences of researchers; most of the existing studies focus on the major categories of thyroid lesions (such as inflammation, canceration, etc.), and even if detailed studies on nodules are conducted, they are mainly focused on papillary carcinoma, with limited attention paid to follicular tumors, medullary carcinoma, etc.
[0068] To solve the above problems, this application improves the fully grouped convolutional neural network commonly used in thyroid ultrasound image classification tasks, and comprehensively considers the sample number and imaging characteristics of various types of thyroid nodules for identification.
[0069] The details are described in detail through the following examples.
[0070] Based on this, the embodiment of the present application provides a thyroid nodular lesion classification model training method that can be implemented by a thyroid nodular lesion classification model training device. The thyroid nodular lesion classification model training device can be implemented by an electronic device, specifically a functional module in the electronic device, and the electronic device can be a client device or a server. Figure 1 The thyroid nodular lesion classification model training method specifically includes the following contents:
[0071] Step 100: Use each ultrasound image training sample with a label to train a preset fully-grouped convolutional neural optimization model, wherein the fully-grouped convolutional neural optimization model is formed by adding a dense connection module to the original fully-grouped convolutional neural model and replacing the maximum pooling layer in the original fully-grouped convolutional neural model with a dilated convolutional layer; wherein the label is used to indicate the type of thyroid nodular lesions to which the corresponding ultrasound image training sample belongs; the types of thyroid nodular lesions include: nodular goiter, thyroid follicular tumor, papillary thyroid carcinoma and medullary thyroid carcinoma.
[0072] It should be noted that dense connections were first proposed in the DenseNet network. The consideration is how to make full use of data features. By building dense connections between this layer and all subsequent layers, all intermediate features in the training process can be fully utilized. It is particularly outstanding in retaining shallow features, thereby achieving better performance. In an example, if the feature map includes the first feature map, the second feature map, and the third feature map, the dense connection is represented by c, then the connection of the dense connection is as follows Figure 2 shown.
[0073] Atrous convolutions, also known as dilated convolutions, can be used as multi-scale information integration modules in deep learning networks of various CNN architectures. They can be used to replace pooling layers to solve problems such as the unlearnability of pooling layers and the loss of spatial hierarchical information in feature maps, especially global information. Atrous convolutions only introduce the number of parameters of a single-layer convolution, effectively controlling the computational cost.
[0074] In one or more embodiments of the present application, in one or more embodiments of the present application, the full group convolutional neural network or the full group convolutional neural model refers to the Xception model, which is a deep convolutional neural network architecture inspired by the Inception model and constructed by replacing the Inception module with a depthwise separable convolution. This replacement enables the Xception model to further improve performance by using model parameters more efficiently while maintaining the same number of parameters as Inception V3.
[0075] On this basis, the original full-group convolutional neural model refers to the general architecture of the Xception model. The full-group convolutional neural optimization model refers to the one formed by adding a dense connection module to the general architecture of the Xception model in advance and replacing the maximum pooling layer in the general architecture of the Xception model with a hollow convolution layer.
[0076] In one or more embodiments of the present application, the Xception model can be directly used to represent the fully grouped convolutional neural model, and the Xception optimization model can be used to represent the fully grouped convolutional neural optimization model.
[0077] It can be understood that the remote storage space mentioned in the computing node configuration information used to specify the remote storage space corresponding to the target node is a remote storage space relative to the computing node. In other words, the computing node itself does not need to preset local storage space, and can obtain remote storage space from the storage system in the multi-computing service cluster.
[0078] Step 200: Determine the trained full-group convolutional neural optimization model as the thyroid nodule lesion classification model currently used to predict the thyroid nodule lesion type to which the ultrasound image belongs.
[0079] From the above description, it can be seen that the thyroid nodular lesion classification model training method provided in the embodiment of the present application optimizes the full-group convolutional neural optimization model based on the original full-group convolutional neural model, so that the optimization model can make the most of all intermediate features in the training process and effectively retain shallow features. At the same time, it can solve the problems of the maximum pooling layer of the original full-group convolutional neural model being unlearnable and the spatial hierarchical information of the feature graph (especially global information) being easily lost. As a result, the full-group convolutional neural optimization model can be trained as a thyroid nodular lesion classification model for classifying nodular goiters, thyroid follicular tumors, thyroid papillary carcinomas and medullary thyroid carcinomas. It can not only effectively control the computational cost in the training process of the thyroid nodular lesion classification model, but also effectively improve the prediction accuracy and reliability of the thyroid nodular lesion classification model for predicting the type of thyroid nodular lesions, thereby effectively assisting clinical physicians in their diagnosis and treatment decisions to reduce the diagnostic pressure of doctors.
[0080] In order to further maximize the use of all intermediate features in the training process and effectively retain shallow features, in a thyroid nodular lesion classification model training method provided in an embodiment of the present application, see Figure 3 The fully grouped convolutional neural optimization model in the thyroid nodular lesion classification model training method specifically includes the following contents:
[0081] The optimized input flow module 1, the first dense connection module 2, the middle flow module (Middle Flow) 3, the second dense connection module 4, the optimized output flow module 5 and the fully connected layer 6 are connected in sequence.
[0082] Among them, the first dense connection module 2 is also connected to the input end of the optimized input flow module 1; the second dense connection module 4 is also connected to the input end of the optimized input flow module 1, the output end of the optimized input flow module 1 and the input end of the intermediate flow module 3 respectively.
[0083] The optimized input stream module 1 is used to extract features from the ultrasound image training samples currently obtained from its own input end to obtain a first output feature map.
[0084] The first dense connection module 2 is used to connect the ultrasound image training sample currently transmitted from the input end of the optimized input stream module 1 with the first output feature map transmitted from the output end of the optimized input stream module 1 in the channel dimension to obtain the corresponding first input feature map, and transmit the first input feature map to the input end of the intermediate stream module 3.
[0085] The intermediate stream module 3 is used to perform feature extraction on the first input feature map currently obtained from its own input end to obtain a second output feature map.
[0086] The second dense connection module 4 is used to connect the ultrasound image training sample currently obtained from the input end of the optimized input flow module 1, the first output feature map obtained from the output end of the optimized input flow module 1, and the second output feature map obtained from the output end of the intermediate flow module 3 in the channel dimension to obtain the corresponding second input feature map, and transmit the second input feature map to the input end of the optimized output flow module 5.
[0087] The optimized output stream module 5 is used to perform feature extraction on the second input feature map currently obtained from its own input end to obtain a corresponding target output feature map.
[0088] The fully connected layer 6 is used to classify the target output feature map output by the optimized output stream module 5 into thyroid nodular lesions, so as to obtain the type of thyroid nodular lesions to which the ultrasound image training sample belongs.
[0089] In order to further ensure the application effectiveness of the full group convolutional neural optimization model and reduce the complexity of the optimization process, in a thyroid nodular lesion classification model training method provided in an embodiment of the present application, see Figure 4 The original fully grouped convolutional neural model includes: an input flow module (EntyFlow) 7, an intermediate flow module (MiddleFlow) 3, an output flow module (Exit Flow) 8 and a fully connected layer (FCLayer) 6 connected in sequence.
[0090] Specifically, the network structure of the original fully grouped convolutional neural model includes an input flow module (EntyFlow) 7, an intermediate flow module (Middle Flow) 3, an output flow module (Exit Flow) 8 and a fully connected layer (FCLayer) 6 connected in sequence, which are implemented using depthwise separable convolution. The input flow module (EntyFlow) 7 can first map the input feature map (i.e., ultrasound image training sample) to different channels through a 1x1 convolution operation to achieve separation between channels, and then use several 3x3 convolution kernels to perform convolution operations on different channels.
[0091] The architecture of the original fully grouped convolutional neural model has 36 convolutional layers (conv), which constitute the feature extraction basis of the original fully grouped convolutional neural model. The input flow module (EntyFlow) 7 contains 8 convolutional layers, the middle flow module (Middle Flow) 3 contains 3×8 = 24 convolutional layers, and the output flow module (Exit Flow) 8 contains 4 convolutional layers. The 36 convolutional layer structures are divided into 14 fully grouped convolutional neural modules (depth-separable convolutional stacking modules). Except for the first and last fully grouped convolutional neural modules, each of the other fully grouped convolutional neural modules has a residual structure connection.
[0092] For the input flow module (EntyFlow) 7, two 3×3 convolutional layers connected in sequence are first used to reduce the feature map size and increase the number of feature maps; then it includes three depth-wise separable convolutional stacking modules with skip connections connected in sequence.
[0093] For the middle flow module (Middle Flow) 3, it contains 8 identical depth-wise separable convolutional stacking modules with skip connections.
[0094] For the output flow module (Exit Flow) 8, the first is a depth-wise separable convolution stack module with skip connections, followed by some depth-wise separable convolution layers and global average pooling layers, and finally a fully connected layer.
[0095] Each fully grouped convolutional neural module consists of two depth-wise separable convolutional layers and a maximum pooling layer, and concatenates the input feature map and the output feature map through skip connections.
[0096] For the corresponding Figure 5 The step 100 in the thyroid nodular lesion classification model training method also specifically includes the following contents:
[0097] Step 010: Replace each maximum pooling layer in the input flow module with a hole convolution layer to form a corresponding optimized input flow module, and replace each maximum pooling layer in the output flow module with a hole convolution layer to form a corresponding optimized output flow module.
[0098] In one example, see Figure 6 The architecture of the optimized input stream module formed after the optimization in step 010 specifically includes: two 3×3 convolutional layers connected in sequence and three depth-separable convolutional stacking modules (not in Figure 6), and there are 1×1 convolution layers between the second 3×3 convolution layer and the first depth-wise separable convolution stacking module, between the first depth-wise separable convolution stacking module and the second depth-wise separable convolution stacking module, and between the second depth-wise separable convolution stacking module and the third depth-wise separable convolution stacking module, respectively, and the stride of the 1×1 convolution layer is 2.
[0099] The first depth-wise separable convolution stack module in the optimized input stream module includes a 3×3 separable convolution layer (SeparableConv) with 128 convolution kernels connected in sequence, another separable convolution layer (SeparableConv) with a ReLU function (abbreviated as ReLU), and a dilated convolution layer (DelationConV) with a dilation rate (dilation) of 2 and a convolution kernel size of 3×3.
[0100] The second depth-wise separable convolution stack module in the optimized input stream module includes a 3×3 separable convolution layer (SeparableConv) with 256 convolution kernels and a ReLU function, another separable convolution layer (SeparableConv) with a ReLU function, and a dilation rate of 2 and a convolution kernel size of 3×3.
[0101] The third depth-wise separable convolution stack module in the optimized input stream module includes a separable convolution layer (SeparableConv) with a convolution kernel size of 3×3 and a ReLU function, another separable convolution layer (SeparableConv) with a ReLU function, and a dilated convolution layer (DelationConV) with a dilation rate of 2 and a convolution kernel size of 3×3, which are connected in sequence and have 728 convolution kernels. 3×3 and 1×1 both represent the convolution kernel size.
[0102] In one example, see Figure 7 The architecture of the optimized output stream module formed after the optimization in step 010 specifically includes: two depthwise separable convolutional stacking modules connected in sequence, wherein the first depthwise separable convolutional stacking module is provided with a 1×1 convolutional layer, and the second depthwise separable convolutional stacking module is not provided with a 1×1 convolutional layer. Figure 7 As shown in Figure 2, the stride of the 1×1 convolutional layer is 2.
[0103] The first depth-wise separable convolution stack module in the optimized output stream module includes a 3×3 separable convolution layer (SeparableConv) with 728 convolution kernels and a ReLU function, another separable convolution layer (SeparableConv) with 1024 convolution kernels and a ReLU function, and a dilated convolution layer (DelationConV) with 1024 convolution kernels and a dilation rate of 2 and a convolution kernel size of 3×3.
[0104] The optimized output stream module is not Figure 7 The second depth-wise separable convolution stack module shown in includes a 3×3 separable convolution layer (SeparableConv) with 1536 convolution kernels and a ReLU function, another separable convolution layer (SeparableConv) with 2048 convolution kernels and a ReLU function, and a 3×3 dilated convolution layer (DelationConV) with 2048 convolution kernels and a dilation rate of 2.
[0105] That is to say, the optimized input flow module 1 and the optimized output flow module 5 of the fully grouped convolutional neural optimization model respectively introduce a dilated convolution layer to replace the maximum pooling layer of the original fully grouped convolutional neural model. The convolution kernel used by the dilated convolution layer is consistent with the general convolution, which is 3x3 convolution, with a dilation rate of 2, and the output dimension is consistent with the original pooling layer output. The architectural comparison between the ordinary convolution layer and the dilated convolution layer with a dilation rate of 2 is shown in Figure 2. Figure 8 shown.
[0106] Step 020: A first dense connection module is added between the output end of the optimized input flow module and the input end of the intermediate flow module, and a second dense connection module is added between the output end of the intermediate flow module and the input end of the optimized output flow module, thereby constructing a fully grouped convolutional neural optimization model including the optimized input flow module, the first dense connection module, the intermediate flow module, the second dense connection module, the optimized output flow module and the fully connected layer connected in sequence.
[0107] Specifically, dense connections are introduced between the input flow module (EntyFlow) 7, the intermediate flow module (Middle Flow) 3, and the output flow module (Exit Flow) 8 of the network structure of the original fully grouped convolutional neural model.
[0108] After the input image is encoded, it passes through a transition layer 9 and is connected to the middle flow module (Middle Flow) 3 of the full-group convolutional neural optimization model and the output feature map of the optimized output flow module 5. After the output feature map of the optimized input flow module 1 passes through another transition layer 9 and is connected to the output feature map of the optimized output flow module 5, the subsequent processing process is consistent with the full-group convolutional neural network. In this way, the thyroid nodular lesion classification model training method provided in the embodiment of the present application fully retains the shallow malignant texture structure characteristics of the input image by introducing dense connections, and the problem of effective link information loss is solved.
[0109] Furthermore, dense connection connects the output feature maps of all previous layers in the channel dimension and then uses them as the input feature maps of the next layer, ensuring that the network structure of each layer uses all the information of the previous layers. It can be foreseen that this connection method may lead to an unordered increase in the number of channels, resulting in serious computational overhead. In order to solve this problem, in a thyroid nodular lesion classification model training method provided in an embodiment of the present application, see Fig. 9 The fully grouped convolutional neural optimization model also specifically includes the following contents:
[0110] A transition layer 9 for reducing the image dimension and size is arranged between the input end of the optimized input stream module 1 and the first dense connection module 2, and another transition layer 9 is arranged between the input end of the intermediate stream module 3 and the second dense connection module 4.
[0111] In one example, the transition layer 9 may be provided with interconnected convolutional layers and average pooling layers, so that the dimension of the feature map of the input transition layer can be reduced through a 1x1 convolutional layer. At the same time, an average pooling layer with a step size of 2 can be used to reduce the feature map, thereby further reducing the computational complexity and memory usage of the model.
[0112] In order to further ensure the application effectiveness of the full group convolutional neural optimization model and reduce the complexity of the optimization process, in a thyroid nodular lesion classification model training method provided in an embodiment of the present application, see Figure 5 Step 100 in the thyroid nodular lesion classification model training method specifically includes the following contents:
[0113] Step 110: Pre-train the fully grouped convolutional neural optimization model based on each ultrasound image data in the open source dataset.
[0114] Step 120: Based on a preset hybrid loss function, fine-tune the pre-trained fully grouped convolutional neural optimization model using ultrasound image training samples with labels extracted from clinical data.
[0115] That is to say, the thyroid nodular lesion classification model training method provided in the embodiment of the present application takes into account the problem of insufficient clinical samples, adopts the idea of autoencoder to pre-train the model on an open source dataset, and then fine-tunes it on clinical data, effectively alleviating the overfitting problem.
[0116] In order to further improve the effectiveness and reliability of the hybrid loss function, the hybrid loss function is a hybrid loss that minimizes the cross entropy loss function and the focal loss function.
[0117] The cross entropy loss function CrossEntropyLoss is shown as follows:
[0118] CrossEntropyLoss =
[0119] Wherein, N represents the total number of categories, which is 4 in the embodiment. For the diagnosis conclusion, 0 is taken for nodular goiter, 1 is taken for follicular thyroid tumor, 2 is taken for papillary thyroid carcinoma, and 3 is taken for medullary thyroid carcinoma. This is the predicted value output by the multimodal deep learning model. Similarly, nodular goiter is 0, follicular thyroid tumor is 1, papillary thyroid carcinoma is 2, and medullary thyroid carcinoma is 3.
[0120] The focal loss function As shown below:
[0121]
[0122] in Represents the model's predicted probability for the t-th class label. α and γ are custom hyperparameters. α represents the class weight coefficient, which is a vector equal to the number of classes, and the sum of the weights is 1. Represents the category weight coefficient of the t-th category label, which is used to assign weights to different categories. γ represents the adjustment strength. The larger γ is, the greater the contribution of the prediction result to the loss.
[0123] In order to further ensure the application effectiveness of the full group convolutional neural optimization model and reduce the complexity of the optimization process, in a thyroid nodular lesion classification model training method provided in an embodiment of the present application, see Figure 5 The step 100 in the thyroid nodular lesion classification model training method also specifically includes the following contents:
[0124] Step 030: Binarize the grayscale ultrasound images of each patient in the clinical data and extract the connected region lists corresponding to each grayscale ultrasound image. The connected region lists are used to store each connected region in the corresponding grayscale ultrasound image.
[0125] Step 040: Determine the maximum connected region corresponding to each of the grayscale ultrasound images from each of the connected region lists.
[0126] Step 050: Mark the pixel coordinates of each of the maximum connected regions, so as to respectively intercept each of the maximum connected regions in each of the grayscale ultrasound images, and use each of the maximum connected regions as an ultrasound image training sample.
[0127] Step 060: setting the label for each of the ultrasound image training samples respectively.
[0128] Specifically, a training sample set is obtained, which includes grayscale ultrasound images of multiple patients and needs to be preprocessed. The overall process of the preprocessing algorithm is as shown in Table 1, Algorithm 1. First, the input image is binarized, and then all connected areas are found. The largest connected area is selected and its upper left pixel coordinates and lower right pixel coordinates are marked. The area between these two pixels in the original image is cut out as the valid area in the image.
[0129] Table 1
[0130]
[0131] The preprocessed data is input into the fully grouped convolutional neural optimization model to obtain the prediction result of the fully grouped convolutional neural optimization model for the entry data, and the prediction result is compared with the diagnosis result, minimizing the mixed loss of cross entropy loss and focal loss, and iterative training is performed to obtain a thyroid nodular lesion classification model.
[0132] That is to say, the thyroid nodular lesion classification model training method provided in the embodiment of the present application is not based on TIRADS, but is based on a deep learning model method to achieve image classification of thyroid nodular lesions, so that the diagnosis of thyroid nodules is not limited to papillary thyroid carcinoma, but can distinguish four types of thyroid nodular lesions including thyroid follicular tumors and medullary thyroid carcinoma, and provide a lightweight usage method, support local deployment and rapid use, reduce the misdiagnosis rate, and alleviate the diagnostic pressure on doctors.
[0133] Based on the above-mentioned thyroid nodular lesion classification model training method, the present application also provides an embodiment of a thyroid nodular lesion classification method that can be performed by a thyroid nodular lesion classification device. The thyroid nodular lesion classification device can be implemented by an electronic device, specifically a functional module in the electronic device, and the electronic device can be a client device or a server. Fig.10 The thyroid nodular lesion classification method specifically includes the following contents:
[0134] Step 300: Receive a grayscale ultrasound image of a target patient, and extract a maximum connected region from the grayscale ultrasound image to obtain a target ultrasound image.
[0135] Step 400: Input the target ultrasound image into a thyroid nodule lesion classification model so that the thyroid nodule lesion classification model outputs the thyroid nodule lesion type to which the target ultrasound image belongs, wherein the thyroid nodule lesion classification model is pre-trained based on the thyroid nodule lesion classification model training method.
[0136] The thyroid nodular lesion classification model training method in step 400 refers to the thyroid nodular lesion classification model training method mentioned in the above embodiment, which will not be repeated here.
[0137] From the above description, it can be seen that the thyroid nodular lesion classification method provided in the embodiment of the present application can be used to classify nodular goiter, thyroid follicular tumor, thyroid papillary carcinoma and medullary thyroid carcinoma, and can effectively improve the prediction accuracy and reliability of the thyroid nodular lesion classification model for predicting the type of thyroid nodular lesions, and can effectively assist clinical physicians in their diagnosis and treatment decisions to reduce the diagnostic pressure of doctors.
[0138] From the software level, the present application also provides a thyroid nodular lesion classification model training device for executing all or part of the thyroid nodular lesion classification model training method, see Fig.11 The thyroid nodular lesion classification model training device specifically includes the following contents:
[0139] The model training module 10 is used to train a preset fully-grouped convolutional neural optimization model using ultrasound image training samples that are respectively provided with labels. The fully-grouped convolutional neural optimization model is formed by adding a dense connection module to the original fully-grouped convolutional neural model and replacing the maximum pooling layer in the original fully-grouped convolutional neural model with a hollow convolution layer; wherein the label is used to indicate the type of thyroid nodular lesions to which the corresponding ultrasound image training sample belongs; the types of thyroid nodular lesions include: nodular goiter, thyroid follicular tumor, papillary thyroid carcinoma and medullary thyroid carcinoma.
[0140] The model determination module 20 is used to determine the trained full-group convolutional neural optimization model as the thyroid nodule lesion classification model currently used to predict the thyroid nodule lesion type to which the ultrasound image belongs.
[0141] The embodiment of the thyroid nodule lesion classification model training device provided in the present application can be specifically used to execute the processing flow of the embodiment of the thyroid nodule lesion classification model training method in the above-mentioned embodiment. Its functions will not be repeated here, and reference can be made to the detailed description of the above-mentioned thyroid nodule lesion classification model training method embodiment.
[0142] The part of the thyroid nodular lesion classification model training device that performs thyroid nodular lesion classification model training can be executed in a server (such as the aforementioned seed server) or completed in a client device. The specific selection can be based on the processing capability of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor for specific processing of thyroid nodular lesion classification model training.
[0143] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.
[0144] The server and the client device may communicate with each other using any suitable network protocol, including network protocols that have not yet been developed on the date of filing this application. The network protocols may include, for example, TCP / IP, UDP / IP, HTTP, HTTPS, etc. Of course, the network protocols may also include, for example, RPC (Remote Procedure Call Protocol) and REST (Representational State Transfer) protocols used on top of the above protocols.
[0145] From the above description, it can be seen that the thyroid nodular lesion classification model training device provided in the embodiment of the present application optimizes the full-group convolutional neural optimization model based on the original full-group convolutional neural model, so that the optimization model can make the most of all intermediate features in the training process and effectively retain shallow features. At the same time, it can solve the problems of the maximum pooling layer of the original full-group convolutional neural model being unlearnable and the spatial hierarchical information of the feature graph (especially global information) being easily lost. As a result, the full-group convolutional neural optimization model can be trained as a thyroid nodular lesion classification model for classifying nodular goiters, thyroid follicular tumors, thyroid papillary carcinomas and medullary thyroid carcinomas. It can not only effectively control the computational cost in the training process of the thyroid nodular lesion classification model, but also effectively improve the prediction accuracy and reliability of the thyroid nodular lesion classification model for predicting the type of thyroid nodular lesions, thereby effectively assisting clinical physicians in their diagnosis and treatment decisions to reduce the diagnostic pressure of doctors.
[0146] From the software level, the present application also provides a thyroid nodular lesion classification device for executing all or part of the thyroid nodular lesion classification method, see Fig.12 The thyroid nodular lesion classification device specifically includes the following contents:
[0147] The image receiving module 30 is used for receiving the grayscale ultrasound image of the target patient and extracting the maximum connected area from the grayscale ultrasound image to obtain the target ultrasound image.
[0148] The type prediction module 40 is used to input the target ultrasound image into the thyroid nodule lesion classification model so that the thyroid nodule lesion classification model outputs the thyroid nodule lesion type to which the target ultrasound image belongs, wherein the thyroid nodule lesion classification model is pre-trained based on the thyroid nodule lesion classification model training method.
[0149] The embodiment of the thyroid nodular lesion classification device provided in the present application can be specifically used to execute the processing flow of the embodiment of the thyroid nodular lesion classification method in the above-mentioned embodiment. Its functions will not be repeated here, and reference can be made to the detailed description of the above-mentioned thyroid nodular lesion classification method embodiment.
[0150] To further illustrate the above embodiments, the present application also provides a thyroid nodular lesion classification model training method and an application example of the thyroid nodular lesion classification method. The thyroid nodular lesion classification model training method provided in this application example can first obtain a training sample set, wherein the training sample set includes the patient's grayscale ultrasound image; then the collected data set is preprocessed and sent to the deep learning model for image classification; the deep learning model introduces structures such as dense connections and void convolutions to retain more disease information, thereby obtaining more accurate prediction results and reducing the diagnostic pressure on clinicians. In some embodiments, the deep learning model is a fully grouped convolutional neural optimization model, such as Fig.13 As shown in the figure, dense connections and dilated convolutions are introduced and trained to achieve the classification of ultrasound images of thyroid nodular lesions. Among them, the full group convolution neural optimization model can improve the prediction accuracy by more than 7 percentage points.
[0151] On the other hand, this application example also provides a method for classifying thyroid nodular lesions. The program interface can be used as follows: Fig.14 As shown, the classification method of thyroid nodular lesions includes:
[0152] Obtain grayscale ultrasound images of the patient to be tested and preprocess them according to the data set organization format. Send the preprocessed data to the deep learning model for ultrasound image classification of thyroid nodular lesions to obtain the prediction results.
[0153] Specifically, obtain the patient's diagnostic data, including grayscale ultrasound images, and process them as described in the training method. Open the locally deployed visualization application and input the grayscale ultrasound images into the program. Click the "Start Classification" button to obtain the prediction results. It supports inputting multiple images of the same case for joint classification. At this time, the program outputs the classification probability of each lesion in the case.
[0154] Table 2
[0155]
[0156] Table 2 above shows the effect of the fully grouped convolutional neural optimization model on the test set. F1-score is the harmonic mean of precision and recall, which can be used as a comprehensive evaluation indicator to measure the performance of the model. Recall reflects the ability of the model to predict positive samples, which reflects the situation of missed detection. Considering the severity of follicular thyroid cancer, specificity reflects the ability of the model to predict negative samples. In addition, PPV and NPV reflect the precision and missed detection rate respectively. The formulas of the above indicators are as follows:
[0157]
[0158]
[0159]
[0160]
[0161]
[0162]
[0163] in, Indicates accuracy, represents the recall rate, It is a score, the F1 score is used to measure the accuracy of the model. Indicates accuracy, represents specificity, TP represents true positive, TN represents true negative, FP represents false positive, and FN represents false negative. According to the results, the multimodal deep learning model for preoperative prediction of thyroid follicular carcinoma proposed in this application example shows excellent performance in all indicators.
[0164] The training method, prediction method and device of the deep learning model for thyroid nodular lesion ultrasound image classification described in this application example use the patient's grayscale ultrasound image as input for ultrasound image classification. The model can combine local medical image features with clinical data, retain more disease information, and thus obtain more accurate prediction results.
[0165] The present application also provides an electronic device (such as a seed server), which may include a processor, a memory, a receiver, and a transmitter, wherein the processor is used to execute the thyroid nodular lesion classification model training method and / or the thyroid nodular lesion classification method mentioned in the above embodiment, wherein the processor and the memory may be connected via a bus or other means, with the bus connection being used as an example. The receiver may be connected to the processor and the memory via a wired or wireless manner.
[0166] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0167] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the thyroid nodular lesion classification model training method and / or the thyroid nodular lesion classification method in the embodiments of the present application. The processor executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory, that is, implementing the thyroid nodular lesion classification model training method and / or the thyroid nodular lesion classification method in the above method embodiments.
[0168] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0169] The one or more modules are stored in the memory, and when executed by the processor, perform the thyroid nodular lesion classification model training method and / or thyroid nodular lesion classification method in the embodiment.
[0170] In some embodiments of the present application, the user equipment may include a processor, a memory, and a transceiver unit, which may include a receiver and a transmitter. The processor, memory, receiver, and transmitter may be connected through a bus system. The memory is used to store computer instructions, and the processor is used to execute the computer instructions stored in the memory to control the transceiver unit to send and receive signals.
[0171] As an implementation method, the functions of the receiver and the transmitter in the present application can be considered to be implemented through a transceiver circuit or a dedicated chip for transceiver, and the processor can be considered to be implemented through a dedicated processing chip, a processing circuit or a general chip.
[0172] As another implementation method, it is possible to use a general-purpose computer to implement the server provided in the embodiment of the present application, that is, to store the program code for implementing the functions of the processor, receiver, and transmitter in a memory, and the general-purpose processor implements the functions of the processor, receiver, and transmitter by executing the code in the memory.
[0173] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned thyroid nodular lesion classification model training method and / or thyroid nodular lesion classification method are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0174] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the thyroid nodular lesion classification model training method and / or the thyroid nodular lesion classification method.
[0175] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.
[0176] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0177] In the present application, features described and / or illustrated for one embodiment may be used in the same manner or in a similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.
[0178] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the embodiments of the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A thyroid nodular lesion classification model training method, characterized in that: include: A preset fully grouped convolutional neural optimization model is trained using ultrasound image training samples that are respectively provided with labels, wherein the fully grouped convolutional neural optimization model is formed by adding a dense connection module to the original fully grouped convolutional neural model and replacing the maximum pooling layer in the original fully grouped convolutional neural model with a dilated convolutional layer; wherein the label is used to indicate the type of thyroid nodular lesions to which the corresponding ultrasound image training sample belongs; the types of thyroid nodular lesions include: nodular goiter, thyroid follicular tumor, thyroid papillary carcinoma and thyroid medullary carcinoma; Determine the trained full-group convolutional neural optimization model as the thyroid nodule lesion classification model currently used to predict the type of thyroid nodule lesion to which the ultrasound image belongs; The fully grouped convolutional neural optimization model includes: an optimized input flow module, a first dense connection module, an intermediate flow module, a second dense connection module, an optimized output flow module and a fully connected layer connected in sequence; The first dense connection module is also connected to the input end of the optimized input flow module; the second dense connection module is also connected to the input end of the optimized input flow module, the output end of the optimized input flow module and the input end of the intermediate flow module respectively; The optimized input stream module is used to extract features from the ultrasound image training sample currently obtained from its own input end to obtain a first output feature map; The first dense connection module is used to connect the ultrasound image training sample currently transmitted from the input end of the optimized input stream module with the first output feature map transmitted from the output end of the optimized input stream module in the channel dimension to obtain a corresponding first input feature map, and transmit the first input feature map to the input end of the intermediate stream module; The intermediate stream module is used to perform feature extraction on the first input feature map currently obtained from its own input end to obtain a second output feature map; The second dense connection module is used to connect the ultrasound image training sample currently obtained from the input end of the optimized input stream module, the first output feature map obtained from the output end of the optimized input stream module, and the second output feature map obtained from the output end of the intermediate stream module in the channel dimension to obtain a corresponding second input feature map, and transmit the second input feature map to the input end of the optimized output stream module; The optimized output stream module is used to perform feature extraction on the second input feature map currently obtained from its own input end to obtain a corresponding target output feature map; The fully connected layer is used to classify the target output feature map output by the optimized output stream module into thyroid nodular lesions, so as to obtain the type of thyroid nodular lesions to which the ultrasound image training sample belongs; The original fully grouped convolutional neural model includes: an input stream module, an intermediate stream module, an output stream module and a fully connected layer connected in sequence; Correspondingly, before using the ultrasound image training samples with labels to train the preset full group convolutional neural optimization model, it also includes: Replacing each maximum pooling layer in the input stream module with a hole convolution layer to form a corresponding optimized input stream module, and replacing each maximum pooling layer in the output stream module with a hole convolution layer to form a corresponding optimized output stream module; A first dense connection module is added between the output end of the optimized input flow module and the input end of the intermediate flow module, and a second dense connection module is added between the output end of the intermediate flow module and the input end of the optimized output flow module, thereby constructing a fully grouped convolutional neural optimization model including the optimized input flow module, the first dense connection module, the intermediate flow module, the second dense connection module, the optimized output flow module and the fully connected layer connected in sequence; The fully grouped convolutional neural optimization model further includes: a transition layer arranged between the input end of the optimized input stream module and the first dense connection module for reducing the image dimension and reducing the image size, and another transition layer arranged between the input end of the intermediate stream module and the second dense connection module; Before the method of using the ultrasound image training samples respectively provided with labels to train the preset full group convolution neural optimization model, it also includes: Binarizing the grayscale ultrasound images of each patient in the clinical data and extracting a connected region list corresponding to each grayscale ultrasound image, wherein the connected region list is used to store each connected region in the corresponding grayscale ultrasound image; Determining the maximum connected area corresponding to each of the grayscale ultrasound images from each of the connected area lists; Marking pixel coordinates of each of the maximum connected regions, so as to respectively intercept each of the maximum connected regions in each of the grayscale ultrasound images, and using each of the maximum connected regions as ultrasound image training samples; The label is set for each of the ultrasound image training samples.
2. The thyroid nodular lesion classification model training method according to claim 1, characterized in that: The method of using ultrasound image training samples with labels to train a preset full-group convolutional neural optimization model includes: Pre-training the fully grouped convolutional neural optimization model based on each ultrasound image data in the open source dataset; Based on a preset hybrid loss function, each labeled ultrasound image training sample extracted from clinical data is used to fine-tune the pre-trained fully grouped convolutional neural optimization model.
3. The thyroid nodular lesion classification model training method according to claim 2, characterized in that: The hybrid loss function is a hybrid loss that minimizes the cross entropy loss function and the focal loss function.
4. A method for classifying thyroid nodular lesions, characterized in that: include: receiving a grayscale ultrasound image of a target patient, and extracting a maximum connected region from the grayscale ultrasound image to obtain a target ultrasound image; The target ultrasound image is input into a thyroid nodule lesion classification model so that the thyroid nodule lesion classification model outputs the thyroid nodule lesion type to which the target ultrasound image belongs, wherein the thyroid nodule lesion classification model is pre-trained based on the thyroid nodule lesion classification model training method described in any one of claims 1 to 3.
5. A thyroid nodular lesion classification model training device, characterized in that: include: A model training module, for training a preset full-group convolutional neural optimization model using ultrasound image training samples respectively provided with labels, wherein the full-group convolutional neural optimization model is formed by adding a dense connection module to the original full-group convolutional neural model in advance and replacing the maximum pooling layer in the original full-group convolutional neural model with a dilated convolutional layer; wherein the label is used to indicate the type of thyroid nodular lesions to which the corresponding ultrasound image training sample belongs; the types of thyroid nodular lesions include: nodular goiter, thyroid follicular tumor, thyroid papillary carcinoma and thyroid medullary carcinoma; A model determination module, used to determine the trained full-group convolutional neural optimization model as a thyroid nodular lesion classification model currently used to predict the type of thyroid nodular lesions to which the ultrasound image belongs; The fully grouped convolutional neural optimization model includes: an optimized input flow module, a first dense connection module, an intermediate flow module, a second dense connection module, an optimized output flow module and a fully connected layer connected in sequence; The first dense connection module is also connected to the input end of the optimized input flow module; the second dense connection module is also connected to the input end of the optimized input flow module, the output end of the optimized input flow module and the input end of the intermediate flow module respectively; The optimized input stream module is used to extract features from the ultrasound image training sample currently obtained from its own input end to obtain a first output feature map; The first dense connection module is used to connect the ultrasound image training sample currently transmitted from the input end of the optimized input stream module with the first output feature map transmitted from the output end of the optimized input stream module in the channel dimension to obtain a corresponding first input feature map, and transmit the first input feature map to the input end of the intermediate stream module; The intermediate stream module is used to perform feature extraction on the first input feature map currently obtained from its own input end to obtain a second output feature map; The second dense connection module is used to connect the ultrasound image training sample currently obtained from the input end of the optimized input stream module, the first output feature map obtained from the output end of the optimized input stream module, and the second output feature map obtained from the output end of the intermediate stream module in the channel dimension to obtain a corresponding second input feature map, and transmit the second input feature map to the input end of the optimized output stream module; The optimized output stream module is used to perform feature extraction on the second input feature map currently obtained from its own input end to obtain a corresponding target output feature map; The fully connected layer is used to classify the target output feature map output by the optimized output stream module into thyroid nodular lesions, so as to obtain the type of thyroid nodular lesions to which the ultrasound image training sample belongs; The original fully grouped convolutional neural model includes: an input stream module, an intermediate stream module, an output stream module and a fully connected layer connected in sequence; Correspondingly, before using the ultrasound image training samples with labels to train the preset full group convolutional neural optimization model, it also includes: Replacing each maximum pooling layer in the input stream module with a hole convolution layer to form a corresponding optimized input stream module, and replacing each maximum pooling layer in the output stream module with a hole convolution layer to form a corresponding optimized output stream module; A first dense connection module is added between the output end of the optimized input flow module and the input end of the intermediate flow module, and a second dense connection module is added between the output end of the intermediate flow module and the input end of the optimized output flow module, thereby constructing a fully grouped convolutional neural optimization model including the optimized input flow module, the first dense connection module, the intermediate flow module, the second dense connection module, the optimized output flow module and the fully connected layer connected in sequence; The fully grouped convolutional neural optimization model further includes: a transition layer arranged between the input end of the optimized input stream module and the first dense connection module for reducing the image dimension and reducing the image size, and another transition layer arranged between the input end of the intermediate stream module and the second dense connection module; Before the preset full-group convolutional neural optimization model is trained using the ultrasound image training samples respectively provided with labels, the thyroid nodular lesion classification model training device is further used to perform the following contents: Binarizing the grayscale ultrasound images of each patient in the clinical data and extracting a connected region list corresponding to each grayscale ultrasound image, wherein the connected region list is used to store each connected region in the corresponding grayscale ultrasound image; Determining the maximum connected area corresponding to each of the grayscale ultrasound images from each of the connected area lists; Marking pixel coordinates of each of the maximum connected regions, so as to respectively intercept each of the maximum connected regions in each of the grayscale ultrasound images, and using each of the maximum connected regions as ultrasound image training samples; The label is set for each of the ultrasound image training samples.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the thyroid nodular lesion classification model training method as described in any one of claims 1 to 3, and / or implements the thyroid nodular lesion classification method as described in claim 4.
