Quality-aware autonomous workflow with active oversight

The dual machine learning agent system addresses the limitations of predefined scalarizer functions by dynamically adjusting the acquisition space for high-quality data, enhancing workflow efficiency and accuracy in materials design and development.

US20260377767A1Pending Publication Date: 2026-11-26UT BATTELLE LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/685542
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2025-05-22
Filing Date
2026-05-22
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing machine learning-based workflows for materials design and development face limitations due to the inflexibility of predefined scalarizer functions, which fail to adapt to unanticipated data variations and quality issues, leading to unreliable surrogate models and misleading data influences.

Method used

A system employing dual machine learning agents, where a first agent uses a scalarizer function for primary control and a second agent dynamically adjusts the acquisition space based on real-time quality assessment, ensuring high-quality data is used for training and exploration.

Benefits of technology

This approach enhances workflow efficiency and reliability by constraining the acquisition space to high-quality data, improving convergence and discovery accuracy by avoiding erroneous data influences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260377767A1-D00000_ABST
    Figure US20260377767A1-D00000_ABST
Patent Text Reader

Abstract

A system for controlling a workflow using two machine learning agents is provided. A first machine learning (ML) agent is used for primary and a second ML agent is used for supervisory control. The workflow comprises a plurality of iterations. Each iteration uses an acquisition parameter (or combination thereof) from an acquisition space. The first ML agent uses an acquisition function to select an acquisition parameter (or combination thereof) for a next iteration based on predictions. The second ML agent, concurrently with the execution of the first ML agent, determines a quality score of measurement data and updates the acquisition function based on the predicted quality scores for the acquisition space and a score threshold to constrain a selection of acquisition parameter (or combination thereof) for a next iteration. The quality score may be user input or automatically determined based on a comparison of the measurement data with a reference.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims the benefit of U.S. Provisional Application No. 63 / 810,255, filed on May 22, 2025, which is incorporated by reference herein in its entirety.STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT

[0002] This invention was made with Government support under DE-AC05-00OR22725 awarded by US Department of Energy. The Government has certain rights to this invention.FIELD OF THE DISCLOSURE

[0003] The disclosure relates generally to computers, computer applications using machine learning for autonomous instrumentation with or without a human in the loop.BACKGROUND

[0004] The combination of automation and machine learning techniques has ushered in a transformative era of autonomous workflows such as revolutionizing materials design and development by accelerating discovery through high-throughput processes and data-driven decision-making.

[0005] For example, certain techniques such as Bayesian Optimization (BO) play a pivotal role in an autonomous workflow for efficient development and exploration across extensive acquisition conditions. BO starts by making a statistical approximation of an unknown objective function in an acquisition space, called a surrogate model, based on results from previously conducted iterations of a workflow.

[0006] Various different surrogate models may be used in conjunction with BO, such as, but not limited to, random forest, neural network and / or a Gaussian Process (GP). GP has a non-parametric nature and built-in uncertainty quantification. Once the surrogate model is constructed, a variety of acquisition functions can be used to determine the next acquisition parameter (or a combination of acquisition parameters) that potentially reduce the surrogate's uncertainty, approach a global optimum, or maximize understanding of the system. The combination of BO with GP is referred to herein as GPBO. The GPBO balances exploration and exploitation of the acquisition space to identify and discover acquisition parameter (or combinations thereof) which achieve the objective using less than a maximum iteration available for the workflow.

[0007] Minimizing the iterations may be important to reduce the time and cost associated with the design and development of materials for manufacture. For example, depending on the workflow, time it takes for a single iteration may be minutes or hours. Additionally, depending the workflow, the acquisition space may have a large number of dimensions (number of parameters or variables which may be changed to affect the properties of the material).

[0008] GPBO may be used in various applications including in many material science areas, from theoretical predictions and materials design to materials synthesis and characterization. For example, GPBO has been used for the prediction of crystal structures and for theoretical design of materials such as, efficiently acquiring target properties including carbon nanotube growth, chemical synthesis, physical vapor deposition, and additive manufacturing. GPBO may be used with various instruments including in piezoresponse force microscopy (PFM), scanning tunneling microscopy, and scanning transmission electron microscopy.

[0009] For example, the GP may be used to the relationship between inputs, e.g., chemical compositions, synthesis parameters, and characterization parameters, and outputs, e.g., target material properties. If target properties are quantifiable through scalar measurements, then scalar descriptors of target properties can be directly employed with the corresponding input parameters (acquisition parameter or a combination thereof) for GP training. However, in many real-world experiments, material properties are characterized from non-scalar data like spectroscopy, images, hyperspectral images, or higher dimensional and multi-modal data. This necessitates the use of “scalarizer functions” that derive meaningful scalar descriptors from the non-scalar raw data; subsequently, these scalar descriptors, instead of the raw data, are employed along with the corresponding measurement or synthesis parameters for GP training. Scalarizer functions can vary from simple functions like peak identification to custom algorithms for specific physical attributes like the coercive field from polarization-voltage hysteresis loops in PFM or even pre-trained neural networks designed to reduce high-dimensional data into simpler physical descriptors. A scalarizer function may be predefined before a workflow based on prior knowledge or expectation of outcomes; then, the same scalarizer function is applied throughout the entire GPBO driven workflow.

[0010] The process of materials and scientific design and development can be intertwined with the framework of “known knowns, known unknowns, unknown knowns, and unknown unknowns”. The “known knowns” represent the established prior knowledge and “known unknowns” are the gaps in current understanding that can be explored.

[0011] Scalarizer functions are often designed based on prior knowledge, e.g., known knowns, so improving scalarizer functions can potentially address expected gaps, e.g., known unknowns, in the workflow. Notably, the real-world complexity of workflows and materials often leads to unanticipated assumptions and phenomena, e.g., unknown knowns and unknown unknowns, which can revolutionize an understanding at the frontier of scientific design and manufacturing. However, predefined scalarizer functions based on prior knowledge often lack the flexibility for analyzing these unanticipated results or adapting to the unexpected variations. For example, a scalarizer function used to identify the maximum peak intensity in spectroscopic data will fail to discern distinct spectra with peaks at different frequency and consequently will assign the identical scalar descriptor to peaks with different meanings, e.g., peaks with the same amplitude but at a different frequency. Additionally, the scalarizer function may ignore other variations in the spectral shape that may only appear in some spectra but indicate significant physical properties such as peak broadening or the presence of multiple peaks, which may impact the design and development.

[0012] Moreover, in real workflows, the occurrence of unanticipated modulations in the data such as additional background signals which may result from unexpected light scattering in optical spectroscopy, complete lack of signal due to error during unsupervised, automated workflows, or any number of other complications, cannot be effectively anticipated during the creation of a scalarizer function. A known GPBO cannot inherently distinguish between high-quality and low quality data. For example, in scanning probe microscopy workflows, a scalarizer function may be designed to extract a morphological feature. However, processing using the scalarizer function may be influenced by the image quality, such as tip scratching or thermal drift. These can distort the true relationship between acquisition parameters and target properties and significantly mislead the surrogate model. For example, the scalarizer function (morphological) may lose its true physical meaning, and hence critical features that influence the material's functionality would be missing. Moreover, using both high-quality and low quality data for training the model will cause unreliability of the surrogate model.

[0013] Therefore, there is a limitation in relying solely on using scalarizer function in combination with the surrogate model, e.g., a single model.SUMMARY

[0014] Accordingly, disclosed is a system which comprises a communication interface and a processor. The communication interface is configured to communicate with an instrument by iteratively performing operations comprising transmitting measurement-acquisition instructions to the instrument, and receiving measurement data associated with a sample from the instrument. The processor is communicatively coupled with the communication interface. The processor comprises a first machine learning (ML) agent and a second ML agent. The processor operates the first ML agent by iteratively performing operations comprising determining a target property from the measurement data received, training, based on the determined target property and associated acquisition parameter or combination thereof, a first model for predicting the same target property using remaining acquisition parameters or combinations thereof in an acquisition space, and updating an acquisition function based on the trained first model. The processor operates the second ML agent iteratively performing first operations comprising determining, automatically a quality score corresponding to the measurement data for a processing measurement data, training, based on the quality score which is determined and associated acquisition parameter or combination thereof, a second model for predicting quality scores using remaining acquisition parameters or combinations thereof in the acquisition space, and adjusting the acquisition function which is updated based on the predicted quality scores and a first threshold. The processor further operates the first ML agent to iteratively perform issuing a measurement-acquisition instruction to the instrument, via the communication interface, based on the acquisition function, which is adjusted.

