Skip to main content

Thank you for visiting You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Attention-based multi-label neural networks for integrated prediction and interpretation of twelve widely occurring RNA modifications


Recent studies suggest that epi-transcriptome regulation via post-transcriptional RNA modifications is vital for all RNA types. Precise identification of RNA modification sites is essential for understanding the functions and regulatory mechanisms of RNAs. Here, we present MultiRM, a method for the integrated prediction and interpretation of post-transcriptional RNA modifications from RNA sequences. Built upon an attention-based multi-label deep learning framework, MultiRM not only simultaneously predicts the putative sites of twelve widely occurring transcriptome modifications (m6A, m1A, m5C, m5U, m6Am, m7G, Ψ, I, Am, Cm, Gm, and Um), but also returns the key sequence contents that contribute most to the positive predictions. Importantly, our model revealed a strong association among different types of RNA modifications from the perspective of their associated sequence contexts. Our work provides a solution for detecting multiple RNA modifications, enabling an integrated analysis of these RNA modifications, and gaining a better understanding of sequence-based RNA modification mechanisms.


Post-transcriptional RNA modifications increase the structural and functional diversity of RNA molecules and regulate all stages of RNA life1. Precise identification of RNA modification sites is therefore of crucial importance to understanding the functions and regulatory mechanisms of various RNAs. More than 100 different types of RNA modifications have been identified2, and among them, N6-methyladenosine (m6A) is the most common eukaryotic mRNA modification. M6A occurs on nascent pre-mRNA, regulating its stability and translation. It is involved in many biological processes such as the circadian clock, differentiation from naïve pluripotency, and the heat shock response. It also plays various roles in disease pathogenesis such as carcinoma, breast tumor, gastric cancer, and anti-tumor immunity. Besides m6A, there are also a number of RNA modifications with crucial biological functions. For instance, N1-methyladenosine (m1A) can block the Watson-Crick interface and is vital for tRNA stability and the replication of HIV-1.

To date, a number of computational approaches have been proposed for in silico prediction of RNA modification sites from the primary RNA sequences, including: the iRNA toolkits3,4,5,6,7,8,9,10,11, SRAMP12, DeepPromise13, WHISTLE14, Gene2vec15, m6A-Atlas16, RMDisease17, PEA18, PPUS19, BERMP20, m5Upred21, and m6AmPred22. Special attention has also been paid to the prediction of RNA modifications in introns23, lncRNAs24 as well as various tissues and cell lines25,26,27. Together, these works greatly advanced our understanding of the localization of multiple RNA modification types in different species under various conditions28. However, existing approaches suffered from the following limitations.

Firstly, most existing studies only focused on a single RNA modification type, mainly m6A, but failed to support multiple RNA modifications simultaneously through an integrated predictive model. Therefore, the study of the interplay between different modifications is limited. The iRNA toolkit3,4,5,6,7,8,9,10,11 developed primarily by Chen, Lin and Chou are the earliest as well as the most comprehensive approaches that support the prediction of various RNA modifications from RNA sequences and have been widely adopted as the gold standard for benchmarking the performance of different RNA modification prediction methods. However, the iRNA toolkit was presented in the form of multiple independent studies, each targeting a single modification. The iMRM web server29 was aimed to support five RNA modifications simultaneously with a friendly web graphical user interface; however, it is still based on five independent binary predictors corresponding to the five RNA modifications, respectively, without considering potential interactions among different modifications. Given the intrinsic biochemical and biophysical properties of different RNA modifications, the predictive framework established for one type of modification can often be conveniently migrated for the prediction of another modification. It is thus beneficial and efficient to test the computational framework on multiple RNA modifications simultaneously. Very recently, by taking advantage of the generative adversarial network (GAN), the MR-GAN approach was developed to predict eight RNA modifications30. However, some of the modifications supported may be rare modifications, such as m1G (only 29 sites), m2G (only 59 sites), and D (only 162 sites)30, whose wide occurrence in human transcriptome has not yet been confirmed. Given a large number of negative (non-modifiable) sites of such rare RNA modifications, the sequence-based prediction is likely to produce a substantial proportion of false-positive predictions in practice and should be used with extra caution.

Secondly, most existing works relied on a limited amount of data from a single source (a single database or dataset generated from a single experiment), failing to fully take advantage of the available epi-transcriptome information. For example, the wide occurrence of m5U modification has been previously confirmed with thousands of m5U sites reported by two different approaches (miCLIP and FICC-seq)31. Nevertheless, MR-GAN used only 30 sites for its training, which is likely to seriously limit its predictive capability for this specific modification. In addition, substantial discrepancies have been reported previously between different epi-transcriptome profiling technologies, e.g., for m5C32 and Ψ33. Thus, it is crucial to take advantage of the data generated from multiple orthogonal technologies to minimize the potential technological bias whenever such datasets are available.

Thirdly, most of the work in the field, such as SRAMP12 and iMRM29 focused on prediction accuracy but failed to provide a clear and intuitive interpretation of their prediction results. Although some existing approaches carefully interpreted their trained predictive model27,34, to the best of our knowledge, none of the existing works provided insights into their decision-making process for individual predictions. Recent advances in interpretable RNA/DNA models enabled the extraction of low-level CNN kernels and visualizing them as position weight matrices (PWM). These patterns, however, provide only vague insights, especially for multiple-layer DNNs, and cannot provide nucleotide level interpretation. However, it remains of significant interest to identify the critical sequence contents that directly contribute to positive RNA modification predictions, which should help facilitate our understanding of the sequence-dependent forming mechanisms of individual RNA modification sites.

Lastly, a predictive framework has not been developed for some RNA modification types such as m6Am, even though its base-resolution epi-transcriptome profiling technology miCLIP has been developed, and the profiling data is publicly available.

For these reasons, there is strong motivation to take advantage of state-of-the-art deep learning techniques to develop a unified predictive framework that supports multiple RNA modifications by integrating datasets generated from multiple technologies.

We present here MultiRM, an attention-based multi-label neural network approach for integrated prediction and interpretation of RNA modifications from the primary RNA sequence (or the corresponding DNA sequence). Twelve RNA modification types are supported by our model, including m6A, m1A, m5C, m5U, m6Am, m7G, Ψ, I, Am, Cm, Gm, and Um. To the best of our knowledge, these are the only widely occurring RNA modifications that can be profiled transcriptome-wide with existing base-resolution technologies, which are highly desired characteristics of RNA modification for reliable large-scale prediction. The multi-label architecture of our approach enables accommodation of the shared structure of different modifications while fully exploiting their distinct features. As some modifications are still more abundant than the others, to handle the imbalanced training data issue in multi-label learning, online hard examples mining (OHEM)35 and Uncertain Weighting36 were utilized. Some widely adopted state-of-art machine learning algorithms XGBoost37 and CatBoost38 were also implemented as the benchmarks. Importantly, we used the integrated gradient (IG)39 and the attention weights40 to gain insights into the trained overall model and to explain every individual prediction. Finally, a web server was developed and made freely accessible to serve the research community.


