A Reproducible Microscopy Acquisition Pipeline and Microscopy-Aware Attention for Classification, Detection, and Segmentation of Microorganisms

Machine Learning and Knowledge Extraction, 2026

Full text Open access: Gold Metadata (CSL-JSON)
DOI 10.3390/make8100330
Data confidence 70 medium
How this score is calculated

It is built from checkable properties of the record itself: whether the article has a DOI, how many independent sources confirmed its data, whether the required fields are filled in, and how recent the latest confirmation is. Disagreement between sources and a missing identifier lower it. A value of 80 or above means the record was published without further checking; 60 to 79 means it is published at reduced confidence, with a manual check advisable. A record verified by an editor by hand is never pushed below 90 by a recalculation. This scores our data about the article, not the article itself.

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.