[0015] In an aspect of the disclosure, the system may further comprise a user interface, and a display. The processor may be further configured to present a representative display of the measurement data for a processing measurement data on the display, and receive, via the user interface, user input assigning a user quality score corresponding to the measurement data as feedback for the representative display, which is displayed. The processor may also further operate the second ML agent by iteratively performing second operations comprising training, based on the user quality score which was assigned to the measurement data for the processing measurement data and associated acquisition parameter or combination thereof, the second model for predicting user quality scores at remaining acquisition parameters or combinations thereof in the acquisition space, and adjusting the acquisition function which is updated based on the predicted user quality scores and a second threshold.

[0016] In an aspect of the disclosure, the system may have a first mode of operation and a second mode of operation for the second ML agent. In the first mode of operation, the processor operates the second ML agent iteratively by performing the first operations. In the second mode of operation, the processor operates the second ML agent by iteratively performing the second operations.

[0017] In an aspect of the disclosure, the user interface may be configured to receive a user selection of the first mode of operation or the second mode of operation, and the second ML agent operates based on the user selection.

[0018] In an aspect of the disclosure, a workflow has a plurality of iterations and the mode of operation for the second ML agent may be changed during the workflow such as between iterations.

[0019] In an aspect of the disclosure, the user interface may be configured to receive a user input of a number of iterations that the second ML agent performs which may be a subset of the plurality of iterations.

[0020] In an aspect of the disclosure, the second ML agent may automatically determine the quality score corresponding to the measurement data by comparing the measurement data to reference measurement data based on a metric.

[0021] In an aspect of the disclosure, the user interface may be used to receive a selection of the reference measurement data and / or a selection of the metric.

[0022] In an aspect of the disclosure, the metric may be at least one of a similarity metric, an error metric and a signal quality metric.

[0023] In an aspect of the disclosure, the metric may be normalized to generate the quality score.

[0024] In an aspect of the disclosure, the user interface may be used to receive the first threshold and / or the second threshold.

[0025] In an aspect of the disclosure, the user interface may be used to receive the target property.

[0026] In an aspect of the disclosure, the adjustment of acquisition function removes, portions thereof, corresponding to measurement data for which a quality score is predicted to be below the first threshold or the user quality score is predicted to be below the second threshold.

[0027] In an aspect of the disclosure, the first ML agent and the second ML agent may implement a Gaussian process Bayesian optimization (GPBO).

[0028] In an aspect of the disclosure, the instrument may comprise a spectrometer and the measurement data may comprise one or more spectra associated with a particular location of the sample. In this aspect, the target property may include a maximum amplitude of a peak in the spectra, a frequency associated with a maximum amplitude of a peak in the spectra, a ratio of two peaks in the spectra.

[0029] In an aspect of the disclosure, the instrument may be for synthesizing a material and the acquisition parameter or combination thereof may comprise at least one parameter to synthesize the same. The instrument may comprise a pulsed laser deposition.

[0030] Also, disclosed is a system which comprises a user interface, a communication interface, a display and a processor. The communication interface is configured to communicate with an instrument by iteratively performing operations comprising transmitting measurement-acquisition instructions to the instrument, and receiving measurement data associated with a sample from the instrument. The processor is communicatively coupled with the communication interface. The processor comprises a first machine learning (ML) agent and a second ML agent. The processor operates the first ML agent by iteratively performing operations comprising determining a target property from the measurement data received, training, based on the determined target property and associated acquisition parameter or combination thereof, a first model for predicting the same target property using remaining acquisition parameters or combinations thereof in an acquisition space, and updating an acquisition function based on the trained first model. The processor is further configured to present a representative display of the measurement data for a processing measurement on the display, and receive, via the user interface, user input assigning a user quality score corresponding to the measurement data as feedback for the representative display, which is displayed. The processor operates the second ML agent iteratively performing operations comprising training, based on the user quality score which was assigned to the measurement data for the processing measurement and associated acquisition parameter or combination thereof, a second model for predicting user quality scores at remaining acquisition parameters or combinations thereof in the acquisition space, and adjusting the acquisition function which is updated based on the predicted user quality scores and a threshold. The processor further operates the first ML agent to iteratively perform issuing the measurement-acquisition to the instrument, via the communication interface, based on the acquisition function, which is adjustedBRIEF DESCRIPTION OF THE DRAWINGS

[0031] FIG. 1 illustrates an example of a dual machine learning agent instrument system in accordance with aspects of the disclosure;

[0032] FIG. 2 illustrates a block diagram of a memory of a terminal in accordance with aspects of the disclosure;

[0033] FIG. 3 illustrates a method for configuring a workflow using dual machine learning agents in accordance with aspects of the disclosure;

[0034] FIG. 4 illustrates an example of controlling a workflow in a first operating mode for the second machine learning agent in accordance with aspects of the disclosure, where the supervisory control is autonomous;

[0035] FIG. 5 illustrates an example method for determining a quality score in accordance with aspects of the disclosure;

[0036] FIG. 6 illustrates an example of controlling a workflow in a second operating mode for the second machine learning agent in accordance with aspects of the disclosure, wherein the supervisory control includes human-in-the loop; and

[0037] FIGS. 7A-7H illustrates results from different controls for determine next acquisition parameters for a workflow, where FIG. 7A illustrates a workflow ground truth for a Raman measurement projected into two acquisition parameter planes, where the upper is projected onto the pressure v. temperature plane and the lower is projected onto plane showing two different energies (E1 v. E2), FIG. 7B illustrates the dual machine learning agent control of next acquisition parameters for the Raman measurement projected on the same planes, FIG. 7C illustrates a random control of next acquisition parameters for the Raman measurement projected on the same planes, FIG. 7D illustrates a single machine learning agent control of next acquisition parameters for the Raman measurement projected on the same plane, FIG. 7E illustrates an reconstruction error comparison for the dual machine learning agents, the random control and the single machine learning agent in terms of root mean square error (RMSE) over the iterations of the workflow and FIGS. 7F-7H illustrates three Raman spectra and associated human in the loop input score (ranking) and Raman score determined from a scalarizer function.DETAILED DESCRIPTION

[0038] Aspects of the disclosure provide systems, methods and programs for controlling a workflow on instrumentation, e.g., one or more instruments. The workflow may include multiple iterations. The control comprises a primary control and a supervisory control. Each control may have a machine learning (ML) agent (e.g., a first ML agent and a second ML agent) (collectively referred as Dual ML agents). The first ML agent may be autonomous. Alternatively, the first ML agent may be executed with a human in the loop. The second ML agent may also be autonomous. Alternatively, the second ML agent may also be executed with human in the loop. Autonomous used herein means that a human (user) may configure an ML agent with settings at the beginning of a workflow, however, during the workflow, the ML agent may function without human intervention. Human in the loop used herein means that in addition to configuring the ML agent with settings at the beginning of a workflow, the human may be involved in the workflow such as to provide feedback such as scoring a representation of a measurement. Automation brings efficiency and reproducibility in the workflow(s). The human in the loop component allows for incorporating the power of human creativity, planning, and hypothesis-making.

[0039] In an aspect of the disclosure, the primary control with the first ML agent may use an acquisition function to select acquisition parameters within an acquisition space for use in an iteration of the workflow (next acquisition parameter or combination thereof). The selection may be based on processed prior measurement data(s) using a scalarizer function.

[0040] In an aspect of the disclosure, the supervisory control with the second ML agent may dynamically adjust the acquisition space (e.g., adjust an acquisition function) based on a real-time assessment of measurement data.

[0041] In an aspect of the disclosure, the supervisory control may act as an adaptive filter, for the acquisition space by assessing the compatibility of the measurement data with the scalarizer function. The adaptive filter effectively constrains the acquisition space based on the assessment which actively adjusts the acquisition space to acquire measurement data which is high-quality data and data compatible with the scalarizer function. This leads to a more effective exploration of the acquisition space and avoids misleading data. Additionally, this leads to improved workflow performance, faster convergence by using measurement data that is directed to target properties and meaningful discoveries rather than being influenced by erroneous for low-quality data.