The MultiRM framework

Our framework predicts twelve types of widely occurring RNA modifications using a deep neural network, as shown in Fig. 1. Given a set of base-resolution modifiable sites, MultiRM learns the mapping between the site sequence context and the modification type. Once this mapping is learned, the attention mechanism and IG method enable us to interpret the model and extract the sequence content that contributes the most to the positive prediction, the sequence motif. The proposed integrated model using a multi-label framework is also presumed to benefit learning the underlying association among different RNA modifications.

Fig. 1: A graphic illustration of the MultiRM model architecture.

The model consists of an embedding module and an LSTM-Attention block to extract and learn useful features. Then, features filtered by attention are fed into a multi-label module to predict RNA modifications simultaneously. Conv1D stands for 1D convolutional layer; Pool1D stands for 1D max-pooling layer; FC stands for fully connected layer.

MultiRM consists of an embedding module representing the input RNA sequences using the inherent short- and long-range interactions among nucleotides. The embedded representation is fed to an LSTM layer to extract the underlying sequence features shared by all modifications. Then, the attention mechanism enables the model to focus on the relevant region of the input RNA sequence for each specific modification type as needed. Finally, the multi-label module containing two fully connected (FC) layers predicts the multiple modifiable sites simultaneously. The framework is trained using a cross-entropy loss enhanced by OHEM and Uncertain Weighting.

MultiRM performance

The primary purpose of our study is to establish an interpretable predictor that could achieve state-of-the-art accuracy in the identification of multiple widely occurring RNA modifications from the primary RNA sequences.

We firstly tried to optimize the length of the input sequences according to AUCb (b stands for binary). AUCb is the area under ROC curves calculated based on the positive and the corresponding negative samples (e.g., A for m1A) of each modification. Using the Word2vec embedding, we evaluated our multi-label model with 21-bp, 51-bp, and 101-bp RNA sequences as the input. As shown in Table 1, the input of the 51-bp sequence obtained the best average performance of all the modifications, and this setting also returned the best performance on six out of the twelve RNA modifications tested. It may be worth mentioning that the 51-bp of the input sequence is also optimal for the XGboost method (Supplementary Table 1).

Table 1 AUCb scores of models (w2v + LSTM + attention) with different input length.

Subsequently, to address the unbalanced training data problem, we implemented OHEM, uncertainty weighting (UW), and focal loss on our optimized multi-label model and tested their performance with 51-bp of input sequences. Improved AUCb values based on the optimized model were then achieved, as shown in Table 2. Both OHEM and UW were beneficial to some modifications. For example, OHEM improved the m7G prediction by 0.08 of the AUCb score, and UW raised the AUCb for m1A by 0.06. After we combined both of them, it helped to enhance the average AUCb score by 0.0145.

Table 2 Improving AUCb with techniques that handle imbalanced data problems.

With the optimized settings (51-bp input, UW + OHEM), we then compared the newly developed approach MultiRM with the baseline approaches and other embedding techniques. The optimized hyper-parameters for each model to be compared can be found in Supplementary Table 2. As seen in Table 3, the newly proposed approach MultiRM obtained the best mean and median performance with AUCb of 0.8361 and 0.8581, respectively, and achieved the best performance on six of the twelve RNA modifications considered (Am, Cm, m5U, m6A, Ψ and I) with an average ranking of 1.667 among the five approaches tested. The widely adopted XGBoost algorithm obtained the best performance on four modifications (Gm, m1A, m5C, and m7G) and achieved the mean and median performance with AUCb of 0.8035 and 0.8122 with an average ranking of 2.25 among the five approaches considered.

Table 3 Comparing MultiRM to baseline approaches under AUCb.

Subsequently, we selected the optimal thresholds for each modification with the largest G-Mean41 value based on their respective ROC curves. The corresponding performance evaluation metrics, including Sensitivity (Sn), specificity (Sp), accuracy (Acc), and Matthews correlation coefficient (MCC) for each modification, was calculated and provided in Table 4. The precisions and recalls (PRs) curves and the receiver operating characteristic curves (ROCs) curves of the MultiRM method are provided in Supplementary Figs. 1 and 2. Please refer to Supplementary Table 3 for the performance metrics of MultiRM under the scheme of multi-label classification42.

Table 4 Performance summary of MultiRM.


So far, the results have emphasized the performance of our method in terms of classification. To gain insights into the driving features behind the predictions, we applied techniques that are capable of providing model interpretability so as to identify key input sequence contents that are significant for predicting RNA modifications (see “Methods”). The sequence contents within the attention have a greater impact on RNA modifications, and mutations within these regions are more likely to lead to the gain or loss of RNA modification sites, as shown in Supplementary Fig. 3.

Moreover, we aggregated and examined the consensus motifs that played a key role in the MultiRM model. Interestingly, many of them matched the sequence patterns unveiled from conventional motif finding methods DREME43 and STREME44. To further quantify the similarity between the motifs obtained through MultiRM and DREME/STREME, motif comparison tool TOMTOM45 was applied to produce a p-value. Sufficient small p-values indicate a certain degree of consistency (see Fig. 2). It may be worth mentioning that MultiRM constructed the motifs of an RNA modification using the 6-mers of highest attention weights, which does not necessarily contain the RNA modification site itself. This is consistent with most de novo motif finding algorithms such as DREME43 and STREME44.

Fig. 2: Motif matching.

Some motifs identified from MultiRM are similar to those identified from conventional motif analysis (DREME and STREME). \(p\) value# was calculated using TOMTOM by utilizing a null model containing MultiRM’s motif columns from all the columns in the set of DREME and STREME motifs. \(p\) value## in DREME was calculated by a one-sided fisher’s exact test. \(p\) value### in STREME was calculated by a one-sided binomial test. The motifs within the blue dashed anchor boxes were extracted to do pair comparisons. IG scores were calculated by the average of the contribution scores of each nucleotide obtained by the integrated gradients method. Accession codes for the data used to generate this figure are found in Table 5.

