Abstract
Deep learning (DL) techniques have had unprecedented success when applied to images, waveforms, and texts. In general, when the sample size (N) is much greater than the number of features (d), DL outperforms previous machine learning (ML) techniques. However, in many bioinformatics ML tasks, we encounter the opposite situation where d is greater than N. In these situations, applying DL techniques would lead to severe overfitting. This paper demonstrates how to apply CNNs on metagenomic data by mapping it to 1D or 2D images. The proposed approach is applied on six different datasets, showing promising results for disease prediction.
Introduction
In metagenomics, researchers often face the "curse of dimensionality," where the number of bacterial species (features, $d$) far exceeds the number of available samples ($N$). Traditional deep learning models typically overfit in such low-sample regimes. Furthermore, metagenomic data lacks the natural spatial structure found in images or audio, making it difficult to apply Convolutional Neural Networks (CNNs), which excel at capturing local patterns. This study introduces a framework to "image-ify" this flat data, enabling the use of CNNs for disease classification.
Methods
The researchers developed a framework called MET2IMG to transform metagenomic abundance data into synthetic images. Two primary mapping strategies were evaluated:
- Phylogenetic-sorting (PLG): Bacterial species are sorted according to their taxonomy (Phylum to Species). This ensures that evolutionarily related organisms are placed in proximity. These values are then arranged into a 2D grid.
- t-SNE Embedding: High-dimensional species data is projected onto a 2D plane using t-Distributed Stochastic Neighbor Embedding to cluster similar species.
The resulting images were processed using a VGG-inspired CNN architecture. As illustrated in the architecture diagram below, the network utilizes multiple convolutional layers with 3x3 filters, followed by max-pooling and a fully connected layer to perform classification.
The approach was tested on six diverse datasets (CIR, COL, IBD, OBE, T2D, WT2) covering over 1,000 samples. Both species abundance (ABD) and presence (PRE) were used as input features.
Results
The proposed PLG-based CNN approach (Con2D) consistently outperformed or matched state-of-the-art machine learning models like Random Forests (RF) and Support Vector Machines (SVM) used in the MetAML framework.
Key findings include:
- Superior Accuracy: For Liver Cirrhosis (CIR), the PLG-ABD-Con2D model achieved an accuracy of 0.891, surpassing the RF baseline of 0.877. Similarly, for IBD, it reached 0.855 compared to 0.809 for RF.
- Structural Advantage: 2D representations generally outperformed 1D counterparts, suggesting that the grid layout effectively captures complex, non-linear biological relationships.
- Robustness: The CNNs proved robust in extracting features even from sparse synthetic images.
Conclusion
By leveraging biological taxonomy to create spatial structure, this research successfully bridges the gap between metagenomics and deep learning. While limited by current image resolutions and sample sizes, the MET2IMG framework provides a scalable path forward. As metagenomic datasets continue to grow, the performance advantages of CNN-based approaches are expected to become even more pronounced, potentially leading to more accurate diagnostic tools in clinical settings.
Summary updated