CAP-m7G: A capsule network-based framework for specific RNA N7-methylguanosine site identification using image encoding and reconstruction layers

Peilin Xie, Jiahui Guan, Xi He, Zhihao Zhao, Yilin Guo, Zhenglong Sun, Lantian Yao, Tzong-Yi Lee, Ying‐Chih ChiangComputational 2025 · DOI

TL;DR

This paper introduces CAP-m7G, a novel deep learning framework that uses image-based representations of RNA sequences and capsule networks to accurately identify N7-methylguanosine (m7G) modification sites. By achieving state-of-the-art performance, CAP-m7G offers a more robust and user-friendly tool for understanding the critical roles of m7G in gene regulation and disease.

What Problem Does This Paper Address?

N7-methylguanosine (m7G) is a crucial RNA modification that influences RNA stability, export, and protein translation, playing a significant role in cellular processes and disease development, including cancer and neurodegenerative disorders. While experimental methods can identify m7G sites, they are costly and time-consuming, necessitating computational approaches. Existing AI models for predicting m7G sites have shown promise but still face limitations in optimal performance and user accessibility. This paper aims to bridge this gap by developing a more accurate, robust, and interpretable model for m7G site identification, along with a readily available web server.

Methods

The core innovation of CAP-m7G lies in its unique architecture that combines three key components:

  • Chaos Game Representation (CGR): This technique transforms RNA sequences into 2D grayscale images. CGR preserves sequence characteristics and patterns in a spatial format, making them amenable to image-based analysis. The paper uses a variant called Frequency Matrix Representation (FCGR) to generate uniform 64x64 images.
  • Capsule Networks (CapsNet): Unlike traditional Convolutional Neural Networks (CNNs) that can lose spatial information through pooling, CapsNets use "capsules" (vector-based representations) to encode entity properties and their relationships. This allows for better capture of spatial hierarchies and hidden patterns within the CGR images. The architecture includes a Primary Capsule layer for initial feature extraction and a Digit Capsule layer for higher-level feature representation.
  • Reconstruction Layer: This layer is added to the CapsNet architecture to reconstruct the original CGR image from the capsule outputs. This process helps to refine feature representations, enhance model interpretability, and improve overall performance by ensuring the network learns more representative features.

The model is trained using a combination of margin loss and reconstruction loss, optimized with the Adam optimizer.

Datasets

The study utilizes an experimentally validated dataset from m7GHub v.2.0, which was processed and curated by Zhang et al. [20]. This dataset, after processing with CD-HIT to ensure similarity below 0.8, contains 5,486 high-quality sequences centered around m7G modification sites, each 501 bp in length. For negative samples, an equal number of non-m7G sites and their flanking regions from the human genome were randomly selected. The dataset was split into 80% for training and 20% for testing. The training set underwent four-fold cross-validation for parameter tuning.

Key Insights and Ideas

  • Image-based RNA representation is powerful: Transforming RNA sequences into images via CGR allows for the application of computer vision techniques, revealing complex patterns that might be missed by traditional sequence-based methods.
  • Capsule Networks excel at spatial relationships: The inherent ability of CapsNets to preserve and interpret spatial hierarchies within the CGR images is key to capturing the subtle sequence features indicative of m7G sites.
  • Reconstruction enhances interpretability and performance: The reconstruction layer not only aids in refining feature extraction but also provides a visual link back to the original sequence representation, potentially aiding in understanding why a prediction is made.
  • m7G sites have distinct sequence patterns: The significance analysis (using SHAP) and feature clustering reveal that m7G sites and normal sites exhibit discernible patterns within their sequence contexts, which CAP-m7G effectively learns.

Key Results

CAP-m7G demonstrates state-of-the-art performance in m7G site prediction:

  • Accuracy: 96.63%
  • Specificity: 95.07%
  • Matthews Correlation Coefficient (MCC): 0.9330
  • Recall: 98.17%

These metrics represent significant improvements over existing methods, with an accuracy increase of approximately 12.27% over the closest competitor. The ablation study confirms the critical contribution of each component (CGR, CapsNet, and reconstruction layer) to the model's overall effectiveness. The paper also provides a user-friendly web server for easy access to the tool.

Limitations and Future Work

  • Data dependency: Like most machine learning models, CAP-m7G's performance is influenced by the quality and quantity of training data. The paper notes that experimental data on m7G sites is limited, which can affect model robustness on new datasets.
  • Interpretability: While the reconstruction layer and SHAP analysis offer some insights, further work on enhancing the interpretability of deep learning models in this domain is always valuable.
  • Generalizability: While the model performs well on the tested dataset, its performance on diverse RNA types or across different species could be explored further.

The authors suggest that their approach provides a strong foundation for future research in RNA modification prediction, potentially extending to other types of RNA modifications.

Summary updated

Abstract

N7-methylguanosine (m7G) modifications play a pivotal role in RNA stability, mRNA export, and protein translation. They are closely associated with ribosome function and the regulation of gene expression. Dysregulation of m7G has been implicated in various diseases, including cancers and neurodegenerative disorders, where the loss of m7G can lead to genomic instability and uncontrolled cell proliferation. Accurate identification of m7G sites is thus essential for elucidating these mechanisms. Due to the high cost of experimentally validating m7G sites, several artificial intelligence models have been developed to predict these sites. However, the performance of these models is not yet optimal, and a user-friendly web server is still needed. To address these issues, we developed CAP-m7G, an innovative model that integrates Chaos Game Representation, Capsule Networks, and reconstruction layers. CAP-m7G achieved an accuracy of 96.63%, a specificity of 95.07%, and a Matthews correlation coefficient (MCC) of 0.933 on independent test data. Our results demonstrate that the integration of Chaos Game Representation with Capsule Network can effectively capture the crucial sequence information associated with m7G sites. The web server can be accessed at https://awi.cuhk.edu.cn/~biosequence/CAP-m7G/index.php.
BibTeX
@inproceedings{xie2025cap,
  author = {Peilin Xie and Jiahui Guan and Xi He and Zhihao Zhao and Yilin Guo and Zhenglong Sun and Lantian Yao and Tzong-Yi Lee and Ying‐Chih Chiang},
  title = {{CAP-m7G: A capsule network-based framework for specific RNA N7-methylguanosine site identification using image encoding and reconstruction layers}},
  booktitle = {Computational},
  year = {2025},
  doi = {10.1016/j.csbj.2025.02.029},
}
Figure