Method for predicting corn chromatin open region based on multi-scale convolutional network and gMLP

The DeepOCR model built through multi-scale convolutional networks and gMLP solves the problem of feature extraction limitations and insufficient prediction accuracy of corn chromatin open area prediction methods in the existing technology, achieving higher prediction accuracy and stability. .

CN118737284AActive Publication Date: 2024-10-01HUAZHONG AGRI UNIV

Patent Information

Application Number
CN202410832894.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-01
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

Existing methods for predicting open regions of maize chromatin based on deep learning have limitations in feature extraction and model construction, and cannot effectively synthesize sequence information, resulting in low prediction accuracy.

Method used

Multi-scale convolutional network and gMLP are used to build the DeepOCR model, multi-scale features are extracted through the multi-scale convolutional network layer, and the gMLP layer is used to capture complex spatial interaction information across Tokens, combined with Layer Normalization and fully connected layers to enhance the model expression ability, using Binary cross entropy loss function and AdamW optimization algorithm update parameters.

Benefits of technology

Improved the accuracy and stability of prediction of open areas of maize chromatin. DeepOCR's AV_AUROC and AV_AUPR performance in different tissues and overall is better than existing methods, and has a lower AUROC standard deviation, significantly improving the accuracy and stability of prediction. stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737284A_ABST
    Figure CN118737284A_ABST
Patent Text Reader

Abstract

The invention discloses a method for predicting a corn chromatin open region based on a multi-scale convolutional network and gMLP, and the method is realized through a constructed DeepOCR model, and comprises the steps: processing corn chromatin open region data obtained through sequencing, and then carrying out One-hot coding processing; inputting the encoded sequence into a multi-scale convolutional network, focusing on and fusing multi-scale features and capturing important motifs of different lengths by using convolution kernels of different sizes, and reducing information loss in a feature map by using Softpool; the method comprises the following steps of: preventing an overfitting phenomenon by utilizing Batch Normalization and Dropout; the global dependency relationship in the DNA sequence is captured by using gMLP, and feature representation with higher distinction degree is extracted to improve the network performance and enhance the accuracy of model prediction. And in an output layer, a full connection function and a Sigmoid function are used to complete prediction of the corn chromatin open region. The method disclosed by the invention is high in prediction accuracy, can provide a new reference for research on open conservative property and specificity of sequences of different tissues of corn and different species, and has a wide application prospect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of bioinformatics, and in particular to a method for predicting corn chromatin open regions based on a multi-scale convolutional network and gMLP. Background Art

[0002] As one of the most important food crops in the world, the yield and quality of corn are of great significance to global food security. However, the genetic mechanism of corn is complex, and many gene regulatory mechanisms related to key traits such as yield, quality, and stress resistance have not yet been fully revealed. As an important part of gene expression regulation, the accurate prediction of chromatin open regions is of great significance for understanding the genetic mechanism of corn and field breeding. Chromatin open regions refer to relatively loose regions in chromatin that are easy for transcription factors to bind. These regions are usually associated with gene expression levels. Accurate identification of corn chromatin open regions helps to understand the molecular mechanism of gene expression regulation, and thus provides a theoretical basis for analyzing the genetic basis of complex traits of corn.

[0003] In recent years, deep learning has been widely used in the field of bioinformatics. Its powerful feature learning and representation capabilities provide new means for the processing and analysis of complex biological data. Deep learning models can automatically learn features from large amounts of data and mine deep information in the data through multi-level nonlinear transformations. Therefore, applying deep learning to the prediction of maize chromatin open regions is expected to improve the accuracy and efficiency of predictions, thereby facilitating the analysis of conservation and specificity among different maize tissues and varieties.

[0004] However, the current prediction method of maize chromatin open regions based on deep learning is still in its infancy and has not yet formed a complete technical system. On the one hand, the existing methods are based on traditional machine learning algorithms, such as support vector machines, random forests, etc. These methods have certain limitations in feature extraction and model construction, resulting in incomplete sequence information mining. On the other hand, the deep learning algorithms used in the existing methods are relatively simple, such as CharPlant, Basset, SMOC, etc. These methods cannot integrate sequence information well, thus affecting the prediction accuracy. Therefore, it is of great research significance to develop a method for predicting maize chromatin open regions with high accuracy. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a method for predicting open regions of corn chromatin based on a multi-scale convolutional network and gMLP in response to the defects in the prior art.

[0006] The technical solution adopted by the present invention to solve its technical problem is:

[0007] The present invention provides a method for predicting corn chromatin open regions based on a multi-scale convolutional network and gMLP. A DeepOCR model is constructed by the method, comprising an input layer, a multi-scale convolutional network layer, a gMLP layer and an output layer. The method specifically comprises the following steps:

[0008] Step 1: In the input layer, ATAC-seq data of maize chromatin is obtained, and the ATAC-seq data is processed using One-hot encoding. The matrix is ​​obtained and then input into the multi-scale convolutional network layer;

[0009] Step 2: Use convolution kernels of different sizes in the multi-scale convolutional network layer to focus on and fuse multi-scale features and capture important motifs of different lengths, and use SoftPool to remove a large amount of redundant information while reducing information loss; use the output of the multi-scale convolutional network layer as the input of the gMLP layer;

[0010] Step 3: The gMLP layer takes the output of the multi-scale convolutional network layer as its input to capture the complex spatial interaction information across tokens, thereby obtaining the long-distance dependencies between features in the sequence; the gMLP layer includes layer normalization, three layers of gMLPblocks, and a residual-like structure;

[0011] Step 4: The output features of the gMLP layer are used as the input of the output layer. Then, through one LayerNormalization and two fully connected layers, the complex combination of gMLP features can be learned to enhance the expression ability of the model and realize the classification of the open region features of maize chromatin.

