Online robust PU learning method for polypeptide spectrum matching data
Through the online robust PU learning method and non-convex loss function, the problems of noise and unbalanced data in peptide spectrum matching are solved, the identification accuracy and stability are improved, and more efficient identification is achieved on data sets that do not meet the SCAR assumption. Peptide spectrum matching and identification.
Patent Information
- Application Number
- CN202410897724.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-01
AI Technical Summary
In peptide spectrum matching, existing technology is difficult to effectively handle noise and unbalanced annotation data, resulting in a low proportion of correct matches, and the data does not meet the Selected Completely at Random (SCAR) assumption, affecting identification accuracy.
An online robust PU learning method is adopted, using non-convex loss function and gradient descent algorithm to optimize parameters by minimizing the online instantaneous loss function to generate a classifier to identify correct peptide spectrum matches, which is suitable for data sets that do not meet the SCAR assumption.
The recognition accuracy and stability of peptide spectrum matching are significantly improved, the classification performance is close to the potential optimal, and the storage resource requirements are less, and more correct peptide spectrum matching can be identified on imbalanced data sets.
Smart Images

Figure CN118737288A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a data analysis method, and in particular to an online robust PU learning method for polypeptide spectrum matching data. Background Art
[0002] As a powerful tool of bioinformatics, biological mass spectrometry is one of the core technologies for protein identification. The shotgun method combined with a database search strategy is the mainstream method for large-scale proteome identification. The main steps of this method include: (1) Enzymatic digestion: adding enzymes such as trypsin to a biological specimen containing a complex protein mixture to hydrolyze the protein into peptides; (2) Peptide separation: the peptide mixture after enzymatic digestion is effectively separated by liquid chromatography (LC) or capillary electrophoresis (CE) and other technologies; (3) Generating a mass spectrum: the separated peptides are introduced into a mass spectrometer for mass spectrometry analysis to generate a mass spectrum; (4) Database matching: the experimental mass spectrum is matched with the theoretical mass spectrum in the database through a database search engine to determine the optimal peptide spectrum match (PSM), and then determine the amino acid sequence of the polypeptide; (5) Protein sequence deduction: based on the amino acid sequence of the identified polypeptide, the amino acid sequence of the protein in the sample is analyzed and deduced.
[0003] Due to the complexity of biological samples and experiments, there is often a lot of noise in the mass spectra of peptides. This leads to a large number of errors in the peptide spectrum matching results of the database search engine, and the proportion of correct matches is usually less than 50%. There are some known decoy PSMs and unknown PSMs in the PSM matching data. At present, the mainstream PeptideProphet and Percolator methods have failed to effectively solve this challenge. In contrast, the PU learning method has the ability to process unbalanced annotated data and is suitable for PSM identification problems. The present invention provides a solution for peptide spectrum matching and identification under the framework of the PU learning method.
[0004] In 2019, J. Bekker et al. proposed an empirical risk-based SAR in the article "Beyond the Selected Completely at Random Assumption for Learning from Positive and Unlabeled Data" for PU learning methods. PU Methods are used to deal with the influence of labeling mechanisms in the PU data learning process to solve the selection bias problem. In 2020, C. Zhang et al. proposed a gradient-based online learning method in their article "Online positive and unlabeled learning". PU learning introduced an online training mode. In particular, a method called OPU was introduced. DHThe method uses a convex double hinge loss function. In 2021, C. Gong et al. proposed LBE in the article "Instance-Dependent Positive and Unlabeled Learning With Labeling Bias Estimation". LF The method solves the problem of uneven positive example labeling probability by establishing a graph model and applying EM and Adam optimization techniques. The uniqueness of the method of the present invention is that it is based on an online PU learning framework and can quickly and stably generate high-quality identification results for data sets that do not meet the SCAR assumption by adopting a suitable non-convex loss function. And compared with the above three methods on a peptide data set, this method can identify more correct peptide spectrum matches. Summary of the invention
[0005] The present invention solves the common problems of high labeling cost and data not meeting the SCAR assumption in peptide spectrum matching identification, and improves the ability to identify correct peptide spectrum matching. The technical solution adopted is: using the online robust PU learning method, solving the optimization algorithm through the gradient descent method, and obtaining the classifier Predict the final sample label and identify the correct peptide spectrum match. The step flow chart of this method can be found in the attached Figure 1 .
[0006] The disclosed method mainly comprises the following steps:
[0007] S1. Data preprocessing: convert each feature of the data into numerical data, remove redundant features, normalize the data, and convert label values.
[0008] S2, let the preprocessed training sample be Where T is the total number of training samples, x t ∈R d is the d-dimensional peptide spectrum match output by the database search engine, y t ∈{-1,+1}, is the peptide spectrum x t The corresponding label is y t =1 indicates positive sample (deceiving PSM), y t = -1 represents the remaining samples (target PSM). The peptide identification problem is essentially to identify the correctly matched samples from the target PSM samples whose labels are unreliable.
[0009] Let P = {x t |y t =1,t=1,...,T P},U={x t |y t =0,t=1,...,TU}, P and U are the sets of positive and unlabeled samples respectively. Then the online instantaneous loss at the tth moment is as follows, and its minimization is solved:
[0010]
[0011] The training samples are T is the total number of training samples, x t ∈R d is the d-dimensional peptide spectrum match output by the database search engine, y t ∈{-1,+1}, is the peptide spectrum x t The corresponding label is y t =1 indicates positive sample (deceiving PSM), y t = -1 represents the remaining samples (target PSM), w is R d dimensional parameter matrix, P = {x t |y t =1,t=1,...,T P},U={x t |y t =0,t=1,...,T U}, P and U are the sets of positive and unlabeled samples, respectively, and the number of samples they contain is T P and T U (T P +T U =T), When x is the characteristic function t When it belongs to P, it takes 1, x t If it does not belong to P, it is 0. is also an indicative function, x t When it belongs to U, it takes 1, x t When it belongs to U, it is 0, l(·) is the loss function that conforms to the pseudo-convex property, f(x t )=w,x t is a linear classifier, is the class prior rate, It represents the proportion of positive samples observed at time t to the total samples, P t is the number of samples belonging to set P among the first t samples at time t;
[0012] S3. Use the traditional gradient descent algorithm to solve the weight parameter that minimizes the online instantaneous loss. in At time t, when w = w t The gradient value taken by the loss L(w) at .
[0013] S4. Train the classifier based on parameter w Used to identify correct peptide spectrum matches.
[0014] Detailed description of each step:
[0015] S1. Data normalization: Process each feature of the sample, and through translation and scaling, make the numerical distribution of the feature have the statistical characteristics of zero mean and unit variance, so as to avoid some features from having too much impact on the model training process and improve the generalization ability of the model.
[0016] S2. Selecting a suitable loss function l(z) is the key technology of the present invention. Since non-convex loss functions have more complex shapes, they can better adapt to complex data distributions and patterns in the real world. In addition, some non-convex loss functions have certain robustness to outliers and noise, and can better handle abnormal situations in data and improve the generalization ability of the model. The present invention considers a family of loss functions consisting of a loss function l(z) with the following properties:
[0017] (a) l(z)+l(-z)=1;
[0018] (b) l:R→[0,1], and strictly decreasing;
[0019] (c) l satisfies the Lipschitz continuity condition on R, and the Lipschitz constant is L.
[0020] l(z1)-l(z2)≤Lz1-z2
[0021] The sigmoid function can be verified That is, it satisfies the above three properties. Figure 2 Shows the graph of the sigmoid function and its derivative.
[0022] If a function g:R d →R, for any w1,w2∈R d , if satisfied If there exists a function value g(w2)≥g(w1), then the function g is called pseudoconvex.
[0023] Then for a continuously differentiable loss function, when it satisfies assumptions (b) and (c), and for any t, there exists κ ≥ 0 such that the modulus x t ≤κ, then it can be proved that the loss function in model (1) is pseudo-convex.
[0024] In the present invention, the parameter sequence of the model is set to t} is generated by Algorithm 1. Assume that when {w t} and {x t} is bounded, that is, there exists C, H1, H2>0, such that ||w t ||≤C,0 <H1≤||xt ||≤H2, t=1,…,T. When the loss function satisfies the pseudo-convex assumption, the learning rate is: And in If the conditions are met, is the optimal solution that minimizes the sum of model (1) at the previous time t. Then the regret bound that measures the performance of the optimization algorithm can be calculated. This is a sublinear regret bound, which indicates that when T approaches infinity, the classification performance of the algorithm proposed in the present invention will be close to that of the optimal linear classifier.
[0025] S3. The online algorithm of the present invention updates the parameters by gradient descent for instantaneous risk. The updating rule of the parameter vector is:
[0026]
[0027] Where η>0 is the learning rate. The online instantaneous loss calculation formula for w at time t is:
[0028]
[0029] l′(·) is the derivative of the loss function l(·).
[0030] Algorithm 1. Robust online PU classification algorithm
[0031] Input: w1∈R d , data flow: (x1,y1),,(x T ,y T ), set the learning rate η and class prior rate π
[0032] Output: f T (·)=w T ,·
[0033] Step 1, initialize parameter w1=0;
[0034] Step 2: Online iteration
[0035]
[0036] Step 3, return to f T (·)=w T ,·
[0037] S4. Classifier based on training Identify confident peptide spectrum matches.
[0038] Remember T is the weight parameter output by Algorithm 1, and the corresponding classifier where x∈R dIt is a vector composed of various features of the peptide spectrum matching sample.
[0039] For peptide spectrum matching samples (x t ,y t ), by setting a threshold θ, samples with prediction scores lower than the threshold θ are identified as correct peptide spectrum matches.
[0040] The label is calculated as follows:
[0041]
[0042] The threshold θ can be set to 0 by default or calculated by the FDR method.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] 1. The present invention adopts a non-convex loss function that satisfies the three properties in S2, replacing the convex function commonly used in traditional PU learning methods. The online learning algorithm constructed based on this technology is more robust when processing data sets that do not meet the SCAR hypothesis, significantly improving the classification accuracy and the number of correct peptide spectrum matches, ensuring the stability and accuracy of the results.
[0045] 2. The theoretical properties of existing online PU learning algorithms essentially rely on the convexity of the loss function. The online PU algorithm proposed in this invention can be proven to have a sublinear non-stationary regret bound under reasonable conditions such as sample boundedness. This property makes the proposed method's classification performance approach that of a potentially optimal linear classifier as T approaches infinity.
[0046] 3. The technical solution proposed by the present invention requires less storage resources. Compared with the invention with announcement number CN108388774A, the present invention only needs to store the parameter vector w of each iteration. t , without having to store all sample data from iteration to the current step. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 The flowchart of the robust PU method for peptide identification disclosed in the present invention is a robust online PU classification algorithm. The algorithm obtains the parameter matrix w by minimizing the instantaneous loss. t The iteration formula is as follows: until the iteration is terminated, the output parameter w T , according to the classifier A score for a specific sample is given, and based on the threshold, the peptide spectrum is identified to match the label of the sample.
[0048] Figure 2 The non-convex sigmoid loss function proposed by the present invention and the graph of its derivative. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention.
[0050] The present invention is further described below in conjunction with the accompanying drawings and examples. Five peptide identification data sets with different numbers are selected to test the effectiveness of the disclosed method. Table 1 shows the total number of samples, the number of features, the number of decoy PSMs (positive samples) and the number of target PSMs (negative samples) of these five peptide data sets.
[0051] Table 1 Dataset characteristics
[0052]
[0053] The meanings of the 9 features of the above peptide dataset are specifically expressed as follows:
[0054] ions: represents the number of observed ions, that is, the number of ions detected in the mass spectrometry experiment.
[0055] xcorr: Matching score, which evaluates the matching degree between the experimentally observed mass spectrometry data and the theoretical mass spectrometry data in the database. deltacn: The difference between the matching scores of two adjacent spectra, which is used to evaluate the credibility between different peptide matching results. sprank: It is used to evaluate the ranking position of PSM in the search results, that is, the ranking score or ranking given by the search engine. hit_mass: The quality of the matched peptide.
[0056] numProt: The number of proteins corresponding to the matched peptide.
[0057] enzN: Boolean variable indicating whether the peptide is adjacent to a peptidase cleavage site.
[0058] enzC: Boolean variable indicating whether the peptide has a peptidase cleavage site at the C-terminus.
[0059] xcorrR:deltacn / xcorr.
[0060] Table 2 lists the p-values of the T-test statistics of the nine features on the five data sets, which are used to determine whether the observed positive samples and the identified positive samples are from the same population distribution. As can be seen from Table 2, the p-values of most features are less than 0.05. This indicates that the hypothesis test rejects the null hypothesis, indicating that the above peptide identification data set does not meet the SCAR assumption.
[0061] Table 2 Significance test p-values of each feature in the PSM dataset
[0062]
[0063] Due to the particularity of the PU method on the peptide identification dataset, its positive class labels are known to deceive PSMs, while the labels of negative class samples are unknown. Therefore, it is not possible to rely solely on the accuracy on the test set as an evaluation criterion. The following two metrics are used to test the classification accuracy.
[0064]
[0065] Where # represents the number of elements in the collection. and Respectively represent samples x t It is predicted as a positive PSM or a negative PSM. Since the positive samples are reliable, the present invention tends to measure α1 to be a higher value, and actually requires α1 to be at least greater than or equal to 0.98. In addition, it is hoped that more PSMs can be correctly identified, so the metric α2 is required to be as high as possible.
[0066] In order to verify the superiority of the method proposed in the present invention, the data set was first divided, where both positive and negative samples were randomly divided into two subsets, a training set and a test set, at a ratio of 8:2. Next, the method given in the present invention was used to train on the training set to obtain the classification function, and the α1 and α2 indicators were used to evaluate the classification performance on an independent test set. Table 3 lists the results of the above five peptide identification data sets using the method of the present invention, OPU DH SAR PU , LBE LF The optimal α1 and α2 values obtained by the four methods after cross-validation and parameter adjustment, among which the loss function selected by the method of the present invention is the sigmoid function.
[0067] The results show that when the α1 metric is greater than 0.98, the proposed method obtains higher α2 values than other methods on four of the datasets. In the tal08-large dataset, LBE LF Slightly better than ROPU in the α2 index. Specifically, on the velos-mips dataset, the method of the present invention is 4% higher than the best set of α2 indicators among the other three methods. Overall, these results show that under almost equal α1 indicators, the method of the present invention identifies more correct peptide spectrum matches.
[0068] Table 3 Comparison of identification results between the method of the present invention and the commonly used PU method
[0069]
[0070] In order to evaluate the impact of online learning technology on the efficiency of identification results, the time consumption of this method was calculated. 30 independent experiments were conducted and the average was taken. Table 4 lists the average time consumption required for each data set using this method, and the results show that the time required is relatively short.
[0071] Table 4 Time consumption of the method of the present invention for different data sets
[0072]
[0073] The above description describes the specific implementation of the present invention in combination with the diagrams, but does not limit the scope of protection of the present invention. Based on the technical solution of the present invention, various modifications or variations that can be made by relevant technicians without creative work are still within the scope of protection of the present invention.
Claims
1. An online robust PU learning method for peptide spectrum matching data, characterized in that: The following steps are involved: S1. Data preprocessing: convert each feature of the data into numerical data, remove redundant features, normalize the data, convert the label value, and record the original label y t ′∈{-1,+1}, where y t ' = -1 is the artificially added decoy PSM (incorrect match), y t ′=1 is the original correct and incorrect matching sequence in the database. After conversion, {y t =-1|y i ′=1} and {y t =1|y i = -1}, so that in applying the robust PU method to solve the peptide identification problem, incorrect matching samples are regarded as positive classes and correct matching samples are regarded as negative classes; S2. Select a suitable non-convex loss function l(·), which should satisfy the following three properties: (a) l(z)+l(-z)=1; (b) l:R→[0,1], and strictly decreasing; (c) l satisfies the Lipschitz continuity condition on R, and the Lipschitz constant is L |l(z1)-l(z2)|≤L|z1-z2|; S3, use the gradient descent method to minimize the online instantaneous loss at time t in the PU learning algorithm: The training samples are t=1…T, T is the total number of training samples, x t ∈R d is the d-dimensional peptide spectrum match output by the database search engine, y t ∈{-1,+1}, is the peptide spectrum x t The corresponding label is y t =1 indicates positive sample (deceiving PSM), y t = -1 represents the remaining samples (target PSM), P = {x t |y t =1,t=1,...,T P },U={x t |y t =0,t=1,...,T U }, P and U are the sets of positive and unlabeled samples, respectively, and the number of samples they contain is T P and T U (T P +T U =T), When x is the characteristic function t When it belongs to P, it takes 1, x t If it does not belong to P, it is 0. is also an indicative function, x t When it belongs to U, it takes 1, x t When it belongs to U, it is 0, l(·) is the loss function that conforms to the pseudo-convex property, f(x t )= <w,x t > is a linear classifier, is the class prior rate, It represents the proportion of positive samples observed at time t to the total samples, |P t | is the number of samples belonging to set P among the first t samples at time t; S4. Train the classifier based on parameter w A threshold θ is set, and samples with prediction scores lower than the threshold θ are identified as correct peptide spectrum matches.
2. The online robust PU learning method for peptide spectrum matching data according to claim 1, characterized in that: Step S3 solves the online instantaneous loss minimization model, and the specific solution steps are as follows: S31, initialization: parameter w1 = 0, set learning rate η and class prior rate S32, online iteration S321, for t=1,2,…,T S322, receiving PSM sample {x t ,y t } S323, calculate the classification function f t (x t )= <w t ,x t S324, calculation S325, Update S326, end for S33, return to f T (·)= <w T ,·>.
