![](/logos/buttonlogos/cross.png)
![](/logos/buttonlogos/cross.png)
research papers
![Open Access](/logos/open.png)
Accelerating imaging research at large-scale scientific facilities through scientific computing
aBig Data Science Center, Shanghai Synchrotron Radiation Facility, Shanghai Advanced Research Institute, Chinese Academy of Sciences, No. 239 Zhangheng Road, Shanghai 201210, People's Republic of China, and bShanghai Synchrotron Radiation Facility, Shanghai Advanced Research Institute, Chinese Academy of Sciences, No. 239 Zhangheng Road, Shanghai 201210, People's Republic of China
*Correspondence e-mail: tairz@sari.ac.cn, alessandro.sepe@sari.ac.cn
To date, computed tomography experiments, carried-out at synchrotron radiation facilities worldwide, pose a tremendous challenge in terms of the breadth and complexity of the experimental datasets produced. Furthermore, near real-time three-dimensional reconstruction capabilities are becoming a crucial requirement in order to perform high-quality and result-informed synchrotron imaging experiments, where a large amount of data is collected and processed within a short time window. To address these challenges, we have developed and deployed a synchrotron computed tomography framework designed to automatically process online the experimental data from the synchrotron imaging beamlines, while leveraging the high-performance computing cluster capabilities to accelerate the real-time feedback to the users on their experimental results. We have, further, integrated it within a modern unified national authentication and data management framework, which we have developed and deployed, spanning the entire data lifecycle of a large-scale scientific facility. In this study, the overall architecture, functional modules and workflow design of our synchrotron computed tomography framework are presented in detail. Moreover, the successful integration of the imaging beamlines at the Shanghai Synchrotron Radiation Facility into our scientific computing framework is also detailed, which, ultimately, resulted in accelerating and fully automating their entire data processing pipelines. In fact, when compared with the original three-dimensional tomography reconstruction approaches, the implementation of our synchrotron computed tomography framework led to an acceleration in the experimental data processing capabilities, while maintaining a high level of integration with all the beamline processing software and systems.
Keywords: scientific computing; synchrotron; imaging; automation; tomography.
1. Introduction
X-ray imaging methods are widely used to investigate the structural properties of materials at the macro-, micro- and nano-scale, as well as magnetic domain structures, spatial distribution of the elements, chemical properties, etc. (Xu et al., 2016; Wang et al., 2020
; Zhang et al., 2018
, 2022
; Suzuki et al., 2018
). The wavelength of X-rays is significantly shorter than that of the visible light, resulting in an imaging resolution several orders of magnitude higher than what it is possible to achieve with visible light. Furthermore, X-rays are characterized by possessing very high material penetration capabilities, thus enabling non-destructive imaging of the internal structures of thick samples. X-ray computed tomography (CT) is a non-destructive imaging technique that provides a clear, accurate and intuitive visualization of the internal structures, composition, properties and defects of the investigated materials, both through two-dimensional (2D) or three-dimensional (3D) image reconstructions, and it is widely recognized within the scientific community as one of the best non-destructive experimental methods (de Jonge et al., 2010
; Xing et al., 2016
). With the worldwide widespread use of third-generation synchrotron facilities, the number of opportunities to conduct cutting-edge scientific studies have been significantly increased. When compared with a traditional CT experiment, using X-ray laboratory sources, synchrotron CT (SR-CT) experiments provide remarkable advantages in terms of a better spatial resolution, improved temporal resolution and access to the multimodal X-ray imaging approach, when combined with and diffraction methods. Moreover, SR-CT is still undergoing a transformative development process, transitioning from 2D and 3D to multi-dimensional imaging, from morphology to functional imaging, from static to dynamic imaging, from single-scale to multi-scale investigations and from single-modal to multi-modal imaging (Xie et al., 2019
; Deng et al., 2015
; Hu et al., 2017
).
As an experimental technique that relies on digital raw data imaging, SR-CT benefits significantly from continuous innovation stemming from the field of X-ray detector technology, recently focused on increasing the number of pixels while reducing the pixel size. This enables the steady improvement of SR-CT spatial resolution capabilities, while increasing the amount of morphological details that it can capture. However, due to the substantial number (ranging from hundreds to thousands) of projections required by commonly used CT algorithms in order to generate the final reconstructions without the presence of significant artifacts, currently the size of a set of SR-CT datasets often exceeds several gigabytes (GB) of data. On the other hand, modern ultrafast imaging detectors allow for the continuous acquisition of data at rates exceeding 7.7 GB s−1 (Mokso et al., 2017; García–Moreno et al., 2021
), achieving an unprecedented high temporal resolution, of more than 10 sets of SR-CT data throughput per second, while generating a series of continuous datasets representing the dynamic state of the sample. Consequently, SR-CT data processing becomes a computationally demanding task and a key critical issue for X-ray imaging experiments at synchrotron facilities worldwide. Therefore, the advancements brought by scientific computing at synchrotron facilities are of a crucial importance in order to support users to effectively evaluate and improve their dynamic CT experiments by utilizing full 3D reconstructed volumes, rather than previewing the original imaging projections or subsets of reconstructed slices, as the former contains considerably more information and detail about the current sample state. Furthermore, processing this large amount of data collected within a short period of time is crucial in order to achieve near-real-time 3D reconstruction capabilities (Wang et al., 2018
). This will then maximize the advantages of leveraging the potential of artificial intelligence (AI) technologies applied to experimental result-informed data processing and analysis.
Generally, depending on the adopted geometry, a high-quality CT data reconstruction workflow may involve numerous pre-processing and post-processing steps, including image normalization, geometric parameter correction, phase retrieval, filtering, smoothing, denoising and artifact removal. These steps involve the application of various image processing algorithms and parameter optimizations. Typically, these algorithms and parameters require iterative optimization and adjustment for each individual dataset, leading to a heavily manned interaction between the users and the reconstruction software, making the reconstruction quality highly dependent on the users' level of experience and expertise. Therefore, the development of unmanned and fully automated high-performance CT data pipelines is both critical and a challenging obstacle to overcome. However, in the case of processing dynamic CT data and large-scale datasets from extended field of view or mosaic scan CT experiments (where large samples are scanned at different vertical and horizontal positions to obtain a set of datasets that are then stitched together to generate one large dataset) (Vescovi et al., 2017; Borisova et al., 2021
), where the beamline status and experimental parameters can be regarded as static invariants, optimizations and adjustments of the algorithms and the parameters can be performed on a series of continuous experimental data flows. Therefore, the use of an automated processing pipeline can effectively maximize the experimental efficiency.
Currently, there are several open-source frameworks and toolkits for tomographic data reconstruction, as well as efforts aiming at building automatic, fast and flexible workflows based on them; for example, Tomopy (Gürsoy et al., 2014; Pelt et al., 2016
), TomocuPy (Nikitin, 2023
), Tofu (Faragó et al., 2022
), Savu (Atwood et al., 2015
; Wadeson & Basham, 2016
; Kazantsev et al., 2022
), UFO (Vogelgesang et al., 2012
; Vogelgesang et al., 2016
), SYRMEP Tomo Project (Brun et al., 2017
), SPOT (Blair et al., 2014
; Deslippe et al., 2014
), PyHST2 (Mirone et al., 2014
), TOMCAT post-processing pipeline (Marone et al., 2017
; Buurlage et al., 2019
), etc. (Hidayetoğlu et al., 2020
; Pandolfi et al., 2018
). They provide command-line interfaces (CLIs), graphical user interfaces (GUIs), or a combination of both, and achieve complex functionalities by offering auxiliary pre-processing and post-processing algorithms, as well as interfaces with other 3D reconstruction tools. They either use CPUs and GPU workstations or benefit from the computing power provided by national supercomputing centers in order to fully satisfy real-time reconstruction requirements. These software frameworks have been used for many years at many synchrotron large-scale facilities, whose development process demonstrates the importance of real-time, versatile, user-friendly and scalable reconstruction software in order to establish flexible and effective data processing workflows.
In this study, a software framework, architected, developed and deployed by the Big Data Science Center (BDSC) at the Shanghai Synchrotron Radiation Facility (SSRF), and aiming at providing online automated processing and real-time feedback on the experimental data produced by the synchrotron imaging beamlines at the SSRF, is presented (Sepe et al., 2024). This framework leverages the resources and capabilities provided by the BDSC (Wang et al., 2021
; Ye et al., 2023
), including its high-performance computing (HPC) systems, unified authentication and user management system, Big Data and metadata framework, as well as its AI-SSRF-Superfacility Platform (AI-SSRF-SP), to accelerate and automate the scientific data analysis and processing pipelines, while fully integrating them into the imaging beamlines, thereby enhancing their overall scientific productivity.
The remainder of this article is organized as follows. In Section 2, we introduce the imaging beamlines at the SSRF and provide an overview on the various infrastructures and existing capabilities provided by the BDSC to the SR-CT community; Section 3
presents the detailed implementation of the software framework developed and deployed by the BDSC to accelerate and augment the SR-CT experiments; Section 4
provides an overview on the experimental performance improvements as a result of the deployment of the BDSC CT scientific computing framework, and illustrates its impact, presenting scientific case studies involving the SR-CT experiments accelerated and augmented by the BDSC CT scientific computing framework; finally, in Section 5
the conclusions and future prospects are presented.
2. The SSRF and the Big Data Science Center
2.1. The SSRF and the SSRF Phase-II Beamline Project
The SSRF is the first medium-energy third-generation synchrotron light source on the Chinese mainland, featuring a 150 MeV linear accelerator, a 3.5 GeV booster, a 3.5 GeV storage ring, a circumference of 432 m and an emittance of about 4 nm rad (Jiang et al., 2009; Yin et al., 2016
). The SSRF was established and became operational in 2009. Since then, it has supported nearly 700 research institutes, universities and industries worldwide, with a cumulative user base exceeding 37000 users. The SSRF Phase-II Beamline Project is one of the key national scientific infrastructure projects of the 12th five-year plan period, which was launched in 2016 and was fully completed in July 2023 (Tai & Zhao, 2022
). The main goal of the SSRF Phase-II Beamline Project is to significantly improve the performance and capabilities of the SSRF, and to meet the growing needs of the modern science and technology (Tai & Zhao, 2022
). This project comprises 18 novel beamlines and multiple endstations, accelerator upgrades, user supporting laboratories, including the BDSC, the beamline engineering and technology laboratories, as well as utilities and buildings, housing the BDSC, the user supporting facility and the user training facility.
To date, the SSRF has 34 beamlines and 46 endstations in operation (Fig. S1 of the supporting information). Having completed the Phase-II Beamline Project update, the SSRF is now able to provide comprehensive user support, including massive data storage, HPC systems, cloud/edge hybrid frameworks and the AI-assisted Big Data analysis and interpretation superfacility platform (Wang et al., 2021).
2.2. The Big Data Science Center
To address the Big Data deluge challenges at the large scientific facilities, the SSRF has strategically planned the BDSC as a component of the SSRF Phase-II Beamline Project. The BDSC is founded on the concept of implementing a superfacility at the SSRF (Wang et al., 2021). Therefore, the BDSC has developed and deployed a synchrotron big data framework that comprehensively integrates, within the SSRF, a large scientific facility experimental infrastructure with the HPC and supercomputing resources, scientific edge/cloud infrastructure, the Internet of Things (IoT) and AI capabilities, virtualization framework, low-latency high-throughput network, remote access infrastructure, the most updated theoretical science framework, producing the most advanced algorithms for science, and a user superfacility platform, enhancing their scientific productivity. This framework centralizes, unifies, manages, curates and formats the users' data from all the beamlines throughout the entire SSRF, enabling a comprehensive facility-wise data lifecycle management. At the same time, it provides a high-performance big data analysis and processing framework to the SSRF users and beamlines, facilitating the integration and centralization of all the experimental data pipelines, while fostering the real-time analytical capabilities at the SSRF.
To date, the BDSC metadata system has cataloged more than 47000 datasets, exceeding 1.6 PB, resulting from over 1200 SSRF user research proposals. The beamlines at the SSRF have thus highly benefitted from the BDSC scientific computing architecture, as demonstrated by the integration of the Aquarium pipeline (Yu et al., 2019) from the macromolecular crystallography beamline (BL02U1) and the Biosafety P2 protein crystallography beamline (BL10U2) into the BDSC scientific computing framework, which resulted in a significant improvement of their on-line data processing capabilities (Wang et al., 2021
).
2.3. The imaging beamlines
SSRF currently has several imaging beamlines available to its users, including the X-ray imaging and biological application beamline (BL13HB) (Xie et al., 2015), the 3D nano imaging beamline (BL18B) (Tao et al., 2023
) and the fast X-ray imaging beamline (BL16U2) (Tai & Zhao, 2022
). The X-ray imaging experimental methods include X-ray micro-CT, dynamic micro-CT, X-ray nano-CT, computed tomography (XFCT), small-angle X-ray scattering (SAXS)-CT, full-field transmission X-ray microscopy (TXM), etc. (Xie et al., 2020
). The fast X-ray imaging beamline is dedicated to both fast X-ray imaging and dynamic X-ray micro-CT, providing experimental temporal imaging resolution from milliseconds, to microseconds, to ∼100 ps. During commissioning, it has also successfully performed single-shot synchrotron X-ray imaging with 60 ps time resolution (X-ray time) in a hybrid bunch filling mode with a maximum single bunch up to 23 mA (Tai & Zhao, 2022
). The 3D nano imaging beamline is dedicated to full-field transmission X-ray microscopy and full-field X-ray nano-tomography.
3. Integrating the imaging beamlines
3.1. Imaging data pipelines
The overall design target for the BDSC, developing the SR-CT pipeline system, is to deploy and provide a software framework capable of real-time automatic experimental data processing, analysis and result feedback to all users at SSRF imaging beamlines, as shown in Fig. 1 (Sepe et al., 2024
). Architected, developed and deployed over a period of one year, this framework aims at fully utilizing the HPC resources and capabilities provided by the BDSC, including its unified authentication management system, its metadata management system (SSRF-SciCat) and its AI-SSRF-SP, to accelerate and automate the SR-CT experimental data analysis pipeline at the imaging beamlines, thereby enhancing the users' scientific productivity. Furthermore, the BDSC staff's modular and multidisciplinary skill sets are leveraged, encompassing a portfolio of expertise from scientific computing to material science, bioscience, synchrotron science, data science, computational science, chemistry, physics, and software and hardware engineering. The BDSC SR-CT software framework is capable of running the SR-CT reconstruction applications on the BDSC HPC cluster systems, effectively utilizing the CPU and GPU computing resources, supporting the massively parallelized CT reconstruction computing tasks, thereby significantly reducing the online data processing time. Furthermore, it provides fully automatic SR-CT experimental data processing pipelines, equipped with a GUI and services tightly integrated within the BDSC, while adopting an advanced architecture that is efficient, stable, reliable and scalable. These pipelines provide real-time feedback and monitoring of the pipeline task status. The BDSC SR-CT framework fully utilizes the SSRF-SciCat metadata management system, linking all the data and input/output parameters resulting from the SR-CT reconstruction applications with the corresponding experimental data and metadata. All the scientific metadata are then aggregated into a JavaScript Object Notation (JSON) universal file format, which are then accessed by the AI-SSRF-SP platform with the purpose of training the AI through machine learning (ML). Moreover, it implements a unified and standardized full data lifecycle management for the raw data, processed data and results produced by the users' experiments at the imaging beamlines. It also provides to the users a fully integrated solution for all the data services accessible through the AI-SSRF-SP. Additionally, it does integrate the BDSC unified authentication system into the SR-CT experimental pipelines, providing a robust authentication management system ensuring overall data privacy and security.
![]() | Figure 1 Design of the SR-CT pipeline system. |
3.2. Integration of the SR-CT reconstruction applications
The integrated SR-CT reconstruction application is a specialized 3D CT reconstruction software developed and tailored on the specific data workflow used by the X-ray nano- and micro-CT beamlines, and it is designed to seamlessly operate within an HPC cluster environment. The application consists of two components: a GUI, tailored for the Windows operating system, and a server-side module. The GUI allows users to import data, to use sample-specific features for image correction and alignment, and to set pre-reconstruction parameters using a graphical interface, which, further, allows users to seamlessly submit CT reconstruction computational tasks, for processing, to the BDSC HPC clusters. The server-side component, instead, is in charge of running the high-performance 3D reconstructions, based on the parameters provided by the users through the GUI (Sepe et al., 2024).
The reconstruction application functionalities provide comprehensive support for the full-field nanoscale CT and microscale CT scanning data reconstructions, while supporting the selection of the reconstruction algorithms, including the filtered back-projection (FBP) and the algebraic reconstruction technique (ART). They integrate the ordered subset expectation maximization (OSEM) algorithm, and the capability of performing missing angle reconstruction. Furthermore, they provide GPU-accelerated real-time and efficient 3D reconstruction capabilities, and support for image pre-processing capabilities (background subtraction, filtering, smoothing, etc.), for ring artifact removal, for the batch reconstruction of the micro-CT data and for semi-automatic geometric parameter correction.
Meanwhile, the application GUI functionalities include a client–server architecture, designed to operate within a LAN, and facilitating seamless client–server interactions. Furthermore, they support manual annotation and correction driven by sample-specific features inside the nano-CT projection data; pre-reconstruction of the projection data, allowing a quick preview of the reconstruction results; region of interest reconstructions, enabling the users to select the desired reconstruction area; sample spatial orientation correction, allowing the users to adjust the sample spatial orientation as-needed; and real-time 3D multi-planar reformation (MPR) rendering of the reconstructed data.
3.3. Framework architecture
The architecture of the SR-CT pipeline framework is shown in Fig. 2 (Sepe et al., 2024
). The framework comprises several components: the SSRF-SciCat scientific metadata management system that has been deployed by the BDSC; the Zookeeper node governance cluster; the Kafka message management cluster; the SSRF Active Directory (AD) domain account authentication system; and the BDSC HPC storage. The overall architecture consists of three layers: the system driver layer; the core framework service layer; and the client application layer, as shown in Fig. 2
(bottom-up).
![]() | Figure 2 Architecture of the SR-CT framework. |
The system driver layer, which includes the GPU pipeline driver, the pipeline message driver and the Linux Application Programming Interface (API) for the tomography pipeline, runs on the BDSC cluster and is responsible for providing a standard API interface for the GPU task submission pipeline and scheduling management, and for sending task-end messages to the Kafka message management cluster, once a task ends.
The core framework service layer runs on the BDSC data processing node, and it is responsible for receiving and processing pipeline task status messages, initializing the imaging beamline data collection and processing programs, parsing and extracting all the input and output metadata, in real-time, from the imaging beamline reconstruction pipelines, as well as for parsing the metadata from the scheduling system. Based on the management rules set for the SSRF-SciCat scientific metadata system, all the extracted metadata are then persistently stored within the SSRF-SciCat metadata repository.
The client application layer runs on the terminal workstations at the imaging beamlines, and it is responsible for providing the processing pipeline APIs to the integrated SR-CT reconstruction applications. Both the client and the reconstruction applications are deployed together. When the reconstruction applications utilize the BDSC HPC resources for the reconstructions, then the pipeline client is launched, accordingly. It receives input and data from the reconstruction applications, parses the specified parameter files, submits the computational tasks to the BDSC and then returns the status of BDSC data processing and the path to the output data. The reconstructed data can, then, be accessed directly from the imaging beamline workstations. The client application layer supports two operating modes: a Windows client mode and a Linux client mode, with a unified account and storage management system provided for both Windows and Linux systems.
3.4. Functional modules
The various modules developed by the BDSC for the SR-CT framework (Sepe et al., 2024), along with their respective categories, specific functionalities and deployment locations, can be found in Table S1 of the supporting information.
3.5. Framework workflow
The complete workflow of the SR-CT pipeline framework (Sepe et al., 2024) is shown in Fig. 3
. Users log in to the imaging beamline workstation using their SSRF AD credentials. The SR-CT reconstruction application is then launched on the beamline workstation. The users' input files are upload to the workstation and the parameters for the data reconstruction are configured [Fig. 3
(a)]. The pipeline task is then submitted, with the SR-CT reconstruction application invoking the BDSC pipeline client in order to submit the task to the remote BDSC HPC clusters [Fig. 3
(b)]. When the reconstruction task is completed, the message bus is triggered [Fig. 3
(c)]. The imaging beamline data processing service then receives a message and retrieves the task record and the metadata files from disk [Fig. 3
(d)]. Subsequently, the imaging beamline data processing service parses the metadata and ingests them into the SSRF-SciCat system [Fig. 3
(e)]. The beamline workstation then mounts the shared storage, and the users can see the 3D reconstruction results directly on the beamline workstation [Fig. 3
(f)].
![]() | Figure 3 Workflow of the SR-CT pipeline framework. |
3.6. Data transfer and management
The BDSC scientific computing architecture enables the imaging beamline workstation, which is integrated within the SSRF AD domain, to mount and access the BDSC network storage (Sepe et al., 2024). Using the SR-CT reconstruction application, the SSRF users can, thus, select the reconstruction input data from either the imaging beamline local workstation storage or the BDSC network storage.
When the input data are located on the local workstation storage, the BDSC SR-CT framework automatically detects and synchronizes them with the reconstruction task directory under the current AD account path on the BDSC. Each reconstruction task directory is named by default after the input file name and a timestamp. On the other hand, when the input data are stored on the BDSC network storage, the BDSC SR-CT framework does not synchronize the data. Instead, it generates a parameter file anew, and updates the parameter path with the actual storage location. The reconstructed data, generated by the reconstruction task, will be then stored inside the output directory, which is located inside the corresponding reconstruction task directory. Users can then directly access their data from the output directory at the beamline workstation.
3.7. Metadata
As illustrated in Fig. 4, the imaging beamline metadata service parses and extracts all the input and output metadata during the reconstruction pipeline tasks; it also extracts the metadata from the scheduling system, and then feeds all the extracted metadata to the SSRF-SciCat (Sepe et al., 2024
). Within the SSRF-SciCat metadata structure, all the most relevant and crucial experimental information are tagged with the #Scientific_metadata label, the #dataset label tags all the information related to the data files, while the #General label tags the additional metadata from the SSRF user proposal management system and from the unified account authentication service (Wang et al., 2021
).
![]() | Figure 4 Metadata architecture of the imaging pipelines. |
3.8. GUI
During the SR-CT pipeline execution, a GUI is automatically initiated and made available to the users, further providing an intuitive overview on the pipeline progress to the users (Sepe et al., 2024). The GUI does highlight each step within the pipeline execution progress, using colored boxes and arrows (Fig. S2), where blinking green highlights the step that is currently executed, solid green highlights that the step has been completed, and solid gray highlights that the step is queued.
The pipeline execution procedure is divided into six stages, as illustrated in Fig. S2 of the supporting information, where, from left to right, LOGIN reports the user's login status, CHECK reports the framework input file check status, SUBMIT reports the computing job submission status, QUEUE reports the computing job queuing status, RUN reports the computing job execution status, and DONE reports the accomplishment status of the entire pipeline.
3.9. Framework benefits
The BDSC SR-CT framework provides several advantages and improvements to the imaging experiments at the synchrotron facilities:
(i) Application-agnostic. The system is highly decoupled from the SR-CT reconstruction applications and other systems at the imaging beamline. It is not limited to a specific imaging application, and it can easily integrate a large plethora of different CT reconstruction software. Moreover, only very minimal modifications are required in order to create a completely new automated processing pipeline for a totally different imaging application or task.
(ii) Metadata management. With the deployment of the SR-CT framework, the BDSC established a standardized tagging system for the labeling of the synchrotron imaging metadata parameters. It can automatically parse the parameter and value tags, and then submit tasks and synchronize data, accordingly. Other CT reconstruction applications can, thus, output parameters based on the BDSC SR-CT tagging system specifications. Moreover, the BDSC SR-CT framework is also capable of parsing customized parameter and value tags from other systems and different applications, and convert them into a standard metadata structure, ultimately feeding them into the SSRF-SciCat system.
(iii) SR-CT beamline reconstruction software integration. The framework client is developed using the Java programming language, providing a cross-platform user interface, while being able of integrating other software developed using different programming languages. Real-time data processing and analysis is achieved through inter-process communication via the deployment of process pipelines. This allows seamless integration with any software which could be developed in the future using the same communication method.
(iv) High-performance task processing. The BDSC SR-CT framework integrates the BDSC cluster task submission system and the query interfaces on the server-side, using a cross-platform REpresentational State Transfer (REST) API. The BDSC dynamically schedules tasks based on the resource availability, eliminating the need for the clients to be tightly bound to a specific set of resources, thus fostering scalability and the automatic allocation of the processing resources.
4. Results
4.1. Improvements of the imaging experimental performances
To assess the performance improvements brought by the SR-CT pipeline framework to the imaging experiments, we conducted performance evaluations in a production environment using the fast X-ray imaging beamline (BL16U2) workstations and a series of dynamic CT experimental datasets. Each set of the dynamic CT raw data consists of 250 (2000 × 1007 pixels) projections, with each projection being 3.84 MB in size. The total size of a single set of the dynamic CT raw data is 960 MB. For each dataset, the reconstructed (2000 × 2000 × 1007 voxels) 3D result data are stored in .RAW files, 7.5 GB in size. Then, these .RAW files can be split into 1007 (2000 × 2000 pixels) slices using .TIFF format, with each slice being 7.63 MB in size.
We carried out 3D reconstructions, both on individual datasets and on a series of datasets, using both the PITRE reconstruction program (Chen et al., 2012), which utilizes the computing resources of the local workstation, specifically an Intel Xeon Gold 6244 CPU, comprising eight cores operating at 3.6 GHz, equipped with 256 GB of RAM and running the Microsoft Windows 10 operating system, and the BDSC centralized SR-CT pipeline framework, which is running the CentOS Linux 7 operating system. For batch parallel reconstructions, we utilized four GPU nodes on the BDSC clusters, with eight threads, where each node was equipped with two Intel Xeon 5118 CPUs, with 12 cores at 2.3 GHz, 128 GB of RAM and two NVIDIA Tesla P100 GPU cards. In both approaches, the FBP algorithm was used for the reconstructions. The results, as shown in Table 1
, demonstrate that, compared with the original PITRE software used at the SSRF imaging beamlines, the 3D reconstructions for a single dataset, using the BDSC SR-CT pipeline, are accelerated by a factor of 7.84, while, in the case of the batch 3D reconstructions, they are accelerated by a factor of up to 59.34. With regard to the BDSC SR-CT pipeline, the typical time from task submission to the beginning of queuing is approximately 5 s, with an additional 30 s of queuing time before running on the node, and with a total completion time of approximately 11 min. The acceleration hereby introduced is thus resulting from accurately hybridizing the BDSC Big Data framework with its HPC infrastructure. In particular, the BDSC Big Data framework capabilities, which are designed to centralize, unify, manage, curate and format the experimental data from the beamlines, can be leveraged to transition the raw data into a metadata format that is ingested by the advanced data analysis, reconstruction and visualization, as well as machine learning, pipelines, which are fully integrated within the BDSC HPC cloud/edge underlying hybrid infrastructure.
|
4.2. Case studies
To showcase the impact of the BDSC SR-CT framework on the experimental studies employing the SR-CT, case studies, from the typical application area of the SR-CT research, are presented employing the BDSC SR-CT framework.
Fig. 5 shows the experimental results from the SR-CT 3D imaging analysis, at the X-ray imaging and biological application beamline (BL13HB), of the pores and defects within a micro-fabricated magnesium–aluminium (Mg–Al) alloy. Fig. 5
(a) shows the reconstructed 3D image, while Fig. 5
(b) illustrates a cross-sectional view through the largest pore present in the alloy. Figs. 5
(c) and 5
(d), instead, show a selected region of interest for slicing within the 3D reconstructed volume and the corresponding longitudinal view of the 3D distribution and structure of the internal pores, respectively. The scale bar in the figures represents 100 µm. The smallest pore present in the alloy measures, approximately, a few tens of micrometres. By employing the 3D imaging technique, the spatial distribution of these features can be analyzed in order to assess the impact of the manufacturing process on the samples and evaluate their qualities. This case study illustrates the acceleration achieved by implementing the BDSC centralized SR-CT pipeline on the SSRF imaging beamlines, with a factor of 10.37 increase in experimental analysis speed (Table 1
).
![]() | Figure 5 3D imaging of the pores and defects in the magnesium–aluminium alloy. (a) 3D reconstruction image, (b) cross-sectional view through the largest pore present in the alloy, (c) selected region of interest for slicing within the 3D reconstructed volume, and (d) corresponding longitudinal view of the 3D distribution and structure of the internal pores, are shown. |
The experimental result presented in Fig. 6 shows SR-CT phase-contrast imaging, and the corresponding frontal 2D reconstructed slice, of a fish head (Poecilia reticulata), where a 3D reconstruction is obtained after phase retrieval, leveraging the high spatial resolution (0.325 µm pixel−1) provided by the X-ray micro-CT beamline. As shown in the figure, despite the intricate structure of the fish head, the 3D imaging technique enables the discrimination of its various biological tissue structures. The scale bar in Fig. 6
(a) represents 1 mm, with the smallest feature present in the fish head measuring, approximately, a few tens of micrometres. 3D high spatial resolution phase contrast SR-CT allows observation of the tiniest structural details and features in bones, blood vessels, nerve fibers, etc., which is crucial for the investigation of the spatial distribution, morphological changes, internal structures, etc., occurring in complex biological structures, thus allowing for a more in-depth comprehensive study. This case study provides further evidence of the acceleration achieved through the implementation of the BDSC centralized SR-CT pipeline on the SSRF imaging beamlines, with a factor of 9.5 increase in experimental analysis speed (Table 1
). Movie S1 illustrates the imaging results.
![]() | Figure 6 SR-CT (a) 3D phase-contrast imaging, and (b) corresponding frontal 2D reconstructed slice, of a fish head (Poecilia reticulata), where the different biological tissue structures can be clearly discriminated. |
5. Conclusions
The BDSC has architected, developed and deployed, at the SSRF, an SR-CT pipeline software framework capable of effectively harnessing the BDSC scientific computing resources in order to accelerate and augment large-scale, massively parallelized, 3D CT experimental reconstructions at the imaging beamlines. The imaging beamlines at SSRF have been, in fact, fully integrated within the BDSC scientific computing framework, thus enabling the full automation of the real-time data processing and analysis pipelines and feedback, significantly reducing the time necessary for the users to process and analyze their experimental data. Furthermore, the BDSC has also integrated its SR-CT framework into the SSRF unified authentication management system (which has also been developed by the BDSC), thus enhancing the level of the framework data privacy and security. Moreover, the BDSC has architected and deployed the SR-CT metadata infrastructure at the SSRF, where all the inputs and outputs, including data and parameters, are ingested by the SSRF-SciCat system, and aggregated into the JSON universal file format, thus enabling the training of scientific AI through ML approaches. The limitations presented by the PITRE software, which lacked crucial HPC features, including the lack of parallelization capabilities and a codebase relying heavily on CPUs rather than being optimized for harnessing GPU architectural acceleration, proved to be a significant challenge for the BDSC during the design and integration phases of the imaging experimental pipeline into the BDSC HPC infrastructure. To address this limitation, the BDSC has thus designed, developed and deployed a framework capable of wrapping the PITRE software with a software layer, equipped with a GPU-aware scheduler and massive parallelization capabilities. This framework is able to translate non-HPC routines into HPC-optimized reconstructions, effectively allowing scientific software, not optimized for the HPC architecture, to access all the benefits of a modern scientific computing framework. The performance evaluation of the BDSC SR-CT framework demonstrates the extent of the acceleration induced by the SR-CT experimental data processing and analysis capabilities compared with the traditional beamline CT reconstruction approaches, impacting the application areas of the synchrotron imaging methods. The BDSC SR-CT framework architecture is highly decoupled from the beamline data infrastructure and the other systems; this allows it to be generalizable, adaptable, scalable, application agnostic and modularly expandable, thus facilitating its integration into the most diverse SR-CT software frameworks addressing the most heterogeneous scientific cases at other facilities worldwide, while seamlessly and quickly adapting to the new challenges posed by the evolution of the future SR-CT experiments, without requiring a structural change in its architecture.
Supporting information
Figure S1: SSRF beamline layout; Table S1: functional modules of the SR-CT framework; Figure S2: the UI of the SR-CT pipeline framework. DOI: https://doi.org/10.1107/S1600577524007239/ju5063sup1.pdf
Imaging results. DOI: https://doi.org/10.1107/S1600577524007239/ju5063sup2.mp4
Footnotes
‡These authors contributed equally to this paper.
Acknowledgements
The authors acknowledge support from the Shanghai Synchrotron Radiation Facility, Shanghai Advanced Research Institute, Chinese Academy of Sciences, through the BDSC project.
Conflict of interest
The authors declare no competing interests.
Data availability
The authors confirm that the data supporting the findings of this study are available within the article and its supplementary materials.
Funding information
The following funding is acknowledged: Youth Innovation Promotion Association of the Chinese Academy of Sciences (grant No. 2022290); National Key Research and Development Program of China (grant No. 2021YFA1601000); Institute of High Energy Physics (grant No. National HEP Science Data Center); Young Scientists in Basic Research of the Chinese Academy of Sciences (grant No. YSBR-096); Shanghai Municipal Science and Technology (grant No. Major Project); National Key Research and Development Program Young Scientist Project (grant No. SQ2023YFA1600032).
References
Atwood, R. C., Bodey, A. J., Price, S. W. T., Basham, M. & Drakopoulos, M. (2015). Philos. Trans. R. Soc. A. 373, 20140398. CrossRef Google Scholar
Blair, J., Canon, R. S., Deslippe, J., Essiari, A., Hexemer, A., MacDowell, A. A., Parkinson, D. Y., Patton, S. J., Ramakrishnan, L., Tamura, N., Tierney, B. L. & Tull, C. E. (2014). Proc. SPIE, 9212, 92121G. Google Scholar
Borisova, E., Lovric, G., Miettinen, A., Fardin, L., Bayat, S., Larsson, A., Stampanoni, M., Schittny, J. C. & Schlepütz, C. M. (2021). Histochem. Cell Biol. 155, 215–226. Web of Science CrossRef CAS PubMed Google Scholar
Brun, F., Massimi, L., Fratini, M., Dreossi, D., Billé, F., Accardo, A., Pugliese, R. & Cedola, A. (2017). Adv. Struct. Chem. Imag, 3, 4. CrossRef Google Scholar
Buurlage, J.-W., Marone, F., Pelt, D. M., Palenstijn, W. J., Stampanoni, M., Batenburg, K. J. & Schlepütz, C. M. (2019). Sci. Rep. 9, 18379. CrossRef PubMed Google Scholar
Chen, R.-C., Dreossi, D., Mancini, L., Menk, R., Rigon, L., Xiao, T.-Q. & Longo, R. (2012). J. Synchrotron Rad. 19, 836–845. Web of Science CrossRef IUCr Journals Google Scholar
Deng, B., Du, G., Zhou, G., Wang, Y., Ren, Y., Chen, R., Sun, P., Xie, H. & Xiao, T. (2015). Analyst, 140, 3521–3525. CrossRef CAS PubMed Google Scholar
Deslippe, J., Essiari, A., Patton, S. J., Samak, T., Tull, C. E., Hexemer, A., Kumar, D., Parkinson, D. & Stewart, P. (2014). Proceedings of the 9th Workshop on Workflows in Support of Large-Scale Science (WORKS '14), 16–21 November 2014, New Orleans, LA, USA, pp. 31–40. IEEE Press. Google Scholar
Faragó, T., Gasilov, S., Emslie, I., Zuber, M., Helfen, L., Vogelgesang, M. & Baumbach, T. (2022). J. Synchrotron Rad. 29, 916–927. Web of Science CrossRef IUCr Journals Google Scholar
García–Moreno, F., Kamm, P. H., Neu, T. R., Bülk, F., Noack, M. A., Wegener, M., von der Eltz, N., Schlepütz, C. M., Stampanoni, M. & Banhart, J. (2021). Adv. Mater. 33, 2104659. Google Scholar
Gürsoy, D., De Carlo, F., Xiao, X. & Jacobsen, C. (2014). J. Synchrotron Rad. 21, 1188–1193. Web of Science CrossRef IUCr Journals Google Scholar
Hidayetoğlu, M., Bicer, T., Gonzalo, S. G., d, Ren, B., Andrade, V. D., Gursoy, D., Kettimuthu, R., Foster, I. T., Hwu, W. & -m, W. (2020). Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, 12–17 November 2023, Denver, CO, USA. Article 37. Google Scholar
Hu, T., Wang, Y., Du, G., Wang, Y., Hua, W., Deng, B., Xie, H., Bian, F. & Xiao, T. (2017). Appl. Opt. 56, 8326–8334. Web of Science CrossRef CAS PubMed Google Scholar
Jiang, M., Yang, X., Xu, H., Zhao, Z. & Ding, H. (2009). Chin. Sci. Bull. 54, 4171–4181. CrossRef Google Scholar
Jonge, M. D. de, Holzner, C., Baines, S. B., Twining, B. S., Ignatyev, K., Diaz, J., Howard, D. L., Legnini, D., Miceli, A., McNulty, I., Jacobsen, C. J. & Vogt, S. (2010). Proc. Natl Acad. Sci. USA, 107, 15676–15680. Web of Science PubMed Google Scholar
Kazantsev, D., Wadeson, N. & Basham, M. (2022). SoftwareX, 19, 101157. Google Scholar
Marone, F., Studer, A., Billich, H., Sala, L. & Stampanoni, M. (2017). Adv. Struct. Chem. Imag, 3, 1. Web of Science CrossRef Google Scholar
Mirone, A., Brun, E., Gouillart, E., Tafforeau, P. & Kieffer, J. (2014). Nucl. Instrum. Methods Phys. Res. B, 324, 41–48. Web of Science CrossRef CAS Google Scholar
Mokso, R., Schlepütz, C. M., Theidel, G., Billich, H., Schmid, E., Celcer, T., Mikuljan, G., Sala, L., Marone, F., Schlumpf, N. & Stampanoni, M. (2017). J. Synchrotron Rad. 24, 1250–1259. Web of Science CrossRef IUCr Journals Google Scholar
Nikitin, V. (2023). J. Synchrotron Rad. 30, 179–191. Web of Science CrossRef IUCr Journals Google Scholar
Pandolfi, R. J., Allan, D. B., Arenholz, E., Barroso-Luque, L., Campbell, S. I., Caswell, T. A., Blair, A., De Carlo, F., Fackler, S., Fournier, A. P., Freychet, G., Fukuto, M., Gürsoy, D., Jiang, Z., Krishnan, H., Kumar, D., Kline, R. J., Li, R., Liman, C., Marchesini, S., Mehta, A., N'Diaye, A. T., Parkinson, D. Y., Parks, H., Pellouchoud, L. A., Perciano, T., Ren, F., Sahoo, S., Strzalka, J., Sunday, D., Tassone, C. J., Ushizima, D., Venkatakrishnan, S., Yager, K. G., Zwart, P., Sethian, J. A. & Hexemer, A. (2018). J. Synchrotron Rad. 25, 1261–1270. Web of Science CrossRef IUCr Journals Google Scholar
Pelt, D. M., Gürsoy, D., Palenstijn, W. J., Sijbers, J., De Carlo, F. & Batenburg, K. J. (2016). J. Synchrotron Rad. 23, 842–849. Web of Science CrossRef CAS IUCr Journals Google Scholar
Sepe, A., Wang, C., Li, X., Wan, R., Chen, J. & Ye, J. (2024). Imaging Framework developed by the Big Data Science Center (BDSC) at Shanghai Synchrotron Radiation Facility (SSRF), https://doi.org/10.6084/m9.figshare.25807327.v1. Google Scholar
Suzuki, M., Kim, K.-J., Kim, S., Yoshikawa, H., Tono, T., Yamada, K. T., Taniguchi, T., Mizuno, H., Oda, K., Ishibashi, M., Hirata, Y., Li, T., Tsukamoto, A., Chiba, D. & Ono, T. (2018). Appl. Phys. Expr. 11, 036601. Web of Science CrossRef Google Scholar
Tai, R. & Zhao, Z. (2022). J. Phys. Conf. Ser. 2380, 012004. CrossRef Google Scholar
Tao, F., Wang, J., Du, G., Su, B., Zhang, L., Hou, C., Deng, B. & Xiao, T. (2023). J. Synchrotron Rad. 30, 815–821. Web of Science CrossRef CAS IUCr Journals Google Scholar
Vescovi, R. F. C., Cardoso, M. B. & Miqueles, E. X. (2017). J. Synchrotron Rad. 24, 686–694. Web of Science CrossRef CAS IUCr Journals Google Scholar
Vogelgesang, M., Chilingaryan, S., dos Santos, T. & Kopmann, A. (2012). 2012 IEEE 14th International Conference on High Performance Computing and Communication (HPCC-2012) & 2012 IEEE 9th International Conference on Embedded Software and Systems (ICESS-2012), 25–27 June 2012, Liverpool, UK, pp. 824–829. Google Scholar
Vogelgesang, M., Farago, T., Morgeneyer, T. F., Helfen, L., dos Santos Rolo, T., Myagotin, A. & Baumbach, T. (2016). J. Synchrotron Rad. 23, 1254–1263. Web of Science CrossRef IUCr Journals Google Scholar
Wadeson, N. & Basham, M. (2016). arXiv:1610.08015. Google Scholar
Wang, C., Steiner, U. & Sepe, A. (2018). Small, 14, 1802291. Web of Science CrossRef Google Scholar
Wang, C., Yu, F., Liu, Y., Li, X., Chen, J., Thiyagalingam, J. & Sepe, A. (2021). Mach. Learn.: Sci. Technol. 2, 035003. CrossRef Google Scholar
Wang, F., Zhou, P., Li, K., Mamtilahun, M., Tang, Y., Du, G., Deng, B., Xie, H., Yang, G. & Xiao, T. (2020). IUCrJ, 7, 793–802. Web of Science CrossRef CAS PubMed IUCr Journals Google Scholar
Xie, H., Deng, B., Du, G., Fu, Y., Chen, R., Zhou, G., Ren, Y., Wang, Y., Xue, Y., Peng, G., He, Y., Guo, H. & Xiao, T. (2015). Nucl. Sci. Tech. 26, 020102. Google Scholar
Xie, H., Luo, H., Du, G., Zhao, C., Xu, W., Zhou, G., Chen, R. & Xiao, T. (2019). J. Synchrotron Rad. 26, 1631–1637. Web of Science CrossRef CAS IUCr Journals Google Scholar
Xie, H.-L., Deng, B., Du, G.-H., Fu, Y.-N., Guo, H., Xue, Y.-L., Peng, G.-Y., Tao, F., Zhang, L. & Xiao, T.-Q. (2020). Nucl Sci Tech, 31, 102. CrossRef Google Scholar
Xing, L., McKellar, R. C., Wang, M., Bai, M., O'Connor, J. K., Benton, M. J., Zhang, J., Wang, Y., Tseng, K., Lockley, M. G., Li, G., Zhang, W. & Xu, X. (2016). Nat. Commun. 7, 12089. CrossRef PubMed Google Scholar
Xu, L., Chen, R., Du, G., Yang, Y., Wang, F., Deng, B., Xie, H. & Xiao, T. (2016). Sci. Rep. 6, 32380. Web of Science CrossRef PubMed Google Scholar
Ye, J., Wang, C., Chen, J., Wan, R., Li, X., Sepe, A. & Tai, R. (2023). Appl. Sci. 13, 5387. CrossRef Google Scholar
Yin, L., Tai, R., Wang, D. & Zhao, Z. (2016). J. Vac. Soc. Jpn. 59, 198–204. CrossRef CAS Google Scholar
Yu, F., Wang, Q., Li, M., Zhou, H., Liu, K., Zhang, K., Wang, Z., Xu, Q., Xu, C., Pan, Q. & He, J. (2019). J. Appl. Cryst. 52, 472–477. Web of Science CrossRef CAS IUCr Journals Google Scholar
Zhang, L., Wu, L., Wang, C., Zhang, G., Yu, L., Li, H., Maharjan, A., Tang, Y., He, D., York, P., Sun, H., Yin, X., Zhang, J. & Sun, L. (2018). Anal. Chem. 90, 3238–3244. CrossRef CAS PubMed Google Scholar
Zhang, R., Wang, C., Zou, P., Lin, R., Ma, L., Yin, L., Li, T., Xu, W., Jia, H., Li, Q., Sainio, S., Kisslinger, K., Trask, S. E., Ehrlich, S. N., Yang, Y., Kiss, A. M., Ge, M., Polzin, B. J., Lee, S. J., Xu, W., Ren, Y. & Xin, H. L. (2022). Nature, 610, 67–73. Web of Science CrossRef CAS PubMed Google Scholar
This is an open-access article distributed under the terms of the Creative Commons Attribution (CC-BY) Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original authors and source are cited.
![Open Access](/logos/open.png)