A major advantage of the proposed integrated model is the capability to learn the underlying association among different RNA modifications. It was shown previously that there exist clear evolutionary and functional cross-talk among different post-translational modifications of protein46 and among different histone and chromatin modifications47. Conceivably, such association may also exist at the epi-transcriptome layer among different RNA modifications. To better understand the inherent shared structures among different RNA modifications, we extracted the weights of the feedforward neural network within the attention mechanism. These weights were twelve vectors corresponding to twelve RNA modifications, respectively, and were jointly learned together with all other components of the proposed model. The Pearson’s correlation (ρ) of each pair of vectors was calculated to reveal the relevance of two arbitrary RNA modifications unveiled by the integrated prediction model. A surprising finding is the RNA modifications all show strong and significant positive associations among each other, including those, originated from different nucleotides (see Fig. 3). It suggests that there exist regions that are intensively modified by multiple RNA modifications, which are likely to be the key regulatory components for the epi-transcriptome layer of gene regulation. Importantly, the sequence signatures of these key regulatory regions are largely shared among different RNA modifications (including those that modify different nucleotides) and were successfully captured by our model. The most strongly associated modifications originated from the same nucleotide, such as m5C and Cm (ρ = 0.895, p-value = 3.81E−36), I and m1A (ρ = 0.931, p-value = 9.57E−45), Ψ and m5U (ρ = 0.908, p-value = 5.47E−39). Notably, m6A showed only mild association with other modifications, implying its relatively special role in post-transcriptional regulation as the most abundant mRNA modification. It is also worth noting that the above analysis did not consider the context-specificity of RNA modifications (or the dynamics of RNA modification across different biological conditions). It does not directly suggest that different RNA modifications should co-occur in the same biological context, or they work with synergetic effects, even though the latter is highly probable as what we have seen in the epi-genetic regulation of histone modifications.

Fig. 3: Association of RNA modifications revealed by MultiRM.

The RNA modifications considered in MultiRM all show positive relationships among one another, suggesting that there are some regions intensively modified by multiple RNA modifications, which are likely to be key regulatory components for the epi-transcriptome layer of gene regulation. Modifications on the same nucleotide are likely to be more strongly associated with each other, such as m5C and Cm (ρ = 0.895, p-value = 3.81E−36), I and m1A (ρ = 0.931, p-value = 9.57E−45), Ψ and m5U (ρ = 0.908, p-value = 5.47E−39). The two-sided Pearson correlation test was performed using the exact distribution of the sample correlation coefficient. Statistical significance was calculated by the probability that abs(ρ′) of a random sample x′ and y′ drawn from the population with zero correlation would be greater than or equal to abs(ρ). The weights used to generate this figure can be found in GitHub’s repository.

To further validate the above finding, we calculated the pairwise distance between two arbitrary RNA modifications and compared it to the random. Although we could not completely rule out the possibility of experimental bias, e.g., polyA selection, we did observe strong aggregation effects among most RNA modifications considered in this analysis. It is clear that the distance between two arbitrary RNA modifications is likely to be closer than random (Supplementary Fig. 4).

MultiRM web server

A web server with a friendly graphical user interface was constructed to properly share the constructed MultiRM model among the research community. It takes the RNA sequence as input and returns the predicted RNA modification sites together with the key sequence contents that drive the positive predictions (Fig. 4). The statistical significance of the prediction was also provided by comparing it to the results generated from the negative sites. For online prediction, a notification email can be optionally sent to the provided email address when the job is finished. For off-line prediction, the trained MultiRM model together with Python codes can be downloaded for use on a local computer.

Fig. 4: Output of the MultiRM web server.

The web server supports site prediction and result interpretation for twelve widely occurring RNA modifications (m6A, m1A, m5C, m5U, m6Am, m7G, Ψ, I, Am, Cm, Gm, and Um) from RNA (or DNA) sequences. The figure shows the predicted RNA modification sites (upper panel) and the sequence components that contributed most to the positive predictions (lower panel) between the 101st and 150th nucleotides of an input sequence. The predicted probabilities, statistical significance, and attention scores of RNA modifications can all be downloaded as separate files from the web server. At the 123rd nucleotide, multiple RNA modifications originated from U were predicted with a p-value less than 0.05, which, to some degree, reflected the associations among different RNA modifications unveiled previously (see Fig. 3).


In this work, we developed a multi-label model that can simultaneously predict the twelve widely occurring RNA modifications and present the key sequence components that contributed most to the predictions.

In order to fully exploit the inherent structure of the input sequence, we experimented with three different embedding techniques on our model and found Word2vec drastically enhance its predictive capability. We also found that inputting longer RNA sequences may not necessarily lead to higher prediction accuracy. To deal with the imbalanced label problem, we implemented OHEM and Uncertain Weighting strategies. It was encouraging to find the overall performance of our MultiRM model achieved is better than the classic machine learning model XGBoost and some start-of-the-art multi-label learners.

We carefully curated the training and test data of our predictive models using only high-quality epi-transcriptome profiles generated from multiple orthogonal technologies and multiple studies. Given the discrepancy among the epi-transcriptome profiling results of multiple technologies, this remedy is of crucial importance to ensure the robustness and reliability of the predictor.

To best share the newly constructed RNA modification site predictor, a web server was constructed. Besides a friendly user interface and detailed documentation for online usage, it also hosts the trained MultiRM models and the Python codes, which may be downloaded to local computers for command-line usage.

Although MultiRM is capable of predicting twelve different types of RNA modifications, it is currently restricted to humans only and has not been extended to other model organisms. This is mainly due to the lack of availability of base-resolution epi-transcriptome profiling data for other organisms. It would be intriguing to test the performance of MultiRM on other species, such as mice and yeast, as well as to incorporate new emerging transcriptome modifications, e.g., ac4C48,49 and hm5C50 when such data is available in the future.

It is important to note that, MultiRM currently does not consider the distinct abundance of different RNA modifications. So even under the same setting (p-value cut-off), the proportion of false-positive predictions varies substantially between the more abundant RNA modifications (such as m6A) and the less abundant ones (such as m1A), i.e., with a much higher false-positive rate for the less abundant RNA modifications. The problem is partially due to the limited consistency among existing biotechnologies for profiling RNA modifications. For example, while more than 10,581 m5C sites were reported from bisulfite sequencing, only 617 and 1084 m5C sites were reported by AzaIP and miCLIP, respectively32, probably due to their different technical preference and sensitivity. We provided in Supplementary Fig. 5 the performance metrics of the proposed MultiRM model on unbalanced sample size, which reflects our current knowledge of the modifications’ distribution in real-world; however, it is important to note that the number of RNA modification sites collected are strongly affected by the detection sensitivity of biotechnology and the available experimental data rather than their true abundance. More reliable false discovery rate control would be desired in the future when the overall abundance of these RNA modifications is more readily available.

