Abstract
Modern electron microscopy is undergoing a data revolution, with next-generation detectors capable of producing terabytes of data per hour. This surge in data volume necessitates a shift from manual, localized processing to automated, high-performance computing (HPC) workflows. This paper describes the development and implementation of an automated pipeline linking the Dynamic PicoProbe at Argonne National Laboratory to the Polaris supercomputer. Utilizing the Gladier framework and Globus automation services, the system enables near real-time analysis and FAIR (Findable, Accessible, Interoperable, and Reusable) data management, effectively closing the loop between experimental observation and computational discovery.
Introduction
The Dynamic PicoProbe is a cutting-edge analytical electron-optical beam line designed for high-resolution imaging and spectroscopy. As the instrument undergoes upgrades, its data output is projected to scale from hundreds of gigabytes per day to an estimated 200 terabytes per hour. Traditional laboratory infrastructure—relying on local workstations and manual data handling—is insufficient to manage this velocity. Without automated intervention, data often remains idle, creating a bottleneck that delays scientific insight and risks the loss of critical experimental metadata.
To address these challenges, we have developed a modular software architecture that automates the entire data lifecycle: from the moment a file is captured at the microscope to its analysis on a supercomputer and its eventual publication in a searchable repository.
Methodology
The system is built upon the Gladier (Globus Architecture for Data-Intensive Experimental Research) framework, which orchestrates complex distributed workflows. The pipeline is divided into three primary functional stages:
1. Automated Data Transfer
A Python-based "watchdog" application monitors the microscope's local storage for new files in the Electron Microscopy Dataset (EMD) format. Upon detection, the application triggers a secure, high-speed transfer via Globus to the "Eagle" storage system at the Argonne Leadership Computing Facility (ALCF).
2. Remote Analysis and Function-as-a-Service (FaaS)
Once the data reaches the ALCF, the pipeline utilizes Globus Compute to initiate analysis on the Polaris supercomputer. This stage supports diverse computational needs:
- Physics-based Processing: Used for hyperspectral data to extract chemical signatures.
- Deep Learning Inference: A YOLOv8 model is employed for real-time object detection and tracking of nanoparticles in spatiotemporal datasets.
3. FAIR Data Publication
To ensure scientific reproducibility, results and metadata are automatically indexed using Globus Search. A web-based portal, developed with the Django Globus Portal Framework (DGPF), provides a centralized interface for researchers to discover, visualize, and download experimental results.
Experimental Use Cases
The pipeline was validated using two distinct scientific scenarios:
- Hyperspectral Imaging: Analysis of a polyamide organic film used for capturing heavy metals (Cu, Zn, Pb) from water. The data consists of a 3D tensor (spatial dimensions plus an energy spectrum), requiring intensive spectral unmixing.
- Spatiotemporal Imaging: A 600-frame video sequence capturing the motion of gold nanoparticles on a carbon substrate. To enable AI-driven tracking, a YOLOv8s model was fine-tuned using a subset of frames hand-labeled via Roboflow.
Results and Discussion
Performance and Latency
The automated system demonstrated high throughput, successfully processing 72 hyperspectral runs and 18 spatiotemporal runs within a single hour. For spatiotemporal datasets (approximately 1.2GB), the median completion time was 224 seconds. This latency is low enough to allow researchers to review AI-processed results while the sample remains under the microscope, enabling "on-the-fly" experimental steering.
Orchestration Efficiency
Analysis of the workflow revealed that orchestration overhead—the time spent polling and managing tasks—varies significantly with file size. For smaller hyperspectral files (91MB), overhead accounted for 49.2% of the total runtime. However, for larger 1.2GB files, this overhead dropped to 21.1%, as the actual data transfer and computation became the dominant factors.
AI Accuracy
The fine-tuned YOLOv8 model achieved a mean Average Precision (mAP50-95) of 0.801. This high level of accuracy confirms the system's ability to reliably track nanoparticle dynamics even within the noisy environment of high-speed electron microscopy streams.
Limitations and Future Work
While the pipeline successfully links the microscope to HPC resources, a primary bottleneck remains the local laboratory network, currently limited by a 1 Gbps switch. Future upgrades to a 200 Gbps backbone are essential to support the next generation of high-speed detectors. Additionally, the transition to 4D tensors (combining spectral and temporal dimensions) will require advanced data compression techniques and further optimization of the Globus Compute polling strategies to minimize latency.
Conclusion
By integrating the Dynamic PicoProbe with the Polaris supercomputer through an automated Globus-based pipeline, we have moved beyond simple data collection toward computationally mediated science. This "closed-loop" approach not only accelerates the pace of discovery but also ensures that the massive volumes of data generated by modern instruments are preserved and utilized according to FAIR principles.
Summary updated