Handbook on Big Data and Machine Learning in the Physical Sciences

Sergei V. Kalinin, Ian Foster, Surya R. Kalidindi, Turab Lookman, Kerstin Kleese van Dam, Kevin G. Yager, Stuart I. Campbell, Richard L. Farnsworth, Maartje van DamWORLD 2020 · DOI · OpenAlex

Abstract

Exploring relationships between material structures and desired properties for material discovery and synthesis requires mining machine-readable databases and linking experimental data with sufficiently rich annotations. There are vast gaps both in these data sources and in the connections between them. We present a provenance-based data management and analysis framework that enables capturing, persisting, and reanalyzing experimental data from the BNL National Synchrotron Light Source II (NSLS-II). Our system leverages NSLS-II Bluesky for experimental data acquisition, captures analysis parameters, and enriches the search space with results from the scientific literature. We describe in detail the challenges and benefits of data-driven approaches when comparing computational and experimental data, such as the multiple possible scenarios of interest in often ill-posed inverse problems and missing data. Our infrastructure utilizes the NSLS-II event model and includes discovery mechanisms across multiple beamlines. A text and data mining module using natural language processing classification techniques extracts relevant information from the literature that is added to data sources. We describe a provenance acquisition and analysis rerun workflow based on a directed acyclic graph that keeps track of process and data provenance and allows to replay analysis.

Introduction

Modern synchrotron facilities like the National Synchrotron Light Source II (NSLS-II) at Brookhaven National Laboratory are experiencing a significant "data deluge." With advancements in detector technology, these facilities are projected to generate over 80 petabytes of data annually by 2030. However, the primary challenge in materials science is not merely storage, but the "metadata gap." Scientific results often emerge from inverse problems where multiple physical structures might explain a single experimental observation. Without comprehensive records of experimental conditions—such as temperature, pH, and sample history—and the specific software pipelines used for processing, results become difficult to replicate or validate. This work presents a robust provenance infrastructure designed to treat metadata and experimental data as equal citizens, ensuring workflows are searchable, reproducible, and ready for autonomous discovery.

The Integrated Framework

The proposed framework integrates experimental orchestration, data management, and literature mining into a unified ecosystem. At its core, the system relies on the Bluesky suite and Databroker for real-time data and metadata capture. Unlike traditional file-based systems, this architecture utilizes an "Event Model," where every experimental parameter and detector reading is stored as a searchable document.

Conceptual overview of the NSLS-II data management framework, showing the flow from metadata sources to user tasks.

The framework is structured around three main pillars:

  1. Metadata Sources: Integrating internal experimental data from Bluesky with external repositories like the Crystallography Open Database (COD).
  2. Integration Tasks: Utilizing SHED (Streaming Heterogeneous Event Data) to manage analysis pipelines. SHED represents workflows as Directed Acyclic Graphs (DAGs), where nodes represent processing steps and edges represent data flow.
  3. User Tasks: Providing discovery mechanisms such as federated search via Elasticsearch, allowing researchers to query internal data and extracted literature simultaneously.

Provenance and Reproducibility

A key innovation of this system is the separation of pipeline specification from execution. By representing workflows as DAGs, the system assigns a unique provenance identifier to the entire analysis process. This enables "analysis replay," where researchers can rerun exact executions or swap specific algorithms within a complex reconstruction pipeline while maintaining a full audit trail. This capability is essential for comparing computational models with experimental data and for validating results in the face of missing or ambiguous data.

Furthermore, the framework addresses the need for data enrichment through a Text and Data Mining (TDM) module. Using natural language processing (NLP) and tools like ChemDataExtractor, the system scrapes scientific literature to identify analogous experiments and parameters. These insights are indexed alongside experimental data, providing a richer context for material discovery.

Results and Discussion

The infrastructure is currently in production at the X-ray Diffraction (XPD) and Inner Shell Spectroscopy (ISS) beamlines at NSLS-II. It has successfully demonstrated the ability to facilitate real-time decision-making by allowing researchers to perform cross-source discovery—such as looking up structures in the COD—while experiments are still in progress.

The transition to a "super-facility" model, where light sources are coupled with High-Performance Computing (HPC) centers via tools like Dask, allows the system to handle data rates up to 200 GB/second. This infrastructure paves the way for "autonomous experiments," where AI agents can analyze results in real-time, consult the literature, and determine the next experimental steps without human intervention.

Conclusion

While the current framework significantly closes the metadata gap, challenges remain. Future work will focus on overcoming proprietary barriers to integrate high-quality commercial databases and expanding the TDM module to cover a broader range of physical sciences. Additionally, as multi-modal analysis becomes more common, the system must evolve to handle the complex metadata alignment required when combining data from multiple beamlines and experimental techniques.

Summary updated

Abstract

Exploring relationships between material structures and desired properties for material discovery and synthesis requires mining machine-readable databases and linking experimental data with sufficiently rich annotations. There are vast gaps both in these data sources and in the connections between them. We present a provenance-based data management and analysis framework that enables capturing, persisting, and reanalyzing experimental data from the BNL National Synchrotron Light Source II (NSLS-II). Our system leverages NSLS-II Bluesky for experimental data acquisition, captures analysis parameters, and enriches the search space with results from the scientific literature. We describe in detail the challenges and benefits of data-driven approaches when comparing computational and experimental data, such as the multiple possible scenarios of interest in often ill-posed inverse problems and missing data. Our infrastructure utilizes the NSLS-II event model and includes discovery mechanisms across multiple beamlines. A text and data mining module using natural language processing classification techniques extracts relevant information from the literature that is added to data sources. We describe a provenance acquisition and analysis rerun workflow based on a directed acyclic graph that keeps track of process and data provenance and allows to replay analysis.
BibTeX
@inproceedings{kalinin2020handbook,
  author = {Sergei V. Kalinin and Ian Foster and Surya R. Kalidindi and Sergei V. Kalinin and Turab Lookman and Kerstin Kleese van Dam and Kevin G. Yager and Stuart I. Campbell and Richard L. Farnsworth and Maartje van Dam and Ian T. Foster},
  title = {{Handbook on Big Data and Machine Learning in the Physical Sciences}},
  booktitle = {WORLD},
  year = {2020},
  doi = {10.1142/11389},
}
Figure