Our model revealed for the first time the positive associations among all the twelve RNA modifications in terms of their sequence preference. It should be of immediate interest to study the key regulatory regions of general RNA modifications and epi-transcriptome regulation. Of equal interest is their dynamic cross-talk under different biological conditions, which calls for the integrated prediction of condition-specific epi-transcriptome profiles when such data is more abundantly available. For example, by extending related studies25,26,27 under the multi-label learning framework. Previously, due to the lack of epi-transcriptome datasets in matched biological conditions, cross-talk of multiple RNA modifications was mainly studied via the expression level of relevant RNA modification enzymes51. Although the interactions among different RNA modifications can partially be revealed from enzyme-based analysis, it is important to note that the known enzyme genes have multiple biological functions other than writing or erasing RNA modifications, which may contaminate the results. In contrast, direct analysis of the epi-transcriptome profiles is likely to be more reliable. With the advances in deep learning approaches, it should be possible to dig more deeply and unveil the cooperative RNA modification interactions and their soft sequence syntax, as has been done in cooperative transcription factor regulation52.


Raw data and preprocessing

The development of an RNA modification site prediction model typically requires transcriptome-wide profiling data at base-resolution for training and testing purposes. A selection of datasets was made, prioritizing those derived from multiple studies and generated with different technologies. Data generated from flawed technologies (such as ordinary RNA bisulfite sequencing) or methods (such as ordinary MeRIP-seq combined with motif search) were not used.

We ultimately obtained 20 epi-transcriptome profiles generated from 15 different base-resolution technologies for 12 different types of RNA modifications (m6A, m1A, m5C, m5U, m6Am, m7G, Ψ, I, Am, Cm, Gm, and Um), as shown in Table 5. To the best of our knowledge, our data covered all the widespread RNA modifications that can be profiled transcriptome-wide at base resolution. Special attention was paid to construct the most reliable negative control data (non-modified nucleotides) for the predictor. Negative sites were randomly selected from the unmodified bases of the same transcript containing the positive sites.

Table 5 List of base-resolution epi-transcriptome profiling data.

The Inosine (I) sites were collected from the RADAR database53, while Am, Cm, Gm, and Um sites were collected from RMBase54 supplemented by those reported by Nm-seq55. When there are motifs representing modifications, i.e., the DRACH motif of m6A and the BCA motif of m6Am, the motif was used to further restrict the positive and negative data of the corresponding modification. For m6A, because the reliability of the existing large number of base-resolution studies using various techniques needs to be examined, a total of 87,616 m6A sites identified previously (Supplementary Table 4) were only used indirectly by excluding them from the negative m6A sites.

In the end, over 300k sites were collected. We separated the RNA sequences in each class (corresponding to a type of RNA modification) into three sets, i.e., the training set, validation set, and test set. Here, the training set is unbalanced across different classes (modification types), i.e., the number of sites is different for different RNA modifications, while the validation and test set have balanced samples with sizes 150 and 50, respectively. In general, the hyper-parameters were optimized based on the validation sets, while the reported final prediction performance was achieved on the test set. Traditionally, K-fold cross-validation is used to mitigate overfitting in many Machine Learning problems, especially for those who have small training data. This is because using K-fold to validate a model can better estimate how the results of the model will be generalized to an independent data set, especially in a limited dataset, where a small test cannot reflect the entire distribution of the data. In our scenario, however, we have ~300k training data in total. Consequently, a 5% testing/validation set will already give us a good estimate.


To develop high-precision computational methods, it is essential to wisely represent or embed sequence data. Suppose we have raw data \({R}_{0}={\{{x}^{m}\}}_{m=1}^{M}\) where \(M\) is the number of sequences and each \({x}^{m}\in {{\mathbb{R}}}^{L}\) is an RNA sequence. Each entry \({x}_{i}^{m},i=1,2,\ldots ,L\) at position \(i\) is taking value from the alphabet \(\sum =\{A,C,G,U,N\}\) from a sequence of constant length \(L\). We considered the following three schemes to map the RNA sequences \({R}_{0}\) into the embedding spaces \(R^{\prime}\) .

Traditionally, one-hot56,57 is a simple yet very effective encoding method to represent sequence data. For each RNA sequence \({x}_{i}^{m}\in \sum\), we map it by \(f:\sum \mapsto {{\mathbb{R}}}^{4}\), where \(f(A)=(1,0,0,0)\), \(f(C)=(0,1,0,0)\), \(f(G)=(0,0,1,0)\), \(f(U)=(0,0,0,1)\) and \(f(N)=(0,0,0,0)\). After that, \({R}_{0}\) goes to \({R}_{{\rm{onehot}}}={\{{x}^{m}\}}_{m=1}^{M}\) where each \({x}^{m}\in {{\mathbb{R}}}^{4L}\) is an RNA sequence.

Because of the ability to capture long-range interaction, Hidden Markov Model is suitable for modeling sequence data. It has been successfully applied by Seq2vec58, which uses a neural network to speed up the parameterization in HMM. It built a nonlinear feature embedding \(f:\sum \mapsto {{\mathbb{R}}}^{n}\) which transforms each RNA sequence \({x}^{m}\) into an n-dimensional vector. Besides, \(f\) is a composition of two nonlinear operators \(b:{\sum }^{L}\mapsto {{\mathbb{R}}}^{d\ast L}\) and \(g:{{\mathbb{R}}}^{d\ast L}\mapsto {{\mathbb{R}}}^{n}\), such that, \(f({x}^{m})=g(b({x}^{m}))\,\)and \(b({x}^{m})=[{\mu }_{1},{\mu }_{2},\ldots ,{\mu }_{L}]\), where each \({\mu }_{l}\) summaries the potential long-range interaction of different positions in \({x}^{m}\), and \(g\) will aggregate interaction information and a fixed dimensional embedding for the entire dataset. In our work, we added the HMM layer before the recurrent module and multi-label module, forming an end-to-end solution from training to predicting modification sites.

Since first invented by Mikolov in 2013, Word2vec59 has enhanced the performance of various NLP tasks. As a statistical language model, it follows skip-gram and continuous-bag-of-words (CBOW) architectures and uses neural networks to learn word embeddings based on context relationships. We trained our own RNA embeddings by treating each RNA sequence as a sentence and the k consecutive RNA nucleotides (k-mer) as words in that sentences. Mathematically, we define a mapping from single nucleotides to the vector representation of k-mers as \(f:{\sum }^{L}\mapsto {Y}^{L-k+1}\), which are then fed into the neural networks to obtain n-dimensional embedding. It has been demonstrated in Gene2vec15 that 3-mers has the best predictive performance on m6A sites. Therefore, in our work, we follow that 3-mers convention to embed our input data. More specifically, a 3-nt sliding window moves over 1001-nt sample sequences with stride 1-nt to create sequences of 999 words with overlap. Each word corresponds to an index from the collection of all possible 3-mer combinations (104 different combinations in our training data). Then, Word2vec was implemented by Gensim package60 with a five-word-long window of neighboring words to learn the inherent relationship and generate a 300-dimensional feature vector. Finally, each embedded RNA sequence is converted into a 999 by 300 matrix.

