Update README: fix text, cite, links, remove placeholder
Browse files- Minor text fixes
- Edit cite block
- Remove Kaggle placeholder
- Add link to datasets package
README.md
CHANGED
@@ -44,15 +44,13 @@ This dataset is used in the paper [BarcodeBERT: Transformers for Biodiversity An
|
|
44 |
In the global challenge of understanding and characterizing biodiversity, short species-specific genomic sequences known as DNA barcodes play a critical role, enabling fine-grained comparisons among organisms within the same kingdom of life. Although machine learning algorithms specifically designed for the analysis of DNA barcodes are becoming more popular, most existing methodologies rely on generic supervised training algorithms. We introduce BarcodeBERT, a family of models tailored to biodiversity analysis and trained exclusively on data from a reference library of 1.5M invertebrate DNA barcodes. We compared the performance of BarcodeBERT on taxonomic identification tasks against a spectrum of machine learning approaches including supervised training of classical neural architectures and fine-tuning of general DNA foundation models. Our self-supervised pretraining strategies on domain-specific data outperform fine-tuned foundation models, especially in identification tasks involving lower taxa such as genera and species. We also compared BarcodeBERT with BLAST, one of the most widely used bioinformatics tools for sequence searching, and found that our method matched BLAST's performance in species-level classification while being 55 times faster. Our analysis of masking and tokenization strategies also provides practical guidance for building customized DNA language models, emphasizing the importance of aligning model training strategies with dataset characteristics and domain knowledge. The code repository is available at this https URL .
|
45 |
|
46 |
### Overview
|
47 |
-
|
48 |
|
49 |
### Citation
|
50 |
|
51 |
If you make use of this dataset and/or its code repository, please cite the following paper:
|
52 |
|
53 |
-
```
|
54 |
-
cite as:
|
55 |
-
|
56 |
@misc{arias2025barcodeberttransformersbiodiversityanalysis,
|
57 |
title={BarcodeBERT: Transformers for Biodiversity Analysis},
|
58 |
author={Pablo Millan~Arias and Niousha Sadjadi and Monireh Safari and ZeMing Gong and Austin T. Wang and Joakim Bruslund Haurum and Iuliia Zarubiieva and Dirk Steinke and Lila Kari and Angel X. Chang and Scott C. Lowe and Graham W. Taylor},
|
@@ -62,11 +60,9 @@ cite as:
|
|
62 |
primaryClass={cs.LG},
|
63 |
url={https://arxiv.org/abs/2311.02401},
|
64 |
}
|
65 |
-
|
66 |
-
|
67 |
```
|
68 |
|
69 |
-
##
|
70 |
|
71 |
Each specimen contains the following annotations:
|
72 |
|
@@ -108,10 +104,11 @@ output = model(input_seq.unsqueeze(0))["hidden_states"][-1]
|
|
108 |
# Compute Global Average Pooling
|
109 |
features = output.mean(1)
|
110 |
```
|
|
|
111 |
|
|
|
112 |
### Dataset Sources
|
113 |
|
114 |
- **GitHub:** https://github.com/bioscan-ml/BarcodeBERT
|
115 |
- **Zenodo:** https://doi.org/10.5281/zenodo.15650124
|
116 |
-
- **Kaggle:** ?
|
117 |
- **Paper:** https://arxiv.org/abs/2311.02401
|
|
|
44 |
In the global challenge of understanding and characterizing biodiversity, short species-specific genomic sequences known as DNA barcodes play a critical role, enabling fine-grained comparisons among organisms within the same kingdom of life. Although machine learning algorithms specifically designed for the analysis of DNA barcodes are becoming more popular, most existing methodologies rely on generic supervised training algorithms. We introduce BarcodeBERT, a family of models tailored to biodiversity analysis and trained exclusively on data from a reference library of 1.5M invertebrate DNA barcodes. We compared the performance of BarcodeBERT on taxonomic identification tasks against a spectrum of machine learning approaches including supervised training of classical neural architectures and fine-tuning of general DNA foundation models. Our self-supervised pretraining strategies on domain-specific data outperform fine-tuned foundation models, especially in identification tasks involving lower taxa such as genera and species. We also compared BarcodeBERT with BLAST, one of the most widely used bioinformatics tools for sequence searching, and found that our method matched BLAST's performance in species-level classification while being 55 times faster. Our analysis of masking and tokenization strategies also provides practical guidance for building customized DNA language models, emphasizing the importance of aligning model training strategies with dataset characteristics and domain knowledge. The code repository is available at this https URL .
|
45 |
|
46 |
### Overview
|
47 |
+
CanadianInvertebrates-ML is a machine learning-ready dataset derived from the raw DNA barcodes published in [deWaard et. al, 2019](https://www.nature.com/articles/s41597-019-0320-2). The data is specifically designed and curated for different machine learning tasks in biodiversity analysis: species classification, genus identification of novel species, and BIN reconstruction.
|
48 |
|
49 |
### Citation
|
50 |
|
51 |
If you make use of this dataset and/or its code repository, please cite the following paper:
|
52 |
|
53 |
+
```bibtex
|
|
|
|
|
54 |
@misc{arias2025barcodeberttransformersbiodiversityanalysis,
|
55 |
title={BarcodeBERT: Transformers for Biodiversity Analysis},
|
56 |
author={Pablo Millan~Arias and Niousha Sadjadi and Monireh Safari and ZeMing Gong and Austin T. Wang and Joakim Bruslund Haurum and Iuliia Zarubiieva and Dirk Steinke and Lila Kari and Angel X. Chang and Scott C. Lowe and Graham W. Taylor},
|
|
|
60 |
primaryClass={cs.LG},
|
61 |
url={https://arxiv.org/abs/2311.02401},
|
62 |
}
|
|
|
|
|
63 |
```
|
64 |
|
65 |
+
## Dataset content
|
66 |
|
67 |
Each specimen contains the following annotations:
|
68 |
|
|
|
104 |
# Compute Global Average Pooling
|
105 |
features = output.mean(1)
|
106 |
```
|
107 |
+
### BIOSCAN Datasets for PyTorch
|
108 |
|
109 |
+
CanadianInvertebrates-ML is being incorporated into the [BIOSCAN Datasets for PyTorch project](https://github.com/bioscan-ml/dataset), which provides a standardized way to access and utilize this dataset in PyTorch-based machine learning workflows. You can see the work in progress in [this pull request](https://github.com/bioscan-ml/dataset/pull/61).
|
110 |
### Dataset Sources
|
111 |
|
112 |
- **GitHub:** https://github.com/bioscan-ml/BarcodeBERT
|
113 |
- **Zenodo:** https://doi.org/10.5281/zenodo.15650124
|
|
|
114 |
- **Paper:** https://arxiv.org/abs/2311.02401
|