Monireh

I am a Ph.D. candidate under the supervision of Lila Kari at the University of Waterloo. I hold a Master's degree in Computer Engineering from Sharif University of Technology and a Bachelor of Science in Computer Engineering from Amirkabir University of Technology.

My research focuses on machine learning for computational genomics and bioinformatics, with emphasis on representation learning. I develop transformer-based DNA foundation models using self-supervised learning to advance sequence representation and biodiversity analysis. I also apply alignment-free machine learning methods to uncover genomic signatures shaped by environmental pressures across microbial and eukaryotic genomes.

Previously, I interned at the Princess Margaret Cancer Centre in the Gaiti Lab with Federico Gaiti, where I built scalable pipelines for single-cell cancer lineage tracing from methylation data.

Monireh Safari
DNA Foundation Models Representation Learning ML in genomics ML in Oncology
Resume

Publications and Preprints

DNA Foundation Models Representation Learning
, , ,

BarcodeBERT: Transformers for biodiversity analyses

Bioinformatics Advances

Motivation: In the global effort to characterize biodiversity, short species-specific genomic sequences known as DNA barcodes enable 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. Results: We introduce BarcodeBERT, a family of models tailored to biodiversity analysis and trained exclusively on data from a reference library of 1.5 M invertebrate DNA barcodes. We evaluate 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. Compared with BLAST, a widely used sequence-search tool, BarcodeBERT achieves comparable species-level classification accuracy while being 55× 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.

ML in genomics

Life at the extremes: Maximally divergent microbes with similar genomic signatures linked to extreme environments

Nucleic Acids Research: Genomics and Bioinformatics
Invited Podcast – Western Biology & Evolution Seminar Series 2026

Extreme environments impose strong mutation and selection pressures that drive distinctive, yet understudied, genomic adaptations in extremophiles. In this study, we identify 15 bacterium–archaeon pairs that exhibit highly similar k-mer-based genomic signatures despite maximal taxonomic divergence, suggesting that shared environmental conditions can produce convergent, genome-wide sequence patterns that transcend evolutionary distance. Using a computational pipeline with composite genome proxies, we determine that 6-mers and 100 kbp genome proxy lengths provide the best balance between classification accuracy and computational efficiency. Validation through 3-mer frequency analysis, phenotypic trait comparison, and geographic co-occurrence data confirms that extreme environmental pressures can override traditionally recognized taxonomic components at the whole-genome level, revealing how adaptation to extreme conditions leaves robust, domain-spanning imprints on microbial genomes.

DNA Foundation Models Representation Learning
, ,

Enhancing DNA Foundation Models to Address Masking Inefficiencies

Masked language modelling (MLM) as a pretraining objective has been widely adopted in genomic sequence modelling. While pretrained models can successfully serve as encoders for various downstream tasks, the distribution shift between pretraining and inference detrimentally impacts performance, as the pretraining task is to map [MASK] tokens to predictions, yet the [MASK] is absent during downstream applications. This means the encoder does not prioritize its encodings of non-[MASK] tokens, and expends parameters and compute on work only relevant to the MLM task, despite this being irrelevant at deployment time. In this work, we propose a modified encoder-decoder architecture based on the masked autoencoder framework, designed to address this inefficiency within a BERT-based transformer. We empirically show that the resulting mismatch is particularly detrimental in genomic pipelines where models are often used for feature extraction without fine-tuning. We evaluate our approach on the BIOSCAN-5M dataset, comprising over 2 million unique DNA barcodes. We achieve substantial performance gains in both closed-world and open-world classification tasks when compared against causal models and bidirectional architectures pretrained with MLM tasks.

Awards

Exceptional Flash Talk Award

Canadian Bioinformatics Hub Conference

2026

WiCS Graduate Student Scholarship

CA$3K

University of Waterloo

2026

David R. Cheriton Graduate Scholarship

CA$20K

University of Waterloo

2026

AMII Travel Bursary for AI Conference

CA$1.5K

University of Waterloo

2025

Cotton Family Women in Mathematics Scholarship

CA$3.5K

University of Waterloo

2024

Doctoral Entrance Award for Women in Math

CA$5K

University of Waterloo

2022

Presentations

Talks & Media

The Rising Star Seminar Series

Invited Speaker

Presented PhD research on DNA foundation models and computational genomics to undergraduate students, discussing research pathways and career opportunities in computational biology.

Feb 2026

The Western Biology & Evolution Seminar Series (WBESS)

Invited Podcast Guest

Discussion of the paper: Life at the extremes: maximally divergent microbes with similar genomic signatures linked to extreme environments.

Jan 2026

Posters & Conference Presentations

Selected Presentation ML in genomics

Machine Learning Reveals an Extreme-Environment k-mer-based Watermark Imprinted Across Eukaryotic Genomes

Safari, M., et al.

Canadian Bioinformatics Hub Conference 2026

2026
Poster DNA Foundation Models Representation Learning

Enhancing DNA Foundation Models to Address Masking Inefficiencies

Safari, M., et al.

AI4NA Workshop & MLGenX Workshop – ICLR 2025

2025
Poster ML in Oncology

Adversarial Learning for Scalable High-Resolution Cancer Lineage Tracing from Single-Cell Methylation Data

Safari, M., et al.

Vector Remarkable Research Symposium 2025

2025
Poster ML in genomics

Evidence for a Striking Convergence of Extreme Environment-Associated Genomic Signatures

Butler, J. W., Safari, M., et al.

EMGS Conference 2025

2025
Poster ML in genomics

From Extreme Life to Genomic Insights: Optimized parameters for extremophile genomic signature classification

Safari, M., et al.

EMGS Conference 2024

2024
Poster ML in genomics

Optimized machine learning methods permit the discovery of an environmental component of genomic signatures

Butler, J. W., Safari, M., et al.

EMGS Conference 2024

2024
Poster DNA Foundation Models Representation Learning

BarcodeBERT: Transformers for Biodiversity Analysis

Millán Arias, P., Sadjadi, N., Safari, M., et al.

Workshop on Self-Supervised Learning – NeurIPS 2023

2023

How I Enjoy Life

Biking
Travelling
Reading