Distantly supervised relation extraction method based on self-training model

Through negative learning and noisy student self-training strategies, the problem of noise data interference in relationship extraction in the biomedical field is solved, a high-quality relationship extraction model is constructed, and the robustness and performance of the model are improved.

CN117312859BActive Publication Date: 2024-09-10NANJING TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311374983.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-23
Publication Date
2024-09-10
Estimated Expiration
2043-10-23

AI Technical Summary

Technical Problem

In the biomedical field, traditional relationship extraction methods rely on supervised learning. Manual annotation of data is time-consuming and expensive. Remote supervised learning leads to noise data interference. Existing methods cannot effectively reduce the impact of noise, especially when the quality and quantity of data are insufficient. .

Method used

Adopt negative learning and noisy student self-training strategies to obtain high-quality sample data from remote supervision data. Through iterative training of teacher network and student network, noisy data is filtered and re-labeled. Combined with forward learning, a robust relationship extraction model is finally built. .

Benefits of technology

It effectively alleviates the problem of insufficient biomedical data, reduces the impact of noisy data, improves the performance and robustness of the relationship extraction model, ensures that the model can learn and promote knowledge beyond the teacher model, and reduces the risk of overfitting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117312859B
    Figure CN117312859B
Patent Text Reader

Abstract

A remote supervision relationship extraction method based on a self-training model, for a pair of labeled entities in a given sentence, uses a biomedical relationship extraction model to extract the potential biomedical relationship between the two entities. The steps of constructing the biomedical relationship extraction model are: 1) using the original remote supervision data set to train a teacher relationship extraction network based on negative learning, the original remote supervision data set is a biomedical data set; 2) filtering the noise data in the remote supervision data; 3) re-labeling the noise instances for high-confidence labels; 4) using the re-labeled training data to train a student network; 5) using the student network as a new teacher network for iterative training; 6) using the final re-labeled training data and forward learning training to obtain a relationship extraction model. The model of the present invention alleviates the problem of insufficient biomedical data in the process of biomedical relationship extraction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and specifically is a remote supervised biomedical relationship extraction method based on negative learning (NL) and student noise self-training model. Background Art

[0002] Relation extraction aims to identify the relationship between two entities through contextual content. It is a basic task in natural language processing and can be widely used in some downstream tasks, such as knowledge graph completion [1], [2] and question-answering systems [3], [4]. This technology has achieved fruitful results in the field of public knowledge [5], [6], [7], and has also achieved remarkable results in biomedical relationship extraction [8], [9],

[10] . For example, Chinese patent CN111078889A "A method for extracting drug relationships based on multiple entity attention and improved pre-trained language model".

[0003] These traditional knowledge extraction methods are built on the basis of supervised learning, and their performance depends largely on the quality and quantity of labeled training data. However, in actual medical scenarios, manually annotating biomedical data is a very time-consuming and expensive task.

[0004] To alleviate this data shortage dilemma, a study has proposed a distant supervised learning method for relation extraction

[11] to automatically label the original unlabeled samples. The principle is that if two mentioned entities have a relationship in a known knowledge graph, then all sentences including these two entities will express this specific relationship in some way. Obviously, this bold assumption still inevitably leads to the processing of data with incorrect labels, which leads to sample noise in the training process. To this end, multi-instance learning is proposed to treat the distant supervision data as a series of instance bags containing "at least one" correct sentence of the relation mention to alleviate the impact of such noisy cases with incorrect labels.

[0005] Although the multi-instance learning-based method can effectively reduce the interference caused by data noise in long-distance supervised relationship extraction, it is not effective for biomedicine. The model can only learn the information of one sentence, while the diversity information of other sentences will be ignored. In other words, this method is not capable of identifying each sentence with appropriate sentence height labels. For the biomedical field, data accuracy is particularly important. Every small mistake may lead to irreparable serious consequences and unimaginable disasters. Summary of the invention

[0006] In order to solve the above problems, the present invention proposes a new method for biomedical relationship extraction, which adopts a noise student self-training strategy to obtain high-quality sample data from remote supervision.

[0007] First, a basic biomedical relation extraction model is trained with labeled data using distant supervision and used as a teacher network to compute and relabel all training instances with a predefined dynamic threshold.

[0008] Then, a student network of equal size to the teacher is constructed on the newly relabeled samples.

[0009] In each subsequent iteration, the trained student is repeated as a new round of teachers, the training set is relabeled, and the cycle is repeated until the confidence of all sampled instances is no higher than the defined threshold.

[0010] In addition, the present invention introduces negative learning and uses complementary label training models to "input labels that are not expected to be complementary" to reduce the risk of providing erroneous information and prevent the training model from overfitting to noise data.

[0011] Specifically: A biomedical relationship extraction method, for a pair of labeled entities in a given sentence, uses a biomedical relationship extraction model to extract the potential biomedical relationship between the two entities. The original remote supervision dataset is used as the training dataset of the biomedical relationship extraction model, and the original remote supervision dataset is a biomedical dataset. The steps for building the biomedical relationship extraction model are:

[0012] (1) Use the original distant supervision dataset to train a teacher relationship extraction network based on negative learning;

[0013] (2) Filtering noisy data in remote supervision data;

[0014] (3) Relabel noisy instances with high confidence labels;

[0015] (4) Train a student network using the relabeled training data;

[0016] (5) Treat the student network as a new teacher network and train iteratively;

[0017] (6) The relationship extraction model is obtained using the final re-labeled training data and forward learning training.

[0018] The main contributions of the biomedical relationship extraction model of the present invention are as follows:

[0019] 1. In order to alleviate the problem of insufficient biomedical data, this paper proposes a new semi-supervised medical knowledge extraction method based on negative learning and noisy student self-training to relabel erroneous remote data to obtain sufficient and high-quality labeled samples.

[0020] 2. Different from traditional positive learning (PL), the negative sampling of the present invention has a low probability of obtaining the true label as the complementary label, so it has good performance in filtering and re-labeling noise from the training dataset.

[0021] 3. Introduce a noisy student self-training mechanism and use the teacher-student model to iteratively build a more robust and effective biomedical relationship extraction model, ensuring that newly trained students can learn and generalize knowledge beyond the teacher model. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is the overall framework diagram of the method (model) proposed in the present invention. FIG2(a) and FIG2(b) are comparisons of loss and precision (accuracy) in positive and negative learning, respectively.

[0023] Figure 3(a) and Figure 3(b) are the data filter-re-details on the 30% and 50% noisy datasets, respectively, and Figure 4(a) and Figure 4(b) are the confusion matrices on the 30% and 50% noisy DDI datasets, respectively. DETAILED DESCRIPTION

[0024] The scheme is further explained below in conjunction with the accompanying drawings and specific implementation methods. The first section summarizes the entire framework model; the second section introduces the proposed self-training biomedical relationship extraction method in detail and explains its training process in detail; the third section covers the experimental details, including the benchmark dataset used, the initialization of the experimental parameters, and the presentation of the results; the fourth section qualitatively compares and discusses the results obtained using the proposed framework with the results of the original method; the fifth section provides concluding remarks, summarizing the findings and contributions of this work.

[0025] 1. Project Overview

[0026] Given a pair of labeled entities (e1, e2) in a sentence S, the goal of biomedical relation extraction is to extract the potential biomedical relation r between the two mentioned entities. In this paper, we hope to learn an effective and robust biomedical relation extraction model through a remote supervision dataset when there is no manual dataset. To achieve this goal, this paper proposes a new biomedical relation extraction method that uses a noisy student self-training strategy related to negative learning to obtain sufficient and high-quality labeled samples from remote supervision.

[0027] Figure 1 The overall framework of the method proposed in this paper is presented, which includes five main steps: (1) training a teacher relation extraction network based on negative learning using the original distant supervision dataset; (2) filtering the noisy data in the distant supervision data; (3) relabeling the noisy instances with high confidence labels; (4) training a student network using the relabeled training data; (5) using the student network as a new teacher network and training iteratively; (6) training a good relation extractor using the final relabeled training data and positive learning.

[0028] More specifically, let C * represents the original distant supervision input data set, where in Represents the i-th sentence s i The package-level labels are divided into d categories. Due to the rough “at least one” selection strategy, the original dataset C * contains a lot of noisy samples, in other words, it is drawn from a noisy distribution D * For each sentence s with entity pair (e1, e2) i , the corresponding package level It can only indicate that this relationship exists in all sentences containing this specific entity pair, but not every sentence containing the same entity pair represents this specific relationship. * may not represent the true relationship between the two mentioned entities. Therefore, the goal of this work is to construct an effective and robust filter for relabeling entities from a noisy distribution D * noisy instances, and transform them into a clean dataset C = {(s1,y1), (s2,y2), …, (s n ,y n )}.

[0029] To achieve this goal, the framework proposed in this invention is designed into six steps:

[0030] (1) Using the original distant supervision dataset C * To conduct negative learning based teacher model θ t training;

[0031] (2) From C * Identify noisy samples from in

[0032] (3) Relabel these detected noisy instances with high confidence labels and obtain a refined dataset Right now in

[0033] (4) Using this refined dataset Construct a new student model φ s ;

[0034] (5) Use this refined dataset Replace teacher θ t , repeat steps (2)(3)(4)(5) to further refine Until it approaches the real data set C;

[0035] (6) Using the final refined sample and forward learning to train a medical relation extraction classifier with excellent performance.

[0036] 2. System Model

[0037] 2.1 Sentence Encoder Based on BERT Model

[0038] The first task of the present invention is to convert natural sentences into digital representation vectors in a high-dimensional feature space by applying an efficient model. Therefore, the present invention introduces the "Bidirectional Encoder Representations from Transformer" BERT model as a pre-training model to obtain the embedding vector of the sentence, extract important semantic information from the sentence, and construct the corresponding embedding vector.

[0039] BERT is a derivative model based on Transformer, which uses the self-attention mechanism to train the encoder-decoder. In Transformer, scaled dot product attention and multi-head attention are used at the same time. It uses dot products to query all keys and uses the softmax function to obtain weight values. Therefore, the model is able to pay attention to information from different representation subspaces at the same time. The self-attention layer connects all the neural network structure layer positions and performs multiple operations in sequence. This connection enables the learned embedding vector to focus on distinguishing important semantic knowledge in the input and capture valuable information from it, which helps to establish long-range dependencies between input and output sequences. Transformer is able to learn more hidden information from the input sequence, thanks to this self-attention mechanism.

[0040] The advantages of Transformer are inherited and continued by BERT. Due to its powerful feature extraction capability, BERT has become a popular information embedding module and is widely used in various natural language processing tasks for learning global semantic information. In the present invention, its pre-trained version is also used to represent the original natural language sentences.

[0041] 2.2 Negative Learning of Noisy Labels