[0012] In step 5, the network loss is calculated using the binary cross entropy loss function BCELoss, which measures the difference between the target label value and the predicted probability value, and the parameters are updated using the optimized gradient algorithm AdamW, which directly adds the weight decay term to the loss function to ensure more accurate parameter adjustment during the adaptive learning rate update process.

[0013] Furthermore, the method in step 1 of the present invention comprises:

[0014] The maize chromatin open region data obtained by sequencing was processed by data partitioning and other processing, and the sequence length of 1000bp was used as the input of the model; then the sequence was One-hot Encoded, base A was converted to [1,0,0,0], base T was converted to [0,1,0,0], base C was converted to [0,0,1,0], and base G was converted to [0,0,0,1], thereby obtaining a 1000*4 One-hot encoded matrix, which was input into the multi-scale convolutional layer for the next step of processing.

[0015] Furthermore, the method in step 2 of the present invention comprises:

[0016] The multi-scale convolutional network layer includes: multiple convolution kernels of different sizes, activation functions, SoftPool, BatchNormalization and Dropout; among them: each convolution kernel of different sizes is connected to an activation function and a SoftPool respectively; then the output ends of multiple SoftPools are added and fused and connected to Batch Normalization and Dropout in turn; the convolution operation in the multi-scale convolutional network layer extracts key data features through the convolution kernel to achieve local perception and dimensionality reduction functions.

[0017] Furthermore, the method in step 2 of the present invention comprises:

[0018] The specific implementation of the convolution operation is as follows:

[0019] ConV(x) i,j =∑ m ∑ n X(m*s,n*s)*W k (im, jn)

[0020] Among them, i, j are the output position indexes, k is the kernel index, m and n are the index variables in the convolution kernel; the convolution kernel slides on the feature map with a step size s, and at each position (i, j), the feature map and the convolution kernel are multiplied element by element, and then all products are summed to output the value at that position in the feature map; in order to simultaneously perceive and extract features of different scales, convolution kernels of different scales are used to implement multi-scale convolution;

[0021] The activation function ReLU is used to learn the nonlinear relationship between features. The expression is as follows:

[0022] ReLU(X)=max(0,X)

[0023] Based on the Softmax function, Softpool makes the output obey a certain probability distribution by highlighting the activation values ​​with great influence instead of directly selecting the maximum value or average value; the expression of Softpool is as follows:

[0024]

[0025] Among them, i is the original feature map position index, j is the pooling weight index; after the input sequence is subjected to convolution, ReLU and Softpool operations of different scales, it is added and fused to extract the important features;

[0026] In order to improve the training speed and model stability, a batch normalization operation is added in the middle of the multi-scale convolutional layer. Its expression is as follows:

[0027]

[0028] Among them, μ, σ 2 is the global mean and variance, γ and β are learnable parameters used for feature scaling and translation operations, and ε is a small constant used to stabilize the value and avoid division by zero;

[0029] The Dropout operation changes the activation values ​​of some neural network units to 0 with probability p, that is, the weights are not updated, so as to reduce the number of intermediate features, thereby increasing the orthogonality between the features of each layer and preventing overfitting.

[0030] Furthermore, the gMLPblocks in step 3 of the present invention includes a micro Attention module for capturing long-distance dependencies between features; the output of the gMLPblocks is merged with the input of the gMLP layer as the output of the gMLP layer, thereby realizing a residual structure that maintains network performance.

[0031] Furthermore, the method in step 3 of the present invention comprises:

[0032] The gMLP layer consists of several blocks of the same size and structure, based on gated MLPs. In the spatial dimension rather than the channel dimension, the gMLP layer captures the complex spatial interaction information across tokens. The Patches Embedding operation is performed on the module input X. The expression of the entire gMLP layer is as follows:

[0033] Y = norm(X)

[0034] Y=gMLPblocks(Y)

[0035] Z=Y+X

[0036] Among them, norm refers to Layer Normalization;

[0037] In order to enhance the learning effect of the network, a total of 3 layers of gMLPblocks are used; Blocks has a micro Attention module to capture the long-distance dependencies between features; the expression of the Attention mechanism is as follows:

[0038]

[0039] By performing a linear transformation on the input sequence, we can obtain the query vector Query, the key vector Key, and the value vector Value; ij Used to calculate the similarity between Q and K, and then calculate each attention weight, and then perform weighted summation with V;

[0040] The part that runs in parallel with Attention is called Proj_in, which is implemented by the fully connected layer and the activation function GELU, and is used to perform channel projection mapping operations on the input. GELU introduces random regularization in activation, which is a probabilistic description of neuron input and is considered to be a comprehensive function of Dropout, Zoneout and ReLU. The GELU expression is as follows:

[0041] GELU(X)=xP(X<=x)=xΦ(x)

[0042] Among them, Φ(x) is the probability function of normal distribution, using standard normal distribution N(0,1);

[0043] The result is input into the core Spatial Gating Unit of the gMLP layer. The Spatial Gating Unit only operates on the spatial dimension without position embedding, thereby capturing the interaction of spatial dimension features. Its expression is as follows:

[0044] O=x1⊙(W(x2+x3)+b)

[0045] Among them, x1, x2 are the separation results of Proj_in in the channel dimension, x3 is the result of the Attention module, W is the spatial projection matrix, b represents a specific Token bias, and ⊙ represents element-wise multiplication; finally, the result of the Spatial Gating Unit is mapped to the channel dimension to obtain the output of the gMLPblock;

[0046] Finally, the output of gMLPblocks is merged with the input of gMLP as the output of gMLP.

[0047] Furthermore, the method in step 4 of the present invention comprises:

[0048] The output feature Z of the gMLP layer is used as the input of the output layer. Then, through one layer normalization and two fully connected layers, the complex combination of gMLP features can be learned to enhance the expressiveness of the model. The specific implementation is as follows:

[0049] Z′=norm(W1*reduce_dim(Z)+b1)

[0050] Output=sigmoid(ReLu(W2*Z′+b2))

[0051] Among them, W1 and W2 in the fully connected layer are trainable weight matrices, and b1 and b2 are trainable bias vectors;

[0052] Finally, the activation function Sigmoid is used to obtain the probability of the chromatin open region feature, with a value range between 0 and 1; the specific implementation is as follows:

[0053]

[0054] Furthermore, the method in step 5 of the present invention comprises:

[0055] When calculating the network loss, the binary cross entropy loss function BCELoss is used to measure the difference between the target label value and the predicted probability value, as shown below:

[0056] BCELoss=-w*[p*log(q)+(1-p)*log(1-q)]

[0057] Where p is the theoretical label, which can be 0 or 1; q is the model output prediction value, which can be in the range of [0,1]; w is the weight; for each sample, when p is 1, the loss value is only w*log(q); when p is 0, the loss value is w*log(1-q); the final loss value is obtained by summing and negating the loss values ​​corresponding to the above two cases;

[0058] The optimized gradient algorithm AdamW is used to update the parameters. The weight decay term is directly added to the loss function to ensure that the parameters can be adjusted more accurately during the adaptive learning rate update process. The specific expression is as follows:

[0059] L2_regularization=weigt_decay*w

[0060] w=w-lr*(m / (sqrt(v)+eps)+L2_regularization)

[0061] Among them, weight_decay is the weight decay coefficient, lr is the learning rate, m is the first-order moment estimate of the gradient, v is the second-order moment estimate of the gradient; eps is a small constant used to increase numerical stability.

[0062] The present invention provides a system for predicting corn chromatin open regions based on a multi-scale convolutional network and gMLP, in which a DeepOCR model is constructed, including a data input module, a multi-scale convolutional network module, a gMLP module and a data output module; specifically, the system includes:

[0063] The data input module is used to obtain ATAC-seq data of maize chromatin, process the ATAC-seq data using One-hot encoding, and input the matrix into the multi-scale convolutional network layer;

[0064] The multi-scale convolutional network module is used to use convolution kernels of different sizes in the multi-scale convolutional network layer to focus on and fuse multi-scale features and capture important motifs of different lengths, and use SoftPool to remove a large amount of redundant information while reducing information loss; the output of the multi-scale convolutional network layer is used as the input of the gMLP layer;

[0065] The gMLP module is used to take the output of the multi-scale convolutional network layer as its input to capture the complex spatial interaction information across tokens, thereby obtaining the long-distance dependencies between features in the sequence; the gMLP module includes layer normalization, three layers of gMLPblocks, and a residual-like structure;

[0066] The data output module is used to convert the output features of the gMLP layer into the input of the data output module. Then, through one layer normalization and two fully connected layers, the complex combination of gMLP features can be learned to enhance the expression ability of the model and realize the classification of the open region features of maize chromatin.

[0067] The model parameter update module is used to calculate the network loss using the binary cross entropy loss function BCELoss, which measures the difference between the target label value and the predicted probability value, and update the parameters using the optimized gradient algorithm AdamW, which directly adds the weight decay term to the loss function to ensure more accurate parameter adjustment during the adaptive learning rate update process.

[0068] Furthermore, the multi-scale convolutional network module of the present invention includes: multiple convolution kernels of different sizes, activation functions, SoftPool, Batch Normalization and Dropout; wherein: each convolution kernel of different sizes is respectively connected to an activation function and a SoftPool; then the output ends of multiple SoftPools are added and fused and connected to BatchNormalization and Dropout in turn.

[0069] The beneficial effects produced by the present invention are:

[0070] The present invention provides a deep learning method integrating multi-scale convolution and gMLP, which is used to learn the characteristics of corn DNA sequences to predict the open regions of corn chromatin. Figure 1 shown.

[0071] The present invention first performs One-hot encoding on the processed ATAC-seq data. Then, a multi-scale convolutional network is used to extract and fuse local features of the sequence through convolution kernels of different sizes. Among them, Softpool is used to reduce information loss in the feature map, and Batch Normalization and Dropout are used to prevent overfitting. At the same time, convolution kernels of lengths 8 and 13 can capture important motifs of different lengths. Then, gMLP based on spatial projection to implement a gating mechanism is used to capture the global dependency between features, and the Attention mechanism helps to enhance the gating ability. Finally, a fully connected layer and a Sigmoid function are used to predict the open area of ​​corn chromatin.

[0072] The present invention proposes a method DeepOCR for predicting maize chromatin open regions based on a multi-scale convolutional network and gMLP. The maize B73 variety contains five tissues, namely Ear, Leaf, Flower, Root, and Tassel. Compared with the existing models, DeepOCR has the best performance in the AV_AUROC and AV_AUPR values ​​of the five tissues and as a whole. At the same time, the standard deviation of AUROC of DeepOCR is the lowest, indicating that DeepOCR has higher accuracy and stronger stability in predicting maize chromatin open regions. In addition, the model trained for each tissue is used to predict the open regions corresponding to the other four tissues. It is found that the accuracy of predicting the open regions of the other four tissues using the model of the Flower tissue is the highest, and the performance is most significant in the Tassel tissue. For the Ear tissue, the prediction results of the models corresponding to Leaf and Root are relatively similar. For the Leaf tissue, the prediction results of the models corresponding to Root and Tassel are similar. The performance of the models corresponding to Ear and Leaf in the other three tissues is not as good as other models, which provides a reference for the conservation and specificity between maize B73 tissues. Furthermore, DeepOCR was used to explore the relatedness and genetic diversity among different varieties, as well as the similarities and differences between the same tissues of different species. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0074] Figure 1 is a schematic diagram of a flow chart of an embodiment of the present invention;

[0075] Figure 2 The ROC and PR results of different methods for predicting the characteristics of chromatin open regions in maize B73;

[0076] Figure 3 It is the box plot and bar graph of the prediction results of chromatin open region features in maize B73 by different methods;

[0077] Figure 4 This is the prediction result of chromatin open regions in five tissues corresponding to maize B73 by DeepOCR;

[0078] Figure 5 This is the result of DeepOCR predicting chromatin open regions across tissues in maize B73;

[0079] Figure 6 This is the prediction result of open chromatin regions in Leaf tissues of different corn varieties by DeepOCR;

[0080] Figure 7 This is the prediction result of open chromatin regions by DeepOCR in Leaf tissues of different species. DETAILED DESCRIPTION

[0081] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0082] Example 1

[0083] The method for predicting the open region of maize chromatin based on a multi-scale convolutional network and gMLP in the embodiment of the present invention is a method for predicting the open region of maize chromatin by integrating a multi-scale convolutional network and gMLP. The method constructs a DeepOCR model through the following steps, and the steps of the model DeepOCR are as follows:

[0084] Step 1: One-hot encoding is used to process ATAC-seq data, and the matrix is ​​input into the multi-scale convolutional network;

[0085] In a preferred embodiment of the present invention, the data of the open region of maize chromatin obtained by sequencing is processed by data partitioning, and a sequence length of 1000bp is used as the input of the model. Then the sequence is One-hot Encoded, base A is converted to [1,0,0,0], base T is converted to [0,1,0,0], base C is converted to [0,0,1,0], and base G is converted to [0,0,0,1], thereby obtaining a 1000*4 One-hot encoded matrix, which is then input into the multi-scale convolutional layer for the next step of processing.

[0086] Step 2: Use convolution kernels of different sizes in a multi-scale convolutional network to focus on and fuse multi-scale features and capture important motifs of different lengths. Smaller-scale convolution kernels can capture fine-grained features, while larger-scale convolution kernels can capture features in a wider range, thereby enhancing the network's ability to capture multi-dimensional features of DNA sequence data. In addition, Softpool, a more refined pooling method than maximum pooling and average pooling, is used to remove a large amount of redundant information while reducing information loss to ensure high computational efficiency and reduce memory consumption.

[0087] In a preferred embodiment of the present invention, convolution kernels of different sizes in a multi-scale convolutional network are used to focus on and fuse multi-scale features and capture motifs of different lengths. The convolution operation extracts key data features through the convolution kernel to achieve local perception and dimensionality reduction. Its parameter sharing feature can effectively reduce the number of network parameters, thereby simplifying calculations and improving network performance. The specific implementation of the convolution operation is as follows:

[0088] ConV(x) i,j =∑ m ∑ n X(m*s,n*s)*W k (im,jn) (1)

[0089] Among them, i, j are the output position indexes, and k is the kernel index. m and n are the index variables in the convolution kernel. The convolution kernel slides on the feature map with a step size s. At each position (i, j), the feature map and the convolution kernel are multiplied element by element, and then all products are summed to output the value at that position in the feature map. Here, in order to simultaneously perceive and extract features of different scales, so as to more comprehensively capture the information in the data, convolution kernels of different scales are used to implement multi-scale convolution operations. Smaller-scale convolution kernels can capture fine-grained features, while larger-scale convolution kernels can capture features in a wider range, thereby enhancing the network's ability to capture multi-dimensional features of DNA sequence data.

[0090] Then, the activation function ReLU is used to learn the nonlinear relationship between features. The expression is as follows:

[0091] ReLU(X)=max(0,X) (2)

[0092] At the same time, the pooling method Softpool is used to remove a large amount of redundant information while reducing information loss, thereby ensuring high computing efficiency and reducing memory consumption. The expression of Softpool is as follows:

[0093]

[0094] Among them, i is the original feature map position index, j is the pooling weight index. After the input sequence undergoes convolution, ReLU and Softpool operations of different scales, they are added together to extract the important features.

[0095] In order to improve the training speed and model stability, a batch normalization operation is added in the middle of the multi-scale convolution layer. Its expression is as follows:

[0096]

[0097] Among them, μ, σ 2 are the global mean and variance. γ and β are learnable parameters used for feature scaling and translation operations. ε is a small constant used to stabilize the value and avoid division by zero. This function aims to reduce the range of variation of the input data by normalizing the data of each batch, thereby improving the stability and convergence speed of the model. In addition, BatchNormalization can also introduce some noise to play a regularization role, effectively prevent the model from overfitting, and reduce the internal covariate shift of the network in each layer, thereby improving the training effect of the network.

[0098] At the same time, in order to prevent overfitting, the Dropout operation is added, which changes the activation values ​​of some neural network units to 0 with probability p, that is, the weights are not updated to reduce the number of intermediate features.

[0099] Step 3, use gMLP to capture the complex spatial interaction information across tokens, so as to obtain the long-distance dependencies between features in the sequence. gMLP includes layer normalization, three layers of gMLPblocks and residual-like structures. Among them, gMLPblocks contains a micro Attention module, which helps to capture the long-distance dependencies between features. Finally, the output of gMLPblocks is merged with the input of gMLP as the output of gMLP, thereby realizing the residual structure that maintains the network performance, so that good information fitting ability can still be guaranteed when training deep networks, reducing network performance degradation.

[0100] In a preferred embodiment of the present invention, gMLP is used to capture complex spatial interaction information across tokens, thereby obtaining long-distance dependencies between features in a sequence. gMLP includes layer normalization, three layers of gMLPblocks, and a residual-like structure. First, the Patches Embedding operation is performed on the module input X. The expression of the entire gMLP module is as follows:

[0101] Y=norm(X) (5)

[0102] Y=gMLPblocks(Y) (6)

[0103] Z=Y+X (7)

[0104] Here norm refers to Layer Normalization.

[0105] Blocks contains a micro Attention module that helps capture long-distance dependencies between features. The Attention mechanism expression is as follows:

[0106]

[0107] By performing a linear transformation on the input sequence, we can obtain the query vector (Query), key vector (Key), and value vector (Value). ij It is used to calculate the similarity between Q and K, and then calculate each attention weight, and then perform weighted summation with V.

[0108] The part that runs in parallel with Attention is called Proj_in, which is implemented by the fully connected layer and the activation function GELU, and is used to perform channel projection mapping operations on the input. GELU introduces random regularization in activation, which is a probabilistic description of neuron input and can be considered as a comprehensive function implementation of Dropout, Zoneout and ReLU. The GELU expression is as follows:

[0109] GELU(X)=xP(X<=x)=xΦ(x) (10)

[0110] Among them, Φ(x) is the probability function of the normal distribution, using the standard normal distribution N(0,1).

[0111] The above two results are input to the Spatial Gating Unit, the core of gMLP. The Spatial Gating Unit only operates on the spatial dimension without the need for position embedding, thereby capturing the interaction of spatial dimension features. Its expression is as follows:

[0112] O=x1⊙(W(x2+x3)+b) (11)

[0113] Among them, x1, x2 are the separation results of Proj_in in the channel dimension, x3 is the result of the Attention module, W is the spatial projection matrix, b represents a specific Token bias, and ⊙ represents element-wise multiplication. Finally, the result of the Spatial Gating Unit is mapped to the channel dimension, which is the output of the gMLPblock.

[0114] Finally, the results of gMLPblocks are merged with the input of gMLP as the output of gMLP. This operation realizes the residual structure that maintains the network performance. Through the identity mapping, it can still ensure good information fitting ability when training deep networks, thereby reducing the degradation of network performance.

[0115] In step 4, the output features of gMLP are used as the input of the output layer. Then, through one layer normalization and two fully connected layers, the complex combination of gMLP features can be learned to enhance the expression ability of the model and realize the classification of the open region features of maize chromatin. The specific implementation is as follows:

[0116] Z′=norm(W1*reduce_dim(Z)+b1) (12)

[0117] Output=sigmoid(ReLu(W2*Z′+b2)) (13)

[0118] In the fully connected layer, W1 and W2 are trainable weight matrices, and b1 and b2 are trainable bias vectors.

[0119] Finally, the activation function Sigmoid is used to obtain the probability of the chromatin open region feature, with a value range between 0 and 1. The specific implementation is as follows:

[0120]

[0121] In step 5, the network loss is calculated using the binary cross entropy loss function BCELoss, which measures the difference between the target label value and the predicted probability value, and the parameters are updated using the optimized gradient algorithm AdamW, which directly adds the weight decay term to the loss function to ensure that the parameters can be adjusted more accurately during the adaptive learning rate update process.

[0122] In a preferred embodiment of the present invention, the network loss is calculated using a binary cross entropy loss function BCELoss that measures the difference between the target label value and the predicted probability value, as shown below:

[0123] BCELoss=-w*[p*log(q)+(1-p)*log(1-q)] (15)

[0124] Where p is the theoretical label, which can be 0 or 1. q is the model output prediction value, which can be in the range of [0,1], and w is the weight. For each sample, when p is 1, the loss value is only w*log(q), and when p is 0, the loss value is w*log(1-q). The final loss value is obtained by summing and negating the loss values ​​corresponding to the above two cases.

[0125] The optimized gradient algorithm AdamW is used to update the parameters. The weight decay term is directly added to the loss function to ensure that the parameters can be adjusted more accurately during the adaptive learning rate update process. The specific expression is as follows:

[0126] L2_regularization=weight_decay*w (16)

[0127] w=w-lr*(m / (sqrt(v)+eps)+L2_regularization) (17)

[0128] Among them, weight_decay is the weight decay coefficient, lr is the learning rate, m is the first moment estimate of the gradient, and v is the second moment estimate of the gradient. eps is a small constant used to increase numerical stability.

[0129] Example 2

[0130] The following are the results of the example of using the method of the present invention to predict chromatin open regions in corn B73 (five tissues: Ear, Leaf, Flower, Root, Tassel), Leaf tissues of 24 parents in NAM, and six other species (Tair, ZS97, MH63, Bdistachyon, Sitalica, Sbicolor). The superiority of the method of the present invention in predicting chromatin open regions is explained in detail through relevant experiments, thereby providing a reference for the tissue conservation and specificity of different tissues, different varieties, and different species of corn.

[0131] In the prediction of chromatin open regions in maize B73, Figure 2It can be seen that DeepOCR has a high prediction accuracy in all 19 types of chromatin open region features. In the ROC curve results, the area under the curve of CharPlant and SMOC is significantly smaller, a small part of the curve of Baaset and DanQ is lower, and there is little difference between DeepOCR and PlantDeepSEA. In the PR curve results, the curves of Basset, CharPlant and SMOC are obviously concave, and the area under the DeepOCR curve is significantly larger than the area under the curve of DanQ and PlantDeepSEA. This shows that DeepOCR has a strong ability to distinguish between positive and negative examples, and can achieve a good balance between precision and recall. In addition, for Ear tissue, DeepOCR's AV_AUROC reached 0.9859 and AV_AUPR reached 0.5905, which are at least 0.11% and 1.89% better than the best results of the other five methods, respectively. For Leaf tissue, DeepOCR's AV_AUROC reaches 0.9880 and AV_AUPR reaches 0.5782, which are at least 0.09% and 2.46% better than the best results of the other five methods, respectively. For Flower tissue, DeepOCR's AV_AUROC reaches 0.9877 and AV_AUPR reaches 0.3550, which are at least 0.01% and 0.09% better than the best results of the other five methods, respectively. For Root tissue, DeepOCR's AV_AUROC reaches 0.9878 and AV_AUPR reaches 0.5788, which are at least 0.07% and 2.45% better than the best results of the other five methods, respectively. For Tassel tissue, DeepOCR's AV_AUROC reaches 0.9879 and AV_AUPR reaches 0.5647, which are at least 0.03% and 1.97% better than the best results of the other five methods, respectively.

[0132] Furthermore, in order to compare the performance of different methods as a whole, the results are compared through box plots and bar charts, such as Figure 3 shown. Figure 3 (AB) shows the AUROC and AUPR results of different methods for predicting each chromatin open region feature. It can be seen that DeepOCR has the highest median value, which is 0.9871 and 0.5859 respectively. At the same time, the prediction results of DeepOCR are more concentrated. In terms of the standard deviation of AUROC, DeepOCR is 0.0019, the lowest among all methods. Figure 3(CD) shows the average of the AUROC and AUPR results of the six methods. The AV_AUROC value of the DeepOCR model is the best, which is 0.9870. The AV_AUPR value of DeepOCR is the best, which is 0.5581. Therefore, the method DeepOCR of the present invention has higher accuracy and stronger stability in predicting the open region of maize chromatin.

[0133] In the task of predicting chromatin open regions in independent tissues of corn B73, DeepOCR was used to train different models on different tissues. In the ACC indicator, the prediction accuracy of the Flower tissue was the highest, reaching 0.9173. At the same time, the prediction accuracy of the Ear tissue and the Leaf tissue was similar, and the prediction accuracy of the Root tissue and the Tassel tissue was also close, with all four being around 0.9. In the AUROC and AUPR indicators, the AUC curve and PR curve of the Flower tissue were the most prominent, with AUROC values ​​and AUPR values ​​of 0.9708 and 0.9697, respectively. The AUC curve and PR curve of the Leaf tissue were both located at the innermost side, with AUROC values ​​and AUPR values ​​of 0.9486 and 0.9502, respectively. The AUROC and AUPR values ​​of the Root tissue and the Tassel tissue were similar, and both were better than the results of the Ear tissue. In short, the prediction of the five tissues was roughly the same under different indicators. The above results are shown in the figure. Figure 4 shown.

[0134] In the cross-tissue prediction task of corn B73, the model trained in each tissue was used to predict the chromatin open regions of the other four tissues, and then the conservation and specificity between tissues were explored. The results are as follows: Figure 5 (AC). It can be seen that the prediction trends of chromatin open regions among tissues are very similar. Among them, the chromatin open regions of the Flower tissue were predicted with the highest accuracy by the models corresponding to the other four tissues, and were most significant in the model corresponding to the Tassel tissue, with an ACC of 0.9570, an AUC of 0.9886, and an AP of 0.9900. The chromatin open regions of the Ear tissue were predicted with the lowest accuracy by the models corresponding to the other four tissues. At the same time, the model corresponding to the Flower tissue had the lowest accuracy in predicting the other four tissues. In addition, the models corresponding to other tissues had similar accuracy in predicting the Ear and Leaf tissues, and the models corresponding to other tissues had similar accuracy in predicting the Root and Tassel tissues. Overall analysis, the results are as follows Figure 5As shown in (DF), the model corresponding to the Flower tissue has the lowest accuracy in predicting other tissues, with AV_ACC of only 0.8876. Under the AUC and AP indicators, the prediction results of the models corresponding to the Ear and Leaf tissues for the other four tissues are more concentrated, with standard deviations of 0.0107 and 0.0120. The prediction results of the model corresponding to the Tassel tissue are more scattered, with a standard deviation of 0.0187. At the same time, the model corresponding to the Ear tissue has the highest median prediction accuracy for other tissues, followed by the models corresponding to the Leaf and Tassel tissues.

[0135] Based on the method of the present invention, the Leaf tissue data of 24 parents in NAM were selected to explore the influence of affinity and genetic diversity between different varieties on the prediction results. The model of Leaf tissue of B73 was used to predict the chromatin open regions of Leaf tissues of other varieties. The results are as follows: Figure 6 As shown. Except for Il14H, M37W and Mo18W varieties, the ACC index of the other 21 varieties reached above 0.96, and the AUC and AP indexes reached 0.99. Among them, NC358, CML333 and NC350 are all tropical varieties, and their prediction accuracy is the highest under different indicators, indicating that the above varieties are more similar to the Leaf tissue of B73. On the contrary, the prediction results of Il14H, M37W and Mo18W varieties are similar, and they are quite different from the prediction results of the other 21 varieties, with an average ACC of 0.5726. It can be seen that there may be large genetic differences between the above three varieties and B73.

[0136] The method of the present invention was applied to the prediction of chromatin open regions of Leaf tissues of different species. The three species with the highest prediction accuracy were Sbicolor, Sitalica and ZS97. Among them, the AUC value of Sbicolor reached 0.9065, indicating that the characteristics of chromatin open regions of its Leaf tissues were more similar to those of B73. The prediction results of MH63 and Bd were similar, with AUC reaching 0.83. Tair had the lowest prediction accuracy, with an ACC value of only 0.5763, indicating that there were significant differences in the characteristics of chromatin open regions of Leaf tissues between it and B73. The above results are shown in Figure 2. Figure 7 shown.

[0137] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation methods. They can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional improvements or changes can be easily achieved. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.

