Thyroid text information grading method and device, equipment and storage medium

By using the BERT model and decision-making model to perform feature transformation and splicing of thyroid nodule text data, the problem of insufficient professional knowledge of large models in text processing in the medical field is solved, the accuracy of thyroid classification and the retention of semantic information are achieved, and the accuracy of the text data is improved. Medical decision-making accuracy.

CN118733766APending Publication Date: 2024-10-01ANHUI PROVINCIAL HOSPITAL +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410712750.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing large models lack professional knowledge in text processing in the medical field, resulting in insufficient accurate text processing, and the decision-making model loses the semantic information of the original text when converting thyroid feature text data.

Method used

The BERT model is used to clean and feature transform the thyroid nodule text data. Combined with the feature classification index table of the decision-making model, the obtained vector group is input into the decision-making model for splicing and mapping, and a thyroid classification is generated through a multi-layer Transformer encoder and a fully connected layer. As a result, semantic information loss is reduced and medical decision-making accuracy is improved.

Benefits of technology

By combining the expertise of large model BERT and decision-making models, the accuracy of text processing and thyroid classification in the medical field is improved, the loss of semantic information is reduced, and the accuracy of medical decision-making is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733766A_ABST
    Figure CN118733766A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of text information classification, and provides a thyroid text information grading method and device, equipment and a storage medium, and the method comprises the steps: selecting thyroid nodule text data, and cleaning and arranging the text data into a data table; inputting the data table into a model BERT, and converting features in the data table to obtain a first vector group; converting features in the data table into a second vector group based on a feature grading index table prepared by a decision model; and inputting the first vector group and the second vector group into a decision model, splicing the first vector group and the second vector group by the decision model, creating a third vector group, and mapping the third vector group to obtain a thyroid classification result. Through the method, the problems of insufficient professional knowledge of the large model and different text understanding capabilities of the decision model are solved by utilizing the professional knowledge of the large model BERT and the decision model and the text understanding capability of the large model. And meanwhile, the loss of semantic information is reduced and professional knowledge is fully considered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of text information classification, and in particular to a thyroid text information classification method, device, equipment and storage medium.

[0002] Background Technology

[0003] With the continuous development of artificial intelligence technology, deep learning network models are becoming increasingly deeper. The emergence of Transformer has directly led to the rise of large models. The existing large model architecture is generally based on the continuous superposition of the encoder or decoder part of the Transformer. After training with data from various fields, the large model has solved the problem of deep network training very well. Just using a large model can save a lot of training process.

[0004] However, the existing big models are more of a general-purpose big model, which has some knowledge in various fields but is not proficient enough in them. Text processing in the medical field is extremely dependent on professional knowledge. This leads to the current general-purpose big models such as BERT, GPT, etc. being insufficient to solve the problem of accurate text processing. At the same time, the decision model converts thyroid feature text data into vectors according to grading indicators and then processes them, which will lose the semantic information of the original text. Summary of the invention

[0005] The main purpose of the present invention is to provide a thyroid text information classification method, device, equipment and storage medium, aiming to solve the technical problem of text processing accuracy.

[0006] To achieve the above object, the present invention provides a thyroid text information classification method, the thyroid text information classification method comprising:

[0007] Select thyroid nodule text data, clean and organize the text data into a data table;

[0008] Input the data table into the BERT model, transform the features in the data table, and obtain the first vector group;

[0009] Based on the feature classification index table prepared by the decision model, the features in the data table are converted into a second vector group;

[0010] The first vector group and the second vector group are input into the decision model, the decision model concatenates the first vector group and the second vector group to create a third vector group, and the third vector group is mapped to obtain a thyroid classification result.

[0011] In the thyroid text information classification method provided in the embodiment of the present application, the first vector group and the second vector group are input into the decision model, the decision model splices the first vector group and the second vector to create a third vector group, and the third vector group is mapped to obtain a thyroid classification result, including:

[0012] Inputting the first vector group and the second vector group into a connection layer, the connection layer combines the first vector group and the second vector group into a third vector group;

[0013] The third vector group is input into the fully connected layer, and the third vector group is mapped to a final binary classification result, wherein the decision model includes a connection layer and a fully connected layer.

[0014] In the thyroid text information classification method provided in the embodiment of the present application,

[0015] Based on activation function As the output layer of the fully connected layer, the output third vector group is mapped to the final binary classification result, where x is the input value.