Model design

In this work, two types of DNN architecture, convolutional neural networks (CNNs) and recurrent neural networks (RNNs) were utilized to learn the sequence features of RNA modifications. Specifically, long short-term memory (LSTM) was implemented to account for possible long-range dependencies of the features.

The model mainly consists of three parts (see Fig. 1). The first module is an embedding module that takes the one-hot encoding of RNA sequences as input and embeds them by three different embedding techniques. Then, each embedding is fed into an LSTM and a Bahdanau Attention Layer39. Both the hidden states \({c}_{i}\) inside of the LSTM layer and the learned feature representation \({y}_{i}\) are aggregated to obtain attention weights for each target class. Then 12 different context vectors are obtained by calculating the inner product of \({y}_{i}\) and each attention weight. It is expected that these vectors can well compress the important information needed for each prediction branch. The Multi-label module, which contains 12 parallel FC layers with the ReLU activation function, maps each context vector to the probability of each modification simultaneously. Dropout layers are used to mitigate overfitting. The whole model is optimized by weighting binary cross-entropy loss in different tasks.

Importantly, to assess the contribution of the embedding methods used in our model, we exploited three variations of embedding. For one-hot encoding, a CNN has added ahead and executed as part of the embedding module. Since the original one-hot encoding of RNA sequences is a sparse input, CNNs will help extract sequence patterns in a dense manner and generate high dimensional representations of these motifs. Besides, pooling layers are utilized to trim less informative features.

It is worth noting that the data among different labels (classes) was highly imbalanced, i.e., the number of sites varied substantially between the more abundant modifications (such as m6A and I) and the less abundant ones (such as Am and Gm). Traditionally, this problem has been addressed in two ways. One way is to alter the original imbalanced data to balance it using an oversampling algorithm like SMOTE61. Another potentially more effective way is to weigh the loss of each class at the end of the network. Since our inputs are RNA sequences that were rigorously generated, generating artificial RNA sequences may degrade the credibility of the original dataset. Therefore, we focused on the second option. As a benchmark, we first used a constant weight for each task based on the Effective Numbers of Samples62. Subsequently, we designed our multi-label model to be self-paced by learning the weights of each task during training and only back-propagated the samples with higher loss (OHEM)35 so that it could jointly prioritize tasks and samples through the whole training process. We also tested the performance of focal loss63, which basically down-weights the loss assigned to well-classified samples on the common binary cross-entropy loss.

Evaluation metrics

After training on the training set, we evaluated our model on the validation set and test set. The classification performance was characterized by the receiver-operating characteristic (ROC) and assessed by the area under the ROC curves (denoted as AUROC or AUC), which is a non-parametric indicator that reflects the performance of a model.

Specifically, we calculated two types of AUC: AUCb and AUCm. AUCb was computed from the positive and the corresponding negative samples of each modification (with b representing binary), while AUCm was calculated using all other labels, including all other modifications and all the unmodifiable nucleotides as the negative (with m representing multiple). Consequently, AUCb represents the goodness of prediction for one particular modification versus its original non-modifiable base, e.g., m1A vs. A, while AUCm generalizes to all other cases, including other modifications and non-modifiable bases. Although AUCm is the matched evaluation scheme for multi-label learning tasks, AUCb was provided to maintain comparability with existing works, most of which perform binary classification with the unmodifiable original nucleotide as the negative samples. It is worth noting that nucleotides other than the original one were also considered when calculating AUCm. Because it is straightforward to make correct negative predictions according to the non-original nucleotide of a particular modification (for example, the nucleotide C cannot form m6A), AUCm is substantially higher than AUCb.

The widely adopted assessment metrics, including sensitivity (Sn), specificity (Sp), accuracy (Acc), and Matthews correlation coefficient (Mcc), were also implemented to assess the prediction performance, and can be expressed as,

$${\rm{Mcc}}=\frac{{\rm{TP}}\times {\rm{TN}}-{\rm{FP}}\times {\rm{FN}}}{\sqrt{({\rm{TP}}+{\rm{FP}})({\rm{TP}}+{\rm{FN}})({\rm{TN}}+{\rm{FP}})({\rm{TN}}+{\rm{FN}})}}$$

where TP represents true positive samples, TN represents true negative samples, FP represents false-positive samples, and FN represents false negative samples. The optimal threshold was chosen based on maximized G-mean40 for each class to classify the positive and negative samples of a particular modification. These metrics were all calculated under the binary classification scenario, i.e., using the positive and negative samples of a specific modification, and are thus comparable to the reported performance in most of the existing works on RNA modification site prediction. AUCb is used as the primary evaluation metric for its nonparametric characteristics and comparability to the reported performance of related works in the existing literature.

Statistical significance

The statistical significance of a predicted probability is assessed by an upper bound of the p-value, indicating how extreme the observed probability is among all the occurrences of the same nucleotide. It is calculated from the relative ranking of the putative RNA modification sites, i.e., if only 1% of nucleotides report a probability larger than a specific site, then the upper bound of the p-value of this site is 0.01. This is used as the cut-off of the prediction. However, it is important to note that the cut-off controls only type I errors. Even with the same p-value cut-off, the proportion of false-positive predictions are still substantially different between the more abundant RNA modifications and the less abundant ones.


In addition to the accurate prediction of RNA modifications, it is often appealing to grasp the idea behind the model’s prediction. In our model, we used attention weights and IG to explain visually how the model makes specific decisions. Specifically, we focused on what our model valued most while making different predictions and

acquired the nucleotide which contributed most while making the positive prediction through attention weights and IGs.

Bahdanau attention40 was originally introduced as a solution to handle the long input sequences of the sequence-to-sequence model. Here, we transplanted it to our method by mapping the input RNA sequences to 12 context vectors. Since it has access to the entire input RNA sequences and is capable of picking out specific elements from the sequence to produce output, the mechanism thus gives the model freedom to focus and place more or less attention on the relevant nucleotide of the input RNA sequence for each prediction task as needed. Consequently, by visualizing the attention weights, which represent the weights of each nucleotide of the input RNA sequences in each prediction task, we can identify the most critical part of the input sequences in our model while making different predictions.

By calculating the gradient of an output neuron with respect to its input, the gradient-based attribution method can reflect how much the input features contributed to a particular output through the networks. In our work, we used an attribution method called IGs39. Here, the target neuron of interest is the classification layer of each modification. The IG computes the averaged gradients of the output neuron when the input varies along a linear path from a baseline or reference to the input. It measures the contribution of each input to modification prediction and assigns higher scores to important nucleotides in the input sequences. Based on the contribution scores in each input nucleotide position, we visualized the attribution map as sequence logos where the height represents the importance of that position in the prediction. The size of nucleotides in a positive direction represents an important level in predicting the appearance of RNA modifications.

