Abstract
Uni-AIMS is an end-to-end AI platform designed to automate the complex task of identifying and measuring thousands of densely packed, multi-scale objects in microscopy images. By combining a novel flow-based segmentation model with a synthetic data engine powered by latent diffusion models, Uni-AIMS achieves state-of-the-art accuracy. The system provides a "one-click" solution that transitions from raw microscopic data to comprehensive statistical reports, addressing the critical bottlenecks of manual analysis and data scarcity in materials science and biology.
Introduction
Microscopy serves as a cornerstone for research in materials science and biology. However, the quantitative analysis of resulting images remains a significant bottleneck. Researchers frequently encounter "crowded" scenes where a single frame may contain thousands of touching or overlapping nanoparticles, pores, or cells. Traditional manual analysis is prohibitively slow and prone to subjectivity. Meanwhile, standard computer vision architectures, such as Mask R-CNN, often struggle with extreme instance density, significant scale variance within a single frame, and the inherent scarcity of high-quality annotated microscopy datasets.
System Architecture
The Uni-AIMS system architecture, illustrating the workflow from microscopic imaging data to intelligent analysis reports. Uni-AIMS: AI-Powered Microscopy Image Analysis, page 3
The Uni-AIMS framework is a systematic solution comprising three main pillars: a flow-based segmentation model, a robust data engine, and automated scale bar recognition. As shown in Figure 1, this integrated approach allows for seamless processing from various characterization instruments (STEM, SEM, TEM, OM) and imaging modes (EBSD, SEI, BEI) to final intelligent analysis reports. The platform supports diverse industry applications ranging from new energy and alloys to catalysts and cell biology.
Methodology
Flow-based Segmentation
To overcome the limitations of traditional anchor-box methods in dense environments, Uni-AIMS utilizes a flow-based segmentation model. Instead of predicting bounding boxes, the model predicts 2D flow fields—directional vectors pointing toward the center of each object—and foreground skeletons. By applying modified Euler integration to these fields, the system can precisely delineate thousands of touching instances, even when boundaries are blurred or objects are highly deformed.
The Data Engine
Examples of synthetic data generation using diffusion models and text prompts to address data scarcity. Uni-AIMS: AI-Powered Microscopy Image Analysis, page 4
To address the lack of annotated data, the researchers implemented a "data flywheel" approach. They fine-tuned latent diffusion models (SDXL) using Low-Rank Adaptation (LoRA) on very small subsets of real images (typically 3-5 samples). This allowed for the generation of thousands of realistic synthetic images. As illustrated in Figure 2, text prompts and ControlNet were employed to ensure these synthetic images were perfectly aligned with corresponding segmentation masks, providing a rich source of training data for "long-tail" material scenarios that are otherwise difficult to annotate manually.
Automated Scale Bar Recognition
Scientific actionability requires converting pixel measurements into physical units (e.g., nanometers). Uni-AIMS incorporates a multi-stage pipeline using YOLOv8 for detection and PaddleOCR for text recognition to localize scale bar endpoints with sub-pixel precision. This allows the platform to automatically calculate physical metrics like diameter, area, and sphericity without manual intervention.
Datasets and Results
The study introduced UniEM-3M, a large-scale instance segmentation dataset containing 5,091 Electron Microscopy (EM) images and approximately 3 million annotated instances. In performance benchmarks, Uni-AIMS achieved a mean Average Precision ([email protected]) of 0.787 on dense datasets, significantly outperforming established models like Cellpose-SAM (0.760). Furthermore, the system demonstrated 100% accuracy in scale bar unit recognition and high efficiency, processing standard 1k x 1k images in approximately 3 seconds on a single NVIDIA 4090 GPU.
Conclusion and Future Work
Uni-AIMS represents a significant advancement in automating microscopy analysis. By treating scale bars as critical data and leveraging synthetic data generation, the platform provides a robust, scalable solution for high-throughput scientific research. Future work will focus on optimizing inference speeds for real-time applications, such as Focused Ion Beam (FIB) milling, and expanding the model toward a "segment anything" framework for microscopy to further reduce the need for scenario-specific fine-tuning.
Summary updated