[0016] In the thyroid text information grading method provided in the embodiment of the present application, the model BERT includes an input embedding layer and a multi-layer Transformer encoder. The data table is input into the model BERT, and the features in the data table are transformed to obtain a first vector group, including:

[0017] Input the data table into the input embedding layer to convert the data table into a first vector;

[0018] The vector is input into a multi-layer Transformer encoder to generate a first vector group with more semantics from the first vector.

[0019] In the thyroid text information classification method provided in the embodiment of the present application, the vector is input into a multi-layer Transformer encoder, and the first vector is used to generate a first vector group with more semantics, including:

[0020] Enter the first vector into the following formula,

[0021] Among them, Q, K, and V are the matrix representations of query, key, and value respectively, and d K is the dimension of the key,

[0022] Get the intermediate result and input it into the following formula:

[0023] FFNN(Z)=max(0,ZW1+b1)W2+b2, where Z is the input vector, W1 and W2 are the weight matrices of the first and second hidden layers respectively, bl and b2 are the bias vectors of the first and second hidden layers respectively, max represents the maximum value, and FFNN(Z) represents the output of the decision, i.e., the first vector group.

[0024] The thyroid text information grading method provided in the embodiment of the present application also includes evaluating the thyroid classification results through a detection algorithm.

[0025] In the thyroid text information classification method provided in the embodiment of the present application, the evaluation of the thyroid classification result by the detection algorithm includes:

[0026] The thyroid classification results were evaluated based on the following formula,

[0027]

[0028] Among them, Accuracy represents the diagnostic accuracy, precision represents the precision rate, recall represents the recall rate, F1 represents the score, TP represents the true positive example, which is the number of samples that the model predicts as positive class; TN represents the true negative example, which is the number of samples that the model predicts as negative class; FP represents the false positive example, which is the number of samples that the model predicts as positive class; FN represents the false negative example, which is the number of samples that the model predicts as negative class.

[0029] A thyroid text information grading device, the thyroid text information grading device comprising:

[0030] A text processing module is used to select thyroid nodule text data and clean and organize the text data into a data table;

[0031] A first conversion module is used to input the data table into the BERT model, transform the features in the data table, and obtain a first vector group;

[0032] A second conversion module, for converting the features in the data table into a second vector group based on the feature classification index table prepared by the decision model;

[0033] The decision module is used to input the first vector group and the second vector group into the decision model, the decision model splices the first vector group and the second vector group to create a third vector group, maps the third vector group, and obtains a thyroid classification result.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a thyroid text information grading device, which includes a processor, a memory, and a thyroid text information grading program stored in the memory and executable by the processor, wherein when the thyroid text information grading program is executed by the processor, the steps of the thyroid text information grading method as described above are implemented.

[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a thyroid text information grading program is stored, wherein when the thyroid text information grading program is executed by a processor, the steps of the thyroid text information grading method as described above are implemented.

[0036] The present invention provides a thyroid text information grading method, the method selects thyroid nodule text data, cleans and organizes the text data into a data table; inputs the data table into the model BERT, transforms the features in the data table, and obtains a first vector group; based on the feature grading index table prepared by the decision model, the features in the data table are converted into a second vector group; the first vector group and the second vector group are input into the decision model, the decision model splices the first vector group and the second vector, creates a third vector group, maps the third vector group, and obtains a thyroid classification result. Through the above method, the professional knowledge of the large model BERT and the decision model and the text comprehension ability of the large model are utilized, and the problem of insufficient professional knowledge of the large model and the problem of different text comprehension abilities of the decision model are solved. At the same time, the accuracy of medical decision-making is improved by reducing the loss of semantic information and fully considering professional knowledge. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 Schematic diagram of the hardware structure of the thyroid text information grading device involved in the embodiment of the present invention;

[0038] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the thyroid text information classification method of the present invention;

[0039] Figure 3 It is a flow chart of the second embodiment of the thyroid text information classification method of the present invention;

[0040] Figure 4 4 is a flow chart of the third embodiment of the thyroid text information classification method of the present invention.

[0041] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0042] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0043] The thyroid text information grading method involved in the embodiment of the present invention is mainly applied to a thyroid text information grading device, which can be a device with display and processing functions such as a PC, a portable computer, or a mobile terminal.

[0044] With the continuous development of artificial intelligence technology, deep learning network models are becoming increasingly deeper. The emergence of Transformer has directly led to the rise of large models. The existing large model architecture is generally based on the continuous superposition of the encoder or decoder part of the Transformer. After training with data from various fields, the large model has solved the problem of deep network training very well. Just using a large model can save a lot of training process.

