Work

Building Automated Microscopes: Rewards Are All We Need (Now)

Year: 2025
Type: article
Abstract: Fifteen years ago, our team proposed that integrating machine learning with electron microscopy could lead to the development of “thinking microscopes” [1]. Over the past decade, advancements in machine learning, computer vision, robotics, and autonomous systems have driven a broad interest in this field [2-4]. Currently, it is recognized that implementing autonomous microscopy requires three key components, namely: (1) engineering controls that enable machine learning agents to execute operations directly on the microscope, (2) machine learning methods capable of analyzing imaging and spectral data, and (3) structured workflows that define the decision-making processes of autonomous systems [5]. While major instrument manufacturers are now providing APIs and engineering interfaces to facilitate automation, and an extensive suite of machine learning methods is available, the core challenge remains: what tasks should automated microscopes perform, and how should their success be measured? Based on the automated microscopy experiments developed to date and analyzing human decision making as reflected in our experience and publications, we pose that autonomous microscopy is possible only if a clear reward function can be defined - a measurable criterion that determines the success of an experiment. Once a reward function is established, autonomous microscopy can be constructed via the optimization of predefined workflows, or defined as search problems in the space of possible microscope operations. These operations, expressed in instrument-specific hyperlanguages, can then be executed sequentially by an autonomous agent controlling the microscope. We illustrate the broad range of rewards that can drive autonomous workflows, including imaging optimization, structure-property relationship discovery [6,7], feature-based exploration [8], and physics learning [9]. These can be further used to co-orchestrate several tools and bring theory in the loop [10-12]. The implementation of these reward-driven workflows will be demonstrated using the Thermo Fisher Spectra and Oxford Instruments Jupiter platforms, showcasing real-world cases of autonomous microscopy. We present methods for implementing human-in-the-loop automation, where the operator guides and refines the reward function, and introduce quantitative benchmarks for evaluating the acceleration in knowledge discovery compared to traditional human-operated workflows. Finally, we outline the integration of reasoning-driven foundational models with bottom-up optimization to further enhance automated experimentation. We propose that the continued development of autonomous microscopy will require several key elements. First, internal benchmarks must be established to provide quantitative, verifiable measures of performance compared to traditional human operation. Second, external benchmarks are needed to assess how microscopy accelerates progress in specific scientific domains that rely on its results—moving beyond standard ML performance metrics to measure real-world impact. Third, integrated workflows must be developed to connect microscopy with upstream processes like sample selection and downstream applications such as physics discovery. Finally, while large-scale data infrastructures are crucial for mature applications like semiconductor characterization, they are insufficient for exploratory research where new data is inherently limited. In such cases, reward-based approaches offer a way to encode human expertise while enabling AI-driven exploration of fundamentally new scientific frontiers. The operation of a microscope can be represented as a workflow, i.e. sequence of instrument control operations. The fixed policy workflows are defined with rigid decision-making rules defined before the experiment. The adaptive workflows learn the policies based on myopic (available at each step) or sparse (available at the end of the experiment) rewards. Rewards can be tuned by human operator during the experiment, giving rise to human in the loop experiment. The simple paradigm for human in the loop automated experiment is based on using the classical monitoring functions and dynamic tuning of reward function and policy hyperparameters (exploration-exploitation balance). In current microscopy paradigm (a), decision making and command execution is performed by human based on real time data. (b) The human in the loop AE the ML agent issues commands and analyzes raw data streams, whereas human operator dynamically tunes the behavior of ML agent. This approach allows to make decision on the intrinsic microscopy time scale. (c) In the future, reward functions can be dynamically defined and tested by the LLM/reasoning system-based co-scientists.
Language: English
Open Access status: bronze
OpenAlex ID: W4412908528
FWCI:
Cites: 12
Cited by:
Related to: 10