Abstract
Connectomics provides nanometer-resolution, synapse-level maps of neural circuits essential for understanding brain activity and behavior. However, the physical acquisition of electron microscopy (EM) images has become the primary rate-limiting step in automated connectomics. We present SmartEM, an approach that integrates machine learning directly into the real-time image acquisition loop of a single-beam scanning electron microscope (SEM). By employing a "scan fast, then selectively re-scan slow" strategy guided by error-prediction neural networks, SmartEM achieves up to a 7-fold acceleration in acquisition time without sacrificing segmentation accuracy. We demonstrate the efficacy of this method across various specimens, including nematodes, mice, and human brain tissue.
Introduction
Mapping the complex wiring diagrams of the brain requires imaging massive volumes of tissue at nanometer resolution. Historically, data analysis—specifically the segmentation of neurons—was the bottleneck. Recent advances in deep learning have significantly accelerated automated segmentation, shifting the bottleneck back to the physical imaging process. Standard SEMs typically use a uniform dwell time across the entire sample to ensure sufficient signal-to-noise ratios for segmentation. This approach is highly inefficient as brain tissue is spatially heterogeneous; large areas are relatively easy to segment and do not require the same exposure time as dense, complex synaptic regions.
The SmartEM Pipeline
SmartEM transforms the microscope into an intelligent, data-aware sensor. The workflow consists of four primary stages:
- Ultrafast Initial Scan: The entire field of view is first scanned at a very low dwell time (e.g., 25–75 ns/pixel).
- Real-Time Error Prediction (
ERRNET): A U-Net-based convolutional neural network analyzes the fast scan to predict regions where automated segmentation is likely to fail (e.g., causing erroneous merges or splits of neurons). - Targeted Re-scanning: The microscope is directed to return only to these high-risk or high-interest subareas (such as synaptic clefts identified by a
MUSTINCLUDEmodule) to perform a slow, high-quality scan (e.g., 800–1200 ns/pixel). - Intelligent Fusion (
FUSED2MB): Fast and slow pixels are fused into a composite image. A specialized segmentation network then generates the final membrane map. To ensure visual consistency for human reviewers, a GAN-based Image Homogenizer is used to smooth the transitions between different dwell-time patches.
Key Insights and Results
The 75/25 Rule
A critical finding of this work is that approximately 75% of typical brain tissue can be accurately segmented using very short dwell times. Only about 25% of the tissue—the "hard" regions—actually requires the slow, high-quality scan. By focusing resources on these regions, SmartEM optimizes the "time budget" of the electron beam.
Speed and Accuracy Parity
SmartEM achieved a ~7-fold acceleration in total acquisition time compared to traditional uniform scanning. For example, imaging a 1 Terabyte volume of mouse cortex, which would traditionally take 250 hours, was completed in just 60 hours. Crucially, the segmentation accuracy of SmartEM composite images, measured by Variation of Information (VI), was statistically indistinguishable from images taken entirely at slow speeds.
Generalizability and Accessibility
The system was validated across multiple species, including C. elegans, Drosophila, zebrafish, and human brain biopsies. Furthermore, SmartEM democratizes high-throughput connectomics by allowing researchers with standard, affordable single-beam SEMs to achieve imaging speeds previously reserved for rare and expensive multi-beam systems.
Conclusion
SmartEM represents a paradigm shift from blind data collection to active, intelligent sensing in electron microscopy. By integrating machine learning into the hardware control loop, it effectively removes the imaging bottleneck in connectomics. Future work may involve integrating these adaptive strategies into multi-beam SEM hardware to achieve even more dramatic speedups in whole-brain reconstruction.
Summary updated