A BCR classification method combining logistic regression and multi-instance learning
By combining logistic regression with multi-instance learning, the k-mer algorithm and Atchley factor are used to process BCR data, which solves the problem of high false negative rate in BCR disease screening and improves the accuracy and applicability of disease screening.
Patent Information
- Application Number
- CN202111565484.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-12-20
AI Technical Summary
Existing screening methods for BCR-related diseases have a high false-negative rate, which results in the accuracy of screening results not reaching the application level and the potential for false negatives.
Combining logistic regression with multi-instance learning, the amino acid sequence data is converted into equal-length subsequences and high-dimensional attribute data through the k-mer algorithm and Atchley factor, and the gradient descent optimizer is used to train the logistic regression model to reduce the false negative rate.
It effectively reduces the false negative rate in BCR-related disease screening, improves the practical application of disease screening, and enhances the accuracy of early screening.
Smart Images

Figure CN114242171B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of BCR-related disease screening based on machine learning, and specifically relates to a BCR classification method combining logistic regression with multi-example learning. Background Art
[0002] The human body is constantly under attack from outside forces, and the most important line of defense to protect humans is the human body's defense mechanism, the immune system. Everyone's immune system is a three-layer structure. The first two layers include direct defense structures such as skin, mucus, antimicrobial proteins, and phagocytes. When the first two layers are unable to prevent the invasion of foreign enemies, it is time for the third layer of defense structure to appear. The third layer mainly includes immune organs and immune cells, which protect the human body through the circulation of blood.
[0003] Lymphocytes are a type of immune cell, a special cell that can remember the immune process. Lymphocytes can be divided into two types, namely T lymphocytes and B lymphocytes. T cells account for the majority of lymphocytes. T lymphocytes have many functions, including directly eliminating antigens, regulating the antibody production function of B cells, specific response to specific antigens and production of cytokines, etc. The multifunctional stem cells produced from the bone marrow are called B cells for short, and B cells develop from hematopoietic stem cells. Figure 1 B cells under a microscope. The CDR3 region of the B cell surface receptor (BCR) is an important structure for recognizing and binding antigens. During the development of hematopoietic stem cells into B cells, the three groups of gene fragments (V, D, and J) on the VH are randomly recombined, and a part of the bases are randomly inserted or reduced during the random recombination process, forming tens of thousands of different random sequences in turn, which are used to bind to various different antigens produced in nature. When BCR successfully binds to the antigen, the B cell will quickly differentiate and produce a large number of B cells with the same BCR. Based on this, a disease screening method was developed to determine whether the target antigen exists in the body by detecting the BCR in the human body.
[0004] And with the rapid development of interdisciplinary bioinformatics, more and more medical research has used machine learning to analyze data for classification. Among them, the logistic regression algorithm has attracted much attention from researchers because it is very suitable for probability analysis of different classifications, and the model is clear, and the output data has extremely high mathematical analysis value. Multi-instance learning, which was also born in biomedicine, is also a commonly used algorithm idea in bioinformatics research. The basic idea of multi-instance learning is to "cluster" the data into data packets. When all the data packets are negative, they are negative packets. If there is a positive example in the data packet, it is a positive packet. Since there are many data analysis type research experiments in bioinformatics that may have a lot of noise, and multi-instance learning can meet the requirements of data analysis and processing in many specific scenarios of bioinformatics because of its characteristics, multi-instance learning is highly compatible with many bioinformatics related research.
[0005] Since the research on disease screening through BCR is currently in its infancy and exploration stage, the accuracy of the results is not yet up to the application level. There are two situations where there are errors between the predicted value and the actual value, namely false negative and false positive. Generally speaking, false negative is more harmful. Since BCR relies on randomly generated CDR3 sequences to bind to antigens, it is not impossible for a healthy person to have BCR that can bind to the target antigen. At the same time, there are many situations in the data acquisition process that may cause errors. Even if the above situations have been ruled out, there may still be factors currently unknown to humans that may lead to unsatisfactory data sets. These situations lay the hidden dangers for false negatives in screening results. Summary of the invention
[0006] The purpose of the present invention is to provide a BCR classification method combining logistic regression with multi-instance learning, which can effectively reduce the false negative rate.
[0007] A BCR classification method combining logistic regression and multi-instance learning includes the following steps:
[0008] Step 1: Obtain the BCR dataset. According to the international standard format of bioinformatics, first delete the invalid data with the productive item F, then keep only the sequence_id and the junction_aa data representing the amino acid sequence, and record the initial label of the dataset. Then cluster the data with the same sequence into a package D for multi-instance learning. i , if there are positive cases in the bag, the label of the whole bag is positive, and the label of the bag is negative only if all the cases in the bag are negative; each single data is an example {L0,L1,…,L S}∈D i ;
[0009] Step 2: Take the positive sample set {D0,D1,…,D i} and negative sample set {D i+1 ,D i+2 ,…,D n} form a training set;
[0010] Step 3: Use the k-mer algorithm to convert the amino acid sequence data in the training set into subsequences of equal length. The amino acid sequence of length L is cut into continuous subsequences of length k. Then the string sequence representing the amino acid can be parsed into (L-k+1)mers. The total number of mers can be calculated based on the permutation and combination calculation, and the number of each mer is the gene sequence data processed by the k-mer algorithm. The selection of k should be obtained through preliminary experiments, and the general range is 3-8.
[0011] Step 4: Use the Atchley factor to convert the letters in the subsequence list into a set of five data representing their physicochemical properties; the Atchley factor is a set of highly interpretable digital patterns of amino acid variation. These high-dimensional attribute data are summarized by multidimensional patterns reflecting the covariation of five attributes: polarity, secondary structure, molecular volume, codon diversity, and electrostatic charge. It is a natural basic metric to compare these alphabetical data representing amino acids;
[0012] Step 5: Input the training set data processed in step 4 into the logistic regression model for training, and use the Adam optimizer as the gradient descent method;
[0013] Step 6: Obtain the BCR data to be classified, without clustering, and only perform a composite process of the k-mer algorithm and the Atchley factor, and then input it into the trained logistic regression model. The logistic regression model outputs the probability that the BCR data is positive; if the positive probability is greater than 0.5, the BCR data is judged to be positive, otherwise it is negative.
[0014] The beneficial effects of the present invention are:
[0015] The present invention applies the idea of multi-instance learning, "clusters" BCR sequences with the same amino acid sequence into packages, and marks the same sequence packages containing both positive and negative as positive. The present invention can effectively reduce the false negative rate in BCR-related disease screening based on machine learning, and improve the practical applicability of BCR-related disease screening, which is currently in the exploratory research stage. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Schematic diagram of B cells under a microscope.
[0017] Figure 2 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0018] The present invention is further described below in conjunction with the accompanying drawings.
[0019] The present invention combines logistic regression with multi-instance learning, and uses the idea of multi-instance learning to "cluster" BCR sequences with the same amino acid sequence into packages. If there are positive cases in the package, the entire package is positive, and if they are all negative, the package is considered negative. Such processing can greatly reduce the false negative rate of the results.
[0020] The purpose of the present invention is to better utilize machine learning to screen for BCR-related diseases and improve its application value, thereby providing a method that can effectively reduce false negative screening results.
[0021] Step 1: Collect and process the amino acid sequence dataset of BCR, delete invalid data, and cluster the data with the same sequence into a package Di for multi-instance learning. If there is a positive case in the package, the label of the entire package is positive. Only when all the cases in the package are negative, the label of the package is negative. Each single data is an example in the package ({L0,L1,…,L S}∈D i ).
[0022] Step 2: Dataset division: divide the dataset into positive sample sets ({D0, D1, …, D i}) and negative sample set ({D i+1 ,D i+2 ,…,D n}), take part of the positive sample set and the negative sample set as the training set, and the rest as the test set.
[0023] Step 3: Use the k-mer algorithm to convert the amino acid sequence into equal-length subsequence table data. The amino acid sequence of length L is cut into continuous subsequences of length k, and then the string sequence representing the amino acid can be parsed into (L-k+1)mers. According to the permutation and combination calculation, the total number of mers can be obtained, and the number of each mer is the gene sequence data processed by the k-mer algorithm. The selection of k must be obtained through preliminary experiments, and the general range is 3-8.
[0024] Step 4: Use the Atchley factor to convert the letters in the subsequence list into a set of five data representing their physicochemical properties. The Atchley factor is a set of highly interpretable numerical patterns of amino acid variation. These high-dimensional attribute data are summarized by a multidimensional pattern of covariation of five properties reflecting polarity, secondary structure, molecular volume, codon diversity, and electrostatic charge, and are a natural basic metric to compare these alphabetical data representing amino acids.
[0025] Step 5: Train the logistic regression model. Input the previously processed data into the model for training. Use the Adam optimizer as the gradient descent method and finally output the trained parameters.
[0026] Step 6: Final test, input all examples in the test set into the trained logistic regression model. The test set is not clustered, and only the k-mer algorithm and Atchley factor are combined. A probability will be output for each case Li. By default, a probability greater than 0.5 is positive and a probability less than 0.5 is negative. Compare the model output results with the actual labels of the cases, focusing on the number and proportion of cases with negative output but positive.
[0027] Embodiment 1:
[0028] A BCR classification method combining logistic regression and multi-instance learning includes the following steps:
[0029] Step 1: Obtain the BCR dataset. According to the international standard format of bioinformatics, first delete the invalid data with the productive item F, then keep only the sequence_id and the junction_aa data representing the amino acid sequence, and record the initial label of the dataset. Then cluster the data with the same sequence into a package D for multi-instance learning. i , if there are positive cases in the bag, the label of the whole bag is positive, and the label of the bag is negative only if all the cases in the bag are negative; each single data is an example {L0,L1,…,L S}∈D i ;
[0030] Step 2: Take the positive sample set {D0,D1,…,D i} and negative sample set {D i+1 ,D i+2 ,…,D n} form a training set;
[0031] Step 3: Use the k-mer algorithm to convert the amino acid sequence data in the training set into subsequences of equal length. The amino acid sequence of length L is cut into continuous subsequences of length k. Then the string sequence representing the amino acid can be parsed into (L-k+1)mers. The total number of mers can be calculated based on the permutation and combination calculation, and the number of each mer is the gene sequence data processed by the k-mer algorithm. The selection of k should be obtained through preliminary experiments, and the general range is 3-8.
[0032] Step 4: Use the Atchley factor to convert the letters in the subsequence list into a set of five data representing their physicochemical properties; the Atchley factor is a set of highly interpretable digital patterns of amino acid variation. These high-dimensional attribute data are summarized by multidimensional patterns reflecting the covariation of five attributes: polarity, secondary structure, molecular volume, codon diversity, and electrostatic charge. It is a natural basic metric to compare these alphabetical data representing amino acids;
[0033] Step 5: Input the training set data processed in step 4 into the logistic regression model for training, and use the Adam optimizer as the gradient descent method;
[0034] Step 6: Obtain the BCR data to be classified, without clustering, and only perform a composite process of the k-mer algorithm and the Atchley factor, and then input it into the trained logistic regression model. The logistic regression model outputs the probability that the BCR data is positive; if the positive probability is greater than 0.5, the BCR data is judged to be positive, otherwise it is negative.
[0035] The present invention applies the idea of multi-instance learning, marks the same sequence packages containing both positive and negative as positive, effectively reduces the impact of the above negative factors, and effectively reduces the false negative rate. The present invention can effectively reduce the false negative rate in BCR-related disease screening based on machine learning, improve the practical applicability of BCR-related disease screening, which is currently in the exploratory research stage, and promote the diversification of early disease screening methods.
[0036] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A BCR classification method combining logistic regression and multi-instance learning, characterized in that: The following steps are involved: Step 1: Obtain the BCR dataset. According to the international standard format of bioinformatics, first delete the invalid data with the productive item F, then keep only the sequence_id and the junction_aa data representing the amino acid sequence, and record the initial label of the dataset. Then cluster the data with the same sequence into a package D for multi-instance learning. i , if there are positive cases in the bag, the label of the whole bag is positive, and the label of the bag is negative only if all the cases in the bag are negative; each single data is an example in the bag {L0,L1,...,L S }∈D i ; Step 2: Take the positive sample set {D0,D1,...,D i } and negative sample set {D i+1 ,D i+2 ,...,D n } form a training set; Step 3: Use the k-mer algorithm to convert the amino acid sequence data in the training set into subsequences of equal length. The amino acid sequence of length L is cut into continuous subsequences of length k. Then the string sequence representing the amino acid can be parsed into (L-k+1)mers. The total number of mers can be calculated based on the permutation and combination calculation, and the number of each mer is the gene sequence data processed by the k-mer algorithm. The selection of k should be obtained through preliminary experiments, and the general range is 3-8. Step 4: Use the Atchley factor to convert the letters in the subsequence list into a set of five data representing their physicochemical properties; the Atchley factor is a set of highly interpretable digital patterns of amino acid variation. These high-dimensional attribute data are summarized by multidimensional patterns reflecting the covariation of five attributes: polarity, secondary structure, molecular volume, codon diversity, and electrostatic charge. It is a natural basic metric to compare these alphabetical data representing amino acids; Step 5: Input the training set data processed in step 4 into the logistic regression model for training, and use the Adam optimizer as the gradient descent method; Step 6: Obtain the BCR data to be classified, without clustering, and only perform a composite process of the k-mer algorithm and the Atchley factor, and then input it into the trained logistic regression model. The logistic regression model outputs the probability that the BCR data is positive; if the positive probability is greater than 0.5, the BCR data is judged to be positive, otherwise it is negative.