[0138] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

Claims

1. A method for predicting corn chromatin open regions based on multi-scale convolutional networks and gMLP, characterized in that: The DeepOCR model is constructed by this method, including an input layer, a multi-scale convolutional network layer, a gMLP layer and an output layer; the method specifically includes the following steps: Step 1: In the input layer, ATAC-seq data of maize chromatin is obtained, and the ATAC-seq data is processed using One-hot encoding. The matrix is ​​obtained and then input into the multi-scale convolutional network layer; Step 2: Use convolution kernels of different sizes in the multi-scale convolutional network layer to focus on and fuse multi-scale features and capture important motifs of different lengths, and use SoftPool to remove a large amount of redundant information while reducing information loss; use the output of the multi-scale convolutional network layer as the input of the gMLP layer; Step 3: The gMLP layer takes the output of the multi-scale convolutional network layer as its input to capture the complex spatial interaction information across tokens, thereby obtaining the long-distance dependencies between features in the sequence; the gMLP layer includes layer normalization, three layers of gMLPblocks, and a residual-like structure; Step 4: The output features of the gMLP layer are used as the input of the output layer. Then, a layer normalization and two fully connected layers are used to learn the complex combination of gMLP features, thereby enhancing the expression ability of the model and realizing the classification of the open region features of maize chromatin. In step 5, the network loss is calculated using the binary cross entropy loss function BCELoss, which measures the difference between the target label value and the predicted probability value, and the parameters are updated using the optimized gradient algorithm AdamW, which directly adds the weight decay term to the loss function to ensure more accurate parameter adjustment during the adaptive learning rate update process.

2. The method for predicting corn chromatin open regions based on a multi-scale convolutional network and gMLP according to claim 1, characterized in that: The method in step 1 comprises: The maize chromatin open region data obtained by sequencing was processed by data partitioning and other processing, and the sequence length of 1000bp was used as the input of the model; then the sequence was One-hot Encoded, base A was converted to [1, 0, 0, 0], base T was converted to [0, 1, 0, 0], base C was converted to [0, 0, 1, 0], and base G was converted to [0, 0, 0, 1], thereby obtaining a 1000*4 One-hot encoded matrix, which was input into the multi-scale convolutional layer for the next step of processing.

3. The method for predicting corn chromatin open regions based on a multi-scale convolutional network and gMLP according to claim 1, characterized in that: The method in step 2 comprises: The multi-scale convolutional network layer includes: multiple convolution kernels of different sizes, activation functions, SoftPool, BatchNormalization and Dropout; among them: each convolution kernel of different sizes is connected to an activation function and a SoftPool respectively; then the output ends of multiple SoftPools are added and fused and connected to Batch Normalization and Dropout in turn; the convolution operation in the multi-scale convolutional network layer extracts key data features through the convolution kernel to achieve local perception and dimensionality reduction functions.

4. The method for predicting corn chromatin open regions based on a multi-scale convolutional network and gMLP according to claim 3, characterized in that: The method in step 2 comprises: The specific implementation of the convolution operation is as follows: ConV(x) i,j =∑ m ∑ n X(m*s,n*s)*W k (i-m,j-n) Among them, i, j are the output position indexes, k is the kernel index, m and n are the index variables in the convolution kernel; the convolution kernel slides on the feature map with a step size s, and at each position (i, j), the feature map and the convolution kernel are multiplied element by element, and then all products are summed to output the value at that position in the feature map; in order to simultaneously perceive and extract features of different scales, convolution kernels of different scales are used to implement multi-scale convolution; The activation function ReLU is used to learn the nonlinear relationship between features. The expression is as follows: ReLU(X)=max(O,X) Based on the Softmax function, Softpool makes the output obey a certain probability distribution by highlighting the activation values ​​with great influence instead of directly selecting the maximum value or average value; the expression of Softpool is as follows: Among them, i is the original feature map position index, j is the pooling weight index; after the input sequence is subjected to convolution, ReLU and Softpool operations of different scales, it is added and fused to extract the important features; In order to improve the training speed and model stability, a batch normalization operation BatchNormalization is added in the middle of the multi-scale convolutional layer. Its expression is as follows: Among them, μ, σ 2 is the global mean and variance, γ and β are learnable parameters used for feature scaling and translation operations, and ε is a small constant used to stabilize the value and avoid division by zero; The Dropout operation changes the activation values ​​of some neural network units to 0 with probability p, that is, the weights are not updated, so as to reduce the number of intermediate features, thereby increasing the orthogonality between the features of each layer and preventing overfitting.

5. The method for predicting corn chromatin open regions based on multi-scale convolutional networks and gMLP according to claim 1, characterized in that: The gMLPblocks in step 3 include a micro Attention module for capturing long-distance dependencies between features; the output of the gMLPblocks is merged with the input of the gMLP layer as the output of the gMLP layer, thereby realizing a residual structure that maintains network performance.