Visualization of the attribution maps of each input sequence for a specific RNA modification not only gives the important positions while making positive predictions but also reveals the potential target motif (or recurring patterns) of its corresponding modifications. In order to calculate the consensus motif contributed most for each RNA modification, following a previous study64, we accumulated the attribution values in each position corresponding to all true positive samples with prediction scores in the top 10%. Then, for each sample, we search for the top k motifs across the attribution map by taking the highest mean scores in sliding windows of the desired length, removing its neighborhood, and repeating again for the next motif. After multiple sequence alignment, UMAP65 was used to embed the top-ranking motifs and DBSCAN66 was used to cluster these embedded motifs. Finally, we aggregated these motifs in each cluster by calculating their PWM and visualized them using sequence logos.

Baseline performance

Since tree-based classification algorithms often have the best off-the-shelf accuracy for many bioinformatics problems29,56, in this work, we compared our model with two gradient-boost decision trees, i.e., XGBoost37 and CatBoost38. XGBoost has been widely used for bioinformatics predictions. CatBoost is used here because it has built-in techniques to deal with categorical variables thus avoided the extra step to convert nucleotides to one-hot encoding in this problem. The gradient-boost decision trees were used as multiclass classifiers over all 13 classes, including the 12 wide occurring RNA modifications and the non-modifiable nucleotide class. To generate optimal results, we searched the hyper-parameters of each method by coordinated decent, and the optimized choices were provided in Supplementary Table 2.

Attention-based DNNs

We trained our attention-based DNNs (see Model Design subsection) over the short RNA sequences of 101-bp, 51-bp, or 21-bp windows. For Word2vec (see Embeddings section), we pre-trained the RNA 3-mers over 1001-bp sequence and then extracted the short RNA subsequence of the corresponding length from it. For CNN and HMM, we designed them in an end-to-end manner with the one-hot encoding of RNA sequences as the input. During training, we used a mini-batch size of 128 as the input and trained on 1 NVIDIA RTX 2080Ti over 100 epochs. In addition, we used an Adam optimizer67 and a mini-batch size of 128 during training. Meanwhile, exponential and cosine annealing68 learning rate decay were implemented for suitable models, and early stopping69 was introduced when the generalization loss increased in five successive epochs to prevent overfitting on the training data. Finally, the validation set was used to search for the best hyper-parameters for a single model, and the test set was used to choose the best model among various models with their best performance.

Reporting summary

Further information on research design is available in the Nature Research Reporting Summary linked to this article.

Data availability

All data used in this study were already publicly available in the GEO database, RMBase, and RADAR database. In GEO database, m6A data can be collected from GSE71154, GSE86336, GSE98623 and GSE63753; Pseudouridine (Ψ): GSE60047, GSE58200, GSE63655 and GSE90963; m1A: GSE97908, GSE102040, GSE90963, GSE97419 and GSE70485; m6Am: GSE122948, GSE78040 and GSE63753; 2′-O-methyladenosine (Am, Cm, Gm, Um): GSE90164; m5C: GSE122260; m7G: GSE112276; m5U: GSE109183. 2′-O-methyladenosine data was also collected from the RMBase database under 2′-O-Me[] tag. Inosine data was collected from the RADAR database. All accession codes for data used are found in Table 5. All processed sequence data is freely available on the MultiRM web server at Detailed data profile information can be found in Supplementary Materials. All data are available from the authors upon reasonable request.

Code availability