[0042] In an aspect of the disclosure, the acquisition function may be predefined such as where the first ML agent is autonomous or modifying such as where the first ML agent uses human in the loop.

[0043] In an aspect of the disclosure, in a case where the second ML agent is autonomous, the second ML agent may observe the raw measurement data and assign a quality score to the same. In other aspects, the second ML agent may first convert the raw measurement data using an observer function prior to assigning a quality score.

[0044] In an aspect of the disclosure, the quality score may be based on a comparison with a reference.

[0045] In an aspect of the disclosure, the second ML agent may implement a second model(s) and use the assigned quality score to train the second ML model(s) with the acquisition parameter (or combination of parameters used to acquire the measurement data). For example, the second model may include Bayesian Optimization (BO).

[0046] In an aspect of the disclosure, additionally the second ML agent may use the second model(s), which may also implement a surrogate model to predict a quality score for the acquisition space (all combinations of parameters). The second ML agent may then use the predicted quality scores to constrain the acquisition function which is used by the primary control (e.g., first ML agent) to select next acquisition parameter (or a combination thereof).

[0047] In an aspect of the disclosure, the surrogate model may be gaussian process (GP).

[0048] In an aspect of the disclosure, in a case where the second ML agent uses a human in the loop, the second ML agent may receive a user input score associated with selected measurement data. Based on the received user input score, the second ML agent assigns a user quality score to the measurement data and trains the second ML model based on the user quality score and the acquisition parameter (or combination of parameters used to acquire the measurement data).

[0049] As illustrated in FIG. 1, a dual machine learning (ML) agent instrument system 4 may comprise an instrument 1 and a terminal 10. In an aspect of the disclosure, the instrument 1 may be scanning probe microscope (SPM) such as a scanning force microscope (SFM) including atomic force microscope (ATM) including an infra-red mode (IR) or mass spectrometry mode (MS), a band excitation piezoresponse microscope (PFM) (BEPFM), a scanning transmission electron microscope (STEM), scanning tunneling microscope (STM), SEM-EL (cathodoluminescence), electron energy loss spectroscopy (EELS), energy dispersive x-ray spectroscopy (EDX), time-of-fight second ion mass spectrometry (ToF-SIMS), band excitation piezoresponse spectroscopy (BEPS), etc.

[0050] In FIG. 1, only one instrument 1 is shown. However, the workflow is not limited to being performed on a single instrument. Depending on the workflow multiple instruments may be used. For example, in electrochemical workflows multiple instruments such as, but not limited to, a mass flow controller, syringe pump, fraction collector, and potentiostat, may be used.

[0051] In some aspects, the instrument 1 may provide measurement data for an optical image (such as in microscope mode). However, in other aspects, the measurement data may be for a spectral image (such as in spectroscope mode). In other aspects, the measurement data may be in the form of optical, electrical or mechanical properties including current, voltage, hardness, thermal conductivity, electrical conductivity, tensile modulus, tensile strength, refractive index, etc. These are non-limiting examples of measurement data.

[0052] In some aspects, two instruments may be used to correlate to two different measurements. For example, physical surface structure (such as illustrated in an optical image) may be correlated to certain spectral properties. Thus, one instrument may be used to acquire optical images at certain locations on a sample, and another instrument may be used for acquiring a spectral image at the same location (spectrometer). Alternatively, the same instrument may be used to acquire both.

[0053] The spectral images may include electron energy loss spectroscopy (EELS), energy dispersive x-ray spectroscopy (EDX), time-of-fight second ion mass spectrometry (ToF-SIMS), band excitation piezoresponse spectroscopy (BEPS), Raman spectrum, etc. . . .

[0054] The components within a specific instrument may be instrument specific. For example, an instrument 1 may comprise light source(s), optics, mirrors, light scanning device (gimbals), cantilevers, etc. to obtain image(s) of a sample (held by a sample holder).

[0055] An instrument 1 may also comprise sensors, such as current or voltage sensors.

[0056] The instrument 1 may comprise a communication interface (not shown) to communicate with the terminal 10 to receive acquisition parameter(s) and send measurement data. The communication interface may include a USB port such as for a wired communication interface. A data acquisition card (DAQ) such as from National Instruments may be connected to the communication interface. Alternatively, the communication interface may be a wireless interface and the DAQ may be co-located with the terminal 10.

[0057] The instrument 1 may also comprise an on-board processor and memory (both not shown). The memory may store the acquisition parameter(s) and / or measurement data. The processor may control one or more components of the instrument to acquire the measurement data using the acquisition parameter(s).

[0058] The terminal 10 comprises a processor 20, a memory 30, a user interface 35, a display 40 and a communication interface 45.

[0059] The processor 20 may be one or more central processing unit(s) CPUs. The processor 20 may also be one or more graphics processing unit(s) GPUs. For example, the GPU may be used for training and prediction where the acquisition space has multiple dimensions (e.g., more than several parameters) and the load may become large. The GPU may perform the training in less time than a CPU. In other aspects of the disclosure, the processor 20 may be a microcontroller or microprocessor or any other processing hardware such as a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC). In an aspect of the disclosure, the processor 20 may be configured to execute one or more programs stored in a memory 30 to execute the functionality described herein. The memory 30 can be, for example, RAM, persistent storage, or removable storage. The memory 30 may be any piece of hardware that is capable of storing information, such as, for example without limitation, data, programs, instructions, program code, and / or other suitable information, either on a temporary basis and / or a permanent basis. One CPU or GPU may execute the functionality described herein or multiple CPUs or GPUs may collectively execute the functionality described herein. For example, a GPU may be used to learn the relationships (model parameters) including training and prediction and a CPU may be used subsequently for completing the control for the workflow. Additionally, the CPU may be used for determining quality scores.

[0060] In some aspects of the disclosure, the memory 30 may contain a program or framework to interact with an instrument 1 such as, but not limited to, Lab View.

[0061] The processor 20 may be connected to the instrument(s) 1 via a communication interface 45 and the DAQ. For example, the communication interface may be a USB and connected to the DAQ.

[0062] The processor 20 may implement a first ML agent 25A (used in primary control) and a second ML agent 25B (for supervisory control).

[0063] The first ML agent 25A may comprise one or more ML models (first models 100). One model may be used to learn a relationship between a selected property as defined by a scalarizer function and the acquisition parameter used to acquire the measurement data (or a combination of acquisition parameters) and another model, e.g., a surrogate model, may be used to predict the selected property which may be acquired using other acquisition parameter (or a combination thereof) in the parameter space. In some aspects of the disclosure, the first models 100 may include BO. The surrogate model may include a random forest, a neutral network of connected layers or a GP. For example, the first models 100 may include a combination of BO and GP (first GPBO). The surrogate model includes an acquisition function. The acquisition function may balance exploration and exploitation. In some aspects, the acquisition function may be based on probability of improvement (PI), expected improvement (EI), upper confidence bounds (ECB), maximum uncertainty (MU) or Thompson Sampling.

[0064] The second ML agent 25B may also comprise one or more ML models (second models 105). One model may be used to learn a relationship between a quality score (automatic or user input) and the acquisition parameter (or a combination thereof) used to acquire the measurement data and another model, e.g., a surrogate model, may be used to predict the quality score for the remaining acquisition space. Similarly, ML models may be used for the second models 105 as the first models 100 (e.g., BO and GP) (second GPBO).

[0065] The user interface 35 may be any type of interface to interact with the processor 20 such as a touch screen superposed on the display 40 (in this case the UI and the display are the same). In some aspects, the user interface 35 may be a graphic user interface (GUI) having one or more screens, menus or items. The following description refers to GUI, however, the user interface 35 is not limited to a GUI.

[0066] The user interface 35 may be used to define the workflow and configure the first and second ML agents 25A, 25B.

[0067] The GUI may be used to define the acquisition space 144, e.g., one or more parameters used to acquire measurement data. The one or more parameters may be workflow specific. The parameters may include chamber pressure, synthesis temperature, time, energy of light, chemicals used (materials), ratios, flow rates, voltage bias, etc. Additionally, the GUI may be used to select an acquisition function and define the parameters associated with the same such as weight coefficient (acquisition function settings 142). The GUI may also be used to select an instrument 1, define the scalarizer function 140 and a target measurement. The scalarizer function 140 may be based on a target measurement. For example, a target measurement for a PFM may be a hysteresis loop and the representations (via a scalarizer function 140) may be the properties reflected in the polarization-electric hysteresis loops, e.g., hysteresis loop area, loop width, loop centroid, coercive field, nucleation bias, etc. The hysteresis loop area or loop width reflects the strength of polarization, which may be different in on-plane a domain, out-of-plane c domains, and domain walls.

[0068] The scalarizer function 140 may define items of interest in a spectrum including a peak, a highest two peaks ratio, peak width, etc. The scalarizer function 140 may also be used to determine certain electrical, optical, or mechanical properties from sensors.

[0069] The GUI may also be used to set the number of iterations for the workflow (budget) and number of seed points to start the model training (collectively workflow parameters 146).

[0070] In some aspects, the GUI may also be used to select the first models 100 used by the first ML agent 25A.

[0071] In some aspects, the GUI may also be used for supervised learning for the seed points, e.g., enabling the user to vote or rate a displayed representation of the measurements from the seed points. The seed points are within the acquisition space 144 and may be randomly set by the first ML agent 25A or specifically selected by the user.

[0072] In some aspects, the GUI may also be used to set a mode of operation for the first ML agent 25A (one of autonomous or human in the loop) (e.g., mode flag 148). In a case where the human in the loop is set, the GUI may be used to provide feedback to the first ML agent 25A during the workflow.

[0073] The feedback to the first ML agent 25A may include voting on representations of measurement data during the workflow, changing the acquisition function or parameter thereof 142 and / or changing the measurement or scalarizer function 140.

[0074] The supervised learning is used by the first models 100 of the first ML agent 25A to generate a human guided objective function (e.g., learn the relationships).

[0075] The GUI may also be used to set the mode of operation for the second ML agent 25B (from among the autonomous mode and the human in the loop mode) (e.g., mode flag 126). In the autonomous mode, the second ML agent 25B determines the quality score automatically and in the human in the loop mode, the user inputs a user score or ranking based on an observation of a representation of the measurement data.

[0076] The GUI may also be used to define additional settings for each respective mode of operation.

[0077] For example, the settings for the autonomous mode may comprise a reference 114, a scoring metric 122 and a first threshold 120A.

[0078] In an aspect of the disclosure, in a case where the second ML agent 25B converts the measurement data prior to determining the quality score, an observer function set via the GUI. The observer function may be used by the second ML agent to convert the measurement data into a selected property. In some aspects of the disclosure, the observer function may be the same as the set scalarizer function.

[0079] The GUI may also be used to define the reference 114. The reference 114 is a known version of the selected property (or the measurement data). The reference 114 is used as a basis for comparison with measurement data 110 (or converted measurement data).

[0080] The form of the reference 114 may be based on the workflow. For example, in an aspect of the disclosure, the reference 114 may be a reference spectrum. The reference spectrum is based on prior knowledge about the workflow. In an aspect of the disclosure, the reference 114 may be a final result of a prior workflow (last iteration). The user may select a file or a memory location for the reference 114. In an aspect of the disclosure, the reference 114 may be stored in the instrument 1. In other aspects, the reference 114 may be obtained via the Internet from a server or a public repository. For example, the user may identify the reference 114 by entering a URL of the location where the reference 114 is stored such that, during operation, the second ML agent 25B may obtain the reference 114 using the URL.

[0081] The reference 114 may also be converted using the set observer function or the raw data, e.g., raw spectrum.

[0082] The GUI may also be used to set the scoring metric (“metric 122”). In an aspect of the disclosure, the metric 122 may be a similarity metric, an error metric, or a signal quality metric or a combination thereof. A similarity metric may be structural similarity index (SSI). An error metric may be a mean square error (MSE), root mean square error (RMSE) or mean absolute error (MAE). A signal quality metric may be a signal to noise ratio (SNR). These are non-limiting examples of a similarity metric, an error metric, or a signal quality metric. Others may be used interchangeably.

[0083] In other aspects, the metric 122 may also be defined with a large language model, fit model or other models. The model may be workflow specific.

[0084] The GUI may also be used to set a first threshold 120A. This first threshold 120 is used to compare predicted quality scores for the acquisition space to constrain the acquisition function used to select next acquisition parameter (or a combination of acquisition parameters). In an aspect of the disclosure, since the second ML agent 25B may normalize the quality score, the first threshold 120A may be a number between 0 and 1. The second ML agent 25B may remove acquisition parameters (specific combinations) from the acquisition function where the quality score is less than the first threshold 120A. In other aspects, the first threshold 120A may be statistically defined. For example, the first threshold 120A may be based on a mean of the quality scores. In other aspects, the first threshold 120A may be based on the lower and upper quartile of the predicted quality scores. In other aspects, the first threshold 120A may be based on a standard deviation of the predicted quality scores. For example, during the setting, the user may use the GUI to identify the statistic(s) to be used to determine the first threshold 120A rather than a fixed threshold.

[0085] In an aspect of the disclosure, the supervisory control (e.g., the second ML agent 25B) may not need to evaluate the scalarizer function 140 at each iteration of the workflow. In an aspect of the disclosure, the GUI may be used to input a frequency 124A, e.g., number of iterations between evaluations, for supervisory control. For example, supervisory control may periodically evaluate the scalarizer function 140, e.g., every 5, 10, or 20 iterations. The number of iterations described herein is merely an example and other periods may be used.

[0086] The user may set different periods depending on the total number of iterations in the workflow. For example, for the first 50 iterations, the frequency 124A may be every 5 iterations. However, for the next 50 iterations, the frequency 124A may be every 10 iterations.

[0087] In some aspects, the GUI may also be used to select the second models 105 used by the second ML agent 25B.

[0088] In the human in the loop mode, the settings may include a selected property or representation 116, frequency of display 124B and a second threshold 120A.

[0089] The selected property or representation 116 may be used for display of the measurement data 110 for user viewing.

[0090] Similar to above, a human does not need to view all of the measurement data (representations thereof) for each iteration of the workflow. In an aspect of the disclosure, the GUI may be used to input a frequency 124B, e.g., number of iterations between displaying the representations to a user on the display 40. For example, the second ML agent 25B may cause the display of the representation of the measurement data every 5, 10 or 20 iterations. The number of iterations described herein is merely an example and other periods may be used.

[0091] The GUI may also be used to set a second threshold 120B. This second threshold 120B is used to compare predicted user quality scores for the acquisition space to constrain the acquisition function used to select next acquisition parameter (or combination thereof). In an aspect of the disclosure, the user quality scores may be between 0 and 10. The second threshold 120B may be a number between 0 and 10. However, in other aspects, the user quality scores may also be normalized and the second threshold 120B may be between 0 and 1. In other aspects, depending on the workflow, the user rating (input) may be a physical-based description. The second ML agent 25B may be configured to translate the physical-based description into a user quality score (objective number). In some aspects, during the configuration stage for the second ML agent's (settings), the user may use the GUI to input a plurality of physical-based descriptions (and ranking).

[0092] In an aspect of the disclosure, the GUI may be accessed by a user by inputting a preset operation on the terminal 10.

[0093] In an aspect of the disclosure, the operation mode (for either ML agent, e.g., for the primary or supervisory control) may be changed during a workflow. For example, for the first XX (where XX is a number greater than 1) iterations of the workflow, the operation mode may be autonomous and then changed to the human in the loop or vice versa. The change may be implemented by accessing the GUI using the preset operation and setting a new operation mode.

[0094] In an aspect of the disclosure, the settings for the ML agents 25A, 25B may be changed during a workflow (an exception of “autonomous” in the second ML agent 25B). For example, the second threshold 120B, metric 122, representation or selected property 116 may be changed using the GUI.

[0095] In an aspect of the disclosure, the user may change the scalarizer function 140 used in the primary control (by the first ML agent 25A), this may impact the settings of the second ML agent 25B. For example, a new reference 114 may be needed which may in turn change the metric 122 and representation or selected property 116.

[0096] The display 40 may be a monitor, computer screen, television screen, projector or any other hardware capable of displaying an image. The terminal 10 may be a fixed terminal such as desktop computer (PC). Alternatively, the terminal 10 may be mobile such as a laptop, tablet or mobile phone.

[0097] FIG. 2 illustrates a block diagram of the memory 30 of the terminal 10 in accordance with aspects of the disclosure.

[0098] The memory 30 stores the first models 100 (e.g., GPBO). Storing the first models 100 refers to storing model parameters such as hyperparameters, kernels, etc. and may include an objective function (human guided objective function). In some aspects, the BO may be implemented in conjunction with deep kernel learning (DKL) using a neural network. It is noted that the parameters of the first models 100 change as the models are trained. The acquisition function may also be stored as the first models 100. Additionally, the predictions such as predictive mean and variance for the acquisition space may also be stored in first models 100.

[0099] The memory 30 also stores the second models 105 (e.g., GPBO). Storing the second models 105 refers to storing model parameters such as hyperparameters, kernels, etc. and may include an objective function (human guided objective function). It is noted that the parameters of the second models 105 change as the models are trained. The predictions such as predictive mean and variance of the quality scores (user quality scores) for the acquisition space may also be stored in the second models 105.

[0100] The memory 30 also stores the settings for the second ML agent 25B input via the GUI including the set mode (e.g., mode flag 126 indicating autonomous or human in the loop), selected property or representation (for display) 116, first and / or second threshold 120A, 120B, evaluation or display frequency 124A or 124B, the reference 114 and metric 122.

[0101] The memory 30 may also store the settings for the first ML agent 25 A input via the GUI including the set mode (e.g., mode flag 148), the scalarizer function 140, the acquisition function settings 142, the acquisition space 144 and workflow parameters 146.

[0102] The memory 30 may also store the measurement data 110 received from the instrument 1.

[0103] The memory 30 may also store the quality scores (user input quality scores) 112 and associated user input to determine the same when a human in the loop is used. The stored quality scores may include work-in progress information such as the raw results of the comparison.

[0104] The memory 30 may also store processed measurement data 110A such as converted by the scalarizer function 140.

[0105] FIG. 3 illustrates an example of a method for configuring the second ML agent 25B in accordance with aspects of the disclosure. In an aspect of the disclosure, the second ML agent 25B may be configured after the first ML agent 25A and thus, certain information already stored in memory 30 and relevant to the configuration of the second ML agent 25B such as selected properties (such as defined in the workflow parameters 146), the defined acquisition space 144 and the scalarizer function 140.

[0106] The GUI, used to configure the first ML agent 25A may still be opened. If not, the terminal 10 may receive the predefined input operation and the processor 20 may cause the GUI to be displayed on the display 40.

[0107] In an aspect of the disclosure, certain settings for the second ML agent 25B may be pre-populated based on the configurations of the first ML agent 25A such as selected property.

[0108] At S300, the GUI receives a selection of the operation mode for the supervisory control (e.g., autonomous or human in the loop). In response to receiving the selection, the processor 20 determines the selected mode at S302. Depending on the selected operation mode, the GUI may change because of the different settings for the different operation modes. For example, in response to the processor 20 determining that the autonomous mode is selected, the processor 20 may cause the GUI to display prompts for available settings for the autonomous mode (“NO” at S302) and proceed to S304A. In response to the processor 20 determining that the human in the loop mode is selected, the processor 20 may cause the GUI to display prompts for available settings for the human in the loop mode (“YES” at S302).

[0109] At S304A, the user may optionally input the settings related to the observer function such as the selected property. However, in some aspects of the disclosure, if the supervisory control compares the raw measurement data 110 with the reference 114 (raw data), then this input may be omitted. Additionally, in some aspects of the disclosure, as noted above, this field may be pre-populated with the property as defined in the settings for the first ML agent 25A. Thus, at S304A, the user may confirm the property.

[0110] At S306A, the GUI receives the user input of the frequency 124A for the supervisory control (e.g., evaluation). In response to receipt, the processor 20 stores the input in memory 30.