6. The method for predicting corn chromatin open regions based on multi-scale convolutional networks and gMLP according to claim 5, characterized in that: The method in step 3 comprises: The gMLP layer consists of several blocks of the same size and structure, based on gated MLPs. In the spatial dimension rather than the channel dimension, the gMLP layer captures the complex spatial interaction information across tokens. The Patches Embedding operation is performed on the module input X. The expression of the entire gMLP layer is as follows: Y = norm(X) Y=gMLPblocks(Y) Z=Y+X Among them, norm refers to Layer Normalization; In order to enhance the learning effect of the network, a total of 3 layers of gMLPblocks are used; Blocks has a micro Attention module to capture the long-distance dependencies between features; the expression of the Attention mechanism is as follows: By performing a linear transformation on the input sequence, we can obtain the query vector Query, the key vector Key, and the value vector Value; ij Used to calculate the similarity between Q and K, and then calculate each attention weight, and then perform weighted summation with V; The part that runs in parallel with Attention is called Pro.j_in, which is implemented by the fully connected layer and the activation function GELU, and is used to perform channel projection mapping operations on the input. GELU introduces random regularization in activation, which is a probabilistic description of neuron input and is considered to be a comprehensive function of Dropout, Zoneout and ReLU. The GELU expression is as follows: GELU(X)=xP(X<=x)=xΦ(x) Among them, Φ(x) is the probability function of normal distribution, using standard normal distribution N(0,1); The result is input into the core Spatial Gating Unit of the gMLP layer. The Spatial Gating Unit only operates on the spatial dimension without position embedding, thereby capturing the interaction of spatial dimension features. Its expression is as follows: O=x1⊙(W(x2+x3)+b) Among them, x1 and x2 are the separation results of Proj_in in the channel dimension, x3 is the result of the Attention module, W is the spatial projection matrix, b represents a specific Token bias, and ⊙ represents element-wise multiplication; finally, the result of the Spatial Gating Unit is mapped to the channel dimension to obtain the output of the gMLPblock; Finally, the output of gMLPblocks is merged with the input of gMLP as the output of gMLP.

7. The method for predicting corn chromatin open regions based on multi-scale convolutional networks and gMLP according to claim 1, characterized in that: The method in step 4 includes: The output feature Z of the gMLP layer is used as the input of the output layer. Then, through one layer normalization and two fully connected layers, the complex combination of gMLP features can be learned to enhance the expressiveness of the model. The specific implementation is as follows: Z′=norm(W1*reduce_dim(Z)+b1) Output=sigmoid(ReLu(W2*Z′+b2)) Among them, W1 and W2 in the fully connected layer are trainable weight matrices, and b1 and b2 are trainable bias vectors; Finally, the activation function Sigmoid is used to obtain the probability of the chromatin open region feature, with a value range between 0 and 1; the specific implementation is shown below:

8. The method for predicting corn chromatin open regions based on multi-scale convolutional networks and gMLP according to claim 1, characterized in that: The method in step 5 comprises: When calculating the network loss, the binary cross entropy loss function BCELoss is used to measure the difference between the target label value and the predicted probability value, as shown below: BCELoss=--w*[p*log(q)+(1-p)*log(1-q)] Where p is the theoretical label, which can be 0 or 1; q is the model output prediction value, which can be in the range of [0, 1]; w is the weight; for each sample, when p is 1, the loss value is only w*log(q); when p is 0, the loss value is w*log(1-q); the final loss value is obtained by summing and negating the loss values ​​corresponding to the above two cases; The optimized gradient algorithm AdamW is used to update the parameters. The weight decay term is directly added to the loss function to ensure that the parameters can be adjusted more accurately during the adaptive learning rate update process. The specific expression is as follows: L2 _ regularization=we ight_decay*w w=w-lr*(m / (sqrt(v)+eps)+L2_regularization) Among them, weight_decay is the weight decay coefficient, lr is the learning rate, m is the first-order moment estimate of the gradient, v is the second-order moment estimate of the gradient; eps is a small constant used to increase numerical stability.

9. A system for predicting open regions of maize chromatin based on multi-scale convolutional networks and gMLP, characterized in that: The DeepOCR model is constructed in this system, including data input module, multi-scale convolutional network module, gMLP module and data output module; specifically: The data input module is used to obtain ATAC-seq data of maize chromatin, process the ATAC-seq data using One-hot encoding, and input the matrix into the multi-scale convolutional network layer; The multi-scale convolutional network module is used to use convolution kernels of different sizes in the multi-scale convolutional network layer to focus on and fuse multi-scale features and capture important motifs of different lengths, and use SoftPool to remove a large amount of redundant information while reducing information loss; the output of the multi-scale convolutional network layer is used as the input of the gMLP layer; The gMLP module is used to take the output of the multi-scale convolutional network layer as its input to capture the complex spatial interaction information across tokens, thereby obtaining the long-distance dependencies between features in the sequence; the gMLP module includes layer normalization, three layers of gMLPblocks, and a residual-like structure; The data output module is used to convert the output features of the gMLP layer into the input of the data output module. Then, through one LayerNormalization and two fully connected layers, the complex combination of gMLP features can be learned to enhance the expression ability of the model and realize the classification of the open region features of maize chromatin. The model parameter update module is used to calculate the network loss using the binary cross entropy loss function BCELoss, which measures the difference between the target label value and the predicted probability value, and update the parameters using the optimized gradient algorithm AdamW, which directly adds the weight decay term to the loss function to ensure more accurate parameter adjustment during the adaptive learning rate update process.

10. The system for predicting corn chromatin open regions based on multi-scale convolutional networks and gMLP according to claim 9, characterized in that: The multi-scale convolutional network module includes: multiple convolution kernels of different sizes, activation functions, SoftPool, Batch Normalization and Dropout; wherein: each convolution kernel of different sizes is respectively connected to an activation function and a SoftPool; then the output ends of multiple SoftPools are added and fused and then connected to Batch Normalization and Dropout in sequence.

Citation Information

Patent Citations

  • Whole genome nucleosome density prediction method and system and electronic equipment

    CN116612816A

  • Complex character efficient genome prediction method based on deep learning

    CN117711484A

  • Livestock chromatin open region identification method based on deep learning framework

    CN117935911A

  • Denoising ATAC-Seq Data With Deep Learning

    US20200211674A1

  • Context-aware selective sensor fusion method for multi-sensory computing systems

    US20240062519A1

Cited By

  • Plant transcription factor binding site prediction method fusing complete dynamic convolution and CubeMLP

    CN120148607A