Bioinformatics data processing method, system and medium based on machine learning
By performing feature extraction and pre-completion on bioinformatics data, and using the random forest model for classification, the problem of insufficient completion of missing data in bioinformatics data processing in the existing technology is solved, and the accuracy of data classification is significantly improved.
Patent Information
- Application Number
- CN202410474853.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-04-19
AI Technical Summary
Existing bioinformatics data processing methods cannot effectively and accurately complete missing bioinformatics data, resulting in flaws in subsequent classification.
By classifying the sample data into normal data sets and missing data sets, feature extraction and pre-completion are performed on the normal data sets, a random forest model is trained to classify the missing data sets, and data completion is performed based on the classification results to form a processed data set.
It improves the meticulousness of bioinformatics data screening, avoids data omissions, and significantly improves the accuracy of data classification.
Smart Images

Figure CN118072835B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a bioinformatics data processing method, system and medium based on machine learning. Background Art
[0002] Bioinformatics classification is an interdisciplinary subject involving life science and computing science. It is dedicated to studying the organization, transmission and expression of biological information to solve the classification problem of biological information data. Bioinformatics classification has important scientific significance and commercial value. It is often used in important fields such as protein molecular structure prediction, biological disease prediction, biological habit prediction, gene analysis and expression. Therefore, how to effectively solve the classification problem of biological information data has very important research value.
[0003] In the existing technology, when processing bioinformatics data, there will be missing bioinformatics data. The existing identification method cannot effectively and accurately complete the missing bioinformatics data, so there will be defects in the subsequent classification. For example, in the application document with publication number CN103810402A, a data processing method and device for genome is disclosed. The method is to compare the information of the target genome with the information of the reference genome, and obtain the information of the unmatched genome fragments from the comparison result; compare the information of the unmatched genome fragments with the information of the reference genome for a second time, and obtain the information of the specific sequence of the target genome from the comparison result. This method lacks the technology to complete the missing bioinformatics data and cannot provide effective information in a timely and accurate manner. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention aims to provide a bioinformatics data processing method, system and medium based on machine learning, by classifying sample data into a normal data set and a missing data set, extracting features from the normal data set to obtain a normal feature set, pre-completing the missing data set to obtain an estimated value data set, then training a random forest model to classify the normal feature set, extracting features and classifying the estimated value data set, completing the normal data set according to the classification result to obtain completed data, and importing the completed data into the normal data set to obtain a processed data set; so as to solve the problem in the prior art that, when processing bioinformatics data, there is a lack of bioinformatics data, and the existing recognition method cannot effectively and accurately complete the missing bioinformatics data, so there will be defects in subsequent classification.
[0005] In order to achieve the above-mentioned object, the present invention is implemented by the following technical solutions: In the first aspect, the present application provides a bioinformatics data processing method based on machine learning, and the processing method comprises the following steps:
[0006] Step S1: Create a sample database and a known database;
[0007] Step S2: Encode the protein molecules in the sample database to obtain a sample encoding library, and encode the protein molecules in the known database to obtain a known encoding library;
[0008] Step S3: Identify and classify the protein molecule codes in the sample code library to obtain missing data sets and normal data sets;
[0009] Step S4: extracting features from the normal data set to obtain a normal feature set;
[0010] Step S5: pre-completing the missing data set to obtain an estimated value data set;
[0011] Step S6: training a random forest model to classify the normal feature set;
[0012] Step S7: Based on the trained random forest model, feature completion is performed on the estimated value data set to obtain completed data, and the completed data is imported into the normal data set to obtain a processed database.
[0013] Furthermore, the sample database in step S1 is used to store unprocessed protein molecule data, and the known database is used to store known protein molecule data.
[0014] Furthermore, step S2 includes the following sub-steps:
[0015] Step S201: obtaining the protein sequence of the protein molecule to be processed;
[0016] Step S202: performing amino acid sequence coding on the protein sequence of the protein molecule to obtain the protein code of the protein molecule;
[0017] Step S203: Obtain protein codes of all protein molecules, set the protein codes of all protein molecules as samples, and obtain a sample code library;
[0018] Step S204: Obtain known protein molecules, perform amino acid sequence encoding on all known protein molecules, and obtain a known encoding library.
[0019] Furthermore, in step S202, the amino acid sequence encoding includes: obtaining the amino acid sequence in the protein sequence of the protein molecule, representing each amino acid in the protein molecule with a letter or a number, and obtaining the amino acid sequence encoding of the protein molecule.
[0020] Furthermore, the step S3 includes the following sub-steps:
[0021] Step S301: obtaining the amino acid sequence code of any protein molecule in the sample code library, performing code comparison between the amino acid sequence code and the amino acid sequence code in the known code library, and obtaining the missing similar code and the known comparison code;
[0022] Step S302: Obtain all missing similar codes to obtain a missing data set, and obtain all known comparison codes to obtain a normal data set.
[0023] Furthermore, the code comparison in step S301 includes the following steps:
[0024] Step K1: Get any code X and mark the nth bit of code X as X n , where n is a positive integer;
[0025] Step K2: Obtain any code whose code number is greater than or equal to the code number of code X from the known code library, record it as known code Y, and mark the nth bit of the known code Y as Y n ;
[0026] Step K3: Determine Y n Is it related to X n Similarly, when Y n With X n When all are the same, the marker code X is the known comparison code;
[0027] Step K4: When Y n With X n If not, skip Y1 to Y n , judge Y n+1 With X n Are they the same? n+1 With X n When they are exactly the same, the marker code X is the missing similarity code;
[0028] Step K5: When Y n+1 With X n If not, skip Y1 to Y n+1 , judge Y n+2 With X n Are they the same? n+2 With X n When they are exactly the same, the marker code X is the missing similarity code;
[0029] Step K6: When Y n+2 With X n If they are different, repeat steps K4 to K5 until all the codes in code Y are judged. n+i With X n When still different, mark code X as an irrelevant code, where n+i is equal to the number of codes of code Y;
[0030] Step K7: When the code X is determined to be an irrelevant code, another known code with a code number greater than or equal to n is obtained from the known code library, and steps K2 to K7 are repeated until the code X is determined to be a known comparison code or a missing similar code.
[0031] Furthermore, step S4 includes the following sub-steps:
[0032] Step S401: obtaining any protein molecule in a normal data set, and setting each residue position of a plurality of residue positions of the protein molecule to a plurality of fragments, wherein the plurality of fragments include the positions of the residues of the protein molecule;
[0033] Step S402: setting multiple fragments of the protein molecule as primary features of the protein molecule;
[0034] Step S403: obtaining the secondary structure of the protein molecule, and setting the local spatial arrangement of the main chain atoms in the polypeptide chain of the protein molecule as the secondary feature of the protein molecule;
[0035] Step S404: obtaining the tertiary structure of the protein molecule, extracting the number of secondary bonds from the tertiary structure of the protein molecule, and setting the number of secondary bonds in the protein molecule as the tertiary feature of the protein molecule;
[0036] Step S405: Integrate the primary features, secondary features and tertiary features of a protein molecule to obtain the normal features of the protein molecule, and integrate the normal features of all protein molecules in the normal data set to obtain a normal feature set.
[0037] Furthermore, the step S5 includes the following sub-steps:
[0038] Step S501: obtaining any protein molecule code in the missing data set, and performing a coding comparison between the protein molecule code and the protein molecule code in the known coding library;
[0039] Step S502: Obtain the n-th bit code from step K2 and the X of the protein molecule code n+1 or X n-1 Exactly the same encoding, set to estimated encoding;
[0040] Step S503: Obtain all estimated codes to obtain an estimated value data set.
[0041] Furthermore, the step S6 includes the following sub-steps:
[0042] Step S601: Obtain a normal feature set, and divide the normal feature set into two equal parts by random sampling to obtain a training feature set and a test feature set. The training feature set is used to train the random forest model, and the test feature set is used to calibrate the trained random forest model.
[0043] Step S602: Establishing a plurality of decision trees, wherein the number of the decision trees is equal to the number of the tertiary features of the protein molecules; the nodes of the decision trees are the primary features and the secondary features of the protein molecules randomly selected;
[0044] Step S603: Substitute the training feature set into all decision trees to obtain feature classification of the training feature set, and repeatedly train the decision trees for multiple times;
[0045] Step S604: When all decision trees are trained, the decision trees are combined into a random forest model, and the classification results of the training data are output;
[0046] Step S605: input the test feature set into the random forest model to obtain the classification result of the test data, substitute any feature data in any classification result of the test data into the node of any decision tree in the test feature set for secondary classification, and judge whether the classification at this time is the same as the first classification. All feature data in the classification result obtained for the test data are randomly substituted into any node, and the ratio of the number of times the secondary classification is the same as the first classification to the number of judgments is set as the classification accuracy. When the classification accuracy is greater than the accuracy threshold, it is judged that the training of the random forest model is completed. When the classification accuracy is less than the accuracy threshold, the first percentage of test data is randomly extracted from the test feature set and summarized into the training feature set, and steps S603 to S605 are repeated until the classification accuracy is greater than the accuracy threshold.
[0047] Furthermore, the step S7 includes the following sub-steps:
[0048] Step S701: obtaining secondary features and tertiary features of protein molecules in the estimated value data set;
[0049] Step S702: Integrate the secondary features and tertiary features of the protein molecules in the estimated value data set to obtain estimated features of the protein molecule, and integrate the estimated features of all protein molecules in the estimated value data set to obtain an estimated feature set;
[0050] Step S703: inputting the estimated feature set into the random forest model trained in step S605 to obtain the classification result of the estimated value data;
[0051] Step S704: when the classification result of the normal data is the same as the classification result of the estimated value data, the estimated value data and the normal data are judged to be of the same type, the primary features of the normal data are obtained, and the primary features of the normal data are filled as the primary features of the estimated value data to obtain the completed data;
[0052] Step S705: Import the completed data into the normal data set to obtain a processed data set.
[0053] In a second aspect, the present application also provides a bioinformatics data processing system based on machine learning, including: a sample library module, a sample processing module, a data classification module, a model training module, a feature extraction module and a missing completion module;
[0054] The sample library module is used to create a sample database, which is used to store sample protein molecule data; the sample processing module is used to encode the protein molecule data to obtain the protein molecule code;
[0055] The data classification module is used to identify and classify the protein molecule codes in the sample code library to obtain missing data sets and normal data sets;
[0056] The feature extraction module is used to extract features from a normal data set to obtain a normal feature set;
[0057] The model training module is used to train and evaluate the random forest model based on the normal feature set to obtain a trained random forest model;
[0058] The missing completion module includes a pre-completion unit and a normal completion unit; the pre-completion unit includes using a similar primary structure in a normal data set to pre-complete the missing data to obtain an estimated value data set; the normal completion unit includes using a trained random forest model to classify the estimated value data set, selecting primary features from normal data of the same type to complete the estimated value data, obtaining completed data and importing it into the normal data set.
[0059] In a third aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method described above are executed.
[0060] The beneficial effects of the present invention are as follows: the present invention classifies sample data into a normal data set and a missing data set, extracts features from the normal data set to obtain a normal feature set, pre-complements the missing data set to obtain an estimated value data set, then trains a random forest model to classify the normal feature set, extracts features and classifies the estimated value data set, completes the normal data set according to the classification result to obtain completed data, and imports the completed data into the normal data set to obtain a processed data set; the present invention can improve the meticulousness of bioinformatics data screening, avoid data omissions, can effectively and accurately complete missing bioinformatics data, and improve the accuracy of data classification.
[0061] Advantages of additional aspects of the present invention will be given in part in the description of the following specific embodiments, and in part will become apparent from the following description, or will be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0063] Figure 1 is a flow chart of the method steps of the present invention;
[0064] Figure 2 It is a flow chart of the steps of coding comparison of the present invention;
[0065] Figure 3 It is a functional block diagram of the system of the present invention. DETAILED DESCRIPTION
[0066] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0067] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0068] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0069] Example 1, please refer to Figure 1 As shown, the bioinformatics data processing method based on machine learning is used to solve the problem in the existing technology that when processing bioinformatics data, there may be missing bioinformatics data, and the existing recognition method cannot effectively and accurately complete the missing bioinformatics data, so there will be defects in the subsequent classification;
[0070] Specifically, the bioinformatics data processing method based on machine learning comprises the following steps:
[0071] Step S1: Create a sample database and a known database;
[0072] In step S1, the sample database is used to store unprocessed protein molecule data, and the known database is used to store known protein molecule data;
[0073] Step S2: Encode the protein molecules in the sample database to obtain a sample encoding library, and encode the protein molecules in the known database to obtain a known encoding library;
[0074] Step S2 includes the following sub-steps:
[0075] Step S201: obtaining the protein sequence of the protein molecule to be processed;
[0076] Step S202: performing amino acid sequence coding on the protein sequence of the protein molecule to obtain the protein code of the protein molecule;
[0077] Step S203: Obtain protein codes of all protein molecules, set the protein codes of all protein molecules as samples, and obtain a sample code library;
[0078] Step S204: Obtain known protein molecules, perform amino acid sequence encoding on all known protein molecules, and obtain a known encoding library.
[0079] In step S202, the amino acid sequence encoding includes: obtaining the amino acid sequence in the protein sequence of the protein molecule, representing each amino acid in the protein molecule with a letter or a number, and obtaining the amino acid sequence encoding of the protein molecule;
[0080] Step S3: Identify and classify the protein molecule codes in the sample code library to obtain missing data sets and normal data sets;
[0081] Step S3 includes the following sub-steps:
[0082] Step S301: obtaining the amino acid sequence code of any protein molecule in the sample code library, performing code comparison between the amino acid sequence code and the amino acid sequence code in the known code library, and obtaining the missing similar code and the known comparison code;
[0083] Step S302: Obtain all missing similar codes to obtain a missing data set, obtain all known comparison codes to obtain a normal data set;
[0084] See also Figure 2 As shown, the coding comparison in step S301 includes the following steps:
[0085] Step K1: Get any code X and mark the nth bit of code X as X n , wherein the value of n is a positive integer; in the specific implementation process, for example, the sequence of protein molecule encoding X is MTVGIGWDQNQILRLQNLMKTF; then the value of n is a positive integer from 1 to 20;
[0086] Step K2: Obtain any code whose code number is greater than or equal to the code number of code X from the known code library, record it as known code Y, and mark the nth bit of the known code Y as Y n ;
[0087] Step K3: Determine Y n Is it related to X n Similarly, when Y n With X n When all are the same, the marker code X is the known comparison code;
[0088] Step K4: When Y n With X n If not, skip Y1 to Y n , judge Y n+1 With X n Are they the same? n+1 With X n When they are exactly the same, the marker code X is the missing similarity code;
[0089] Step K5: When Y n+1 With X n If not, skip Y1 to Y n+1 , judge Y n+2 With X n Are they the same? n+2 With X n When they are exactly the same, the marker code X is the missing similarity code;
[0090] Step K6: When Y n+2 With X n If they are different, repeat steps K4 to K5 until all the codes in code Y are judged. n+i With X n When still different, mark code X as an irrelevant code, where n+i is equal to the number of codes of code Y;
[0091] Step K7: When the code X is determined to be an irrelevant code, another known code with a code number greater than or equal to n is obtained from the known code library, and steps K2 to K7 are repeated until the code X is determined to be a known comparison code or a missing similar code; in the specific implementation process, for example, when the code X is MTVGIGWDQNQILRLQNLKTF and the known code Y is MTVGIGWDQNQILRLQNLMKTF, Y 17 M, X 17 K, the two are different; skip Y 17 , we can judge that Y 18 With X 17 Same, Y 19 With X 18 Same and Y 20 With X 19 If they are the same, then code X is the missing similar code;
[0092] Step S4: extracting features from the normal data set to obtain a normal feature set;
[0093] Step S4 includes the following sub-steps:
[0094] Step S401: obtaining any protein molecule in a normal data set, and setting each residue position of a plurality of residue positions of the protein molecule to a plurality of fragments, wherein the plurality of fragments include the positions of the residues of the protein molecule;
[0095] Step S402: multiple fragments of the protein molecule are set as primary features of the protein molecule; in the specific implementation process, for example, if any protein molecule has 15 residues, 15 fragments are set, wherein each fragment includes the position of the residue, and the primary feature of the protein molecule is 15 fragments;
[0096] Step S403: obtaining the secondary structure of the protein molecule, setting the local spatial arrangement of the main chain atoms in the polypeptide chain of the protein molecule as the secondary feature of the protein molecule; in the specific implementation process, the secondary structure of the protein molecule is a stable structure formed by hydrogen bonds between C=O and NH groups between different amino acids, mainly α-helix and β-fold;
[0097] Step S404: obtaining the tertiary structure of the protein molecule, extracting the number of secondary bonds from the tertiary structure of the protein molecule, and setting the number of secondary bonds in the protein molecule as the tertiary feature of the protein molecule; in the specific implementation process, the tertiary structure of the protein molecule is a three-dimensional structure of a protein molecule formed by the arrangement of multiple secondary structure elements in three-dimensional space, for example: fibrous protein molecules, such as fibroin, globular protein molecules, such as plasma albumin, globulin and myoglobin, etc.;
[0098] Step S405: integrating the primary feature, secondary feature and tertiary feature of a protein molecule to obtain the normal feature of the protein molecule, and integrating the normal features of all protein molecules in the normal data set to obtain a normal feature set;
[0099] Step S5: pre-completing the missing data set to obtain an estimated value data set;
[0100] Step S5 includes the following sub-steps:
[0101] Step S501: obtaining any protein molecule code in the missing data set, and performing a coding comparison between the protein molecule code and the protein molecule code in the known coding library;
[0102] Step S502: Obtain the n-th bit code from step K2 and the X of the protein molecule code n+1 or X n-1 Exactly the same encoding, set to estimated encoding;
[0103] Step S503: Obtain all estimated codes to obtain an estimated value data set;
[0104] Step S6: training a random forest model to classify the normal feature set;
[0105] Step S6 includes the following sub-steps:
[0106] Step S601: Obtain a normal feature set, and divide the normal feature set into two equal parts by random extraction to obtain a training feature set and a test feature set. The training feature set is used to train the random forest model, and the test feature set is used to calibrate the trained random forest model. In the specific implementation process, the test feature set can solve the uncertainty problem of the model by introducing a new feature set, so that the model is more accurate and reliable when performing probability prediction.
[0107] Step S602: Establish a number of decision trees, the number of which is equal to the number of tertiary features of protein molecules; in a specific implementation process, for example, there are 56 tertiary features of protein molecules in a normal feature set, and the number of decision trees is 56; the nodes of the decision tree are the primary features of randomly selected protein molecules and the secondary features of protein molecules; in a specific implementation process, the number of primary features of randomly selected protein molecules and the number of secondary features of randomly selected protein molecules are; for example, when the primary features of randomly selected protein molecules are 15 fragments, 10 fragments, 30 fragments and 4 fragments, and the secondary features of randomly selected protein molecules are α-helix and β-fold, the decision tree will classify the protein molecules with 15 fragments, 10 fragments, 30 fragments, 4 fragments, α-helix and β-fold as nodes;
[0108] Step S603: Substitute the training feature set into all decision trees to obtain feature classification of the training feature set, and repeatedly train the decision trees for multiple times;
[0109] Step S604: When all decision trees are trained, the decision trees are combined into a random forest model, and the classification results of the training data are output;
[0110] Step S605: input the test feature set into the random forest model to obtain the classification result of the test data, substitute any feature data in any classification result of the test data into the node of any decision tree in the test feature set for secondary classification, judge whether the classification at this time is the same as the first classification, randomly substitute all feature data in the classification result obtained for the test data into any node, set the ratio of the number of times the secondary classification is the same as the first classification to the number of judgments as the classification accuracy, and when the classification accuracy is greater than the accuracy threshold, judge that the training of the random forest model is completed, and when the classification accuracy is less than the accuracy threshold, randomly extract the first percentage of test data from the test feature set and summarize it into the training feature set, and repeat steps S603 to S605 until the classification accuracy is greater than the accuracy threshold; in the specific implementation process, the first percentage is set to 10%, and the accuracy threshold is usually set to 0.5; in the random forest model, the default classification method is based on the principle of majority voting, so setting the threshold to 0.5 is in line with the principle of majority voting;
[0111] Step S7: Based on the trained random forest model, feature completion is performed on the estimated value data set to obtain completed data, and the completed data is imported into the normal data set to obtain a processed database;
[0112] Step S7 includes the following sub-steps:
[0113] Step S701: obtaining secondary features and tertiary features of protein molecules in the estimated value data set;
[0114] Step S702: Integrate the secondary features and tertiary features of the protein molecules in the estimated value data set to obtain estimated features of the protein molecule, and integrate the estimated features of all protein molecules in the estimated value data set to obtain an estimated feature set;
[0115] Step S703: inputting the estimated feature set into the random forest model trained in step S605 to obtain the classification result of the estimated value data;
[0116] Step S704: when the classification result of the normal data is the same as the classification result of the estimated value data, the estimated value data and the normal data are judged to be of the same type, the primary features of the normal data are obtained, and the primary features of the normal data are filled as the primary features of the estimated value data to obtain the completed data;
[0117] Step S705: Import the completed data into the normal data set to obtain a processed data set.
[0118] Example 2, please refer to Figure 3 As shown, the present application also provides a bioinformatics data processing system based on machine learning, the system comprising: a sample library module, a sample processing module, a data classification module, a model training module, a feature extraction module and a missing completion module;
[0119] The sample library module is used to create a sample database, which is used to store sample protein molecule data; the sample processing module is used to encode the protein molecule data to obtain the protein molecule code;
[0120] The data classification module is used to identify and classify the protein molecule codes in the sample code library to obtain missing data sets and normal data sets;
[0121] The feature extraction module is used to extract features from the normal data set to obtain a normal feature set;
[0122] The model training module is used to train and evaluate the random forest model based on the normal feature set to obtain a trained random forest model;
[0123] The missing completion module includes a pre-completion unit and a normal completion unit; the pre-completion unit includes using a similar primary structure in a normal data set to pre-complete the missing data to obtain an estimated value data set; the normal completion unit includes using a trained random forest model to classify the estimated value data set, selecting primary features from normal data of the same type to complete the estimated value data, obtaining the completed data and importing it into the normal data set.
[0124] Embodiment 3, the present application also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in any of the above methods are executed. Through the above technical solution, when the computer program is executed by the processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions: by classifying the sample data into a normal data set and a missing data set, extracting features from the normal data set to obtain a normal feature set, pre-completing the missing data set to obtain an estimated value data set, retraining a random forest model to classify the normal feature set, extracting features and classifying the estimated value data set, completing the normal data set according to the classification result to obtain completed data, and importing the completed data into the normal data set to obtain a processed data set.
[0125] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0126] The above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A bioinformatics data processing method based on machine learning, characterized in that: The processing method comprises the following steps: Step S1: Create a sample database and a known database; Step S2: Encode the protein molecules in the sample database to obtain a sample encoding library, and encode the protein molecules in the known database to obtain a known encoding library; Step S3: Identify and classify the protein molecule codes in the sample code library to obtain missing data sets and normal data sets; Step S4: extracting features from the normal data set to obtain a normal feature set; Step S5: pre-completing the missing data set to obtain an estimated value data set; Step S6: training a random forest model to classify the normal feature set; Step S7: Based on the trained random forest model, feature completion is performed on the estimated value data set to obtain completed data, and the completed data is imported into the normal data set to obtain a processed database; Step S2 includes the following sub-steps: Step S201: obtaining the protein sequence of the protein molecule to be processed; Step S202: performing amino acid sequence coding on the protein sequence of the protein molecule to obtain the protein code of the protein molecule; Step S203: Obtain protein codes of all protein molecules, set the protein codes of all protein molecules as samples, and obtain a sample code library; Step S204: Obtain known protein molecules, perform amino acid sequence encoding on all known protein molecules, and obtain a known encoding library; In step S202, the amino acid sequence encoding includes: obtaining the amino acid sequence in the protein sequence of the protein molecule, representing each amino acid in the protein molecule with a letter or a number, and obtaining the amino acid sequence encoding of the protein molecule; The step S3 includes the following sub-steps: Step S301: obtaining the amino acid sequence code of any protein molecule in the sample code library, performing code comparison between the amino acid sequence code and the amino acid sequence code in the known code library, and obtaining the missing similar code and the known comparison code; Step S302: Obtain all missing similar codes to obtain a missing data set, obtain all known comparison codes to obtain a normal data set; The coding comparison in step S301 includes the following steps: Step K1: Get any code X and mark the nth bit of code X as X n , where n is a positive integer; Step K2: Obtain any code whose code number is greater than or equal to the code number of code X from the known code library, record it as known code Y, and mark the nth bit of the known code Y as Y n ; Step K3: Determine Y n Is it related to X n Similarly, when Y n With X n When all are the same, the marker code X is the known comparison code; Step K4: When Y n With X n If not, skip Y1 to Y n , judge Y n+1 With X n Are they the same? n+1 With X n When they are exactly the same, the marker code X is the missing similarity code; Step K5: When Y n+1 With X n If not, skip Y1 to Y n+1 , judge Y n+2 With X n Are they the same? n+2 With X n When they are exactly the same, the marker code X is the missing similarity code; Step K6: When Y n+2 With X n If they are different, repeat steps K4 to K5 until all the codes in code Y are judged. n+i With X n When still different, mark code X as an irrelevant code, where n+i is equal to the number of codes of code Y; Step K7: when the code X is determined to be an irrelevant code, another known code with a code number greater than or equal to n is obtained from the known code library, and steps K2 to K7 are repeated until the code X is determined to be a known comparison code or a missing similar code; Step S4 includes the following sub-steps: Step S401: obtaining any protein molecule in a normal data set, and setting each residue position of a plurality of residue positions of the protein molecule to a plurality of fragments, wherein the plurality of fragments include the positions of the residues of the protein molecule; Step S402: setting multiple fragments of the protein molecule as primary features of the protein molecule; Step S403: obtaining the secondary structure of the protein molecule, and setting the local spatial arrangement of the main chain atoms in the polypeptide chain of the protein molecule as the secondary feature of the protein molecule; Step S404: obtaining the tertiary structure of the protein molecule, extracting the number of secondary bonds from the tertiary structure of the protein molecule, and setting the number of secondary bonds in the protein molecule as the tertiary feature of the protein molecule; Step S405: integrating the primary feature, secondary feature and tertiary feature of a protein molecule to obtain the normal feature of the protein molecule, and integrating the normal features of all protein molecules in the normal data set to obtain a normal feature set; The step S5 comprises the following sub-steps: Step S501: obtaining any protein molecule code in the missing data set, and performing a coding comparison between the protein molecule code and the protein molecule code in the known coding library; Step S502: Obtain the n-th bit code from step K2 and the X of the protein molecule code n+1 or X n-1 Exactly the same encoding, set to estimated encoding; Step S503: Obtain all estimated codes to obtain an estimated value data set; The step S6 includes the following sub-steps: Step S601: Obtain a normal feature set, and divide the normal feature set into two equal parts by random sampling to obtain a training feature set and a test feature set. The training feature set is used to train the random forest model, and the test feature set is used to calibrate the trained random forest model. Step S602: Establishing a plurality of decision trees, wherein the number of the decision trees is equal to the number of the tertiary features of the protein molecules; the nodes of the decision trees are the primary features and the secondary features of the protein molecules randomly selected; Step S603: Substitute the training feature set into all decision trees to obtain feature classification of the training feature set, and repeatedly train the decision trees for multiple times; Step S604: When all decision trees are trained, the decision trees are combined into a random forest model, and the classification results of the training data are output; Step S605: input the test feature set into the random forest model to obtain the classification result of the test data, substitute any feature data in any classification result of the test data into the node of any decision tree in the test feature set for secondary classification, judge whether the classification at this time is the same as the first classification, randomly substitute all feature data in the classification result obtained for the test data into any node, set the ratio of the number of times the secondary classification is the same as the first classification to the number of judgments as the classification accuracy, when the classification accuracy is greater than the accuracy threshold, judge that the training of the random forest model is completed, when the classification accuracy is less than the accuracy threshold, randomly extract the first percentage of test data from the test feature set and summarize it into the training feature set, and repeat steps S603 to S605 until the classification accuracy is greater than the accuracy threshold; The step S7 includes the following sub-steps: Step S701: obtaining secondary features and tertiary features of protein molecules in the estimated value data set; Step S702: Integrate the secondary features and tertiary features of the protein molecules in the estimated value data set to obtain estimated features of the protein molecule, and integrate the estimated features of all protein molecules in the estimated value data set to obtain an estimated feature set; Step S703: inputting the estimated feature set into the random forest model trained in step S605 to obtain the classification result of the estimated value data; Step S704: when the classification result of the normal data is the same as the classification result of the estimated value data, the estimated value data and the normal data are judged to be of the same type, the primary features of the normal data are obtained, and the primary features of the normal data are filled as the primary features of the estimated value data to obtain the completed data; Step S705: Import the completed data into the normal data set to obtain a processed data set.
2. The bioinformatics data processing method based on machine learning according to claim 1, characterized in that: In step S1, the sample database is used to store unprocessed protein molecule data, and the known database is used to store known protein molecule data.
3. A bioinformatics data processing system based on machine learning, applicable to the bioinformatics data processing method based on machine learning according to claim 1 or 2, comprising: Sample library module, sample processing module, data classification module, model training module, feature extraction module and missing completion module; The sample library module is used to create a sample database, which is used to store sample protein molecule data; the sample processing module is used to encode the protein molecule data to obtain the protein molecule code; The data classification module is used to identify and classify the protein molecule codes in the sample code library to obtain missing data sets and normal data sets; The feature extraction module is used to extract features from a normal data set to obtain a normal feature set; The model training module is used to train and evaluate the random forest model based on the normal feature set to obtain a trained random forest model; The missing completion module includes a pre-completion unit and a normal completion unit; the pre-completion unit includes using a similar primary structure in a normal data set to pre-complete the missing data to obtain an estimated value data set; the normal completion unit includes using a trained random forest model to classify the estimated value data set, selecting primary features from normal data of the same type to complete the estimated value data, obtaining completed data and importing it into the normal data set.
4. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to claim 1 or 2 are executed.
