A Reproducible Microscopy Acquisition Pipeline and Microscopy-Aware Attention for Classification, Detection, and Segmentation of Microorganisms
Aleksei Samarin, Artem Nazarenko, Dmitry Nazarenko, Julia Afonina, Egor Kotenko, Aleksandra Dozortseva, Anastasia Mamaeva, Alexander Savelev,
Key points
From the paper's conclusion- It consistently yields the best results, raising weighted F1 for classification from 0.947 to 0.975 (DINOv3), mAP50 for detection from 0.901 to 0.928 (InternImage-H), and mIoU for segmentation from 0.834 to 0.862 (SegMAN), with component-wise ablations showing task-specific contributions of each prior.
Abstract
Automated microscopic image analysis is essential for quantitative microbiology, yet manual acquisition and generic recognition models struggle with morphological variability and scene artifacts. We address both ends of this pipeline. First, we present a low-cost, open-source acquisition system, based on an Arduino UNO R3 microcontroller and NEMA 17 stepper motors, that automates focusing, magnification, and illumination on microscopes from the Levenhuk MED series, including the Levenhuk MED 20T, MED 25T, MED 30T, MED 35T, and MED 40T, and applies a standardized, programmable control procedure intended to improve the reproducibility of imaging conditions. Using this system, we construct a benchmark of 100,000 microscopy images across five classes (micrococci, diplococci, streptococci, bacilli, and background), with annotations for classification, detection, and segmentation. Second, we propose Microscopy-Aware Attention (MAA), which augments standard self-attention with six learnable, biologically motivated priors capturing cell boundaries, focus quality, internal-structure contrast, spatial compactness, shape, and local density. MAA is evaluated on six classification backbones, six detection backbones, and five segmentation backbones against no-attention, Squeeze-and-Excitation, spatial-attention, and CBAM baselines. It consistently yields the best results, raising weighted F1 for classification from 0.947 to 0.975 (DINOv3), mAP50 for detection from 0.901 to 0.928 (InternImage-H), and mIoU for segmentation from 0.834 to 0.862 (SegMAN), with component-wise ablations showing task-specific contributions of each prior.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- An interactive class-agnostic detection framework for generalizable colony counting.Frontiers in microbiology · 2026
- MaxViT-Backbone Mask R-CNN for Bacterial Cell Detection and Instance Segmentation: Toward Antimicrobial Resistance AnalysisElectronics · 2026
- BactSegNet: A Growth-Stage-Aware, Searched Instance-Segmentation Model for Salmonella and Escherichia coli Microcolonies in Pure-Culture Bright-Field Microscopy with a Food-Matrix Surrogate.Journal of imaging · 2026
- Microscope control with a natural language agentbioRxiv · 2026
- Artificial-intelligence-driven segmentation and analysis of microbial cellsJournal of Biomedical Optics · 2026
- Knowledge-Guided Skills Agent for Microbial Colony Detection in Automated Laboratory Testing.IEEE journal of biomedical and health informatics · 2026