SmartEM: machine-learning guided electron microscopy

Yaron Meirovitch, Ishaan Singh Chandok, Core Francisco Park, Pavel Potocek, Mi Lu, Shashata Sawmya, Yicong Li, Thomas L. Athey, Vladislav Susoy, Neha Karlupia, Yuelong Wu, Daniel R. Berger, Richard Schalek, Caitlyn Bishop, Daniel Xenes, H. Martínez, Jordan Matelsky, Brock A. Wester, Hanspeter Pfister, Remco Schoenmakers, Maurice Peemen, Jeff W. Lichtman, Aravinthan D. T. Samuel, Nir ShavitbioRxiv 2023

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:

  1. Ultrafast Initial Scan: The entire field of view is first scanned at a very low dwell time (e.g., 25–75 ns/pixel).
  2. 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).
  3. 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 MUSTINCLUDE module) to perform a slow, high-quality scan (e.g., 800–1200 ns/pixel).
  4. 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.
Figure 1: SmartEM workflow and performance metrics. (A) Progression from high-error fast scans to corrected slow scans. (B) Relationship between dwell time and segmentation error (VI). (C) Comparison of 'hard' vs 'easy' regions for segmentation. (D) Distribution of dwell times required to reach segmentation criteria.

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

BibTeX
@misc{meirovitch2023smartem,
  author = {Yaron Meirovitch and Ishaan Singh Chandok and Core Francisco Park and Pavel Potocek and Mi Lu and Shashata Sawmya and Yicong Li and Thomas L. Athey and Vladislav Susoy and Neha Karlupia and Yuelong Wu and Daniel R. Berger and Richard Schalek and Caitlyn Bishop and Daniel Xenes and H. Martínez and Jordan Matelsky and Brock A. Wester and Hanspeter Pfister and Remco Schoenmakers and Maurice Peemen and Jeff W. Lichtman and Aravinthan D. T. Samuel and Nir Shavit},
  title = {{SmartEM: machine-learning guided electron microscopy}},
  year = {2023},
  doi = {10.1101/2023.10.05.561103},
  howpublished = {bioRxiv},
}
Figure