[0042] Traditional relation extraction learning methods are positive learning based on given training data and their corresponding labels. This is a method of training a model that follows a concept: "input data x belongs to label y". In contrast, negative learning is an indirect learning method where the model is based on "input data x does not belong to the supplementary label For training, Randomly select from {1,…,d}-{y}. Compared with positive learning, negative learning is found to be more suitable for training with noisy information, which allows noisy and clean training data to be more easily distinguished and facilitates subsequent filtering operations.

[0043] Assume that x∈X represents the input data, y, Represents label y and supplementary label respectively One-hot encoding vector of . Assume a network f(x;θ) represents the function f:X→R that maps the input to the d-dimensional feature space d , where θ represents the parameters of the network f. If a softmax function is nested after the network f(x;θ), the output can be interpreted as a probability vector in a d-dimensional simplex, i.e., p∈Δ d-1 When we use forward learning to train the network f, the cross entropy loss function becomes:

[0044]

[0045] Where L PL Represents the loss function p of forward learning i represents the probability of the i-th label. Equation 1 is applicable to searching for the optimal probability of 1 associated with a given label y (p y →1) to meet the requirements of positive learning. However, unlike positive learning, the goal of negative learning is to optimize and supplement labels The associated probability value is far from 1, in other words, close to Therefore, the corresponding cross entropy loss function is modified as follows:

[0046]

[0047] Where L NL Represents negative learning, introducing supplementary labels Each training iteration randomly selects from all classes except the given label y. Equation 2 has the effect of replacing the supplementary label The probability value of is optimized to 0, thereby increasing the probability values ​​of other categories and meeting the purpose of negative learning.

[0048] In order to further demonstrate the effect of negative learning, the present invention compares positive learning and negative learning on the widely known MNIST dataset as shown in Figure 2(a) and Figure 2(b). It is worth noting that in this dataset, 30% of the original data is selected and made into noise samples, and a very small learning rate is used to make the changes in the results more obvious and easy to understand. For positive learning, although the training loss and accuracy are relatively stable, reaching the best state that exceeds the corresponding results of negative learning, the performance of test loss and accuracy is lower than that of negative learning. In particular, both the test loss and accuracy fluctuate significantly in the early stages, indicating that the training model has an overfitting problem. In contrast, the model trained with negative learning suffers less overfitting on noise samples, and the test loss and accuracy are better than the experimental results of positive learning.

[0049] However, while applying the negative learning model to prevent overfitting of noisy data, it may bring the risk of underfitting the data. In order to analyze this phenomenon from a mathematical point of view, we first need to calculate the gradient of the negative learning loss function (Equation 2) as follows:

[0050]

[0051] As described in Equation 3, during the training process of negative learning, the clean data tries to obtain high p and low Noisy data tend to produce low p and high Consider the following situation, the true label of the noisy data will be chosen as All categories except the true label obtain high gradients, i.e. because This situation eventually leads to the inadaptability of the training model because the confidence level of categories other than the true label increases. In order to eliminate this potential threat, the present invention modifies the original negative learning loss function as follows:

[0052]

[0053] Compared to Equation 2, this modified version adds As a constant weighting factor. When it is most likely to be the true label, its corresponding becomes higher, thereby reducing the loss and impact of this noise instance. Therefore, this addition can reduce the confidence of the true label of the noisy data and reduce the risk of underfitting the model.

[0054] 2.3. Filtering and relabeling noisy data

[0055] In Section 2.2, we have demonstrated the effectiveness and practicality of the introduced negative learning for handling noisy samples in training. In the next steps, we will build an effective model for identifying noisy instances and relabeling them based on negative learning.

[0056] 2.3.1 Filtering high confidence samples

[0057] In order to distinguish the noise instances in the original data set, it is common practice to set a fixed threshold after negative learning. Samples with a final score exceeding this threshold are defined as clean data, and vice versa. However, in actual remote supervision relationship extraction, the amount of data in different categories usually does not conform to the Gaussian distribution and is often unbalanced. If the data of different categories are arranged in descending order of frequency, it will be found that there is a "long tail" problem in the data distribution, or it is called the long tail problem. Large data sets often exhibit this long tail distribution. Therefore, it is inappropriate to set a unified threshold for each instance of different categories.

[0058] In this section, a dynamic threshold adjustment mechanism is used to adaptively assign more appropriate thresholds to different categories. Assume that the probability that the i-th sample belongs to category k is represents the average probability of belonging to category k in all training samples. Based on past experimental experience

[12] , it is observed that the probability values ​​of training data follow a distribution in which the probability values ​​of most noise instances are distributed in the low value area, while the probability values ​​of clean instances are distributed in the medium value area and the high value area. Therefore, the filtering threshold associated with category k is defined as:

[0059]

[0060] Where T represents a global threshold constant. We first calculate the average probability of each category on all data, and then combine it with a global threshold as the final adaptive threshold for each category. In this way, we can dynamically obtain the appropriate noise threshold according to the different states of each category, thereby alleviating the long-tail problem in distant monitoring.

[0061] 2.3.2 Relabeled Noise Samples

[0062] After training with negative learning and noise filtering with dynamic thresholding, the noisy instances are locked and regarded as unlabeled samples. The next step is to design a strategy for relabeling these unlabeled data that also contain rich semantic information. Given a filtered instance set U = {f1,f2,f3,…,f h}, for each instance f in U i , by using the teacher network of this iteration to predict the probability vector New labels with high confidence can be obtained as follows:

[0063]

[0064] Here, m is the selected category. It is worth noting that in actual experiments, if the probability of the new label obtained after the re-labeling process is less than the label threshold, we believe that the teacher network cannot distinguish the authenticity of this sample in the current iteration. In the next iteration, the original label of the sample is still applied.

