A risk stratification system for thyroid cancer patients based on machine learning
Through the combination of the dual-path evidence network model and the generative adversarial network model, the image segmentation and data unity problems in traditional thyroid cancer patient risk grading are solved, and the accuracy and adaptability of the model are improved.
Patent Information
- Application Number
- CN202410929307.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-11
AI Technical Summary
The traditional risk classification of thyroid cancer patients requires a large amount of accurate label data when segmenting thyroid cancer images, and is unable to handle highly complex segmentation tasks. Moreover, it is limited by the singleness and limitations of the data, making it difficult to capture hidden complex features and cannot Adapt to various complex situations in actual environments.
A dual-path evidence network model is used for thyroid cancer image segmentation to generate high-quality pseudo labels, and data enhancement is performed by combining the transformer's generative adversarial network model to improve the quality and richness of the data.
Effectively fuse the evidence of the two paths to generate high-quality pseudo-labels, reducing the need for a large amount of accurate label data, improving the accuracy and robustness of the model, and being able to adapt to various situations in complex actual environments.
Smart Images

Figure CN118471519B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of thyroid cancer risk grading, and specifically to a thyroid cancer patient risk grading system based on machine learning. Background Art
[0002] The risk stratification of thyroid cancer patients is based on clinical and medical imaging technology, which conducts a comprehensive analysis of factors such as the patient's tumor characteristics, age, and health status to help doctors more accurately assess the patient's disease progression and treatment needs, and provide doctors with personalized treatment recommendations, thereby improving the patient's prognosis and survival rate.
[0003] However, when performing thyroid cancer image segmentation, traditional thyroid cancer patient risk grading has the technical problem that it needs a large amount of accurate labeled data to cope with complex and diverse thyroid cancer CT images and is unable to cope with highly complex segmentation tasks. When performing risk grading, traditional thyroid cancer patient risk grading is limited by the singleness and limitations of the data, making it difficult for the model to capture hidden complex features and unable to adapt to various complex situations in the actual environment. Summary of the invention
[0004] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides a thyroid cancer patient risk grading system based on machine learning. The traditional thyroid cancer patient risk grading has the technical problem that when performing thyroid cancer image segmentation, it faces complex and diverse thyroid cancer CT images, requires a large amount of accurate label data, and is unable to cope with highly complex segmentation tasks. This scheme creatively adopts a dual-path evidence network model for thyroid cancer image segmentation, which can effectively fuse the evidence of the two paths to generate high-quality pseudo-labels, so that the model is not restricted by the demand for a large amount of accurate label data; the traditional thyroid cancer patient risk grading is limited by the singleness and limitations of the data when performing risk grading, making it difficult for the model to capture hidden complex features and unable to adapt to various complex situations in the actual environment. This scheme creatively adopts a generative adversarial network model combined with a transformer for data enhancement, improves the quality and richness of the data, and thereby improves the accuracy and robustness of the model.
[0005] The technical solution adopted by the present invention is as follows: A risk grading system for thyroid cancer patients based on machine learning provided by the present invention comprises a data acquisition module, a data preprocessing module, a thyroid cancer image segmentation module, a thyroid cancer data enhancement module and a thyroid cancer risk grading module;
[0006] The data acquisition module obtains historical data sets and current patient data sets through data acquisition;
[0007] The data preprocessing module obtains a thyroid cancer image data set by preprocessing the image data;
[0008] The thyroid cancer image segmentation module performs image segmentation by constructing a dual-path evidence network model to obtain a thyroid cancer segmentation image dataset;
[0009] The thyroid cancer data enhancement module performs data enhancement by constructing a generative adversarial network model combined with a transformer to obtain a thyroid cancer enhanced image dataset;
[0010] The thyroid cancer risk grading module performs risk grading by constructing a thyroid cancer risk grading model.
[0011] Furthermore, in the data acquisition module, the historical data set is specifically a historical thyroid cancer CT image data set, and the current patient data set is specifically a current patient thyroid cancer CT image data set.
[0012] Further, in the data preprocessing module, the preprocessing of the image data is specifically performed by size standardization, contrast enhancement, image denoising and data annotation to obtain the thyroid cancer image data set;
[0013] The size normalization includes image cropping and padding as well as fixed-size scaling. The contrast enhancement includes contrast stretching. The image denoising includes denoising using Gaussian filters and median filters. The data labeling includes labeling the image data as low risk, medium risk and high risk, and using the labeling as data labels.
[0014] Furthermore, in the thyroid cancer image segmentation module, the dual-path evidence network model specifically includes an encoder and an upper path decoder and a lower path decoder with shared parameters, the input of the upper path decoder is the output of the encoder, and the input of the lower path decoder is the result of the output of the encoder after random discarding;
[0015] The thyroid cancer image segmentation module specifically includes pixel evidence collection, dual-path fusion, loss function design and thyroid cancer image segmentation;
[0016] The pixel evidence collection includes upper path evidence collection and lower path evidence collection;
[0017] The above-mentioned evidence collection includes:
[0018] Construct the upper path evidence, the formula used is as follows:
[0019] ;
[0020] In the formula, H represents the height of the input image data, and W represents the width of the input image data. represents the upper path evidence, Represents the Softplus operation function, represents the upper path evidence set, K represents the number of image segmentation types, Represents the number of observations that support the i-th pixel to be classified into the j-th image segmentation;
[0021] The parameters and total strength of the upper path Dirichlet distribution are calculated using the following formula:
[0022] ;
[0023] In the formula, represents the upper path Dirichlet distribution parameter, represents the total intensity of the upper path Dirichlet distribution of the i-th pixel;
[0024] The confidence quality and uncertainty quality of the upper path are calculated using the following formula:
[0025] ;
[0026] In the formula, represents the upper path confidence quality of the i-th pixel of the j-th image segmentation, represents the uncertainty quality of the upper path of the ith pixel, Indicates restrictions;
[0027] The upper path pixel category prediction uses the following formula:
[0028] ;
[0029] In the formula, represents the upper path probability of the i-th pixel being classified into the j-th image segmentation;
[0030] The following evidence collection includes:
[0031] Construct the path evidence, the formula used is as follows:
[0032] ;
[0033] In the formula, represents the next path evidence, represents the next path evidence set, Represents the random discard processing function;
[0034] Calculate the parameters and total strength of the lower path Dirichlet distribution using the following formula:
[0035] ;
[0036] In the formula, represents the lower path Dirichlet distribution parameter, represents the total intensity of the lower path Dirichlet distribution of the i-th pixel;
[0037] The confidence quality and uncertainty quality of the lower path are calculated using the following formula:
[0038] ;
[0039] In the formula, represents the confidence quality of the next path of the i-th pixel in the j-th image segmentation, represents the uncertainty quality of the next path of the ith pixel, Indicates restrictions;
[0040] The following formula is used to predict the pixel category of the next path:
[0041] ;
[0042] In the formula, represents the probability of the i-th pixel being classified into the next path of the j-th image segmentation;
[0043] The dual-path fusion includes:
[0044] The fusion confidence quality and fusion uncertainty quality are calculated using the following formula:
[0045] ;
[0046] In the formula, represents the fusion confidence quality, represents the fusion uncertainty quality, n represents the image segmentation class index of the upper path confidence quality, and m represents the image segmentation class index of the lower path confidence quality;
[0047] Calculate the parameters of the fused Dirichlet distribution and the total strength of the fused Dirichlet distribution using the following formula:
[0048] ;
[0049] In the formula, Indicates the integration of evidence, represents the total intensity of the fused Dirichlet distribution, represents the fused Dirichlet distribution parameter;
[0050] Fusion pixel category prediction, the formula used is as follows:
[0051] ;
[0052] In the formula, Represents the fusion probability that the i-th pixel is classified into the j-th image segmentation;
[0053] The design loss function includes:
[0054] Generate hard false labels, which are used to generate hard false labels for unlabeled pixels. The formula used is as follows:
[0055] ;
[0056] In the formula, Indicates a hard fake label. Indicates the parameter when the target value is maximized. represents the fusion probability set;
[0057] Calculate the upper and lower path consistency loss, the formula used is as follows:
[0058] ;
[0059] In the formula, represents the consistency loss value of the upper and lower paths, represents the Dice loss function, represents the upper path probability set, represents the next path probability set;
[0060] The thyroid cancer image segmentation is specifically to construct the dual-path evidence network model through the pixel evidence collection, the dual-path fusion and the designed loss function to obtain the dual-path evidence network model, and use the dual-path evidence network model to perform image segmentation on the thyroid cancer image dataset to obtain the thyroid cancer segmented image dataset.
[0061] Further, in the thyroid cancer data enhancement module, the generative adversarial network model combined with the transformer specifically includes a discriminator and a generator using an autoencoder based on the transformer model;
[0062] The thyroid cancer data enhancement module specifically includes constructing a generator, constructing a discriminator, designing a contrast loss function, and performing data enhancement;
[0063] The construction of the generator includes constructing a multi-head attention unit and constructing a generator multi-layer perception unit;
[0064] The multi-head attention unit is constructed, including:
[0065] The query vector, key vector, and value vector are calculated using the following formula:
[0066] ;
[0067] In the formula, represents the query vector of the a-th head, represents the key vector of the a-th head, represents the value vector of the a-th head, represents the input of the generator, represents the parameter matrix of the query vector of the a-th head, The parameter matrix representing the key vector of the a-th head, The parameter matrix representing the value vector of the a-th head, h represents the total number of heads;
[0068] To calculate the head attention output, the formula used is as follows:
[0069] ;
[0070] In the formula, represents the output vector of the a-th head, represents the Softmax function, represents the dimension of the key vector, and T represents the transpose operation;
[0071] To calculate the multi-head attention unit output, the formula used is as follows:
[0072] ;
[0073] In the formula, represents the multi-head attention unit output, represents the vector connection function, represents the output vector of the first head, represents the output vector of the second head, represents the output vector of the h-th head, represents the weight matrix used for linear transformation;
[0074] The generator multi-layer perception unit is constructed using the following formula:
[0075] ;
[0076] In the formula, represents the multi-layer perceptron output of the first-layer generator, represents the Sigmoid activation function, represents the multi-layer perceptron weight matrix of the first-layer generator, represents the first layer generator multi-layer perceptron bias vector, represents the multi-layer perceptron output of the b+1th layer generator, represents the multi-layer perceptron output of the b-th layer generator, represents the multi-layer perceptron weight matrix of the b+1th layer generator, represents the multi-layer perceptron bias vector of the b+1th layer generator, Indicates the number of multi-layer perception layers of the generator;
[0077] The discriminator is constructed specifically to construct a discriminator multi-layer perception unit, the last layer of the discriminator multi-layer perception unit is used to obtain the output of the discriminator, and the other layers of the discriminator multi-layer perception unit are used to extract hidden features. The formula used in constructing the discriminator is as follows:
[0078] ;
[0079] In the formula, represents the first layer discriminator multi-layer perception output, represents the discriminator input, represents the first layer discriminator multi-layer perception weight matrix, represents the first layer discriminator multi-layer perception bias vector, represents the multi-layer perception output of the r+1th layer discriminator, represents the r-th layer discriminator multi-layer perception output, represents the multi-layer perceptron weight matrix of the r+1th layer discriminator, represents the multi-layer perceptron bias vector of the r+1th layer discriminator, represents the number of multi-layer perception layers of the discriminator, represents the output of the discriminator module, Y represents the risk label, Indicates Layer discriminator multi-layer perceptron weight matrix, Indicates Layer discriminator multi-layer perception output, Indicates layer discriminator multi-layer perceptron bias vector;
[0080] The design contrast loss function uses the following formula:
[0081] ;
[0082] In the formula, represents the contrast loss value, N represents the number of samples, represents the u-th sample, represents the vth sample, represents the Euclidean distance function;
[0083] The data enhancement is specifically performed by constructing the generative adversarial network model combined with the transformer through the construction of the generator, the construction of the discriminator and the design of the contrast loss function to obtain the generative adversarial network model combined with the transformer, and using the generative adversarial network model combined with the transformer to perform data enhancement on the thyroid cancer segmentation image dataset to obtain the patient physical condition enhanced dataset.
[0084] Further, in the thyroid cancer risk grading module, the thyroid cancer risk grading model is specifically a convolutional neural network model, and the convolutional neural network model specifically includes a convolutional layer, a pooling layer, a batch normalization layer and a fully connected layer;
[0085] The thyroid cancer risk grading module specifically constructs the thyroid cancer risk grading model and performs model training based on the thyroid cancer enhanced image dataset, and uses the thyroid cancer risk grading model to perform risk grading on the current patient dataset.
[0086] The beneficial effects achieved by the present invention using the above scheme are as follows:
[0087] (1) Traditional thyroid cancer patient risk stratification has the technical problem of being unable to cope with highly complex segmentation tasks due to the need for a large amount of precise labeled data when performing thyroid cancer image segmentation due to the complex and diverse thyroid cancer CT images. This solution creatively uses a dual-path evidence network model for thyroid cancer image segmentation, which can effectively fuse the evidence of the two paths to generate high-quality pseudo-labels, making the model not restricted by the need for a large amount of precise labeled data.
[0088] (2) When analyzing the physical condition data of patients, the traditional thyroid cancer risk stratification is limited by the singleness and limitations of the data, making it difficult for the model to capture hidden complex features and unable to adapt to various situations in the actual environment. This solution creatively uses a generative adversarial network model combined with a transformer to perform data enhancement, improve the quality and richness of the data, and thereby improve the accuracy and robustness of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0089] Figure 1 A schematic diagram of a risk grading system for thyroid cancer patients based on machine learning provided by the present invention;
[0090] Figure 2 This is a flowchart of the thyroid cancer image segmentation module;
[0091] Figure 3 This is a flowchart of the thyroid cancer data enhancement module;
[0092] Figure 4 Schematic diagram of the dual-path evidence network model.
[0093] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0094] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0095] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0096] Example 1, see Figure 1 , a thyroid cancer patient risk grading system based on machine learning provided by the present invention comprises a data acquisition module, a data preprocessing module, a thyroid cancer image segmentation module, a thyroid cancer data enhancement module and a thyroid cancer risk grading module;
[0097] The data acquisition module is used for data acquisition, and obtains a historical data set and a current patient data set through data acquisition, and sends the historical data set to the data preprocessing module, and sends the current patient data set to the thyroid cancer risk grading module;
[0098] The data preprocessing module is used for data preprocessing, obtains a thyroid cancer image data set by preprocessing image data, and sends the thyroid cancer image data set to the thyroid cancer image segmentation module;
[0099] The thyroid cancer image segmentation module is used for thyroid cancer image segmentation, obtains a thyroid cancer segmentation image data set by performing image segmentation, and sends the thyroid cancer segmentation image data set to the thyroid cancer data enhancement module;
[0100] The thyroid cancer data enhancement module is used for thyroid cancer data enhancement, obtains a thyroid cancer enhanced image dataset by performing data enhancement, and sends the thyroid cancer enhanced image dataset to the thyroid cancer risk grading module;
[0101] The thyroid cancer risk grading module is used for thyroid cancer risk grading, and performs risk grading on the current patient data set by establishing a completed thyroid cancer risk grading model.
[0102] Example 2, see Figure 1 This embodiment is based on the above embodiment. In the data acquisition module, the historical data set is specifically a historical thyroid cancer CT image data set, and the current patient data set is specifically a current patient thyroid cancer CT image data set.
[0103] Example 3, see Figure 1 This embodiment is based on the above embodiment. In the data preprocessing module, the preprocessed image data is specifically preprocessed by size standardization, contrast enhancement, image denoising and data annotation to obtain the thyroid cancer image data set;
[0104] The size normalization includes image cropping and padding as well as fixed-size scaling. The contrast enhancement includes contrast stretching. The image denoising includes denoising using Gaussian filters and median filters. The data labeling includes labeling the image data as low risk, medium risk and high risk, and using the labeling as data labels.
[0105] Example 4, see Figure 1 , Figure 2 and Figure 4 ,This embodiment is based on the above embodiment, a thyroid cancer image segmentation module, and its specific contents include pixel evidence collection, dual path fusion, loss function design and thyroid cancer image segmentation;
[0106] The pixel evidence collection includes upper path evidence collection and lower path evidence collection;
[0107] The above-mentioned evidence collection includes:
[0108] Construct the upper path evidence, the formula used is as follows:
[0109] ;
[0110] In the formula, H represents the height of the input image data, and W represents the width of the input image data. represents the upper path evidence, Represents the Softplus operation function, represents the upper path evidence set, K represents the number of image segmentation types, Represents the number of observations that support the i-th pixel to be classified into the j-th image segmentation;
[0111] The parameters and total strength of the upper path Dirichlet distribution are calculated using the following formula:
[0112] ;
[0113] In the formula, represents the upper path Dirichlet distribution parameter, represents the total intensity of the upper path Dirichlet distribution of the i-th pixel;
[0114] The confidence quality and uncertainty quality of the upper path are calculated using the following formula:
[0115] ;
[0116] In the formula, represents the upper path confidence quality of the i-th pixel of the j-th image segmentation, represents the uncertainty quality of the upper path of the ith pixel, Indicates restrictions;
[0117] The upper path pixel category prediction uses the following formula:
[0118] ;
[0119] In the formula, represents the upper path probability of the i-th pixel being classified into the j-th image segmentation;
[0120] The following evidence collection includes:
[0121] Construct the path evidence, the formula used is as follows:
[0122] ;
[0123] In the formula, represents the next path evidence, represents the next path evidence set, Represents the random discard processing function;
[0124] Calculate the parameters and total strength of the lower path Dirichlet distribution using the following formula:
[0125] ;
[0126] In the formula, represents the lower path Dirichlet distribution parameter, represents the total intensity of the lower path Dirichlet distribution of the i-th pixel;
[0127] The confidence quality and uncertainty quality of the lower path are calculated using the following formula:
[0128] ;
[0129] In the formula, represents the confidence quality of the next path of the i-th pixel in the j-th image segmentation, represents the uncertainty quality of the next path of the ith pixel, Indicates restrictions;
[0130] The following formula is used to predict the pixel category of the next path:
[0131] ;
[0132] In the formula, represents the probability of the i-th pixel being classified into the next path of the j-th image segmentation;
[0133] The dual-path fusion includes:
[0134] The fusion confidence quality and fusion uncertainty quality are calculated using the following formula:
[0135] ;
[0136] In the formula, represents the fusion confidence quality, represents the fusion uncertainty quality, n represents the image segmentation class index of the upper path confidence quality, and m represents the image segmentation class index of the lower path confidence quality;
[0137] Calculate the parameters of the fused Dirichlet distribution and the total strength of the fused Dirichlet distribution using the following formula:
[0138] ;
[0139] In the formula, Indicates the integration of evidence, represents the total intensity of the fused Dirichlet distribution, represents the fused Dirichlet distribution parameter;
[0140] Fusion pixel category prediction, the formula used is as follows:
[0141] ;
[0142] In the formula, Represents the fusion probability that the i-th pixel is classified into the j-th image segmentation;
[0143] The design loss function includes:
[0144] Generate hard false labels, which are used to generate hard false labels for unlabeled pixels. The formula used is as follows:
[0145] ;
[0146] In the formula, Indicates a hard fake label. Indicates the parameter when the target value is maximized. represents the fusion probability set;
[0147] Calculate the upper and lower path consistency loss, the formula used is as follows:
[0148] ;
[0149] In the formula, represents the consistency loss value of the upper and lower paths, represents the Dice loss function, represents the upper path probability set, represents the next path probability set;
[0150] The thyroid cancer image segmentation is specifically to construct a dual-path evidence network model through the pixel evidence collection, the dual-path fusion and the designed loss function to obtain the dual-path evidence network model, and use the dual-path evidence network model to perform image segmentation on the thyroid cancer image dataset to obtain the thyroid cancer segmented image dataset.
[0151] By performing the above operations, the traditional thyroid cancer patient risk stratification has the technical problem of facing complex and diverse thyroid cancer CT images when performing thyroid cancer image segmentation, which requires a large amount of accurate labeled data and is unable to cope with highly complex segmentation tasks. This solution creatively adopts a dual-path evidence network model for thyroid cancer image segmentation, which can effectively fuse the evidence of the two paths to generate high-quality pseudo-labels, so that the model is not restricted by the need for a large amount of accurate labeled data.
[0152] Example 5, see Figure 1 and Figure 3 This embodiment is based on the above embodiment, a thyroid cancer data enhancement module, and specifically includes constructing a generator, constructing a discriminator, designing a contrast loss function, and performing data enhancement;
[0153] The construction of the generator includes constructing a multi-head attention unit and constructing a generator multi-layer perception unit;
[0154] The construction of the multi-head attention unit includes:
[0155] The query vector, key vector, and value vector are calculated using the following formula:
[0156] ;
[0157] In the formula, represents the query vector of the a-th head, represents the key vector of the a-th head, represents the value vector of the a-th head, represents the input of the generator, represents the parameter matrix of the query vector of the a-th head, The parameter matrix representing the key vector of the a-th head, The parameter matrix representing the value vector of the a-th head, h represents the total number of heads;
[0158] To calculate the head attention output, the formula used is as follows:
[0159] ;
[0160] In the formula, represents the output vector of the a-th head, represents the Softmax function, represents the dimension of the key vector, and T represents the transpose operation;
[0161] To calculate the multi-head attention unit output, the formula used is as follows:
[0162] ;
[0163] In the formula, represents the multi-head attention unit output, represents the vector connection function, represents the output vector of the first head, represents the output vector of the second head, represents the output vector of the hth head, represents the weight matrix used for linear transformation;
[0164] The generator multi-layer perception unit is constructed using the following formula:
[0165] ;
[0166] In the formula, represents the multi-layer perceptron output of the first-layer generator, represents the Sigmoid activation function, represents the multi-layer perceptron weight matrix of the first-layer generator, represents the first layer generator multi-layer perceptron bias vector, represents the multi-layer perceptron output of the b+1th layer generator, represents the multi-layer perceptron output of the b-th layer generator, represents the multi-layer perceptron weight matrix of the b+1th layer generator, represents the multi-layer perceptron bias vector of the b+1th layer generator, Indicates the number of multi-layer perception layers of the generator;
[0167] The discriminator is constructed specifically to construct a discriminator multi-layer perception unit, the last layer of the discriminator multi-layer perception unit is used to obtain the output of the discriminator, and the other layers of the discriminator multi-layer perception unit are used to extract hidden features. The formula used in constructing the discriminator is as follows:
[0168] ;
[0169] In the formula, represents the first layer discriminator multi-layer perception output, represents the discriminator input, represents the first layer discriminator multi-layer perception weight matrix, represents the first layer discriminator multi-layer perception bias vector, represents the multi-layer perception output of the r+1th layer discriminator, represents the r-th layer discriminator multi-layer perception output, represents the multi-layer perceptron weight matrix of the r+1th layer discriminator, represents the multi-layer perceptron bias vector of the r+1th layer discriminator, represents the number of multi-layer perception layers of the discriminator, represents the output of the discriminator module, Y represents the risk label, Indicates Layer discriminator multi-layer perceptron weight matrix, Indicates Layer discriminator multi-layer perception output, Indicates layer discriminator multi-layer perceptron bias vector;
[0170] The design contrast loss function uses the following formula:
[0171] ;
[0172] In the formula, represents the contrast loss value, N represents the number of samples, represents the u-th sample, represents the vth sample, represents the Euclidean distance function;
[0173] The data enhancement is specifically performed by constructing a generative adversarial network model combined with a transformer through constructing a generator, constructing a discriminator and designing a contrast loss function to obtain the generative adversarial network model combined with a transformer, and using the generative adversarial network model combined with a transformer to perform data enhancement on the thyroid cancer segmentation image dataset to obtain the patient physical condition enhanced dataset.
[0174] By performing the above operations, the traditional thyroid cancer patient risk stratification is limited by the singleness and limitations of the data when analyzing the patient's physical condition data, making it difficult for the model to capture hidden complex features and unable to adapt to various situations in the actual environment. This solution creatively uses a generative adversarial network model combined with a transformer for data enhancement, improves the quality and richness of the data, and thereby improves the accuracy and robustness of the model.
[0175] Example 6, see Figure 1 This embodiment is based on the above embodiment, a thyroid cancer risk grading module, specifically, by constructing a thyroid cancer risk grading model and performing model training based on the thyroid cancer enhanced image dataset, and using the thyroid cancer risk grading model to perform risk grading on the current patient dataset.
[0176] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0177] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.
[0178] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. A risk stratification system for thyroid cancer patients based on machine learning, Features: The system includes a data acquisition module, a data preprocessing module, a thyroid cancer image segmentation module, a thyroid cancer data enhancement module and a thyroid cancer risk grading module; The data acquisition module obtains a historical data set and a current patient data set through data acquisition, and sends the historical data set to a data preprocessing module, and sends the current patient data set to a thyroid cancer risk grading module; The data preprocessing module obtains a thyroid cancer image data set by preprocessing data, and sends the thyroid cancer image data set to a thyroid cancer image segmentation module; The thyroid cancer image segmentation module performs image segmentation by constructing a dual-path evidence network model to obtain a thyroid cancer segmentation image dataset, and sends the thyroid cancer segmentation image dataset to the thyroid cancer data enhancement module. The thyroid cancer image segmentation module specifically includes pixel evidence collection, dual-path fusion, loss function design and thyroid cancer image segmentation; The pixel evidence collection includes upper path evidence collection and lower path evidence collection; The above-mentioned evidence collection includes: Construct the upper path evidence, the formula used is as follows: In the formula, H represents the height of the input image data, and W represents the width of the input image data. represents the upper path evidence, Softplus(·) represents the Softplus operation function, E up represents the upper path evidence set, K represents the number of image segmentation types, q i,j Represents the number of observations that support the i-th pixel to be classified into the j-th image segmentation; The parameters and total strength of the upper path Dirichlet distribution are calculated using the following formula: In the formula, represents the upper path Dirichlet distribution parameter, represents the total intensity of the upper path Dirichlet distribution of the i-th pixel; The confidence quality and uncertainty quality of the upper path are calculated using the following formula: In the formula, represents the upper path confidence quality of the i-th pixel of the j-th image segmentation, represents the upper path uncertainty quality of the ith pixel, Indicates restrictions; The upper path pixel category prediction uses the following formula: In the formula, represents the upper path probability of the i-th pixel being classified into the j-th image segmentation; The following evidence collection includes: Construct the path evidence, the formula used is as follows: In the formula, represents the next path evidence, E down represents the evidence set of the next path, Dropout(·) represents the random dropout processing function; Calculate the parameters and total strength of the lower path Dirichlet distribution using the following formula: In the formula, represents the lower path Dirichlet distribution parameter, represents the total intensity of the lower path Dirichlet distribution of the i-th pixel; The confidence quality and uncertainty quality of the lower path are calculated using the following formula: In the formula, represents the confidence quality of the next path of the i-th pixel in the j-th image segmentation, represents the uncertainty quality of the next path of the ith pixel, Indicates restrictions; The following formula is used to predict the pixel category of the next path: In the formula, represents the probability of the i-th pixel being classified into the next path of the j-th image segmentation; The dual-path fusion includes: The fusion confidence quality and fusion uncertainty quality are calculated using the following formula: In the formula, represents the fusion confidence quality, represents the fusion uncertainty quality, n represents the image segmentation class index of the upper path confidence quality, and m represents the image segmentation class index of the lower path confidence quality; Calculate the parameters of the fused Dirichlet distribution and the total strength of the fused Dirichlet distribution using the following formula: In the formula, Indicates the integration of evidence, represents the total intensity of the fused Dirichlet distribution, represents the fused Dirichlet distribution parameter; Fusion pixel category prediction, the formula used is as follows: In the formula, Represents the fusion probability that the i-th pixel is classified into the j-th image segmentation; The design loss function includes: Generate hard false labels, which are used to generate hard false labels for unlabeled pixels. The formula used is as follows: In the formula, α represents the hard false label, argmax(·) represents the parameter when the target value is the largest, and P fu represents the fusion probability set; Calculate the upper and lower path consistency loss, the formula used is as follows: Where, L con Indicates the consistency loss value of the upper and lower paths, L dice (·) represents the Dice loss function, P up represents the upper path probability set, P down represents the next path probability set; The thyroid cancer image segmentation is specifically to construct a dual-path evidence network model through the pixel evidence collection, the dual-path fusion and the designed loss function to obtain the dual-path evidence network model, and use the dual-path evidence network model to perform image segmentation on the thyroid cancer image dataset to obtain the thyroid cancer segmented image dataset; The thyroid cancer data enhancement module performs data enhancement by constructing a generative adversarial network model combined with a transformer to obtain a thyroid cancer enhanced image dataset, and sends the thyroid cancer enhanced image dataset to a thyroid cancer risk grading module. The thyroid cancer data enhancement module specifically includes constructing a generator, constructing a discriminator, designing a contrast loss function, and performing data enhancement; The construction of the generator includes constructing a multi-head attention unit and constructing a generator multi-layer perception unit; The construction of the multi-head attention unit includes: The query vector, key vector, and value vector are calculated using the following formula: In the formula, Que a represents the query vector of the a-th head, Key a Represents the key vector of the a-th head, Val a represents the value vector of the a-th head, X G represents the input of the generator, represents the parameter matrix of the query vector of the a-th head, The parameter matrix representing the key vector of the a-th head, The parameter matrix representing the value vector of the a-th head, h represents the total number of heads; To calculate the head attention output, the formula used is as follows: In the formula, Oha a represents the output vector of the a-th head, Softmax(·) represents the Softmax function, d k represents the dimension of the key vector, and T represents the transpose operation; To calculate the multi-head attention unit output, the formula used is as follows: Oh sum =concat(Oha 1 ,Oh 2 ,...,Oh a ,)ω o ; In the formula, Oha sum represents the multi-head attention unit output, concat(·) represents the vector connection function, Oha 1 Represents the output vector of the first head, Oha 2 Represents the output vector of the second head, Oha h represents the output vector of the hth head, ω o represents the weight matrix used for linear transformation; The generator multi-layer perception unit is constructed using the following formula: In the formula, represents the multi-layer perceptron output of the first-layer generator, μ represents the Sigmoid activation function, represents the multi-layer perceptron weight matrix of the first-layer generator, represents the first layer generator multi-layer perceptron bias vector, represents the multi-layer perceptron output of the b+1th layer generator, represents the multi-layer perceptron output of the b-th layer generator, represents the multi-layer perceptron weight matrix of the b+1th layer generator, Represents the multi-layer perceptron bias vector of the b+1th layer generator, num G Indicates the number of multi-layer perception layers of the generator; The discriminator is constructed specifically to construct a discriminator multi-layer perception unit, the last layer of the discriminator multi-layer perception unit is used to obtain the output of the discriminator, and the other layers of the discriminator multi-layer perception unit are used to extract hidden features. The formula used in constructing the discriminator is as follows: In the formula, represents the first layer discriminator multi-layer perception output, X D represents the discriminator input, represents the first layer discriminator multi-layer perception weight matrix, represents the first layer discriminator multi-layer perception bias vector, represents the multi-layer perception output of the r+1th layer discriminator, represents the r-th layer discriminator multi-layer perception output, represents the multi-layer perceptron weight matrix of the r+1th layer discriminator, Represents the r+1th layer discriminator multi-layer perception bias vector, num D represents the number of multi-layer perception layers of the discriminator, P D (Y|X D ) represents the output of the discriminator module, Y represents the risk label, Indicates the num D Layer discriminator multi-layer perceptron weight matrix, Indicates the num D -1 layer of discriminator multi-layer perception output, Indicates the num D layer discriminator multi-layer perceptron bias vector; The design contrast loss function uses the following formula: Where, L db represents the contrast loss value, N represents the number of samples, z u represents the u-th sample, z v represents the vth sample, Dis(·) represents the Euclidean distance function; The data enhancement is specifically performed by constructing a generative adversarial network model combined with a transformer through the construction of the generator, the construction of the discriminator and the design of the contrast loss function to obtain the generative adversarial network model combined with the transformer, and using the generative adversarial network model combined with the transformer to perform data enhancement on the thyroid cancer segmentation image dataset to obtain the patient physical condition enhanced dataset; The thyroid cancer risk grading module performs risk grading on the current patient data set by establishing a completed thyroid cancer risk grading model.
2. A thyroid cancer patient risk grading system based on machine learning according to claim 1, Features: The thyroid cancer risk grading module specifically constructs a thyroid cancer risk grading model and performs model training based on the thyroid cancer enhanced image dataset, and uses the thyroid cancer risk grading model to perform risk grading on the current patient dataset.
3. A thyroid cancer patient risk grading system based on machine learning according to claim 1, Features: In the data acquisition module, the historical data set is specifically a historical thyroid cancer CT image data set, and the current patient data set is specifically a current patient thyroid cancer CT image data set.
4. A thyroid cancer patient risk grading system based on machine learning according to claim 1, Features: In the data preprocessing module, the preprocessing of image data is specifically performed by size standardization, contrast enhancement, image denoising and data annotation to obtain the thyroid cancer image data set; The size normalization includes image cropping and padding as well as fixed-size scaling. The contrast enhancement includes contrast stretching. The image denoising includes denoising using Gaussian filters and median filters. The data labeling includes labeling the image data as low risk, medium risk and high risk, and using the labeling as data labels.