[0045] However, the existing big models are more of a general-purpose big model, which has some knowledge in various fields but is not proficient enough in them. Text processing in the medical field is extremely dependent on professional knowledge. This leads to the current general-purpose big models such as BERT, GPT, etc. being insufficient to solve the problem of accurate text processing. At the same time, the decision model converts thyroid feature text data into vectors according to grading indicators and then processes them, which will lose the semantic information of the original text.

[0046] The present invention provides a thyroid text information grading method, the method selects thyroid nodule text data, cleans and organizes the text data into a data table; inputs the data table into the model BERT, transforms the features in the data table, and obtains a first vector group; based on the feature grading index table prepared by the decision model, the features in the data table are converted into a second vector group; the first vector group and the second vector group are input into the decision model, the decision model splices the first vector group and the second vector, creates a third vector group, maps the third vector group, and obtains a thyroid classification result. Through the above method, the professional knowledge of the large model BERT and the decision model and the text comprehension ability of the large model are utilized, and the problem of insufficient professional knowledge of the large model and the problem of different text comprehension abilities of the decision model are solved. At the same time, the accuracy of medical decision-making is improved by reducing the loss of semantic information and fully considering professional knowledge.

[0047] Reference Figure 1 , Figure 1The hardware structure diagram of the thyroid text information grading device involved in the embodiment of the present invention is shown in FIG. In the embodiment of the present invention, the thyroid text information grading device may include a processor 1001 (e.g., a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface); the memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0048] Those skilled in the art will understand that Figure 1 The hardware structure shown in the figure does not constitute a limitation on the thyroid text information grading device, and may include more or less components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0049] Continue to refer to Figure 1 , Figure 1 The memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, and a thyroid text information grading program.

[0050] exist Figure 1 In the embodiment, the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can call the thyroid text information classification program stored in the memory 1005 and execute the thyroid text information classification method provided in the embodiment of the present invention.

[0051] An embodiment of the present invention provides a thyroid text information classification method.

[0052] Reference Figure 3 , Figure 3 Schematic diagram of the flow chart of the first embodiment of the thyroid text information classification method of the present invention.

[0053] In this embodiment, the thyroid text information classification method includes the following steps:

[0054] Select thyroid nodule text data and clean and organize the text data into a data table.

[0055] In this embodiment, the sample and feature definitions are: For example, each sample and each feature in the table needs to be clearly defined. The sample is a different ultrasound examination record, that is, the patient registration number, and the feature is the attribute or information describing each sample, such as the patient's name, age, gender, examination date, description of different nodule features (border clarity, edge regularity, echo, calcification, blood richness), diagnosis results, pathology results, etc.

[0056] Data extraction: Extract corresponding information from thyroid nodule text data based on the defined samples and features.

[0057] Data transformation: For example, the extracted data needs to be transformed into a data table. Each sample corresponds to a row in the table, and each feature corresponds to a column in the table.

[0058] The standardized image is divided into K parts by K-fold cross validation. K-1 parts are taken as training sets, and the last part is taken as test set. Finally, the test results of K experiments are averaged. In the present invention, each feature is cross-validated by K-fold cross validation in diagnosing the benign or malignant nodules, ensuring that each sub-sample is involved in training and tested, thereby reducing the generalization error.

[0059] The data table is input into the BERT model, and the features in the data table are transformed to obtain the first vector group.

[0060] In this embodiment, BERT includes the following parts:

[0061] Input Embedding Layer: Figure 3 The "Emb" layer in the BERT layer is responsible for converting text input (usually a sequence of words or subwords) into a vector representation. BERT uses a special embedding technique to embed each word or subword into a high-dimensional vector, and also introduces position encoding to indicate the position of the word in the input sequence.

[0062] Multi-layer Transformer Encoders: Figure 3 The BERT model consists of multiple Transformer encoder layers, usually 12 or 24 layers. Each encoder layer includes a self-attention mechanism and a feedforward neural network. These encoder layers are responsible for encoding and transforming the information in the input text sequence to generate semantically rich representations.

[0063] Multi-head self-attention mechanism (m): This is one of the core components of Transformer, such as Figure 3 The "Multi-Head Attention" in the self-attention mechanism allows the model to dynamically allocate attention to the input of other positions when processing the input of each position. This enables the model to consider the information of different positions in the input sequence at the same time, realizing the characteristics of bidirectional encoding. The algorithm formula of this layer is as follows, where Q, K, and V are the matrix representations of query, key, and value respectively. K is the dimension of the key. In BERT, d K Usually equal to the dimension of each head, since attention is multi-headed. Divided by √d K This is to alleviate the gradient explosion problem when calculating the inner product. Query is the vector used to calculate the attention distribution. In BERT, the query at each position is a linear transformation of the input vector, that is, Q = XW Q , where X is the input vector and W Q is the weight matrix of the query. Key is the vector used to calculate the association between the query and the value. In BERT, the key at each position is a linear transformation of the input vector, that is, K = XWK, where X is the input vector and WK is the weight matrix of the key. Value is the vector that is multiplied with the attention distribution to obtain the final output. In BERT, the value at each position is a linear transformation of the input vector, that is, V = XW V , where X is the input vector and W V is a weight matrix of values. The Softmax function converts the self-control scores into a probability distribution between 0 and 1, indicating the importance of each position.

[0064]

[0065] Feedforward Neural Network: Figure 3In the “Feed Forward” of the Transformer encoder layer, the self-attention mechanism is followed by a feedforward neural network to further process and transform the encoded information. The following formula represents the forward propagation process of a feedforward neural network with two hidden layers, which contains two nonlinear activation functions (ReLU). Below is an explanation of each part of the formula, where Z is the input vector, W1 and W2 are the weight matrices of the first and second hidden layers, respectively, and bl and b2 are the bias vectors of the first and second hidden layers, respectively. The output of the first hidden layer of the neural network is calculated using the ReLU activation function, that is, the maximum value between ZW1+bl and 0; the output of the second hidden layer is also calculated using the ReLU activation function, that is, the maximum value between max(0,ZW1+b1)W2+b2 and 0. Finally, the output of the neural network is FFNN(Z).

[0066] FFNN(Z)=max(0,ZW1+b1)W2+b2.

[0067] Add&Norm layer: Figure 3 The "Add&Norm" in the figure consists of two parts, Add and Norm. Add is a residual connection, which is usually used to solve the problem of multi-layer network training, allowing the network to focus only on the current difference. Norm refers to LayerNormalization, which is usually used in RNN structure. LayerNormalization converts the input of each layer of neurons into the same mean and variance, which can speed up convergence.

[0068] Transformer is a deep learning model architecture. It is widely used in fields such as natural language processing. The Transformer model is mainly composed of an encoder and a decoder. It processes the input sequence through an attention mechanism and can capture long-distance dependencies in the sequence, thereby achieving efficient language understanding and generation tasks. Based on the feature classification index table prepared by the decision model, the features in the data table are converted into a second vector group;

[0069] The first vector group and the second vector group are input into the decision model, the decision model concatenates the first vector group and the second vector group to create a third vector group, and the third vector group is mapped to obtain a thyroid classification result.

[0070] The decision model is a deep learning model for binary classification tasks. Its goal is to fuse the output vectors (768 dimensions) of the BERT pre-trained model with the output vectors (5 dimensions) of the decision model. The task of the decision model is to extract the most important features of the text data from these fused vectors for subsequent classification.

[0071] The connection layer is the part that connects the BERT output vector and the decision model output vector together. The role of this layer is to merge the two sets of vectors into a single vector for subsequent fully connected layer operations. The output of the connection layer is a vector of length 773 (768+5).

[0072] The fully connected layer is part of a deep neural network and usually includes multiple fully connected neuron layers. At this level, the model maps the vector output by the connected layer to the final binary classification result. This process includes a series of linear transformations and activation function operations to extract features and generate classification probabilities.

[0073] The output layer is the last fully connected layer, which usually uses the Sigmoid activation function to generate a value between 0 and 1, indicating the probability of the sample being malignant or benign. The output of the output layer can be interpreted as the model's classification confidence for a given input.

[0074] Through the collaboration of these components, the model is able to combine BERT's textual representation with the domain-specific information of the decision model to improve performance in the task of binary classification of thyroid cancer.

[0075] In this embodiment, the method selects thyroid nodule text data, cleans and organizes the text data into a data table; inputs the data table into the BERT model, transforms the features in the data table, and obtains a first vector group; based on the feature grading index table prepared by the decision model, the features in the data table are transformed into a second vector group; the first vector group and the second vector group are input into the decision model, and the decision model splices the first vector group and the second vector to create a third vector group, maps the third vector group, and obtains a thyroid classification result. Through the above method, the professional knowledge of the large model BERT and the decision model and the text comprehension ability of the large model are utilized to solve the problem of insufficient professional knowledge of the large model and the problem of different text comprehension abilities of the decision model. At the same time, the accuracy of medical decision-making is improved by reducing the loss of semantic information and fully considering professional knowledge.

[0076] In some embodiments, the first vector group and the second vector group are input into a decision model, the decision model concatenates the first vector group and the second vector group to create a third vector group, and the third vector group is mapped to obtain a thyroid classification result, including:

[0077] Inputting the first vector group and the second vector group into a connection layer, the connection layer combines the first vector group and the second vector group into a third vector group;

[0078] The third vector group is input into the fully connected layer, and the third vector group is mapped to a final binary classification result, wherein the decision model includes a connection layer and a fully connected layer.

[0079] In some embodiments, including,

[0080] Based on activation function As the output layer of the fully connected layer, the output third vector group is mapped to the final binary classification result, where x is the input value.

[0081] In some embodiments, the model BERT includes an input embedding layer and a multi-layer Transformer encoder, and the step of inputting the data table into the model BERT, transforming the features in the data table, and obtaining the first vector group includes:

[0082] Input the data table into the input embedding layer to convert the data table into a first vector;

[0083] The vector is input into a multi-layer Transformer encoder to generate a first vector group with more semantics from the first vector.

[0084] In some embodiments, the step of inputting the vector into a multi-layer Transformer encoder to generate a first vector group with more semantic meaning from the first vector includes:

[0085] Enter the first vector into the following formula,

[0086] Among them, Q, K, and V are the matrix representations of query, key, and value respectively, and d K is the dimension of the key,

[0087] Get the intermediate result and input it into the following formula:

[0088] FFNN(Z)=max(0,ZW1+b1)W2+b2, where Z is the input vector, W1 and W2 are the weight matrices of the first and second hidden layers respectively, bl and b2 are the bias vectors of the first and second hidden layers respectively, max represents the maximum value, and FFNN(Z) represents the output of the decision, i.e., the first vector group.

[0089] In some embodiments, the method further comprises evaluating the thyroid classification results by a detection algorithm.

[0090] In some embodiments, the evaluating the thyroid classification result by a detection algorithm comprises:

[0091] The thyroid classification results were evaluated based on the following formula,

[0092]

[0093] Among them, Accuracy represents the diagnostic accuracy, precision represents the precision rate, recall represents the recall rate, F1 represents the score, TP represents the true positive example, which is the number of samples that the model predicts as positive class; TN represents the true negative example, which is the number of samples that the model predicts as negative class; FP represents the false positive example, which is the number of samples that the model predicts as positive class; FN represents the false negative example, which is the number of samples that the model predicts as negative class.

[0094] Diagnostic accuracy (Accuracy) refers to the ratio of the number of samples correctly classified by the model to the total number of samples, and is an indicator to measure the overall prediction ability of the model. Precision (precision) measures how many of the samples predicted by the model as positive are truly positive samples, reflecting the accuracy of the model. Recall (recall) measures the ability of the model to find all positive samples, reflecting the recall rate of the model. F1-score (F1-score) comprehensively considers precision and recall, and is the harmonic mean of the two. It is a comprehensive evaluation indicator. When both precision and recall are very high or very low, the F1-score will be higher. The experimental results table is shown below:

[0095] Thyroid nodule test results

[0096] Accuracy 0.7836 precision 0.78 recall 0.79 F1 0.79

[0097] From the results in the table, it can be seen that this patent has good results in the four indicators of accuracy, precision, recall and F1-score, which shows that the method proposed in this patent has great advantages in text information processing for benign and malignant thyroid nodules.

[0098] A thyroid text information grading device, the thyroid text information grading device comprising:

[0099] A text processing module is used to select thyroid nodule text data and clean and organize the text data into a data table;

[0100] A first conversion module is used to input the data table into the BERT model, transform the features in the data table, and obtain a first vector group;

[0101] A second conversion module, for converting the features in the data table into a second vector group based on the feature classification index table prepared by the decision model;

[0102] The decision module is used to input the first vector group and the second vector group into the decision model, the decision model splices the first vector group and the second vector group to create a third vector group, maps the third vector group, and obtains a thyroid classification result.

[0103] Among them, each module in the above-mentioned thyroid text information grading device corresponds to each step in the above-mentioned thyroid text information grading method embodiment, and its functions and implementation processes will not be repeated here one by one.

[0104] In addition, an embodiment of the present invention further provides a computer-readable storage medium.

[0105] The computer-readable storage medium of the present invention stores a thyroid text information grading program, wherein when the thyroid text information grading program is executed by a processor, the steps of the thyroid text information grading method as described above are implemented.

[0106] Among them, the method implemented when the thyroid text information grading program is executed can refer to the various embodiments of the thyroid text information grading method of the present invention, and will not be repeated here.

[0107] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0108] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

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

[0110] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0111] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A thyroid text information classification method, characterized in that: The thyroid text information classification method comprises the following steps: Select thyroid nodule text data, clean and organize the text data into a data table; Input the data table into the BERT model, transform the features in the data table, and obtain the first vector group; Based on the feature classification index table prepared by the decision model, the features in the data table are converted into a second vector group; The first vector group and the second vector group are input into the decision model, the decision model concatenates the first vector group and the second vector group to create a third vector group, and the third vector group is mapped to obtain a thyroid classification result.

2. The thyroid text information classification method according to claim 1, characterized in that: The first vector group and the second vector group are input into the decision model, the decision model concatenates the first vector group and the second vector group to create a third vector group, and the third vector group is mapped to obtain a thyroid classification result, including: Inputting the first vector group and the second vector group into a connection layer, the connection layer combines the first vector group and the second vector group into a third vector group; The third vector group is input into the fully connected layer, and the third vector group is mapped to a final binary classification result, wherein the decision model includes a connection layer and a fully connected layer.

3. The thyroid text information classification method according to claim 2, characterized in that: include, Based on activation function As the output layer of the fully connected layer, the output third vector group is mapped to the final binary classification result, where x is the input value.

4. The thyroid text information classification method according to claim 1, characterized in that: The BERT model includes an input embedding layer and a multi-layer Transformer encoder. The data table is input into the BERT model, and the features in the data table are transformed to obtain a first vector group, including: Input the data table into the input embedding layer to convert the data table into a first vector; The vector is input into a multi-layer Transformer encoder to generate a first vector group with more semantics from the first vector.

5. The thyroid text information classification method according to claim 4, characterized in that: The step of inputting the vector into a multi-layer Transformer encoder and generating a first vector group with more semantic meaning from the first vector includes: Enter the first vector into the following formula, Among them, Q, K, and V are the matrix representations of query, key, and value respectively, and d K is the dimension of the key, Get the intermediate result and input it into the following formula: FFNN(Z)=max(0,ZW1+b1)W2+b2, where Z is the input vector, W1 and W2 are the weight matrices of the first and second hidden layers respectively, bl and b2 are the bias vectors of the first and second hidden layers respectively, max represents the maximum value, and FFNN(Z) represents the output of the decision, i.e., the first vector group.

6. The thyroid text information classification method according to any one of claims 1 to 5, characterized in that: It also includes the evaluation of thyroid classification results through detection algorithms.

7. The thyroid text information classification method according to claim 1, characterized in that: The thyroid classification result is evaluated by the detection algorithm, including: The thyroid classification results were evaluated based on the following formula, Among them, Accuracy represents the diagnostic accuracy, precision represents the precision rate, recall represents the recall rate, F1 represents the score, TP represents the true positive example, which is the number of samples that the model predicts as positive class; TN represents the true negative example, which is the number of samples that the model predicts as negative class; FP represents the false positive example, which is the number of samples that the model predicts as positive class; FN represents the false negative example, which is the number of samples that the model predicts as negative class.

8. A thyroid text information grading device, characterized in that: The thyroid text information grading device comprises: A text processing module is used to select thyroid nodule text data and clean and organize the text data into a data table; A first conversion module is used to input the data table into the BERT model, transform the features in the data table, and obtain a first vector group; A second conversion module, for converting the features in the data table into a second vector group based on the feature classification index table prepared by the decision model; The decision module is used to input the first vector group and the second vector group into the decision model, the decision model splices the first vector group and the second vector group to create a third vector group, maps the third vector group, and obtains a thyroid classification result.

9. A thyroid text information grading device, characterized in that: The thyroid text information grading device includes a processor, a memory, and a thyroid text information grading program stored in the memory and executable by the processor, wherein when the thyroid text information grading program is executed by the processor, the steps of the thyroid text information grading method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a thyroid text information grading program, wherein when the thyroid text information grading program is executed by a processor, the steps of the thyroid text information grading method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • 5G communication assistant text classification method and device, electronic equipment and storage medium

    CN115495579A

  • Intelligent liver cancer staging method and system based on semantic text and medium

    CN115658886A