[0065] 2.3. Self-training process of noise learning

[0066] Negative learning can be a better training function when there are noisy samples in the original data. However, if the vast majority of instances in the training dataset are considered valid, positive learning is a faster and more accurate method than negative learning. After training through negative learning, noise filtering, and relabeling operations, samples with high confidence are selected or relabeled and are considered clean data. Therefore, as shown in Figure 2(a) and Figure 2(b), the last step is to use forward learning to build an efficient relation extraction model to use the relabeled clean data.

[0067] Leveraging the power of negative learning for noise filtering and re-labeling, and positive learning for final training, we adopt noisy student self-training

[13] , a semi-supervised learning method that has been shown to perform well on noisy datasets. It first trains a teacher model on the original labeled instances, then uses the teacher model to filter and re-label those instances with low confidence, and then trains a student model on the new refined dataset.

[0068] In this work, we combine noisy student self-training with negative learning as the overall training framework. Algorithm 1 shows an overview of the proposed method. First, the input of the framework is generated through distant supervision, which contains a large number of noisy samples. The original data is used to train a teacher model with a negative learning loss function. Then, the constructed teacher model is used to filter the noisy instances and relabel them to obtain a cleaner dataset. Next, we build a student model based on this cleaner data and train the new student model using the updated data by iteratively filtering and relabeling the noisy samples using the student model as a teacher. Finally, the final processed data is obtained and the relation extractor is trained using forward learning.

[0069] Algorithm 1: Telemedicine relationship extraction model framework based on noise learning self-training

[0070] Data: Distant Supervision Raw Samples Minimum batch size m, training rounds e for negative learning and positive learning n , e p , the learning rate α corresponding to the above two stages n , α p , global threshold T

[0071] Results: Trained biomedical relationship extraction model

[0072] 1 Initialization: Negatively train the model t through the hyperparameter θ n , negatively train the model t through the hyperparameter φ p .

[0073] 2fork=1→e n do

[0074] 3for i=1to m do

[0075] 4 / / According to the negative learning model by minimizing Update the model

[0076] 5end

[0077] 6

[0078] 7θ←θ-α n Adagrad(θ,h θ );

[0079] 8 Filter the noise samples through Eq.5

[0080] 9 Relabel the noisy data through Eq.6 and generate a cleaner data set C as the training data for the next iteration

[0081] 10end

[0082] 11for k=1→e p do

[0083] 12for i=1to m do

[0084] 13 / / According to the forward learning model by minimizing Update the model

[0085] 14end

[0086] 15

[0087] 16φ←φ-α p Adagrad(θ,h θ );

[0088] 17end

[0089] 18 Return a trained biomedical relationship extraction model

[0090] 3 Experimental design

[0091] 3.1 Dataset

[0092] In the distant supervised relationship extraction experiments in the biomedical field, three widely used public benchmark datasets are introduced for evaluation: drug-drug interaction (DDI)

[14] , chemical-protein interaction (CPI)

[15] , and phenotype-gene relationship (PGR)

[16] . The detailed statistics of these three biomedical datasets are as follows:

[0093] Table 1: Datasets used

[0094]

[0095] DDI dataset: This dataset is a single sentence corpus extracted from 233 Medline abstracts and 792 DrugBank texts. It manually annotates 5,028 drug-drug interactions, including 18,502 pharmacological entities and five interaction types, including "Mechanism", "Effect", "Advise", "Int", and "None". The original dataset has an imbalance in the number of sample categories. To solve this problem, the same filtering strategy as previous studies

[17] ,

[18] was adopted. After processing, 77% of the instances were divided into training sets, and the remaining samples were divided into test sets. It is worth noting that according to previous studies, there is no valid dataset in the processed dataset. Therefore, in this work, 10% of the training instances are randomly selected to generate a valid dataset to optimize the performance of the model.

[0096] CPI dataset: This dataset contains interactions between human proteins (such as genes) and chemical components (such as drugs). The corpus includes 1,020, 612, and 800 text summaries as training, validation, and test samples, respectively, which are extracted from PubMed. All summaries are manually labeled and cover six different interactions, including five conventional interactions ("CPR:3", "CPR:4", "CPR:5", "CPR:6", and "CPR:9") and the "None" interaction. To obtain sentence-level instances, we follow the previous experimental settings

[19] , split each abstract into sentences, and only retain sentences containing at least one chemical entity and one protein entity. After this processing, there are 16,281 training instances, 10,030 validation instances, and 14,269 test instances.

[0097] PGR dataset: PGR contains the relationship between human genes and human phenotypes (such as diseases). The relationship set is a binary category "yes" and "no" to indicate whether a phenotype is associated with a gene. The dataset has 11,780 training samples and 219 high-quality test instances. We selected 10% of the instances from the training set as the validation set.

[0098] In order to verify the effectiveness of the proposed method on remote supervised relation extraction and understand its behavior, it is necessary to have unlabeled or incorrectly labeled noisy training examples. Therefore, three noisy datasets with 30% noise labels are constructed, corresponding to the DDI, CPI and PGR datasets, respectively, called noisy-DDI, noisy-CPI and noisy-PGR.

[0099] 3.2 Baseline Model

[0100] In the biomedical relationship extraction task, a series of experiments are conducted to verify the effectiveness and practicality of the present invention, and compared with some strong baseline methods.

[0101] Here are some baseline methods for comparison:

[0102] 1. SCNN