The deep learning framework was implemented using Pytorch, and the Python codes can be freely accessed at The user-friendly MultiRM web server developed for easy access to our approach via a graphical user interface is at


  1. 1.

    Duan, H. C., Wang, Y. & Jia, G. Dynamic and reversible RNA N6-methyladenosine methylation. Wiley Interdiscip. Rev. RNA 10, e1507 (2019).

    PubMed  Article  CAS  PubMed Central  Google Scholar 

  2. 2.

    Boccaletto, P. et al. MODOMICS: a database of RNA modification pathways. 2017 update. Nucleic Acids Res. 46, D303–D307 (2018).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  3. 3.

    Qiu, W. R. et al. iRNA-2methyl: identify RNA 2′-O-methylation sites by incorporating sequence-coupled effects into general PseKNC and ensemble classifier. Med. Chem. 13, 734–743 (2017).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  4. 4.

    Yang, H., Lv, H., Ding, H., Chen, W. & Lin, H. iRNA-2OM: a sequence-based predictor for identifying 2′-O-methylation Sites in Homo sapiens. J. Comput. Biol. 25, 1266–1277 (2018).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  5. 5.

    Chen, W., Ding, H., Zhou, X., Lin, H. & Chou, K. C. iRNA(m6A)-PseDNC: identifying N6-methyladenosine sites using pseudo dinucleotide composition. Anal. Biochem. 561-562, 59–65 (2018).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  6. 6.

    Chen, W., Feng, P., Ding, H., Lin, H. & Chou, K. C. iRNA-Methyl: identifying N6-methyladenosine sites using pseudo nucleotide composition. Anal. Biochem. 490, 26–33 (2015).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  7. 7.

    Qiu, W. R., Jiang, S. Y., Xu, Z. C., Xiao, X. & Chou, K. C. iRNAm5C-PseDNC: identifying RNA 5-methylcytosine sites by incorporating physical-chemical properties into pseudo dinucleotide composition. Oncotarget 8, 41178–41188 (2017).

    PubMed  PubMed Central  Article  Google Scholar 

  8. 8.

    Chen, W., Song, X., Lv, H. & Lin, H. iRNA-m2G: identifying N2-methylguanosine sites based on sequence-derived information. Mol. Ther. Nucleic Acids 18, 253–258 (2019).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  9. 9.

    Chen, W., Feng, P., Song, X., Lv, H. & Lin, H. iRNA-m7G: identifying N7-methylguanosine sites by fusing multiple features. Mol. Ther. Nucleic Acids 18, 269–274 (2019).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  10. 10.

    Tahir, M., Tayara, H. & Chong, K. T. iRNA-PseKNC(2methyl): identify RNA 2′-O-methylation sites by convolution neural network and Chou’s pseudo components. J. Theor. Biol. 465, 1–6 (2019).

    CAS  PubMed  MATH  Article  PubMed Central  Google Scholar 

  11. 11.

    Chen, W., Tang, H., Ye, J., Lin, H. & Chou, K. C. iRNA-PseU: identifying RNA pseudouridine sites. Mol. Ther. Nucleic Acids 5, e332 (2016).

    CAS  PubMed  PubMed Central  Google Scholar 

  12. 12.

    Zhou, Y., Zeng, P., Li, Y. H., Zhang, Z. & Cui, Q. SRAMP: prediction of mammalian N6-methyladenosine (m6A) sites based on sequence-derived features. Nucleic Acids Res. 44, e91 (2016).

    PubMed  PubMed Central  Article  CAS  Google Scholar 

  13. 13.

    Chen, Z. et al. Comprehensive review and assessment of computational methods for predicting RNA post-transcriptional modification sites from RNA sequences. Brief. Bioinform. 21, 1676–1696 (2020).

    PubMed  Article  PubMed Central  Google Scholar 

  14. 14.

    Chen, K. et al. WHISTLE: a high-accuracy map of the human N6-methyladenosine (m6A) epitranscriptome predicted using a machine learning approach. Nucleic Acids Res. 47, e41 (2019).

    PubMed  PubMed Central  Article  CAS  Google Scholar 

  15. 15.

    Zou, Q., Xing, P., Wei, L. & Liu, B. Gene2vec: gene subsequence embedding for prediction of mammalian N6-methyladenosine sites from mRNA. RNA 25, 205–218 (2019).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  16. 16.

    Tang, Y. et al. m6A-Atlas: a comprehensive knowledgebase for unraveling the N6-methyladenosine (m6A) epitranscriptome. Nucleic Acids Res. 49, D134–D143 (2021).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  17. 17.

    Chen, K. et al. RMDisease: a database of genetic variants that affect RNA modifications, with implications for epitranscriptome pathogenesis. Nucleic Acids Res. 49, D1396–D1404 (2021).

    PubMed  Article  PubMed Central  Google Scholar 

  18. 18.

    Zhai, J., Song, J., Cheng, Q., Tang, Y. & Ma, C. PEA: an integrated R toolkit for plant epitranscriptome analysis. Bioinformatics 34, 3747–3749 (2018).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  19. 19.

    Li, Y. H., Zhang, G. & Cui, Q. PPUS: a web server to predict PUS-specific pseudouridine sites. Bioinformatics 31, 3362–3364 (2015).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  20. 20.

    Huang, Y., He, N., Chen, Y., Chen, Z. & Li, L. BERMP: a cross-species classifier for predicting m6A sites by integrating a deep learning algorithm and a random forest approach. Int J. Biol. Sci. 14, 1669–1677 (2018).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  21. 21.

    Jiang, J., Song, B., Tang, Y., Chen, K., Wei, Z. & Meng, J. m5UPred: a web server for the prediction of RNA 5-methyluridine sites from sequences. Mol. Ther. Nucleic Acids 22, 742–747 (2020).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  22. 22.

    Jiang, J., et al. m6AmPred: identifying RNA N6, 2′-O-dimethyladenosine (m6Am) sites based on sequence-derived information. Methods (2021).

  23. 23.

    Liu, L., Lei, X., Meng, J. & Wei, Z. WITMSG: large-scale prediction of human intronic m6A RNA methylation sites from sequence and genomic features. Curr. Genom. 21, 67–76 (2020).

    CAS  Article  Google Scholar 

  24. 24.

    Liu, L. et al. LITHOPHONE: improving lncRNA methylation site prediction using an ensemble predictor. Front Genet 11, 545 (2020).

    PubMed  PubMed Central  Article  CAS  Google Scholar 

  25. 25.

    Liu, K., Cao, L., Du, P. & Chen, W. im6A-TS-CNN: identifying the N6-methyladenine site in multiple tissues by using the convolutional neural network. Mol. Ther. Nucleic Acids 21, 1044–1049 (2020).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  26. 26.

    Dao, F. Y. et al. Computational identification of N6-methyladenosine sites in multiple tissues of mammals. Comput. Struct. Biotechnol. J. 18, 1084–1091 (2020).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  27. 27.

    Wang, J. & Wang, L. Deep analysis of RNA N6-adenosine methylation (m6A) patterns in human cells. NAR Genom. Bioinform. 2, lqaa007 (2020).

    PubMed  PubMed Central  Article  CAS  Google Scholar 

  28. 28.

    Liu, L. et al. Bioinformatics approaches for deciphering the epitranscriptome: recent progress and emerging topics. Comput. Struct. Biotechnol. J. 18, 1587–1604 (2020).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  29. 29.

    Liu, K. & Chen, W. iMRM: a platform for simultaneously identifying multiple kinds of RNA modifications. Bioinformatics 36, 3336–3342 (2020).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  30. 30.

    Salekin, S., et al Predicting sites of epitranscriptome modifications using unsupervised representation learning based on generative adversarial networks. Front Phys 8 (2020).

  31. 31.

    Carter, J. M. et al. FICC-Seq: a method for enzyme-specified profiling of methyl-5-uridine in cellular RNA. Nucleic Acids Res. 47, e113 (2019).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  32. 32.

    Hussain, S., Aleksic, J., Blanco, S., Dietmann, S. & Frye, M. Characterizing 5-methylcytosine in the mammalian epitranscriptome. Genome Biol. 14, 215 (2013).

    PubMed  PubMed Central  Article  Google Scholar 

  33. 33.

    Li, X., Ma, S. & Yi, C. Pseudouridine: the fifth RNA nucleotide with renewed interests. Curr. Opin. Chem. Biol. 33, 108–116 (2016).

    CAS  PubMed  Article  Google Scholar 

  34. 34.

    Zhang, Y. & Hamada, M. DeepM6ASeq: prediction and characterization of m6A-containing sequences using deep learning. BMC Bioinform. 19, 524 (2018).

    Article  CAS  Google Scholar 

  35. 35.

    Shrivastava, A., Gupta, A. & Girshick, R. Training region-based object detectors with online hard example mining. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (2016).

  36. 36.

    Kendall, A., Gal, Y. & Cipolla, R. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (2018).

  37. 37.

    Chen, T. & Guestrin, C. XGBoost: a scalable tree boosting system. In Proc. 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (2016).

  38. 38.

    Prokhorenkova, L., Gusev, G., Vorobev, A., Dorogush, A. V. & Gulin, A. CatBoost: unbiased boosting with categorical features. In Proc. The Thirty-second Annual Conference on Neural Information Processing Systems (NeurIPS) (2018).

  39. 39.

    Sundararajan, M., Taly, A. & Yan, Q. Axiomatic attribution for deep networks. In Proc. 34th International Conference on Machine Learning (2017).

  40. 40.

    Bahdanau, D., Cho, K. & Bengio, Y. Neural machine translation by jointly learning to align and translate. In Proc. 3rd International Conference on Learning Representations (ICLR) (2015).

  41. 41.

    Espíndola, R. & Ebecken, N. On extending f-measure and g-mean metrics to multi-class problems. WIT Trans. Inf. Commun. Technol. 35, 10 (2005).

    Google Scholar 

  42. 42.

    Sorower, M. S. A literature survey on algorithms for multi-label learning.Corvallis 18, 1–25 (2010).

    Google Scholar 

  43. 43.

    Bailey, T. L. DREME: motif discovery in transcription factor ChIP-seq data. Bioinformatics 27, 1653–1659 (2011).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  44. 44.

    Bailey, T. L. STREME: accurate and versatile sequence motif discovery. Bioinformatics. btab203 (2021).

  45. 45.

    Gupta, S., Stamatoyannopoulos, J. A., Bailey, T. L. & Noble, W. S. Quantifying similarity between motifs. Genome Biol. 8, R24 (2007).

    PubMed  PubMed Central  Article  CAS  Google Scholar 

  46. 46.

    Huang, K. Y. et al. dbPTM in 2019: exploring disease association and cross-talk of post-translational modifications. Nucleic Acids Res. 47, D298–D308 (2019).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  47. 47.

    Lee, J. S., Smith, E. & Shilatifard, A. The language of histone crosstalk. Cell 142, 682–685 (2010).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  48. 48.

    Sas-Chen, A. et al. Dynamic RNA acetylation revealed by quantitative cross-evolutionary mapping. Nature 583, 638–643 (2020).

    ADS  CAS  PubMed  PubMed Central  Article  Google Scholar 

  49. 49.

    Arango, D. et al. Acetylation of cytidine in mRNA promotes translation efficiency. Cell 175, 1872–1886 (2018). e1824.

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  50. 50.

    Delatte, B. et al. RNA biochemistry. Transcriptome-wide distribution and function of RNA hydroxymethylcytosine. Science 351, 282–285 (2016).

    ADS  CAS  PubMed  Article  PubMed Central  Google Scholar 

  51. 51.

    Chen, H. et al. Cross-talk of four types of RNA modification writers defines tumor microenvironment and pharmacogenomic landscape in colorectal cancer. Mol. Cancer 20, 29 (2021).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  52. 52.

    Avsec, Ž. et al. Base-resolution models of transcription-factor binding reveal soft motif syntax. Nat. Genet. 53, 354–366 (2021).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  53. 53.

    Ramaswami, G. & Li, J. B. RADAR: a rigorously annotated database of A-to-I RNA editing. Nucleic Acids Res. 42, D109–D113 (2014).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  54. 54.

    Xuan, J. J. et al. RMBase v2.0: deciphering the map of RNA modifications from epitranscriptome sequencing data. Nucleic Acids Res. 46, D327–D334 (2018).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  55. 55.

    Dai, Q. et al. Nm-seq maps 2′-O-methylation sites in human mRNA with base precision. Nat. Methods 14, 695–698 (2017).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  56. 56.

    Qiang, X., Chen, H., Ye, X., Su, R. & Wei, L. M6AMRFS: robust prediction of N6-methyladenosine sites with sequence-based features in multiple species. Front Genet 9, 495 (2018).

    PubMed  PubMed Central  Article  Google Scholar 

  57. 57.

    Wei, L., Luan, S., Nagai, L. A. E., Su, R. & Zou, Q. Exploring sequence-based features for the improved prediction of DNA N4-methylcytosine sites in multiple species. Bioinformatics 35, 1326–1333 (2019).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  58. 58.

    Dai, H. et al. Sequence2Vec: a novel embedding approach for modeling transcription factor binding affinity landscape. Bioinformatics 33, 3575–3583 (2017).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  59. 59.

    Mikolov, T., Chen, K., Corrado, G. & Dean, J. Efficient estimation of word representations in vector space. ICLR Workshop (2013).

  60. 60.

    Rehurek, R. & Sojka, P. Gensim–python framework for vector space modelling. NLP Centre, Faculty of Informatics, Masaryk University, Brno, Czech Republic 3, (2011).

  61. 61.

    Chawla, N. V., Bowyer, K. W., Hall, L. O. & Kegelmeyer, W. P. SMOTE: synthetic minority over-sampling technique. J. Artif. Intell. Res. 16, 321–357 (2002).

    MATH  Article  Google Scholar 

  62. 62.

    Cui, Y., Jia, M., Lin, T.-Y., Song,. Y. & Belongie, S. Class-balanced loss based on effective number of samples. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (2019).

  63. 63.

    Lin, T., Goyal, P., Girshick, R. B., He, K., & Dollár, P. Focal loss for dense object detection. In Proc. 2017 IEEE International Conference on Computer Vision (ICCV), 2999–3007 (2017).

  64. 64.

    Ghanbari, M. & Ohler, U. Deep neural networks for interpreting RNA-binding protein target preferences. Genome Res. 30, 214–226 (2020).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  65. 65.

    McInnes, L., Healy, J. & Melville, J. Umap: Uniform manifold approximation and projection. J. Open Source Softw. 3, 861 (2018).

    Article  Google Scholar 

  66. 66.

    Ester, M., Kriegel, H.-P., Sander, J. & Xu, X. A density-based algorithm for discovering clusters in large spatial databases with noise. In: Kdd (1996).

  67. 67.

    Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization. In Proc. 3rd International Conference on Learning Representations (2014).

  68. 68.

    Loshchilov, I. & Hutter, F. SGDR: stochastic gradient descent with warm restarts. In Proc. 5th International Conference on Learning Representations (2017).

  69. 69.

    Orr, G. B. & Müller, K.-R. Neural Networks: Tricks of the Trade. Springer (2003).

  70. 70.

    Song, Z. MultiRM. (2021).

Download references


The authors would like to thank Prof. Alex Freitas from the University of Kent at Canterbury for his insightful suggestions and comments. This work has been supported by the National Natural Science Foundation of China [31671373]; XJTLU Key Program Special Fund [KSF-T-01]. This work is partially supported by the AI University Research Center through XJTLU Key Program Special Fund (KSF-P-02).

Author information




J.M., D.J.R., J.P.M., J.S., and G.L. conceived the idea and initialized the project; J.M. and D.H. supervised the project; K.C. collected and processed the training and benchmark datasets; Z.S., D.H., and Y.S. designed and implemented the deep learning model; Z.S. tested the performance of the deep learning model and compared it to competing methods; B.S. designed and built the web server; Z.S. drafted the manuscript. All authors read, critically revised, and approved the final manuscript.

Corresponding authors

Correspondence to Daiyun Huang or Jia Meng.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Peer review information Nature Communications thanks Wei Chen and Zhibin Wang for their contribution to the peer review of this work.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Song, Z., Huang, D., Song, B. et al. Attention-based multi-label neural networks for integrated prediction and interpretation of twelve widely occurring RNA modifications. Nat Commun 12, 4011 (2021).

Download citation


By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.


Quick links

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing