A method for identifying nucleic acid modification sites combined with a neural network model
By combining the nucleic acid modification site identification method with the neural network model, using partial order alignment and multiple sequence alignment to process nucleic acid sequence data, and combining the encoder and convolutional neural network, the sensitivity of identifying nucleic acid modification sites in the existing technology is solved. , specificity and efficiency issues, achieving efficient and accurate recognition effects, and is suitable for various types of modification sites.
Patent Information
- Application Number
- CN202410638063.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-22
AI Technical Summary
Existing technologies have problems with sensitivity and specificity when identifying nucleic acid modification sites. They are costly and time-inefficient. Biological methods may lead to sample destruction. Computer science methods have weak generalization capabilities and a lot of information loss. Traditional feature extraction methods are ineffective. Poor.
Adopt a nucleic acid modification site identification method combined with a neural network model, process nucleic acid sequence data through partial order alignment and multiple sequence alignment, generate a path matrix, and use encoders and convolutional neural networks for deep learning to design effective neural networks Model to identify nucleic acid modification sites.
It achieves efficient and accurate identification of nucleic acid modification sites, is suitable for various types of modification sites, avoids information loss, improves the accuracy and efficiency of identification, and has wide application value in the field of bioinformatics.
Smart Images

Figure CN118212983B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computational biology, and in particular relates to a method for identifying nucleic acid modification sites combined with a neural network model. Background Art
[0002] Epigenomics and epitranscriptomics are currently rapidly developing disciplines. Understanding the precise location of specific modifications in the genome or transcriptome is the key to analyzing their biological functions.
[0003] Existing methods for identifying nucleic acid modification sites are generally carried out through biology or computer science. Biological methods include shelling mass spectrometry analysis and immunoprecipitation sequencing. Among them, mass spectrometry analysis measures the mass changes of nucleic acid modifications through a mass spectrometer. This method can accurately identify and quantify the type of nucleic acid modification; immunoprecipitation sequencing uses specific antibodies to identify and enrich specific modified nucleic acids, and then performs high-throughput sequencing, which is suitable for identifying a wide range of modification patterns. Computer science identifies nuclear sites mainly through a specific feature extraction method combined with classification models such as support vector machines for classification.
[0004] However, the above biological methods have several problems: (1) Sensitivity and specificity issues: sometimes it is difficult to distinguish similar modification types, or to detect specific modifications at low abundance levels; (2) Cost and time efficiency: these methods are often costly and take a long time to process; (3) Sample damage: some methods may cause sample damage, limiting subsequent analysis. Computer science methods also have the following problems: (1) Existing methods have poor generalization capabilities and cannot identify multiple types of nucleic acid modification sites; (2) Traditional feature extraction methods have a lot of information loss, resulting in poor recognition results. Summary of the invention
[0005] The purpose of the present invention is to provide a method for identifying nucleic acid modification sites combined with a neural network model, which can efficiently and accurately identify nucleic acid modification sites through a new nucleic acid sequence processing method and a unique neural network model design.
[0006] To achieve the above-mentioned object of the invention, the technical solution of the present invention is as follows:
[0007] A method for identifying nucleic acid modification sites combined with a neural network model, comprising processing nucleic acid sequence data and building a neural network model.
[0008] The processing of nucleic acid sequence data includes data collection and preprocessing, obtaining supporting sequences through partial sequence alignment, generating a path matrix through multiple sequence alignment, and finally obtaining a path matrix corresponding to each sample;
[0009] The construction of the neural network model includes the design of the neural network model. The neural network model architecture includes an encoder, a convolutional neural network and a flattened vector. The path matrix finally obtains an output value through the neural network model, and the output value is used to judge whether there is a nucleic acid modification site in the sample sequence.
[0010] The present invention uses a new method for processing nucleic acid sequences, partial order alignment and multiple sequence alignment to effectively process nucleic acid sequence data, extract valuable information and save it in a path matrix; at the same time, through a unique neural network model design, using deep learning technology, combined with encoders and convolutional neural networks, an effective and streamlined neural network model is proposed to identify nucleic acid modification sites. The nucleic acid modification site identification method provided by the present invention is suitable for various types of nucleic acid modification site identification, such as methylation sites, phosphorylation sites and pseudouridine sites, etc., and has a wide range of applications.
[0011] In the above-mentioned method for identifying nucleic acid modification sites combined with a neural network model, in the data collection and preprocessing, corresponding positive and negative example labels are set for each nucleic acid sequence, where a positive example represents the presence of a nucleic acid modification site in the nucleic acid sequence, and a negative example represents the absence of a nucleic acid modification site in the nucleic acid sequence. 1 represents a negative example, and 0 represents a positive example.
[0012] The output value of the neural network model is a value between 0 and 1. When the output value is less than 0.5, it is judged that there is no nucleic acid modification site in the sample sequence.
[0013] The present invention can effectively extract key information from complex nucleic acid sequences by integrating partial order alignment and multiple sequence alignment, and at the same time use the powerful learning ability of the neural network model to accurately classify and identify. This method has important application value in the field of bioinformatics, especially in studying the function and mechanism of nucleic acid modification.
[0014] In the above-mentioned method for identifying nucleic acid modification sites combined with a neural network model, the data collection and preprocessing include:
[0015] All nucleic acid sequences in the dataset have the same length ,
[0016] Set corresponding positive and negative labels for each DNA or RNA sequence.
[0017] The positive examples and negative examples in the data set are randomly extracted to obtain the training set, and the rest are used as the test set. The training set includes a positive example training subset and a negative example training subset, and the test set includes a positive example test subset and a negative example test subset.
[0018] The present invention is applicable to the identification of various types of nucleic acid modification sites, such as methylation sites, phosphorylation sites and pseudouridine sites. If one wishes to use the model proposed in the present invention to predict a specific type of nucleic acid modification site, one needs to use the corresponding data set for training.
[0019] In the data set, including Positive DNA or RNA sequences and negative DNA or RNA sequences. Each DNA or RNA sequence has a corresponding label, 1 represents a negative example, and 0 represents a positive example. A positive example represents the presence of a nucleic acid modification site in the DNA or RNA sequence, and a negative example represents the absence of a nucleic acid modification site in the RNA sequence. All RNA sequences in the dataset have the same length L .
[0020] The number of RNA sequences in the positive training subset and the negative training subset of the training set are and The number of RNA sequences in the positive test subset and the negative test subset of the test set are and .
[0021] In the above-mentioned method for identifying nucleic acid modification sites combined with a neural network model, the step of obtaining a supporting sequence by partial order alignment includes:
[0022] Perform partial order comparison on the positive training subset and the negative training subset to obtain the corresponding weighted DAG.
[0023] On the finally generated DAG, the weighted DAGs obtained on the positive training subset and the negative training subset are respectively applied with the heaviest bundle algorithm to obtain the corresponding positive support sequence and negative support sequence, respectively.
[0024] Partial Order Alignment (POA) is an algorithm for sequence alignment. In partial order alignment, each sequence is represented as a partial order graph, which is a directed acyclic graph. Each node in the graph between sequences represents a base of a nucleic acid in the sequence, and the edge represents the order relationship between these elements. When aligning multiple sequences, this method can preserve the common structure between them while also reflecting their differences. POA first represents the sequence as a directed acyclic graph (DAG). Similar to the traditional multiple sequence alignment method, in order to generate the alignment results of multiple sequences, POA needs to align the sequences with the existing multiple sequence alignment results in turn. The difference is that POA directly aligns the new sequence with the current multiple sequence alignment DAG in a sequence-graph manner, and finally obtains a weighted DAG. When all sequences are aligned with the DAG and the DAG is updated accordingly, the final DAG generated is the multiple sequence alignment results representing all input sequences.
[0025] Performing partial order comparison on the positive training subset and the negative training subset respectively will result in a weighted DAG.
[0026] On the final generated DAG, the heaviest bundle algorithm is applied to find a path with the most supporting sequences according to the weights of all edges in the graph. This path is considered to be the common sequence that best represents the information of all input sequences.
[0027] Calculate the weights of all possible paths from the starting point to each node in the graph. First, select the heaviest bundle in the DAG: start tracing backwards from the end point of the graph and select the path with the largest weight. The node passed by this path is the first supporting sequence. Then, perform edge weight decay and multiply the weight of the first path by a decay factor. , The value of is between 0 and 1. After multiplying the decay factor, the weight of the DAG is updated.
[0028] Then, by repeatedly applying the heaviest bundle algorithm, multiple support sequences can be obtained.
[0029] In the above-mentioned method for identifying nucleic acid modification sites combined with a neural network model, the step of generating a path matrix by multiple sequence alignment includes:
[0030] A specific sample is compared with the positive supporting sequence and the negative supporting sequence respectively. A path vector will be obtained by comparing a specific sample in the training set with a supporting sequence.
[0031] Complete the double sequence alignment of a specific sample with all supporting sequences, obtain the corresponding multiple path vectors, and splice the path vectors into a path matrix corresponding to a specific sample in the training set.
[0032] Repeat the above steps to obtain the path matrix corresponding to each sample.
[0033] Perform pairwise alignment of samples of the training set with positive support sequences and negative support sequences respectively. The dynamic programming matrix for pairwise alignment is an algorithmic tool. The core idea of this method is to compare two sequences by constructing a matrix to find the maximum similarity between them. In this matrix, one sequence is arranged along one side of the matrix and the other sequence is arranged along the other side. Each cell of the matrix represents the alignment of the two sequences at the corresponding position. The dynamic programming algorithm determines the optimal alignment between sequences by gradually filling in this matrix and calculating the optimal value of each cell. This process usually includes three operations: matching, mismatching, and insertion. Each operation has a specific score, and their scores are expressed as M , X and G , these scores are used to calculate the values of the cells in the matrix. Ultimately, the best alignment between the two sequences can be found by backtracking the matrix. This backtracking path contains multiple scores. This series of scores shows the similarities and differences between the sequences, which is called a path vector.
[0034] The bi-sequence alignment of a specific sample in the training set with a supporting sequence will result in a path vector. Completing the bi-sequence alignment of a specific sample in the training set with all supporting sequences will result in the corresponding path vector. Concatenating these path vectors will result in a path matrix, which corresponds to a sample in the training set.
[0035] After completing the pairwise alignment of all samples in the training set with all supporting sequences, each sample in the training set will obtain a path matrix that preserves its characteristics. Similarly, the path matrix corresponding to each sample in the test set can be obtained through similar steps.
[0036] The present invention starts from the original sequence and measures the relationship between sequences through double sequence alignment, which effectively avoids information loss compared with the traditional feature extraction scheme. Through partial sequence alignment and multiple sequence alignment, the supporting sequence and path matrix are accurately determined, and the accuracy of recognition is improved.
[0037] In the above-mentioned method for identifying nucleic acid modification sites combined with a neural network model, the encoder is an Encoder layer, which includes a plurality of identical layers, each layer including a multi-head self-attention mechanism, a feedforward neural network, layer normalization and a residual connection, and the path matrix passes through the Encoder layer to obtain a path feature matrix;
[0038] The path feature matrix obtains an output matrix, i.e., a feature map, through a convolutional neural network.
[0039] The present invention can use the open source deep learning platform PyTorch to design a deep neural network architecture suitable for processing path matrices.
[0040] The path matrix is first input into the encoder layer. Encoder is an advanced neural network architecture that is mainly used to process serialized data such as text or time series data. It is one of the core parts of the Transformer model. The Encoder layer consists of multiple identical layers, each of which contains two main parts: a multi-head self-attention mechanism and a feedforward neural network. The multi-head self-attention mechanism enables the model to pay attention to multiple positions in the input sequence at the same time, which is very important for understanding complex relationships within the sequence. In this way, the model can capture long-distance dependencies. The feedforward neural network in each Encoder layer further processes the output of the self-attention mechanism and enhances the expressiveness of the model through nonlinear transformations.
[0041] Layer Normalization and Residual Connections, these designs help improve the training process and speed up convergence. Layer Normalization helps stabilize the learning of the neural network, while Residual Connections allow information to be passed directly from one layer to the next, helping to prevent information loss during training.
[0042] The path matrix passes through the Encoder layer in this step to obtain the path feature matrix, which then passes through the convolution layer.
[0043] The convolution kernel is a small matrix that slides over the path feature matrix and performs element-wise multiplication.
[0044] In the present invention, the size of the convolution kernel is 3×3. Each convolution operation involves multiplying the elements of the convolution kernel with the corresponding elements of the path feature matrix portion it covers, and then summing them to obtain a single output value. The step size determines the interval at which the convolution kernel slides. In the present invention, the step size is 2, which means that the convolution kernel moves 2 units in each direction.
[0045] The convolution kernel starts from the upper left corner of the path feature matrix and slides horizontally and vertically on the matrix according to the set step size. At each position, the element multiplication operation is performed and summed to generate an element of the output feature map. This process is repeated on the entire path feature matrix until all positions are covered. Finally, an output matrix is obtained, which is called a feature map.
[0046] In the above-mentioned method for identifying nucleic acid modification sites combined with a neural network model, the feature map is converted into a one-dimensional vector by flattening the vector, and then the data is classified or regressed based on the extracted features through a fully connected layer, and the Sigmoid activation function is applied to obtain the final output of the neural network. The Sigmoid activation function has the following formula:
[0047] .
[0048] The construction of the neural network model also includes network parameter initialization and global hyperparameter setting. The initial parameters of each network are determined by random initialization; and appropriate global hyperparameters are set, including Batch size and Epochs.
[0049] Random initialization determines weights and biases to promote convergence of model training; appropriate global hyperparameters are set to optimize the training process and improve model performance.
[0050] In the above-mentioned method for identifying nucleic acid modification sites in combination with a neural network model, it also includes training the neural network model, and the neural network model training includes:
[0051] Choice of optimizer and loss function,
[0052] Batch processing is used to feed samples to the neural network in batches, calculate the loss function, and update the weights and biases of the model using the selected optimizer.
[0053] After each training cycle, a trained neural network model is obtained. The performance of the neural network is evaluated and the best performing trained neural network model is selected as the final neural network model.
[0054] The path matrix is used as an input sample and input into the neural network model.
[0055] Using batch processing, the samples in the training subset are fed to the neural network in batches, and the size of each batch of data is Batch size. After each batch of data passes through the network, the loss function will be calculated, and the weights and biases of the model will be updated using the selected optimizer. This process will be repeated in multiple cycles, and the number of cycles is Epochs.
[0056] After each training cycle, a trained neural network model is obtained. The performance of the neural network is evaluated using the validation set.
[0057] Use accuracy as an evaluation metric. Accuracy is a common metric for evaluating the performance of classification models, especially in binary or multi-classification problems. It is defined as the ratio of the number of samples correctly predicted by the model to the total number of samples. The formula is as follows:
[0058]
[0059] Among them, TP (True Positive) represents the number of samples that are correctly predicted as positive, TN (True Negative) represents the number of samples that are correctly predicted as negative, FN (False Negative) represents the number of samples that are incorrectly predicted as positive, and FN (False Negative) represents the number of samples that are incorrectly predicted as negative.
[0060] During the training process, we will monitor the accuracy of the neural network model on the validation set and save the model with the best performance on the validation set. This optimal model will be considered the final neural network model for subsequent test set predictions.
[0061] In the above-mentioned method for identifying nucleic acid modification sites combined with a neural network model, the optimizer selects a deep learning optimization algorithm, and the loss function is a cross entropy loss function, and the formula is as follows:
[0062]
[0063] in, L is the loss function, It is i The true labels of samples, The model is i The predicted probability of a sample, N is the total number of samples.
[0064] The present invention selects an effective optimizer Adam to update the weights of the network. Adam is a widely used deep learning optimization algorithm that provides adaptive learning rate adjustment. Adam adjusts the update step size of each parameter by calculating the first-order moment (mean) and second-order moment (variance) of the gradient, thereby achieving faster and more stable convergence.
[0065] Loss function: Since the problem solved by the present invention is a binary classification problem, the selected loss function is the cross entropy loss function. This loss function can quantify the difference between the model prediction result and the actual label.
[0066] In the above-mentioned method for identifying nucleic acid modification sites in combination with a neural network model, the testing of the neural network model includes test set data preparation and model testing.
[0067] The test set data preparation includes using a positive test subset and a negative test subset of the test set to generate a path matrix as an input of the neural network model,
[0068] The model test includes inputting the path matrix of each sample in the test set into the selected optimal neural network model. The model will output the predicted label of each sample, that is, the model predicts whether the sample contains nucleic acid modification sites, thereby completing the test of the function of identifying nucleic acid modification sites.
[0069] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0070] (1) The present invention uses a new method for processing nucleic acid sequences, partial order alignment and multiple sequence alignment to effectively process nucleic acid sequence data, extract valuable information and save it in the path matrix; at the same time, through a unique neural network model design, using deep learning technology, combined with encoders and convolutional neural networks, an effective and streamlined neural network model is proposed, which effectively adapts to the path matrix and completes the identification of nucleic acid modification sites through a simple neural network. The nucleic acid modification site identification method provided by the present invention is suitable for the identification of various types of nucleic acid modification sites, such as methylation sites, phosphorylation sites and pseudouridine sites, and has a wide range of applications.
[0071] (2) The present invention can effectively extract key information from complex nucleic acid sequences by integrating partial order alignment and multiple sequence alignment, while using the powerful learning ability of the neural network model to accurately classify and identify. This method has important application value in the field of bioinformatics, especially in studying the function and mechanism of nucleic acid modification.
[0072] (3) Starting from the original sequence, the present invention measures the relationship between sequences through double sequence alignment, which effectively avoids information loss compared with traditional feature extraction schemes. Through partial order alignment and multiple sequence alignment, the supporting sequence and path matrix are accurately determined, improving the accuracy of recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 A flowchart of a method for identifying nucleic acid modification sites combined with a neural network model provided by the present invention;
[0074] Figure 2 A schematic diagram of the heaviest bundle algorithm for partial order alignment provided by the present invention;
[0075] Figure 3 A schematic diagram of a path vector generated by the multiple sequence alignment provided by the present invention;
[0076] Figure 4 A structural diagram of a neural network model provided by the present invention;
[0077] Figure 5 This is a result diagram for comparing the present invention with the existing method. DETAILED DESCRIPTION
[0078] Specific implementation modes are listed below to further explain the technical solution of the present invention in detail.
[0079] Example 1
[0080] like Figure 1 As shown, this embodiment provides a method for identifying nucleic acid modification sites combined with a neural network model, taking a pseudouridine site recognition data set as an example, specifically comprising the following steps:
[0081] S1. Perform data collection and preprocessing. Collect and download relevant nucleic acid modification site datasets, obtain the original DNA or RNA sequences and corresponding labels, and divide them into training and test sets.
[0082] Furthermore, step S1 performs data collection and preprocessing, including the following steps:
[0083] S1-1. Download the nucleic acid modification site dataset from the public nucleic acid modification site database.
[0084] In the data set, including Positive DNA or RNA sequences and negative DNA or RNA sequences. Each DNA or RNA sequence has a corresponding label, 1 represents a negative example, and 0 represents a positive example. A positive example represents the presence of a nucleic acid modification site in the DNA or RNA sequence, and a negative example represents the absence of a nucleic acid modification site in the RNA sequence. All RNA sequences in the dataset have the same length L .
[0085] In this embodiment, is 595, is 595, L It is 41.
[0086] S1-2. Randomly extract positive and negative examples from the dataset to obtain the training set, and the rest are used as the test set.
[0087] The number of RNA sequences in the positive training subset and the negative training subset of the training set are and The number of RNA sequences in the positive test subset and the negative test subset of the test set are and .
[0088] In this embodiment, and 495 and 495 respectively, and They are 100 and 100 respectively.
[0089] S2. Obtain support sequences through partial order alignment. Perform partial order alignment on the positive training subset and the negative training subset respectively, and obtain positive examples support the sequence and Negative examples support the sequence.
[0090] S2-1. Perform partial order alignment on the positive training subset and the negative training subset respectively, and a weighted DAG will be obtained.
[0091] S2-2. On the final generated DAG, the heaviest bundle algorithm is applied to find a path with the most supporting sequences according to the weights of all edges in the graph. This path is considered to be the common sequence that best represents the information of all input sequences.
[0092] Calculate the weights of all possible paths from the starting point to each node in the graph. First, select the heaviest bundle in the DAG: start tracing backwards from the end point of the graph and select the path with the largest weight. The node passed by this path is the first supporting sequence. Then, perform edge weight decay and multiply the weight of the first path by a decay factor. , The value of is between 0 and 1. After multiplying the decay factor, the weight of DAG is updated, and then the heaviest bundle algorithm is repeatedly applied to obtain multiple support sequences.
[0093] In this embodiment, is 0.25. An example using the heaviest beam algorithm is Figure 2 As shown. Applying the heaviest bundle algorithm to the weighted DAG obtained on the positive training subset and the negative training subset, we can obtain positive examples support the sequence and negative example support sequence. In this embodiment, is 100.
[0094] S3. Generate a pathway matrix by multiple sequence alignment. Compare the sample sequences of the training set with positive examples support the sequence and The negative example support sequences are aligned multiple times. Each multiple sequence alignment will obtain a path vector, and all path vectors are concatenated to obtain a path matrix. Through this step, the path matrix corresponding to each sample in the training set will be obtained. Similarly, the path matrix corresponding to each sample in the test set can also be obtained through similar steps.
[0095] S3-1. Step S2 obtained positive examples support the sequence and Negative examples support the sequence.
[0096] Perform a pairwise alignment of the samples in the training set with the positive support sequences and the negative support sequences. The dynamic programming matrix for pairwise alignment is an algorithmic tool. The core idea of this method is to find the maximum similarity between two sequences by building a matrix to compare them. In this matrix, one sequence is arranged along one side of the matrix and the other sequence is arranged along the other side. Each cell of the matrix represents the alignment of the two sequences at the corresponding position. The dynamic programming algorithm determines the best alignment between sequences by gradually filling in this matrix and calculating the optimal value of each cell.
[0097] This process usually includes three operations: matching, mismatching, and insertion. Each operation has a specific score, and their scores are expressed as M , X and G , these scores are used to calculate the values of cells in the matrix. In this embodiment, M , X and G The values are 1, -1 and -2 respectively.
[0098] Finally, the best alignment between the two sequences can be found through the backtracking matrix. This backtracking path contains multiple scores. This series of scores shows the similarities and differences between the sequences, which is called a path vector. The bi-sequence alignment of a specific sample in the training set and a supporting sequence will obtain a path vector. The path vector is as follows Figure 3 shown.
[0099] S3-2. Repeat step S3-1 to complete the pairwise alignment of a specific sample in the training set with all supporting sequences. This step will yield 2 By concatenating these path vectors, we can get a path matrix, which corresponds to a sample in the training set.
[0100] S3-3. Repeat step S3-1 to complete the pairwise alignment of all samples in the training set with all supporting sequences, so that each sample in the training set will obtain a path matrix that preserves its characteristics. Similarly, the path matrix corresponding to each sample in the test set can also be obtained through similar steps.
[0101] S4. Build a neural network model. The network structure of the present invention is as follows Figure 4 shown.
[0102] S4-1. Network architecture design. We use the open source deep learning platform PyTorch to design a deep neural network architecture suitable for processing path matrices. The path matrix is first input into the encoder layer. The encoder layer consists of multiple identical layers, each of which contains two main parts: a multi-head self-attention mechanism and a feedforward neural network. The dimension of the feedforward neural network is In the present invention, is 512.
[0103] The Encoder layer also includes layer normalization and residual connections, which help improve the training process and speed up convergence. The same Encoder. In the present invention, is 6.
[0104] The path matrix passes through the Encoder layer in this step to obtain the path feature matrix.
[0105] S4-2. Pass the path feature matrix through the convolutional layer.
[0106] The convolution kernel is a small matrix that slides over the path feature matrix and performs element-wise multiplication.
[0107] In this embodiment, the size of the convolution kernel is 3 × 3. Each convolution operation involves multiplying the elements of the convolution kernel with the corresponding elements of the path feature matrix portion it covers, and then summing them to obtain a single output value.
[0108] The step size determines the interval at which the convolution kernel slides. In this embodiment, the step size is 2, which means that the convolution kernel
[0109] Move 2 units in each direction. The convolution kernel starts from the upper left corner of the path feature matrix and slides horizontally and vertically on the matrix according to the set step size. At each position, the element multiplication operation is performed and summed to generate an element of the output feature map.
[0110] This process is repeated on the entire path feature matrix until all positions are covered, and finally an output matrix is obtained, which is called a feature map.
[0111] S4-3. The feature maps obtained from step S4-2 are two-dimensional, while the fully connected layers require one-dimensional input. Therefore, the flattening operation converts these multi-dimensional feature maps into one-dimensional vectors. This process simply arranges all the elements of the feature map in order into a long vector. The flattened one-dimensional vector is passed to one or more fully connected layers. Each neuron in a fully connected layer is connected to all neurons in the previous layer. The purpose of these layers is to perform classification or regression analysis on the data based on the extracted features.
[0112] After the fully connected layer, the Sigmoid activation function is applied, and its formula is as follows:
[0113]
[0114] The final output of the neural network is obtained through the Sigmoid function, which is a value between 0 and 1. Usually, when the output of the neural network is less than 0.5, we believe that there are no nucleic acid modification sites in the sample sequence, and vice versa.
[0115] S4-4. Network parameter initialization and global hyperparameter setting.
[0116] The initial parameters of each network, i.e., weights and biases, are determined by random initialization to promote the convergence of model training. Appropriate global hyperparameters, including Batch size and Epochs, are set to optimize the training process and improve model performance. In this embodiment, Batch size is 256 and Epochs is 300.
[0117] S5. Train the neural network model. Randomly divide the training set, use 80% of it as the training subset, and the remaining 20% as the validation set. Use the training subset to train the neural network, use the validation set to test the network performance, and select the trained neural network model with the best performance on the test set as the final neural network model.
[0118] S5-1. The training set is randomly divided into 80% training subsets and 20% validation sets for model training and performance verification.
[0119] S5-2. Select an optimizer and a loss function. The optimizer selected in this embodiment is Adam. The selected loss function is the cross entropy loss function, and its formula is as follows:
[0120]
[0121] in, is the loss function, It is i The true labels of samples, The model is i The predicted probability of a sample.N is the total number of samples.
[0122] S5-3. Use the path matrix generated in step S3 as the input sample and input it into the neural network model built using the PyTorch framework in step S4.
[0123] Using batch processing, samples in the training subset are fed to the neural network in batches, and the size of each batch of data is Batch size. After each batch of data passes through the network, the loss function is calculated, and the weights and biases of the model are updated using the selected optimizer. This process will be repeated in multiple cycles, and the number of cycles is Epochs.
[0124] S5-4. After each training cycle, a trained neural network model is obtained. The performance of the neural network is evaluated using the validation set.
[0125] Using accuracy as the evaluation indicator, it is defined as the ratio of the number of samples correctly predicted by the model to the total number of samples. The formula is as follows:
[0126]
[0127] Among them, TP (True Positive) represents the number of samples that are correctly predicted as positive, TN (True Negative) represents the number of samples that are correctly predicted as negative, FN (False Negative) represents the number of samples that are incorrectly predicted as positive, and FN (False Negative) represents the number of samples that are incorrectly predicted as negative.
[0128] During the training process, we will monitor the accuracy of the neural network model on the validation set and save the model with the best performance on the validation set. This optimal model will be considered the final neural network model for subsequent test set predictions.
[0129] S6. Test the neural network model to complete the identification of nucleic acid modification sites. Input the path matrix corresponding to each sample in the test set into the final neural network model to obtain the model output and determine whether the sample sequence contains nucleic acid modification sites.
[0130] S6-1. Prepare test set data: Use the positive test subset and negative test subset of the test set separated in step S1-2. For each nucleic acid sequence in these subsets, use the path matrix generated in step S3 as the input of the neural network model.
[0131] S6-2. Perform model prediction: Input the path matrix of each sample in the test set into the optimal neural network model selected in step S5. The model will output the predicted label of each sample, that is, the model predicts whether the sample contains a nucleic acid modification site (positive or negative), thereby completing the function of identifying nucleic acid modification sites in the present invention.
[0132] Comparative Examples 1-3
[0133] Comparative Example 1 is a method for identifying nucleic acid modification sites using a convolutional neural network in existing deep learning. This method first performs one-hot encoding on the sample RNA sequence. One-hot encoding is a commonly used method for processing categorical variables. It represents different nucleotides in RNA as a binary vector. In this vector, the position representing the nucleotide is 1, and the remaining positions are 0. The encoded RNA is then input into a convolutional neural network, which includes a convolutional layer, a pooling layer, a normalization layer, an activation layer, and a fully connected layer. The output sigmoid function of the fully connected layer is converted to a value in the interval [0, 1]. If the value is greater than 0.5, it is considered that the input sample contains a nucleic acid modification site, otherwise it does not contain a nucleic acid modification site;
[0134] Comparative Example 2 uses the same method for identifying nucleic acid modification sites as Comparative Example 1, which also uses one-hot encoding to encode RNA, and then inputs it into a network model including a convolutional layer, a pooling layer, a normalization layer, an activation layer, and a fully connected layer to identify nucleic acid modification sites;
[0135] Comparative Example 3 is a method for identifying nucleic acid modification sites using a lightweight gradient boosting machine of a traditional machine learning method. This method uses unique hot encoding to encode RNA. In addition, this method also extracts nucleotide frequency features, nucleotide composition features, and nucleotide physical and chemical property features. All of the above features are represented by feature vectors, and all the features obtained are spliced to obtain a feature vector, which is input into a lightweight gradient boosting machine to obtain an output to determine whether the sample sequence contains a nucleic acid modification site.
[0136] The nucleic acid modification site recognition method proposed in Example 1 and the nucleic acid modification site recognition method proposed in Comparative Example 1 were respectively used to recognize nucleic acid modification sites on Data 1. Data set 1 is a data set for identifying pseudouridine modification sites in humans. Studying the distribution and function of pseudouridine modification sites helps to understand the function and mechanism of cell regulatory RNA. The training set contains 495 positive examples and 495 negative examples, and the test set contains 100 positive examples and 100 negative examples. For specific results of recognition accuracy, see Figure 5 See Table 1 for the specific results of the time consumed to complete the recognition of all 200 sequences.
[0137] Table 1 Recognition accuracy results of Example 1 and Comparative Example 1
[0138]
[0139] As can be seen from Table 1, the recognition accuracy of the method in Example 1 is 6 percentage points higher than that of the method in Comparative Example 1. Based on the simplified neural network model in Example 1, the path matrix is effectively adapted, and the recognition rate of nucleic acid modification sites is effectively improved. The time consumed by the method in Comparative Example 1 is about 2.53 times that of the method in Example 1, so Example 1 achieves a faster prediction of nucleic acid modification sites.
[0140] The nucleic acid modification site identification method proposed in Example 1 and Comparative Example 2 were used to identify nucleic acid modification sites on Data 2. Data set 2 is a data set for identifying pseudouridine modification sites in house mice. By studying pseudouridine sites in house mice, we can deeply understand the general laws and mechanisms of RNA modification in organisms. The training set contains 472 positive examples and 472 negative examples, and the test set contains 100 positive examples and 100 negative examples. For specific results of recognition accuracy, see Figure 5 See Table,2,for the specific results of the time consumed to complete the recognition of all 200 sequences.
[0141] Table 2 Recognition accuracy results of Example 1 and Comparative Example 2
[0142]
[0143] As can be seen from Table 2, the recognition accuracy of the method in Example 1 is still slightly higher than that of the method in Comparative Example 2. The model used in this embodiment is adapted to the path matrix. Through the Transformer network, the key information in the path matrix can be effectively extracted, and the effect of the network can be better guaranteed. The speed of the method in Example 1 is about 2.21 times that of the method in Comparative Example 1, which realizes the rapid prediction of the nuclear modification site.
[0144] The nucleic acid modification site recognition method proposed in Example 1 and Comparative Example 3 were used to identify nucleic acid modification sites on Data 3. Data set 3 is a data set for studying the 4-methylcytosine modification sites of Escherichia coli. DNA methylation is a key epigenetic modification that plays an important role in regulating gene expression. The training set contains 388 positive examples and 388 negative examples, and the test set contains 134 positive examples and 134 negative examples. For specific results of recognition accuracy, see Figure 5 See Table 3 for the specific results of the time consumed to complete the recognition of all 200 sequences.
[0145] Table 3 Recognition accuracy results of Example 1 and Comparative Example 3
[0146]
[0147] As shown in Table 3, the recognition accuracy of the method of Example 1 is at least 5 percentage points higher than that of the method of Comparative Example 3. The speed of the method of Example 1 is about 1.3 times that of the method of Comparative Example 1, which achieves rapid prediction of nuclear modification sites.
[0148] Comparative Examples 1-3 represent classic algorithms in their respective fields, but the accuracy of the method proposed in this embodiment is the highest compared with the best existing methods. The present invention effectively extracts key information from complex nucleic acid sequences by integrating partial order alignment and multiple sequence alignment, and uses the powerful learning ability of the neural network model to accurately classify and identify. This method has important application value in the field of bioinformatics, especially in studying the function and mechanism of nucleic acid modification.
[0149] It should be appreciated that embodiments of the present invention may be implemented or enforced by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable memory. The method may be implemented in a computer program using standard programming techniques - including a non-transitory computer-readable storage medium configured with a computer program, wherein the storage medium so configured causes the computer to operate in a specific and predefined manner - according to the methods and drawings described in the specific embodiments. Each program may be implemented in a high-level procedural or object-oriented programming language to communicate with a computer system. However, if desired, the program may be implemented in an assembly or machine language. In any case, the language may be a compiled or interpreted language. In addition, the program may be run on a programmed ASIC for this purpose.
[0150] Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and / or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is executed collectively on one or more processors, by hardware, or a combination thereof. The computer program includes a plurality of instructions that may be executed by one or more processors.
[0151] Further, the method can be implemented in any type of computing platform that is operably connected to a suitable computer, including but not limited to a personal computer, a minicomputer, a mainframe, a workstation, a network or distributed computing environment, a separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, etc. Aspects of the present invention can be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, an optical read and / or write storage medium, a RAM, a ROM, etc., so that it can be read by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the process described herein. In addition, the machine-readable code, or part thereof, can be transmitted via a wired or wireless network. When such media includes instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor, the invention described herein includes these and other different types of non-transitory computer-readable storage media. When programmed according to the methods and techniques described in the present invention, the present invention also includes the computer itself. The computer program can be applied to input data to perform the functions described herein, thereby converting the input data to generate output data stored in a non-volatile memory. The output information can also be applied to one or more output devices such as a display. In a preferred embodiment of the present invention, the converted data represents a physical and tangible object, including a specific visual depiction of the physical and tangible object produced on a display.
[0152] As used in this application, the terms "component", "module", "system", etc. are intended to refer to a computer-related entity, which can be hardware, firmware, a combination of hardware and software, software, or software in operation. For example, a component can be, but is not limited to: a process running on a processor, a processor, an object, an executable file, a thread in execution, a program, and / or a computer. As an example, an application running on a computing device and the computing device can both be components. One or more components can exist in a process and / or thread in execution, and a component can be located in a computer and / or distributed between two or more computers. In addition, these components can be executed from various computer-readable media having various data structures thereon. These components can communicate in a local and / or remote process manner, such as according to a signal having one or more data packets (e.g., data from a component that interacts with another component in a local system, a distributed system, and / or interacts with other systems in a signal manner through a network such as the Internet).
[0153] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A method for identifying nucleic acid modification sites in combination with a neural network model, characterized in that: Including processing nucleic acid sequence data and building neural network models, The processing of nucleic acid sequence data includes data collection and preprocessing, obtaining supporting sequences through partial sequence alignment, generating a path matrix through multiple sequence alignment, and finally obtaining a path matrix corresponding to each sample; The construction of the neural network model includes the design of the neural network model, and the neural network model architecture includes an encoder, a convolutional neural network and a flattened vector. The path matrix finally obtains an output value through the neural network model, and the output value is used to judge whether there is a nucleic acid modification site in the sample sequence; in the data collection and preprocessing, corresponding positive and negative example labels are set for each nucleic acid sequence, the positive example represents the presence of a nucleic acid modification site in the nucleic acid sequence, the negative example represents the absence of a nucleic acid modification site in the nucleic acid sequence, 1 represents a negative example, and 0 represents a positive example. The output value of the neural network model is a value between 0 and 1. When the output value is less than 0.5, it is judged that there is no nucleic acid modification site in the sample sequence; All nucleic acid sequences in the dataset have the same length L , Set corresponding positive and negative labels for each DNA or RNA sequence. The positive examples and negative examples in the data set are randomly extracted to obtain the training set, and the rest are used as the test set. The training set includes the positive example training subset and the negative example training subset, and the test set includes the positive example test subset and the negative example test subset; The step of obtaining a supporting sequence by partial alignment includes: Perform partial order comparison on the positive training subset and the negative training subset to obtain the corresponding weighted DAG. On the final generated DAG, the weighted DAG obtained on the positive training subset and the negative training subset are respectively applied with the heaviest bundle algorithm to obtain the corresponding positive support sequence and negative support sequence; The method of generating a pathway matrix by multiple sequence alignment comprises: A specific sample is compared with the positive supporting sequence and the negative supporting sequence respectively. A path vector will be obtained by comparing a specific sample in the training set with a supporting sequence. Complete the double sequence alignment of a specific sample with all supporting sequences, obtain the corresponding multiple path vectors, and splice the path vectors into a path matrix corresponding to a specific sample in the training set. Repeat the above steps to obtain the path matrix corresponding to each sample.
2. A method for identifying nucleic acid modification sites in combination with a neural network model as claimed in claim 1, characterized in that: The encoder is an Encoder layer, which includes multiple identical layers, each of which includes a multi-head self-attention mechanism, a feedforward neural network, layer normalization and a residual connection. The path matrix passes through the Encoder layer to obtain a path feature matrix; The path feature matrix obtains an output matrix, i.e., a feature map, through a convolutional neural network.
3. A method for identifying nucleic acid modification sites in combination with a neural network model as claimed in claim 2, characterized in that: The feature map is converted into a one-dimensional vector by flattening the vector, and then the data is classified or regressed based on the extracted features through the fully connected layer, and the Sigmoid activation function is applied to obtain the final output of the neural network. The Sigmoid activation function has the following formula: 。 4. A method for identifying nucleic acid modification sites in combination with a neural network model as claimed in claim 1, characterized in that: It also includes training a neural network model, and the neural network model training includes, Choice of optimizer and loss function, Batch processing is used to feed samples to the neural network in batches, calculate the loss function, and update the weights and biases of the model using the selected optimizer. After each training cycle, a trained neural network model is obtained. The performance of the neural network is evaluated and the best performing trained neural network model is selected as the final neural network model.
5. A method for identifying nucleic acid modification sites in combination with a neural network model as claimed in claim 4, characterized in that: The optimizer selects a deep learning optimization algorithm, and the loss function is a cross entropy loss function, and the formula is as follows: in, L is the loss function, It is i The true labels of samples, The model is i The predicted probability of a sample, N is the total number of samples.
6. A method for identifying nucleic acid modification sites in combination with a neural network model as claimed in claim 5, characterized in that: The testing of the neural network model includes test set data preparation and model testing. The test set data preparation includes using a positive test subset and a negative test subset of the test set to generate a path matrix as an input of the neural network model, The model test includes inputting the path matrix of each sample in the test set into the selected optimal neural network model. The model will output the predicted label of each sample, that is, the model predicts whether the sample contains nucleic acid modification sites, thereby completing the test of the function of identifying nucleic acid modification sites.
Citation Information
Patent Citations
Methods and systems for predicting protein-ligand coupling specificities
CN101002206A
Modification site identification method, system and device and storage medium
CN114496095A
Method and system for predicting antibody post-translational modification site based on deep learning model
CN116935964A
Novel genes encoding proteins having prognostic, diagnostic, preventive, therapeutic, and other uses
US20030170621A1
Deep Learning-Based Techniques for Training Deep Convolutional Neural Networks
US20190114511A1