[20] : SCNN adopts syntactic convolutional neural network to extract convolutional features based on word embedding and introduces autoencoder to encode traditional bag-of-words features to jointly extract drug-drug interactions (DDIs) from biomedical literature.

[0103] 2. BiLSTM+ATT

[21] : BiLSTM+ATT proposes an effective relation extraction model that combines the LSTM-based sequence representation model with the entity position-aware attention mechanism to capture the key information in the sentence.

[0104] 3. BioBERT

[22] : BioBERT adapts the original pre-trained language model BERT to biomedical text by using a large-scale biomedical corpus to train a domain-specific language representation model. Multiple experiments show that it outperforms BERT in several biomedical text mining tasks.

[0105] 4. BERE

[23] : BERE proposes a distant supervised learning framework for biomedical relation extraction. It applies a hybrid encoding network to extract semantic and syntactic information from each sentence and uses a feature aggregation network to distinguish relations after associating with all related statements.

[0106] 5. MEA-BioBERT

[17] : MEA-BioBERT obtains sentence embedding representations by outputting modified BioBERT and BiGRU. It also uses three different categories of entity-aware attention to further improve the representation performance, and encodes drug description information as external knowledge to train the model.

[0107] 6. EGFI

[18] : EGFI built a DDI prediction model through two parts. The classification part uses BioBERT to obtain multiple semantic knowledge and perform context modeling, and the generation part introduces BioGPT-2 (another pre-trained language model) to generate meaningful sentences for data enhancement.

[0108] 3.3 Model evaluation and training parameter setting

[0109] In the current experiments, the three public benchmark datasets mentioned above are used to evaluate our proposed method and compare its performance with other state-of-the-art methods. i The micro-averaged F1 score is used as an indicator to evaluate model performance. The Micro-averaged F1 score is a common indicator for evaluating model performance. It combines information about precision and recall and is usually used for performance evaluation of tasks such as classification and information extraction. By comparing the micro-averaged F1 scores of different methods on these datasets, their effects on relation extraction tasks can be evaluated.

[0110]

[0111]

[0112]

[0113] In these formulas, TP n Indicates the number of true positive examples, FP n Indicates the number of false positives, FN n Represents the number of false negative examples, and n represents the nth class.

[0114] In these experiments, a 768-dimensional pre-trained BERT model (basic instance-free version) was used as the initial semantic representation model, trained with the AdamW adaptive optimizer, and hyperparameters were optimized through limited grid search. The detailed settings of the hyperparameters are as follows:

[0115] Table 2: Hyperparameter settings

[0116]

[0117] Specifically, when training on the noisy-DDI dataset, the model is first subjected to 5 initial iterations, with 1 negative learning iteration in each iteration and 5 training rounds in each iteration, followed by 10 positive training rounds with a learning rate of l = 3e-05; when training on the noisy-CPI dataset, the model is first subjected to 5 initial iterations, with 1 negative learning iteration in each iteration and 5 training rounds in each iteration, followed by 10 positive training rounds with a learning rate of l = 3e-05; when training on the noisy-PGR dataset, the model is first subjected to 10 initial iterations, with 1 negative learning iteration in each iteration and 5 training rounds in each iteration, followed by 10 positive training rounds with a learning rate of l = 5e-05.

[0118] 3.4 Results

[0119] The experimental results are shown in Table 3. The corresponding relation extraction experiments are reconstructed for all the baseline methods listed, and all results are obtained using the implementations published online.

[0120] Table 3: Model results on Noisy-DDI, Noisy-CPI, and Noisy-PGR

[0121]

[0122] It can be seen from Table 3 that on all three mentioned datasets, compared with other state-of-the-art methods, the relation extraction model trained by the noise student self-training and negative learning framework proposed in the present invention performs better in all indicators.

[0123] When noisy data is introduced to train the relation extraction model, the performance of all baseline methods drops significantly. In particular, for the dichotomous dataset (PGR), the impact of mislabeling on model performance is most obvious. Most existing relation extraction methods can obtain more than 75% F1 score on pure DDI data and more than 50% F1 score on 30% noisy training data. However, on PGR with 30% noise, these methods can only obtain less than 55% F1 score, while they can obtain more than 90% F1 score on the pure PGR dataset. Below, the impact of training data with different noise ratios on model performance is further verified in Section 5.1.

[0124] In contrast to other models, the proposed method achieves significant improvements. Noise student self-training and negative learning mechanisms play a key role in enabling the model to filter and re-label noisy samples, thereby improving the overall performance and anti-interference ability of the algorithm. At the same time, the model of the present invention achieves better performance in F1 score without much decrease in recall. This shows that the proposed framework can effectively reduce the impact of noisy data. Below, a more detailed demonstration of the role of these two mechanisms in the experiment is also provided in subsequent sections.

[0125] 4 Performance Analysis and Comparison

[0126] Next, we will discuss and analyze various factors that affect the above experimental results, including training data with different noise ratios, noisy student self-training, and negative learning mechanisms. In addition, we will perform visual error analysis to demonstrate the limitations of the model.

[0127] 4.1 Performance of the model under data with different noise ratios:

[0128] Table 4: Model performance on data with different noise ratios

[0129]

[0130] The effectiveness of the proposed model is verified by using a dataset containing 30% noise training samples in the above experiments. From the results, it can be seen that different proportions of noise have a great impact on the model performance, so the impact of different noise ratios on the model performance is further explored in detail.

[0131] As shown in Table 4, the above experiments were repeated on another 20% and 50% noise ratios, respectively, and the results were obtained to quantitatively explain the impact of different noise ratios on model performance. When the percentage of noise data increased from 20% to 30%, the decline in model performance was not obvious, and there was no obvious fluctuation. The F1 score of DDI dropped by 2%, CPI dropped by 0.3%, and PGR dropped by 4.4%. However, when the noise rate increased from 30% to 50%, the model performance dropped significantly. The F1 score of DDI dropped by 7.2%, PGR dropped by 16.4%, and CPI even dropped by 36.1%.

[0132] Compared with the training, validation, and test set ratio of 1:0.11:0.26 in the DDI dataset, the number of samples in the validation and test sets in the CPI dataset increases exponentially, with a ratio of 1:0.62:0.88. In other words, the CPI dataset has richer and more diverse test data, which more rigorously verifies the robustness and generalization performance of the biomedical relationship extraction model. When the training data is mixed with a large amount of noise, the model performance drops more significantly. For the PGR dataset with only two relative class labels, the introduction of noisy data means that the annotation of the sample is opposite to the ground truth of the training sample, which leads to the collapse of the model performance. This illustrates that the nature of different datasets has different effects on noisy data.

[0133] 4.2 Performance of the model on different components:

[0134] To better illustrate the contribution of the key components in the proposed method, two ablation experiments were conducted, removing the negative learning and noisy data screening re-labeling components. To compare with the previous experimental results, the same 30% noise samples were used in both ablation experiments. The experimental results without negative learning and noisy data screening re-labeling components are shown in Table 5.

[0135] Table 5: Model performance without certain components

[0136]

[0137] When the negative learning module is eliminated, the performance of the proposed model on all three datasets decreases. The precision, recall, and F1 score decrease by 2.6%, 4.1%, and 3.3% on average. When the noisy data screening relabeling module is eliminated, the performance of the proposed model on all three datasets also decreases. The precision, recall, and F1 score decrease by 6.0%, 15.2%, and 10.5% on average. It is worth noting that since we do not use the noisy data screening relabeling component on the CPI dataset, the performance of the model degrades severely (the F1 score decreases by 17.8).

[0138] The above experimental results show that these two components play a key role in improving the ability of this self-training method. Unlike positive learning, negative learning is an indirect learning method. When there are erroneous samples mixed in the training set, it does not make errors as frequently as positive learning. It can effectively and stably filter out label noise from the original dataset. Afterwards, the noise data screening and re-labeling mechanism effectively eliminates the impact of noise data on model training by evaluating the confidence of training samples, filtering and re-labeling those noise data with low confidence.

[0139] In addition, another experiment was conducted to evaluate the model’s ability in noise screening re-labeling using 30% and 50% noise training sets. As shown in Figure 3(a) and Figure 3(b), it can be observed that:

[0140] 1. After the first iteration, the number of samples filtered out by the noise filtering and re-labeling module is different on the three datasets due to the different number of training samples, but basically, the number of instances filtered out on all datasets is close to the number of noise samples. As the training iterations progress, the number of noise filtering and re-labeling on the three noisy datasets decreases significantly, which means that this noise filtering and re-labeling mechanism can effectively replace the noise samples from the dataset, thereby providing a cleaner dataset, which also verifies the denoising ability of this module.

[0141] 2. More noise screening re-labeling will lead to a cleaner dataset, but may also introduce more erroneous noise instances. Therefore, we will stop the iteration as early as possible when the model reaches the best score on the development set, which helps ensure the stability of model performance during the actual training process.

[0142] 4.3 Error Analysis:

[0143] In order to illustrate the experimental results more intuitively and clearly, confusion matrices are used for error analysis in Figure 4(a) and Figure 4(b). The intensity of the color indicates the proportion of the correlation, and darker colors indicate larger proportions. The results of the model trained on 30% and 50% noise DDI samples on the test set are visualized, which can summarize three types of errors:

[0144] 1. All positive categories, including Advise, Effect, Mech, and Int, have some samples that are misclassified as None (negative category).

[0145] 2. Many instances of type Int are misclassified as Effect on the 30% noise dataset, and they are often misclassified as Effect and Mech on the 50% noise dataset.

[0146] 3. The proportion of Mech instances misclassified as None and Int instances misclassified as Effect is relatively large.

[0147] The first error reveals that the semi-supervised biomedical relation extraction classifier cannot distinguish between negative and positive samples because it confuses some instances of all positive classes with instances of negative classes. The number of negative samples (6,377 corresponding to 30% noise data) is much larger than the number of positive samples (5,180 corresponding to 30% noise data). This data imbalance problem inevitably leads to relations with small samples being misclassified as relations with large samples. Regarding the second error, we believe that the reason for this misclassification is that the number of Int class is relatively small, and some samples of Int and Effect classes have similar semantics and structures compared with other classes. This reflects that the trained model tends to label Int instances as Effect instances. We picked out those instances that belong to the Int type but are classified as the Effect type from the prediction results and compared them with the instances that belong to the Effect type. It can be found that in some instances of Int type and Effect type, the words describing the drug relationship are either the same or semantically similar. For example, in the sentences where the model misclassified its Int type as Effect type, “Other drugs that may enhance the neuromuscular blocking effects of drugs such as non-depolarizing agents (such as mivacron) include certain antibiotics.” and “When given simultaneously with ProAmatine, cardiac glycosides may enhance or induce slow heart rate.”, the true type is Effect, and the relationship between both drugs is “enhance”. The last error also shows that the model confused some Mech instances into the None category, highlighting the problems of semantic similarity and data imbalance. In addition, the sentences of Int type only contain DDIs without additional context, which may lead to limited semantic features representing Int interactions.

[0148] 5. Conclusion:

[0149] The goal of this paper is to find a new method to alleviate the noisy data problem caused by distant supervision, thereby improving the performance of biomedical relation extraction models. In this work, we propose a learning framework that utilizes negative learning and noisy student self-training mechanisms for biomedical relation extraction. Multiple experiments are conducted on three standard datasets, and the results show that our model effectively eliminates the noisy samples in the original dataset, thereby significantly improving the performance of the biomedical relation extraction model.

[0150] The present invention has several major advantages over existing biomedical relationship extraction models. First, we introduce negative learning for denoising, which is used to filter and relabel noisy instances. Compared with traditional positive learning, negative learning can more effectively distinguish between real samples and noisy data, protecting the training model from the negative impact of overfitting of noisy samples. After the negative learning process, the noisy samples are clearly filtered and relabeled. Our method also utilizes a semi-supervised learning strategy, called noisy student self-training, to optimize the performance of the model through the original ground truth examples and the relabeled noisy samples. The combination of the noisy student training mechanism and negative learning ensures that our model has strong denoising ability, enabling it to clearly distinguish noisy samples in distant supervision datasets.

[0151] The present invention is not limited to the field of biomedical relation extraction. Beyond the scope and applications of this study, future directions will include applying the methods proposed here to other natural language processing and knowledge graph fields, such as economic and industrial fields containing noisy data.

[0152] References:

[0153] [1] S.Biswas, P.Mitra, and KSRao, "Relation prediction of comorbiddiseases using knowledge graph completion," IEEE / ACM Transactions on Computational Biology and Bioinformatics, vol.18, no.2, pp.708–717, 2019.

[0154] [2] Y.Tang, J.Huang, G.Wang,

[0155] [3]Y.Zhang,P.Li,H.Liang,A.Jatowt,and Z.Yang,“Fact-tree reasoning forn-ary question answering over knowledge graphs,”in Proceedings of the 60thAnnual Meeting of the Association for Computational Linguistics,2022,pp.788–802.

[0156] [4]Y.Zhao,J.Huang,W.Hu,Q.Chen,X.Qiu,C.Huo,and W.Ren,“Implicitrelation linking for question answering over knowledge graph,”in Proceedingsof the 60th Annual Meeting of the Association for Computational Linguistics,2022,pp.3956–3968.

[0157] [5]M.Miwa and M.Bansal,“End-to-end relation extraction using lstms onsequences and tree structures,”in Proceedings of the 54th Annual Meeting ofthe Association for Computational Linguistics,2016,pp.1105–1116.

[0158] [6]Z.Guo,Y.Zhang,and W.Lu,“Attention guided graph convolutionalnetworks for relation extraction,”in Proceedings of the 57th Annual Meetingof the Association for ComputationalLinguistics,2019,pp.241–251.

[0159] [7]Y.Tian,G.Chen,Y.Song,and X.Wan,“Dependency-driven relationextraction with attentive graph convolutional networks,”in Proceedings of the59th Annual Meeting of the Association for Computational Linguistics and the11th International Joint Conference on Natural Language Processing,2021,pp.4458–4471.

[0160] [8]F.Christopoulou,T.T.Tran,S.K.Sahu,M.Miwa,and S.Ananiadou,“Adversedrug events and medication relation extraction in electronic health recordswith ensemble deep learning methods,”Journal of the American MedicalInformatics Association,vol.27,no.1,pp.39–46,2020.

[0161] [9]Z.Guo,G.Nan,W.Lu,and S.B.Cohen,“Learning latent forests formedical relation extraction,”in Proceedings of the Twenty-Ninth InternationalConference on International Joint Conferences on Artificial Intelligence,2021,pp.3651–3657.

[0162]

[10] A.Roy and S.Pan,“Incorporating medical knowledge in bert forclinical relation extraction,”in Proceedings of the 2021 Conference onEmpirical Methods in Natural Language Processing,2021,pp.5357–5366.

[0163]

[11] M.Mintz,S.Bills,R.Snow,and D.Jurafsky,“Distant supervision forrelation extraction without labeled data,”in Proceedings of the JointConference of the 47th Annual Meeting of the Association for ComputationalLinguistics,2009,pp.1003–1011.

[0164]

[12] Y.Kim,J.Yim,J.Yun,and J.Kim,“Nlnl:Negative learning for noisylabels,”in Proceedings of the IEEE / CVF International Conference on ComputerVision,2019,pp.101–110.

[0165]

[13] Y.Kim,J.Yim,J.Yun,and J.Kim,“Nlnl:Negative learning for noisylabels,”in Proceedings of the IEEE / CVF International Conference on ComputerVision,2019,pp.101–110.

[0166]

[14] Q.Xie,M.-T.Luong,E.Hovy,and Q.V.Le,“Self-training with noisystudent improves imagenet classification,”in Proceedings of the IEEE / CVFconference on computer vision and pattern recognition,2020,pp.10 687–10 698.

[0167]

[15] M.Herrero-Zazo,I.Segura-Bedmar,P.Mart′1nez,and T.Declerck,“Theddi corpus:An annotated corpus with pharmacological substances and drug–druginteractions,”Journal of biomedical informatics,vol.46,no.5,pp.914–920,2013.

[0168]

[16] M.Krallinger,O.Rabal,S.A.Akhondi,M.P.Perez,J.Santamaria,G.P.Rodriguez,G.Tsatsaronis,A.Intxaurrondo,J.A.Lopez,U.Nandal et al.,“Overview of the biocreative vi chemical-protein interaction track,”inProceedings of the sixth BioCreative challenge evaluation workshop,vol.1,2017,pp.141–146.

[0169]

[17] Y.Zhu,L.Li,H.Lu,A.Zhou,and X.Qin,“Extracting drug-druginteractions from texts with biobert and multiple entity-aware attentions,”Journal of biomedical informatics,vol.106,p.103451,2020.

[0170]

[18] L.Huang,J.Lin,X.Li,L.Song,Z.Zheng,and K.-C.Wong,“Egfi:drug–druginteraction extraction and generation with fusion of enriched entity andsentence information,”Briefings in Bioinformatics,vol.23,no.1,p.bbab451,2022.

[0171]

[19] L.Jin,L.Song,Y.Zhang,K.Xu,W.-y.Ma,and D.Yu,“Relation extractionexploiting full dependency forests,”in Proceedings of the AAAI Conference onArtificial Intelligence,vol.34,no.05,2020,pp.8034–8041.

[0172]

[20] Z.Zhao,Z.Yang,L.Luo,H.Lin,and J.Wang,“Drug drug interactionextraction from biomedical literature using syntax convolutional neuralnetwork,”Bioinformatics,vol.32,no.22,pp.3444–3453,2016.

[0173]

[21] Y.Zhang,V.Zhong,D.Chen,G.Angeli,and C.D.Manning,“Position-awareattention andsupervised data improve slot filling,”in Conference on EmpiricalMethods in Natural LanguageProcessing,2017.

[0174]

[22] J.Lee,W.Yoon,S.Kim,D.Kim,S.Kim,C.H.So,and J.Kang,“Biobert:a pre-trainedbiomedical language representation model for biomedical text mining,”Bioinformatics,vol.36,no.4,pp.1234–1240,2020.

[0175]

[23] L.Hong,J.Lin,S.Li,F.Wan,H.Yang,T.Jiang,D.Zhao,and J.Zeng,“A novelmachinelearning framework for automated biomedical relation extraction fromlarge-scale literaturerepositories,”Nature Machine Intelligence,vol.2,no.6,pp.347–355,2020.

Claims

1. A remote supervised relation extraction method based on a self-training model. For a pair of labeled entities in a given sentence, a biomedical relation extraction model is used to extract the potential biomedical relationship between the two entities. Its characteristics are The steps to build the biomedical relationship extraction model are: 1) The original remote supervision dataset is used to train a negative learning-based relation extraction network model, and the relation extraction network model is used as a teacher model; the original remote supervision dataset is a biomedical dataset; 2) Filtering noisy data in remote supervision data; 3) Relabel noisy instances with high confidence labels; 4) Train the student model using the relabeled training data; the student model network is equal in size to the teacher model; 5) Use the student model as the new teacher model; repeat steps 2) to 5) for iterative training; 6) Using the final re-labeled training data to train a relation extraction network model in a forward learning manner, and using it as a biomedical relation extraction model; In the step 1), the relationship extraction network model is a neural network model; When negative learning is performed on the teacher model, the teacher model is based on the input data x not belonging to the supplementary label For training, Randomly select from {1, ···, d}-{y}, specifically: Assume x∈X represents the input data, Represents label y and supplementary label respectively One-hot encoding vector of ; Assume that the neural network f(x;θ) represents the function f that maps the input to the d-dimensional feature space: X→R d , where θ represents the parameters of the network f; A softmax function is nested after the network f(x;θ), and the output is interpreted as a probability vector in a d-dimensional simplex, that is, p∈Δ d-1 ; When using negative learning to train the network f, the goal is to optimize and supplement the labels The associated probability value is far from 1, that is The negative learning fork entropy loss function is expressed as Where L NL Represents negative learning, introducing supplementary labels Each training iteration randomly selects from all categories except the given label y; In the step 2), in order to distinguish the noise instances in the original data set, a threshold is set after negative learning; samples whose confidence scores calculated for the samples exceed the threshold are clean data, and samples whose confidence scores exceed the threshold are noise data; and the noise data is filtered out; A dynamic threshold adjustment method is used to adaptively assign more appropriate thresholds to different categories. The method is as follows: Assume that the probability that the i-th sample belongs to category k is represents the average probability of belonging to category k among all training samples; the filtering threshold associated with category k is defined as: Where T represents the global threshold constant; N represents the number of samples; That is, first, the average probability of each category on all data is calculated; then, it is combined with the global threshold as the final adaptive threshold for each category k; In step 3), after filtering in step 2), the noise instances are locked and regarded as unlabeled samples. The method of relabeling these unlabeled data is as follows: Given a filtered set of instances U = {f1, f2, f3, ..., f h }, for each instance f in U i , by using the teacher model of this iteration to predict the probability vector Get new labels with high confidence using the following re-labeling strategy: Where m is the selected category; If the probability of the new label obtained after the re-labeling process is less than the label threshold, it is considered that the teacher model cannot distinguish the authenticity of this sample in the current iteration; in the next iteration, the original label of the sample is still applied; In the step 4), the student model is constructed using the clean data obtained in the step 3); In step 1), the negative learning loss function is further optimized: First, the gradient of the negative learning loss function is calculated as follows: During the training process of negative learning, clean data tries to obtain high p and low Noisy data tend to produce low p and high The true label of the noisy data will be chosen as All categories except the true label obtain high gradients, i.e. Modify the negative learning loss function to:

2. The remote supervision relationship extraction method based on the self-training model according to claim 1 is characterized in that In the step 1), the relationship extraction network model is a BERT model.