Abstract
Traditional biological taxonomy often faces a disconnect between macroscopic morphological observation and microscopic molecular phylogenetics. This paper presents a multi-perspective deep learning framework designed to bridge this gap. By mapping multi-view mushroom images into a genetic distance representation space, the model achieves high-accuracy species identification and demonstrates the novel capability of reconstructing DNA sequences directly from macroscopic photographs.
Introduction
Identifying mushroom species is a critical task with significant implications for food safety and biodiversity. However, macroscopic appearance (morphology) and microscopic genetic data (DNA) often provide conflicting signals. Traditional convolutional neural networks (CNNs) frequently suffer from "semantic overfitting," where they learn to distinguish classes without capturing the underlying biological and evolutionary relationships. This research aims to unify these domains by using genetic information as a mediator for image-based recognition.
Methodology
The proposed framework utilizes a three-stage training approach centered on multi-perspective recognition.
Multi-Branch Input and Feature Fusion
The model processes three distinct views of a mushroom: top (pileus), side (lamella and stipe), and bottom. Each view is handled by a separate backbone branch (with ResNet-50 identified as the optimal architecture). These features are then fused using attention mechanisms—specifically SE and ECANet modules—to highlight taxonomically significant details.
Genetic Distance Embedding and DNA Decoding
Instead of standard one-hot label mapping, images are projected into a representation space defined by genetic distances calculated from the ITS region of DNA. This forces the network to learn evolutionary semantics. Furthermore, an LSTM-based encoder-decoder architecture is employed to map these image features to genetic distances, which are then decoded into a 157-base-pair DNA sequence.
Datasets
The study utilized a newly curated Multi-perspective Mushroom Dataset consisting of 4,428 images representing 246 specimens across 40 species. Additionally, 3,000 ITS sequences from the NCBI database were used to construct the genetic distance embeddings and train the DNA decoder.
Results and Discussion
The multi-perspective fusion approach significantly outperformed single-view models, improving recognition accuracy by approximately 10% to reach a final test accuracy of 91.44%.
Key findings include:
- Image-to-DNA Bridge: The model successfully mapped macroscopic images to microscopic DNA sequences with 87.45% accuracy across 37 species.
- Evolutionary Alignment: On conserved DNA intervals, prediction accuracy reached 95.97%, demonstrating that the model captures biological "topology" better than traditional classifiers.
- Zero-Shot Potential: The model showed a strong ability to place unseen species correctly within a phylogenetic tree (AUC up to 0.97).
Conclusion
This research demonstrates the feasibility of an "optical DNA barcode" for fungi. While macroscopic images are highly effective for genus-level identification, future work will explore the integration of microscopic imagery (e.g., spores) to enhance species-level precision and scale the DNA decoder to larger genomic datasets.
Summary updated