A text multi-label classification method based on enhanced representation of medical thesaurus

By extracting and enhancing the label information of the medical subject thesaurus, and using deep learning technology to perform multi-label text classification, the problem of under-explored label information in the existing technology is solved, and the accuracy and reliability of medical document annotation are improved.

CN113987175BActive Publication Date: 2024-08-23TSINGHUA SHENZHEN INTERNATIONAL GRADUATE SCHOOL
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111238309.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-25
Publication Date
2024-08-23
Estimated Expiration
2041-10-25

AI Technical Summary

Technical Problem

The existing technology lacks the mining of deep information of tags in medical subject thesaurus annotation, resulting in poor machine annotation accuracy and reliability, and is unable to meet the rapidly growing demand for medical literature.

Method used

By extracting the keyword information of the tag, TF-IDF and BioBERT are used to extract semantic features, and combined with the gated recurrent unit model to convert the tag into a vector for enhanced representation, and the attention mechanism and semantic features are combined for text multi-label classification.

Benefits of technology

It improves the accuracy of medical subject thesaurus annotation, enhances the information content of labels, and improves the accuracy and reliability of text classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113987175B
    Figure CN113987175B
Patent Text Reader

Abstract

The present invention discloses a text multi-label classification method based on enhanced representation of medical subject word list, comprising the steps of enhancing the representation of labels: S1, taking the medical subject word list in the document as the label, and establishing a positive sample set of the label; S2, extracting keyword information about the label from the positive sample set; S3, extracting semantic features from the keyword information, obtaining a vector representation of the keyword information, recorded as a first vector; S4, converting the label into a vector, recorded as a second vector; S5, connecting the first vector and the second vector to enhance the representation of the label.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to a text multi-label classification method based on enhanced representation of a medical thesaurus. Background Art

[0002] Medical Subject Headings (MeSH) is a vocabulary proposed by the National Library of Medicine (NLM) and updated annually. Its function is to facilitate indexing, cataloging and searching of biomedical information. As of 2020, NLM has included 29,640 MeSH words / phrases. The main function of MeSH is to index relevant documents in the huge biomedical literature database MEDLINE, which has so far included 5,200 journals and approximately 26 million documents; on average, each document in MEDLINE is tagged with 13 MeSHs, which can be used for biomedical text mining, information retrieval and other aspects. Therefore, accurate and efficient MeSH tagging is of great significance.

[0003] The MEDLINE database contains a huge number of documents, and their medical subject headings are generally manually marked by NLM experts. According to statistics, it costs $9.4 to mark each document with MeSH, which is time-consuming and laborious. In order to cope with the rapid growth in the number of documents, NLM has developed a software called Medical Text Indexer (MTI) to assist experts in automatic or semi-automatic MeSH annotation. Currently, about 5% of the documents are automatically annotated by MTI, and 18% of the documents are annotated by MTI and then manually reviewed to correct the annotations.

[0004] From the perspective of machine learning, MeSH labeling is a large-scale multi-label classification problem, where MeSH is the label and documents are samples. The goal is to label each document with multiple appropriate labels. Intuitively, given a document, a certain number of appropriate MeSHs are selected as labels from the nearly 30,000 words / phrases in the fixed MeSH vocabulary. Many scholars in the field of machine learning have proposed their own solutions to this problem, and with the rapid development of machine learning and even deep learning technology, the methods to solve this problem are also constantly updated. However, most of the current work focuses on (i) how to better represent the input text and (ii) increase the amount of input text. For (i), there are various text representation models, such as Convolutional Neural Networks (CNN), Recurrent Neural Networks (RNN) and its variants LSTM (Long Short-Term Memory), GRU, BERT (Bidirectional Encoder Representations from Transformers), etc. Researchers are constantly exploring more appropriate ways to represent input text and have made continuous breakthroughs in results. For (ii), the input text of this work has evolved from the original title and abstract of the document to the addition of journal names, figure captions, and now full-text input.

[0005] However, few works focus on the information contained in the label itself. Most works only treat the label as a phrase without exploring its deeper information. Compared with the manual annotation process, experts must understand the meaning of MeSH and then annotate the text. However, manual annotation is inefficient and costly, and it is obviously difficult to meet the annotation needs of the medical literature that is growing significantly every year. However, machine annotation, because the machine does not know the implicit meaning of MeSH, it is difficult to perform accurate annotation, and its annotation performance has always been poor, which in turn affects the accuracy and reliability of text classification. Summary of the invention

[0006] In view of the problems existing in the prior art, the present invention proposes a text multi-label classification method based on enhanced representation of medical subject thesaurus, which enhances the representation of medical subject thesaurus based on deep learning to increase the accuracy of label classification.

[0007] A text multi-label classification method based on enhanced representation of medical subject word list includes the steps of enhancing the representation of labels: S1, taking the medical subject word list in the document as a label, and establishing a positive sample set of the label; S2, extracting keyword information about the label from the positive sample set; S3, extracting semantic features from the keyword information, obtaining a vector representation of the keyword information, recorded as a first vector; S4, converting the label into a vector, recorded as a second vector; S5, connecting the first vector and the second vector to enhance the representation of the label.

[0008] Furthermore, step S1 specifically includes: assuming that a given data set T contains multiple documents, and the number of tags contained in them is N m ; For each tag MeSH l (l = 1, 2, ..., N m ), select the literature containing the label MeSH l from the training set and construct the corresponding positive sample set T l .

[0009] Furthermore, in step S2, the keyword information of the tag is extracted from the positive sample set using the TF-IDF algorithm.

[0010] Furthermore, in step S3, the semantic features are extracted from the keyword information using the pre-trained model BioBERT.

[0011] Furthermore, in step S4, the label is converted into a vector using a gated recurrent unit model.

[0012] Furthermore, for the label MeSH l, the first vector and the second vector corresponding to it are respectively recorded as In step S5, the first vector and the second vector are connected and average pooled to obtain an enhanced representation of the label MeSH l Wherein, k is the length of the keyword information, d is the feature dimension, is the field of real numbers.

[0013] Furthermore, it also includes: S6, using the pre-trained model, extracting the semantic features of the given data set T and representing them with a vector, recorded as vector D; S7, based on vector D, for each document t in the given data set T, selecting the most similar k documents, and then selecting the M tags with the highest frequency from the k documents, and converting the M tags into a vector representation recorded as s t ; S8, vector s t Combined with the attention mechanism of document t, the output result vector H is output.

[0014] Further, step S6 includes: for each document t in the given data set T, using the pre-trained neural network model BioBERT to extract its semantic features and obtain the corresponding feature vector N w represents the length of document t, i.e. the number of words, and d represents the feature dimension; then the overall representation of the document in a given dataset T is D = [t 1 ,t 2 ,…,t n ], n represents the number of documents in a given data set T; step S7 comprises: according to vector D, using the unsupervised clustering method K-Means to select the k most similar documents of document t, and then selecting the M labels with the highest frequency from the labels contained in the k most similar documents and converting them into vectors, recorded as Step S8 includes: based on the attention mechanism, giving document t the information contained in the M labels of its k most similar documents, and obtaining the result vector H, which is: t T represents the transpose of the eigenvector t.

[0015] Furthermore, the score between the document t and the label MeSHj is calculated using the following formula:

[0016]

[0017] Among them, σ is the sigmoid activation function, m j and b j are all learnable parameters, j∈[1,M], α j It is obtained by normalizing the vector H, that is:

[0018]

[0019] Furthermore, the method further includes: inputting the result vector H into a linear classifier to determine The label to which it belongs.

[0020] Compared with the prior art, the beneficial effect of the present invention is that the keyword information of the label is extracted from a large amount of text as the explanation of the label to increase the information content of the label, thereby improving the accuracy of the model annotation medical subject word list. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flow chart of the multi-label text classification method based on medical thesaurus enhanced representation according to an embodiment of the present invention.

[0022] Figure 2 Schematic diagram of the attention mechanism of an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation methods.

[0024] The embodiment of the present invention proposes a text multi-label classification method based on enhanced representation of medical thesaurus, such as Figure 1 The process architecture of this method is shown, which includes: enhancing the representation of the medical subject word list, and then performing text multi-label classification based on the enhanced representation of the medical subject word list. Figure 1 , including the following steps:

[0025] S1. Use the medical subject headings in the literature as labels and establish a positive sample set of labels.

[0026] Suppose a given dataset T contains n documents Doc1, Doc2, ..., Docn, and a total of N labels. m ; For each tag MeSH l (l = 1, 2, ..., N m ), select the literature containing the label MeSH l from the training set and construct the corresponding positive sample set T l .like Figure 1 As shown in , the documents connected with the label MeSH l represent the documents containing the label, and these documents constitute the positive sample set of the label.

[0027] S2. Extract keyword information about tags from the positive sample set.

[0028] For each tag MeSH l (l = 1, 2, ..., N m ), the TF-IDF (Term Frequency-Inverse Text Frequency) algorithm can be used to extract the corresponding keyword information from the respective positive sample sets, and the length of the keyword information of each tag is recorded as kl. In one embodiment, kl=10 is selected.

[0029] S3. Extract semantic features from the keyword information to obtain a vector representation of the keyword information, which is recorded as a first vector.

[0030] For the tag MeSH l, after extracting keyword information using TF-IDF, the keyword information is represented by a vector. Specifically, semantic features are extracted from the keyword information to form a feature vector, that is, the vector representation of the keyword information is obtained, which is recorded as the first vector Where k is the length of the keyword information, d is the feature dimension, is a real number domain. In one embodiment, a pre-trained model BioBERT can be used to extract semantic features from keyword information. It should be noted that the network structure of the BioBERT neural network model is known, and those skilled in the art can learn about the network structure from the document "Lee J, Yoon W, Kim S, et al. BioBERT: a pre-trained biomedical language representation model for biomedical text mining [J]. Bioinformatics, 2020, 36 (4): 1234-1240."; a large amount of text in the biomedical field can be used, and the existing neural network training method can be used to pre-train the neural network with a data set of keyword information as input and corresponding semantic features as output.

[0031] S4. Convert the label into a vector, which is recorded as the second vector. In one embodiment, the label MeSH l is converted into a vector using a gated recurrent unit (GRU) model, which is recorded as the second vector

[0032] S5, connect the first vector and the second vector to enhance the representation of the label. l With the second vector m' l Connect and average pool to get a vector The vector m l That is, the enhanced representation of the tag MeSH l, that is, the enhanced representation of the medical subject heading list.

[0033] S6. Using the pre-trained model, extract the semantic features of the given data set T and represent them as vectors, recorded as vector D. For each document t in the given data set T, input its text (such as title and abstract) into the pre-trained BioBERT model, extract its semantic features, and obtain the corresponding feature vector N w represents the length of document t, i.e. the number of words, and d represents the feature dimension; then the overall representation of the document in a given dataset T is D = [t 1 ,t 2 ,…,t n ], n represents the number of documents in a given data set T. A large amount of text in the biomedical field can be used, and the existing neural network training method can be used to pre-train the BioBERT neural network model with a large amount of text data sets as input and the corresponding semantic features as output.

[0034] S7. Based on the vector D, for each document t in the given data set T, select the k most similar documents, and then select the M tags with the highest frequency from the k documents, and convert the M tags into a vector representation, recorded as s t According to vector D, the unsupervised clustering method K-Means is used to screen out the k most similar documents of document t, and then the M labels with the highest frequency are selected from the labels contained in the k most similar documents and converted into vectors, which are recorded as

[0035] S8, vector s t Combined with the attention mechanism of document t, the output result vector H is obtained. Figure 1 and Figure 2 Based on the attention mechanism, the information contained in the M labels of the k most similar documents of document t is given, that is, the vectors of the k nearest medical subject words of document t are The eigenvector of the document t The dot product of the transpose of is obtained, and the resulting vector H is: t T represents the transpose of the eigenvector t.

[0036] S9. Calculate the score between document t and label MeSHj using the following formula:

[0037]

[0038] Where σ is the sigmoid activation function, j = 1, 2, ..., M; m j and b j These are learnable parameters, which are optimized in each cycle by optimizing the loss function and back propagation. j It is obtained by normalizing the vector H, that is:

[0039]

[0040] Get the score of each label for a given document. The higher the score, the more likely the label is true.

[0041] S10, input the result vector H into the linear classifier, and judge The label belongs to realize text classification.

[0042] The above-mentioned embodiment of the present invention is further described below by using a specific example.

[0043] The dataset T used in this experiment is PMC Collection. This dataset includes 257,590 articles and 22,881 MeSHs. On average, each article contains 13.34 MeSH tags, and on average, each MeSH positive sample set contains 150 articles. The graphics card model used in this experiment is TITAN Xp with 12Gb of video memory. The batch size is set to 4 and the learning rate is set to 2×10 -5 The specific implementation steps are as follows:

[0044] First, take the title and abstract of the document as input text, and output the feature vector of the document through the BioBERT model. Where N w Indicates the length of the document, that is, the number of words. In this invention, it specifically refers to the number of words in the document title and abstract.

[0045] According to the given data set T, for each MeSH l(l=1,2,…,N m ), select the sample collection T containing the MeSH l , that is, the set T l Each document in the collection contains a MeSH l. l In the example, the TF-IDF algorithm is used to filter out keyword information, and then BioBERT is used to extract semantic features, which are represented by vectors as follows: Then the corresponding MeSH l is converted into a vector through the trained GRU Finally, concatenate the two vectors e l and m' l , and after average pooling, the final representation of MeSH l is obtained

[0046] At the same time, according to the vector representation of the literature t obtained above For each document t, we use the unsupervised clustering method K-Means to select k = 1000 most similar documents. Then we select the M = 1024 tags with the highest frequency from the tags contained in the k documents and convert them into vector s t , expressed as

[0047] Get the vector representation of document t After finding the k nearest neighbor medical thesaurus corresponding to document t, we use the attention mechanism to assign the medical thesaurus information corresponding to similar documents to the vector representation of document t, that is: Then the obtained vector H is normalized by the SoftMax function, that is:

[0048]

[0049] In order to classify each document t, the score between document t and MeSHj is obtained by the following formula: Where m j and b j are all learnable parameters. In the training process, the present invention adopts the cross entropy loss function. For MeSHj, its cross entropy loss function can be expressed as: The model is continuously optimized by reducing the value of this function.

[0050] The evaluation criteria used in the present invention are precision@k (hereinafter abbreviated as p@k) and nDCG@k. Precision@k is a special case of the indicator precision: that is, only the first k samples with the highest scores among the evaluation samples are evaluated. Nm represents the actual tag set of the document, represents the set of labels predicted by the model for the same document, then the above evaluation criteria can be expressed as:

[0051]

[0052]

[0053]

[0054] in is the index collection of the positive sample labels predicted by the system and the corresponding labels in the actual labels, ||y|| 0 Indicates the number of corresponding labels in the actual label set and the predicted label. The results are shown in Table 1:

[0055] Table 1

[0056]

[0057] Table 1 compares the results of the present invention with those of other papers. The Multichannel TextCNN method uses a CNN model, while the HGCNMeSH method uses a Graph Neural Network model to capture the relationship between labels. It can be seen that when k=1, 3, and 5, the p@k and nDCG@k indicators of the present invention are improved, indicating that this experimental scheme has a good effect in supplementing label semantics.

[0058] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art of the present invention, several equivalent substitutions or obvious variations can be made without departing from the concept of the present invention, and the performance or use is the same, which should be regarded as belonging to the protection scope of the present invention.

Claims

1. A text multi-label classification method based on enhanced representation of medical thesaurus, characterized in that: The steps of enhancing the label characterization include: S1, take the medical subject word list in the document as a label, and establish a positive sample set of labels; Step S1 specifically includes: suppose a given data set T contains multiple documents, and the number of labels contained in it is N m ; For each tag MeSH l (l = 1, 2, ..., N m ), select the literature containing the label MeSH l from the training set and construct the corresponding positive sample set T l ; S2. extracting keyword information about tags from the positive sample set; S3, extracting semantic features from the keyword information to obtain a vector representation of the keyword information, recorded as a first vector; S4, convert the label into a vector, recorded as the second vector; S5, connecting the first vector and the second vector to enhance the representation of the label; For the label MeSH l, the first vector and the second vector corresponding to it are respectively denoted as In step S5, the first vector and the second vector are connected and average pooled to obtain an enhanced representation of the label MeSH l Wherein, k is the length of the keyword information, d is the feature dimension, is the field of real numbers; S6. Using the pre-trained model, extract the semantic features of the given data set T and represent it with a vector, denoted as vector D; S7. Based on the vector D, for each document t in the given data set T, select the k most similar documents, and then select the M tags with the highest frequency from the k documents, and convert the M tags into a vector representation, recorded as s t ; S8, vector s t Combined with the attention mechanism of document t, output result vector H; The score between document t and tag MeSH j is calculated using the following formula: Among them, σ is the sigmoid activation function, t T represents the transpose of feature vector t, which is the feature vector obtained after semantic feature extraction of document t. j and b j are all learnable parameters, j∈[1,M], α j It is obtained by normalizing the vector H, that is: Input the result vector H into the linear classifier to judge The label to which it belongs.

2. The text multi-label classification method based on medical thesaurus enhanced representation as claimed in claim 1, characterized in that: In step S2, the keyword information of the tag is extracted from the positive sample set using the TF-IDF algorithm.

3. The text multi-label classification method based on medical thesaurus enhanced representation as claimed in claim 1, characterized in that: In step S3, the semantic features are extracted from the keyword information using the pre-trained model BioBERT.

4. The text multi-label classification method based on medical thesaurus enhanced representation as claimed in claim 1, characterized in that: In step S4, the label is converted into a vector using a gated recurrent unit model.

5. The text multi-label classification method based on medical thesaurus enhanced representation as claimed in claim 1, characterized in that: Step S6 includes: for each document t in the given data set T, using the pre-trained neural network model BioBERT to extract its semantic features and obtain the corresponding feature vector N w represents the length of document t, i.e. the number of words, and d represents the feature dimension; then the overall representation of the document in a given dataset T is D = [t1, t2, …, t n ], n represents the number of documents in a given dataset T; Step S7 includes: according to vector D, using the unsupervised clustering method K-Means to select the k most similar documents of document t, and then selecting the M labels with the highest frequency from the labels contained in the k most similar documents and converting them into vectors, recorded as Step S8 includes: based on the attention mechanism, giving document t the information contained in the M labels of its k most similar documents, and obtaining the result vector H, which is:

Citation Information

Patent Citations

  • Multi-label text classification processing method and system and information data processing terminal

    CN111428026A

  • Word and label combined short text classification prediction method based on self-attention

    CN111666406A

  • Document classification method, apparatus and device, and storage medium

    WO2020207431A1