[0111] At S308, the GUI receives the user input of the reference 114. As noted above, this input may be in the form of a location where the input is stored (such as the instrument 1 or a server or a public repository). In response to the user input, the processor 20 retrieves the reference 114 and stores in the memory 30. For example, the processor 20 may use the Internet and issue a request to a server or public repository for the reference 114. In other aspects, the processor 20 may issue an instruction to the instrument 1 for sending the reference 114 (which is stored in the instrument's memory). In other aspects, the user input may be a file path and the processor 20 may retrieve the file having the reference 114 and store in the memory 30.

[0112] At S310, the GUI receives the user input of the metric 122 to be used in determining the quality score (e.g., similarity metric, error metric, or signal quality metric). In response to the user input, the processor 20 stores the metric 122 in memory 30.

[0113] At S312A, the GUI receives the user input of the first threshold 120A. As noted above, the first threshold 120A may be a number such as between 0 and 1 (because the quality scores are normalized) or a statistic parameter (such as mean, lower quartile or standard deviation). In response to the user input, the processor 20 stores the first threshold 120A or instructions how to generate the first threshold in memory 30.

[0114] S304B, S306B and S312B include settings for the human in the loop mode for the second ML agent 25B. At S304A, the GUI receives input of a representation or property for displaying the measurement data 116. The representation or property 116 may be based on the workflow and the measurement data 110. For example, in a case where the measurement data 110 is a spectrum, the representation may be a continuous curve of the spectrum (intensity on a y-axis and wavelength or frequency on the x-axis). In other aspects, if the measurement data 110 is for a Raman spectrum, the representation may show individual intensities for discrete wavelength frequencies. In other aspects, instead of displaying the entire spectrum, selected portions may be displayed such as to zoom in on regions of interest.

[0115] At S306B, the GUI receives the user input of the frequency 124B for the supervisory control (e.g., display and evaluation). In response to receipt, the processor 20 stores the input in memory 30.

[0116] At S312B, the GUI receives the user input of the second threshold 120B. As noted above, the second threshold 120B may be a number such as between 0 and 10 or 0 to 1 (because the user quality scores may be normalized). In response to receipt, the processor 20 stores the second threshold 120B in memory 30.

[0117] FIG. 4 illustrates an example of method of controlling a workflow using a dual ML agent, in autonomous mode for the second ML agent (autonomous supervisory mode) in accordance with aspects of the disclosure. The processor 20 implements the first ML agent 25A and the second ML agent 25B in this control. However, for sake of brevity, the features will be described herein as “first ML agent 25A” performing or executing the feature instead of “the processor 20 implementing the first ML agent 25A . . . ” and similarly, the features will be described herein as “second ML agent 25B” performing or executing the feature instead of “the processor 20 implementing the second ML agent 25B . . . ”.

[0118] The first ML agent 25A obtains the seed point(s) as input to start the workflow. The seed point(s) is / are acquisition parameter from the acquisition space 144 (or combinations of acquisition parameters). The number of seed points and the specific ones may be user input via the GUI or randomly selected. The acquisition parameter (or a combination thereof) for each seed point is workflow dependent and, in some case, may include syntheses of a particular material and subsequent measurement of a property of the material.

[0119] At S402, the first ML agent 25A issues an instruction to the instrument 1 (or multiple instruments) to perform a measurement (or syntheses and measurement) using the acquisition parameter (combination thereof) for each seed point via the communication interface 45. The instrument 1, in response to receiving the instructions, executes the same. The measurement may be workflow specific. For example, the measurement may be to acquire a spectrum associated with a sample at a given location on the sample surface. The spectrum may be a Raman spectrum. Another example, may be to acquire an optical image of a sample and measure a spectrum at a given location of the same surface. Another example may be to collect a spectrum indicative of structural quality (such as x-ray diffraction) of a grown crystal. The measurement for each seed point is sent back to the first ML agent 25A via the DAQ and the communication interfaces.

[0120] The first ML agent 25A stores the measurement data 110 in memory 30. At S406, for each seed point, the first ML agent 25A converts the measurement data 110 into a selected property or value using the set scalarizer function 140 (as processed measurement data 110A). The first ML agent 25A retrieves the scalarizer function 140 from memory 30 and determines the selected property or value. The selected property or value is stored in memory in the processed measurement data 110A. For example, where the measurement is a hysteresis loop, the selected property may be an area of the loop, a width of the loop, a peak etc. In other aspects, the selected property or value may be a maximum spectral intensity (maximum amplitude) of a selected spectral value or values or peak ratios or peak widths.

[0121] In other aspects of the disclosure, the selected property or value may be a statistical descriptor of the measurement. For example, the statistical descriptor may be obtained through a multivariate statistical analysis of the measurement data.

[0122] In some aspects, the analysis may include principal component analysis (PCA) or a non-negative matrix factorization (NMF) or other dimensional reduction method. For example, the selected property or value may be a first component (or components of the PCA) or one of the components of the NMF.

[0123] In an aspect of the disclosure, in a case where the first ML agent 25A is operating in a human in the loop mode, a visual representation of the selected property or value may be displayed on the display 40 for a user to vote on the visual representation. The voting may be used to determine whether to include the measurement in the training of the first models 100 and / or how much weight to give to the same.

[0124] At S408, the first ML agent 25A uses the converted measurement data and corresponding acquisition parameter (or combination thereof) for each seed point to train the first models 100. For example, the first models 100 (GPBO) may be trained to define / optimize the hyperparameters for the kernel functions . . . . The training process may include maximizing a log marginal likelihood of observed data log p (y|X, θ), wherey=f⁡(X)⁢ϵ,∈∼N⁡(0,σn2⁢I),and θ represents the kernel hyperparameters. Y is the objective function or human guided objective function (e.g., the GP model) and X is the input.At S410, the first ML agent 25A uses the first models 100 to predict the selected property or value for the remaining acquisition parameter (or combinations thereof) in the acquisition space 144. In some aspects, the evaluation includes determining predictive mean and variance (uncertainty). A prediction uncertainty is encoded in the variance. Depending on the model used, the determination of the predictive mean and variance may be different. For example, for the DKL model, such as described in U.S. application Ser. No. 18 / 655,038, the predictive mean may be determined by:μθpost=K⁡(x*,x❘θ)⁢K⁡(x,x❘θ)-1⁢y(1)and variance may be determined by:∑ θ post=K⁡(x*,x*❘θ)-K⁡(x*,x❘θ)⁢K⁡(x,x❘θ)-1⁢K⁡(x,x*❘θ)(2)where x holds the independent variable for previous measurements (observations) and xx is the independent variable for the not-yet-measured points, θ is / are the hyperparameter in the first models 100 and y is an objective function (or a human guided objective function).At S412, the first ML agent 25A retrieves user settings for the acquisition function 142 from memory 30. The acquiescing function setting includes the technique such PI, EI, ECB, MU or Thompson Sampling and associated parameters. The first ML agent 25A uses the settings and the acquisition function and the predictions (from S410) to determine a metric for the acquisition space 144 which is used to determine next acquisition parameter (or a combination thereof).At S414, the first ML agent 25A, using the determined metric selects a next acquisition parameter (or combinations thereof) from the parameter space 144. S402, S404, S406, S408, S410, S412 and S414 are iteratively repeated until the workflow is completed. In an aspect of the disclosure, the first ML agent 25A increments a counter for each iteration and compares the value to a user input value for the workflow (e.g., maximum iterations from the workflow parameters 146) and in response to the counter value equaling the user input value, the first ML agent 25A stops.In an aspect of the disclosure, while the first ML agent 25A is executing the above functions, the second ML agent 25B supervises and observes the received measurement data 110 (supervisory control). It is noted that the area where the measurement data 110 is stored in the memory 30 is shared (e.g., accessible by both the first ML agent 25A and the second ML agent 25B).In an aspect of the disclosure, the second ML agent 25B also increments a counter. Each time the measurement data 110 is received and changes, the second ML agent 25B increments the counter. The counter may be used to determine whether it is time for the second ML agent 25B to evaluate the scalarizer function 140. At S420A, the second ML agent 25B determines whether it is time. For example, the second ML agent 25B retrieves the user set frequency 124A from memory 30. The second ML agent 25B may compare the value of the counter with the set frequency 124A. For example, in a case where the counter is a multiple of the set frequency 124A, the second ML agent 25B may determine it is time to evaluate. For example, if the set frequency 124A is every 10 iterations, counter values of 10, 20, 30, 40, . . . reflect the evaluation iteration.

[0130] In a case where the second ML agent 25B determines that it is time to evaluate (“YES” at S420A), the second ML agent 25B determines a quality score associated the measurement data otherwise, the second ML agent 25B waits.

[0131] FIG. 5 illustrates an example of a determination of the quality score in accordance with aspects of the disclosure. At S422-1, the second ML agent 25B may retrieve the reference 114 set by a user (via the GUI). For example, the second ML agent 25B may access the memory 30 to obtain the reference 114. In other aspects, the second ML agent 25B may obtain the reference 114 via the Internet using an URL stored. At S422-3, the second ML agent 25B retrieves the set metric 122 input by a user (via the GUI) from memory 30. The second ML agent 25B may then compare the reference 114 and the measurement data 110 using the set metric 122. For example, in a case where the set metric 122 is a similarity metric such as SSI, the second ML agent 25B calculates the similarity metric between the reference 114 and the measurement data 110. In a case where the set metric 122 is an error metric (such as an MSE), the second ML agent 25B compares the reference 114 and measurement data 110 to determine the error metric. In a case where the set metric 122 is a noise metric, such as SNR, the second ML agent 25B determines the SNR for the measurement data 110 and the SNR for the reference 114 and compares the two and determines a difference.

[0132] In a case where the set metric 122 is a similarity metric, the more similar the measurement data 110 is to the reference 114, the better the quality. In a case where the set metric is an error metric, the greater the error, the lower the quality is.

[0133] At S422-5, the second ML agent 25B may normalize the quality score such that it is a value between 0 and 1. The quality score may be stored in memory 30 (quality scores 112)

[0134] At S424, the second ML agent 25B uses the determined quality score and the associated acquisition parameter (or a combination thereof) to train the second models 105 (GPBO). In an aspect of the disclosure, the acquisition space 144 is also stored in memory 30 in a shared location (where both the first ML agent 25A and the second ML agent 25B can access also with the actual acquisition parameter (or combination thereof) used to acquire measurement data 110.

[0135] At S426A, the second ML agent 25B uses the second models 105 to predict the quality score for the remaining acquisition parameter (or combinations thereof) in the acquisition space 144, respectively. The second models 105 may be trained in a similar manner to described above. The prediction may include the mean and uncertainty such as determined using equations 1 and 2. The predictions may be stored in memory 30.

[0136] At S428A, the second ML agent 25B may retrieve the first threshold 120A from memory 30. The second ML agent 25B compares the prediction for each acquisition parameter (or combinations thereof) with the first threshold 120A. In an aspect of the disclosure, the comparison may use the predictive mean. In a case where the predicted quality score (for an acquisition parameter or combination thereof) is less than the first threshold 120A, the acquisition parameter (or combination thereof) is a target for a constraint.

[0137] At S430, the second ML agent 25B may adjust the acquisition function. For example, for each acquisition parameter (or combination thereof) where the predicted quality score is less than the first threshold 120A, the second ML agent 25B may remove the same from a candidate to be selected as a next acquisition parameter (or combination thereof). Additionally, the second ML agent 25B may recalculate the metric for the next acquisition, excluding each acquisition parameter (or combination thereof) where the predicted quality score is less than the first threshold 120A. For example, in a case where the acquisition function uses a mean and standard deviation to calculate the metric for the next acquisition, the mean and standard deviation may be calculated without the predicted property or value associated with the acquisition parameter (or combination thereof) where the predicted quality score is less than the first threshold 120A.

[0138] Alternatively, instead of the second ML agent 25B adjusting the acquisition function as noted, the second ML agent 25B may report to the first ML agent 25A, each acquisition parameter (or combination thereof) where the predicted quality score is less than the first threshold 120A and the first ML agent 25A may adjust the acquisition function.

[0139] The adjusted acquisition function may then be used to determine the next acquisition parameter (or combination thereof) at S414. By constraining the acquisition function in the manner described herein, the acquisition parameter (combinations thereof) within the acquisition space 144 can focus on regions of the acquisition space 144 that are likely to yield relevant measurements which are aligned with the goals of the workflow, and which can also streamline the workflow.

[0140] S420A is executed each iteration of the workflow whereas S422, S424, S426A, S428A and S430 may be executed only when it is time to do the evaluations. However, in other aspects, S420A may be omitted and S422, S424, S426A, S428A and S430 may be executed for each iteration.

[0141] FIG. 6 illustrates an example of method of controlling a workflow using a dual ML agent, in human in the loop mode for the second ML agent 25B (human in the loop supervisory control) in accordance with aspects of the disclosure.

[0142] In some cases with a workflow, a reference 114 may not be available or it may not be possible to anticipate how the measurement will look like, and hence the quality of measurement data 110 may not be able to be assessed via a metric 122 as set by a user via the GUI; in these cases, real time human in the loop may be used to assist with the determination of the quality of the measurement data 110 and if it may provide a meaningful result after conversion using the scalarizer function 140. Incorporating human assessment offers significant flexibility and adaptability, making the dual ML agent approach universally applicable in all scenarios, even where prior knowledge and reasonable anticipation about the workflow is limited or unavailable.

[0143] The primary control (e.g., the first ML agent 25A) is the same in both modes for the second ML agent 25B and will not be described again.

[0144] In an aspect of the disclosure, the second ML agent 25B also increments a counter for the supervisory mode with human in the loop. Each time the measurement data 110 is received and changes, the second ML agent 25B increments the counter. The counter may be used to determine whether it is time for the second ML agent 25B to display a representation or property of the measurement data 116. At S420B, the second ML agent 25B determines whether it is time. For example, the second ML agent 25B retrieves the user set frequency 124B from memory 30. The second ML agent 25B may compare the value of the counter with the set frequency 124B. For example, in a case where the counter is a multiple of the set frequency 124B, the second ML agent 25B may determine it is time to display the representation or property of the measurement data 116. For example, if the set frequency124B is every 10 iterations, counter values of 10, 20, 30, 40, . . . reflect the display iteration.

[0145] In a case where it is time to display the representation (“YES” at S420B), the second ML agent retrieves from memory 30 the user set representation or property 116 (e.g., what part of the measurement data or how the measurement data is displayed). The second ML agent 25B uses the raw measurement data 110 to generate image data for display on the display 40 based on the user set representation property 116. The second ML agent 25B causes the image to be displayed on the display 40. For example, the image may be displayed as a pop on a screen. Additionally, the second ML agent 25B may cause a GUI also to be displayed to enable the user to input feedback on the image.

[0146] At S602, the second ML agent 25B receives the user input of a score or ranking. In an aspect of the disclosure, the input may be numerical (such as 0 to 10). In other aspects, the input may be a string of text such as a physical based description which the second ML agent 25B may translate into a score. The input is based on the knowledge of the user and relative understanding of the workflow.

[0147] At S604, the second ML agent 25B determines the user quality score based on the user input. For example, the second ML agent 25B may normalize the user input (which may be 0 to 10) for training purposes. In other aspects, the second ML agent 25B may assign a user quality score based on the physical based description. For example, as described above, there may be a plurality of available physical based description input in the configuration process. Each may be associated with a quality level or ranking and the second ML agent 25B may determine the score from the associated quality level or ranking. The user quality score is stored in memory (quality scores 112)

[0148] At S424, the second ML agent 25B trains the second models 105 in a similar manner as described above, however in this case using the user quality scores (and the associated acquisition parameter (or combination thereof) instead of the automated quality scores.

[0149] At S426B, the second ML agent 25B uses the second models 105 to predict the user quality score for the remaining acquisition parameters (or combinations thereof) in the acquisition space 144, respectively. The prediction may include the mean and uncertainty such as determined using equations 1 and 2. The predicted user quality scores may be stored in memory 30 (quality scores 112).

[0150] At S428B, the second ML agent 25B may retrieve the second threshold 120B from memory 30. The second ML agent 25B may compare the prediction for each acquisition parameter (or combinations thereof) with the second threshold 120B. In an aspect of the disclosure, the comparison may use the predictive mean. In a case where the predicted user quality score (for an acquisition parameter or specific combination thereof) is less than the second threshold 120B, the acquisition parameter (or specific combination thereof) is a target for a constraint.

[0151] The adjustment of the acquisition function (constraining) is similar to described above for the autonomous mode.

[0152] S420B is executed each iteration of the workflow whereas S600, S602, S604, S424, S426B, S428B and S430 may be executed only when it is time to display the representations and receive the user feedback. However, in other aspects, S420B may be omitted and S600, S602, S604, S424, S426B, S428B and S430 may be executed for each iteration.

[0153] In an aspect of the disclosure, the user may also in an on-demand fashion request a display of a representation of the measurement and provide feedback at S602 and trigger the remaining features in the supervisory control.

[0154] FIGS. 7B-7H illustrates a comparison of a control the selection of acquisition parameter for a next measurement using the dual ML agent (as described herein) (FIG. 7B), random (FIG. 7C) and a single ML agent (GPBO) (FIG. 7D). The three controls are compared with a ground truth for the workflow (FIG. 7A).

[0155] The workflow is an autonomous pulsed laser deposition (PLD). For measurements, WSe2 thin films of nominally monolayer thickness were grown by PLD using co-ablation of WSe2 and Se targets. The acquisition space included the following growth (acquisition) parameters: pressure (P), substrate temperature (T), and laser energy on the WSe2 and Se targets E1 and E2, respectively (4-D acquisition space). The scalarizer function converted the Raman spectrum of each film after growth into a ratio of the primary WSe2 E2g+A1g Raman peak height and width. A target is to have intense and narrow peaks. The acquisition function for initial measurements using a single ML agent (GPBO) was EI.

[0156] The final surrogate from the initial measurement was used as the ground truth for the workflow, to evaluate the reconstruction error from uncertainty-based exploration (UE). FIGS. 7A-7D illustrate the sampling in the acquisition space (upper being pressure v. temperature and the lower being E1 v. E2.) which shows combinations of acquisition parameters explored highlighted in the acquisition space, superposed on the predictions.

[0157] The Raman scores for the whole acquisition space were sampled from the ground truth for the workflow. For the quality score of raw measurement data in the dual ML agent, 108 Raman spectra were ranking from the workflow to make approximation with a GP. The user quality score was based on a 1-10 ranking based on user experience and, while naturally arbitrary, high rankings generally go to spectra where the main WSe2 peak (~250 cm−1) is stronger than the Si substrate peak (at 520.7 cm−1) and is narrow while low rankings are assigned to spectra with weak or broad peaks. The Raman score was derived from a multiple Lorentzian peak fitting and background subtraction routine.

[0158] In each of the random, single ML agent and dual ML agent control, 10 samples were used as seed points for the simulated workflow. Each simulated workflow was 200 iterations. The acquisition space had 50,625 possible combinations of acquisition parameters. The score threshold for the dual ML agent was 7 for the first 50 iterations and 5 thereafter (to allow for an increased exploration). The primary GPBO selected a next acquisition parameter (or combination thereof) based on MU. Only acquisition parameters (or combinations thereof) having predicted quality score above the score threshold for each iteration was considered for being used. The next acquisition parameter (or combination thereof) for the single GPBO in the simulated workflow was also MU.

[0159] As can be seen in FIG. 7E, for the dual ML agent (as described herein), the RMSE dramatically was reduced after 50 iterations (samples) whereas the RMSE for the single ML agent remained fairly constant and for the random sampling, the RMSE increased and decreased and then increased with the iterations (sampling). This illustrates the improvement using the dual ML agent as described herein.

[0160] The single ML agent (GPBO) directed the simulated synthesis of many films in regions of the acquisition space that continually produced poor quality samples. This is because a high dimensional acquisition space populated with only tens of samples (seed points) results in high GP uncertainty and the BO tended to favor exploration. Because the growth window was narrow in at least 1 of the acquisition parameters, prolonged exploration led to numerous poor-quality samples. This effect is expected in single ML agent, but when the maximum budget (target number iterations) for total samples is small, as it is with a PLD workflow, it is highly undesirable. Further, pure optimization is not always of interest for synthesis science. A user may want to understand the synthesis response surface to determine mechanisms of film growth. In this case, uncertainty-based acquisition may be desired to achieve a representative GP surrogate, but second ML agent supervision is needed to prevent frivolous exploration.

[0161] Also, as can be seen in FIG. 7D (upper), the acquisition parameters are grouped closely for the single ML agent (GPBO) whereas in the dual ML agent (as described herein), the acquisition parameters are more spread out in the acquisition space. Additionally, the dual ML agent (as described herein) used more acquisition parameters with higher Raman scores and human input scores. Additionally, the high uncertainty in the sparsely sampled acquisition space leads to many samples at the edges in the E1 vs E2 plane and sampled the high-pressure region almost exclusively for the single ML agent (GPBO). The higher scoring acquisition parameters are shown in darker shading. The “X” in FIGS. 7B, 7C and 7D illustrates a next set of acquisitions parameters (combination of the 4 acquisition parameters).

[0162] FIGS. 7F-7H illustrate examples of the spectrum and associated Raman score from the scalarizer function and user score (human rank). As can been seen, the human rank tracks well with the Raman score (higher rank correlates with higher Raman score). While the two correlates in these example, using the human-in-the-loop in the dual ML agent bypasses the difficulties associated with developing a robust (and inflexible) curve fitting routine for the Raman data, which allows for rapid assessment and human-guidance of the autonomous workflow.

[0163] When increasing the dimensionality of the parameter space, the surface area to volume ratio of the parameter hypercube scales like 2N / L where N is the number of dimensions and L is the edge length. This results in uncertainty-based exploration being increasingly biased towards edge points as dimensionality increases. But here, the dual ML agent (as described herein) is an effective, adaptive system and method to modify the acquisition function to both dimmish the influence of high uncertainty edge points, as well as focus exploration / exploitation in a region as constrained by the supervisory control.

[0164] Various aspects of the present disclosure may be embodied as a program, software, or computer instructions embodied or stored in a computer or machine usable or readable medium, or a group of media which causes the computer or machine to perform the steps of the method when executed on the computer, processor, and / or machine. A program storage device readable by a machine, e.g., a computer readable medium, tangibly embodying a program of instructions executable by the machine to perform various functionalities and methods described in the present disclosure is also provided, e.g., a computer program product.

[0165] The computer readable medium could be a computer readable storage device or a computer readable signal medium. A computer readable storage device may be, for example, a magnetic, optical, electronic, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing; however, the computer readable storage device is not limited to these examples except a computer readable storage device excludes computer readable signal medium. Additional examples of the computer readable storage device can include: a portable computer diskette, a hard disk, a magnetic storage device, a portable compact disc read-only memory (CD-ROM), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical storage device, or any appropriate combination of the foregoing; however, the computer readable storage device is also not limited to these examples. Any tangible medium that can contain, or store, a program for use by or in connection with an instruction execution system, apparatus, or device could be a computer readable storage device.

[0166] A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, such as, but not limited to, in baseband or as part of a carrier wave. A propagated signal may take any of a plurality of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium (exclusive of computer readable storage device) that can communicate, propagate, or transport a program for use by or in connection with a system, apparatus, or device. Program code embodied on a computer readable signal medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0167] The terminology used herein is for the purpose of describing particular aspects only and is not intended to be limiting the scope of the disclosure and is not intended to be exhaustive. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure.

Claims

1. A system comprising:a communication interface configured to communicate with an instrument by iteratively performing operations comprising:transmitting measurement-acquisition instructions to the instrument, andreceiving measurement data associated with a sample from the instrument; anda processor communicatively coupled with the communication interface, the processor comprising a first machine learning (ML) agent, the processor operates the first ML agent by iteratively performing operations comprising:determining a target property from the measurement data received,training, based on the determined target property and associated acquisition parameter or combination thereof, a first model for predicting the same target property using remaining acquisition parameters or combinations thereof in an acquisition space, andupdating an acquisition function based on the trained first model,the processor further comprises a second ML agent, the processor operates the second ML agent iteratively performing first operations comprising:determining, automatically a quality score corresponding to the measurement data for a processing measurement data,training, based on the quality score which is determined and associated acquisition parameter or combination thereof, a second model for predicting quality scores using remaining acquisition parameters or combinations thereof in the acquisition space, andadjusting the acquisition function which is updated based on the predicted quality scores and a first threshold, andthe processor further operates the first ML agent to iteratively perform issuing a measurement-acquisition instruction to the instrument, via the communication interface, based on the acquisition function, which is adjusted.

2. The system of claim 1, further comprising:a user interface; anda display,wherein the processor is further configured to:present a representative display of the measurement data for a processing measurement data on the display, andreceive, via the user interface, user input assigning a user quality score corresponding to the measurement data as feedback for the representative display, which is displayed, andthe processor further operates the second ML agent by iteratively performing second operations comprising:training, based on the user quality score which was assigned to the measurement data for the processing measurement data and associated acquisition parameter or combination thereof, the second model for predicting user quality scores at remaining acquisition parameters or combinations thereof in the acquisition space, andadjusting the acquisition function which is updated based on the predicted user quality scores and a second threshold.

3. The system of claim 2, wherein the system enables a first mode of operation and a second mode of operation, wherein in the first mode of operation,the processor operates the second ML agent iteratively by performing the first operations, andin the second mode of operation, the processor operates the second ML agent by iteratively performing the second operations.

4. The system of claim 3, wherein the user interface is configured to receive a user selection of the first mode of operation or the second mode of operation, and the second ML agent operates based on the user selection.

5. The system of claim 3, wherein there are a plurality of measurement iterations, and wherein a mode of operation, which is selected from the first mode of operation and the second mode of operation is changeable between the plurality of measurement iterations.

6. The system of claim 3, wherein there are a plurality of measurement iterations, wherein the user interface is configured to receive a user input of a number of iterations that the second ML agent performs.

7. The system of claim 1, wherein the first operation of determining, automatically a quality score corresponding to the measurement data comprises comparing the measurement data to reference measurement data based on a metric.

8. The system of claim 7, further comprising a user interface configured to receive a selection of the reference measurement data.

9. The system of claim 7, further comprising a user interface configured to receive a selection of the metric.

10. The system of claim 9, wherein the metric comprises at least one of a similarity metric, an error metric and a signal quality metric.

11. The system of claim 7, wherein the metric is normalized to generate the quality score.

12. The system of claim 2, wherein the user interface is further configured to receive the first threshold and / or the second threshold.

13. The system of claim 2, wherein the adjusting of acquisition function removes, portions thereof, corresponding to measurement data for which a quality score is predicted to be below the first threshold or the user quality score is predicted to be below the second threshold.

14. The system of claim 2, wherein the first ML agent and the second ML agent implement a Gaussian process Bayesian optimization (GPBO).

15. The system of claim 1, further comprises a user interface configured to receive the target property.

16. The system of claim 1, wherein the instrument comprises a spectrometer and the measurement data comprises one or more spectra associated with a particular location of the sample.

17. The system of claim 16, wherein the target property includes a maximum amplitude of a peak in the spectra, a frequency associated with a maximum amplitude of a peak in the spectra, a ratio of two peaks in the spectra.

18. The system of claim 1, wherein the acquisition parameter or combination thereof comprises at least one parameter to synthesize the sample.

19. The system of claim 18, wherein the instrument comprises a pulsed laser deposition.

20. A system comprising:a user interface;a display;a communication interface configured to communicate with an instrument by iteratively performing operations comprising:transmitting measurement-acquisition instructions to the instrument, andreceiving measurement data associated with a sample from the instrument; anda processor communicatively coupled with the communication interface, the processor comprising a first machine learning (ML) agent, the processor operates the first ML agent by iteratively performing operations comprising:determining a target property from the measurement data received,training, based on the determined target property and associated acquisition parameter or combination thereof, a first model for predicting the same target property at remaining acquisition parameters or combinations thereof in an acquisition space, andupdating an acquisition function based on the trained first model,wherein the processor is further configured to:present a representative display of the measurement data for a processing measurement on the display, andreceive, via the user interface, user input assigning a user quality score corresponding to the measurement data as feedback for the representative display, which is displayed,the processor further comprises a second ML agent, the processor operates the second ML agent iteratively performing operations comprising:training, based on the user quality score which was assigned to the measurement data for the processing measurement and associated acquisition parameter or combination thereof, a second model for predicting user quality scores at remaining acquisition parameters or combinations thereof in the acquisition space, andadjusting the acquisition function which is updated based on the predicted user quality scores and a threshold, andthe processor further operates the first ML agent to iteratively perform issuing the measurement-acquisition to the instrument, via the communication interface, based on the acquisition function, which is adjusted.