Open Access Article
This Open Access Article is licensed under a Creative Commons Attribution-Non Commercial 3.0 Unported Licence

Autonomous elemental characterization enabled by a low cost robotic platform built upon a generalized software architecture

Xuan Cao*a, Yuxin Wua and Michael L. Whittaker*ab
aEnergy Geosciences Division, Lawrence Berkeley National Laboratory, Berkeley, CA 94720, USA. E-mail: caoxuan8872@gmail.com
bMaterials Science Division, Lawrence Berkeley National Laboratory, Berkeley, CA 94720, USA. E-mail: mwhittaker@lbl.gov

Received 14th June 2025 , Accepted 17th December 2025

First published on 12th January 2026


Abstract

Despite the rapidly growing applications of robots in industry, the use of robots to automate tasks in scientific laboratories is less prolific due to the lack of generalized methodologies and the high cost of hardware. This paper focuses on the automation of characterization tasks necessary for reducing cost while maintaining generalization and proposes a software architecture for building robotic systems in scientific laboratory environments. A dual-layer (Socket.IO and ROS) action server design is the basic building block, which facilitates the implementation of a web-based front end for user-friendly operation and the use of ROS Behavior Trees for convenient task planning and execution. A robotic platform for automating mineral and material sample characterization is built upon the architecture, with an open-source, low-cost three-axis computer numerical control gantry system serving as the main robot. A handheld laser induced breakdown spectroscopy (LIBS) analyzer is integrated with a 3D printed adapter, enabling (1) automated 2D chemical mapping and (2) autonomous sample measurement (with the support of an RGB-Depth camera). We demonstrate the utility of automated chemical mapping by scanning the surface of a spodumene-bearing pegmatite core sample with a 1071-point dense hyperspectral map acquired at a rate of 1520 bits per second. Furthermore, we showcase the autonomy of the platform in terms of perception, dynamic decision-making, and execution, through a case study of LIBS measurement of multiple mineral samples. The platform enables controlled and autonomous chemical quantification in the laboratory that complements field-based measurements acquired with the same handheld device, linking resource exploration and processing steps in the supply chain for lithium-based battery materials.


1. Introduction

The rapid development of robotics in recent years has given a boost to its applications in industry, such as machine tending,1 palletizing,2 and assembly.3 The operational stock of industrial robots worldwide increased from about 1.3 million in 2013 to 4.3 million in 2023.4

Similarly, robotic automation in research laboratories has become an emerging field, since “Robotics and automation can enable scientific experiments to be conducted faster, more safely, more accurately, and with greater reproducibility, allowing scientists to tackle large societal problems in domains such as health and energy on a shorter timescale”.5 Although there have been successful applications of robotic automation in laboratories,6–10 the use of robots to automate laboratory operations is still limited in general due to the automation gap caused by the variety of tasks and protocols,11 ultimately resulting in high costs.

This work sheds some light on the automation of characterization tasks in labs, which determine the properties, composition, and behavior of substances (e.g. spectrometry, microscopy, thermal analysis, etc.), and hence are essential in scientific research. One common pattern in characterization tasks is sample-move-instrument-stay (SMIS), where a sample is placed at a specific position for an analytical instrument to start working. Automating this pattern using robots requires precise pick-and-place operations and enough degrees of freedom.

By contrast, this paper focuses on the sample-stay-instrument-move (SSIM) pattern, where an instrument is held by a robot and moved around a sample during characterization. Automating this pattern does not require pick-and-place operations since the instrument is mounted on the robot all the time. Sample standardization, such as positioning on a 2D horizontal plane, reduces the robot's required degrees of freedom to reach the samples, which could potentially lower the hardware cost.

Towards this end, this paper introduces a robotic platform for automating SSIM characterization tasks for mineral and material samples. The platform consists of (1) a low-cost 3D (translational movements in X, Y, and Z directions) gantry system commonly used in traditional computer numerical control (CNC) machining as the primary robot, (2) an analytical instrument mounted to the gantry system for sample characterization, and (3) a stereo camera capable of depth sensing for locating samples to be measured. All components and samples to be measured are placed on a benchtop. The general workflow consists of the following steps: (1) a sample location is either predefined or identified by the camera; (2) the gantry system moves the analytical instrument to the sample location; (3) the instrument starts characterization and collects raw data; (4) the raw data are processed and optional feedback is generated.

The core of the software is a generalized custom-designed architecture for automation systems in laboratory environments. The basis of the architecture is a dual-layer action server design for every hardware component, which monitors incoming operation requests through both Socket.IO12 and Robot Operating System (ROS)13 communication protocols and commands the hardware to act accordingly. On top of all action servers lies a Behavior Tree (BT)14 which orchestrates the hardware components by interacting with their action servers to automate the characterization workflow. A web-based front end is developed to ensure user-friendly operations of the platform, including both manual control of each individual hardware and execution of the BT.

To showcase the efficacy of the platform, we integrate a handheld laser induced breakdown spectroscopy (LIBS) analyzer with the gantry system and use the platform in two case studies. In the first case study, dense LIBS scanning is performed on the surface of a spodumene-bearing pegmatite core sample with 1071 measurement points, each containing optical emission spectra between 190 nm and 950 nm with 0.03 nm resolution, corresponding to 22[thin space (1/6-em)]800 data channels per measurement. The resulting 2 × 107 data are automatically quantified using a custom algorithm, yielding spatially resolved, comprehensive chemical analysis with parts-per-million levels for most chemical elements. In the second case study, autonomous perception, dynamic decision-making, and execution are demonstrated by measuring mineral samples, one of which is moved from inside to outside of the platform's hypothetical reachable area during the measurement. The platform is capable of identifying which samples have been measured and which have not, recognizing changes in sample locations, dynamically adjusting its plan, and executing the plan accordingly. The autonomous LIBS characterization (1) frees researchers from tedious operations, (2) accelerates LIBS characterization by at least 3 times the rate of manual operations, and (3) provides crucial information about downstream processing chemistry.

This paper makes three contributions. First, a generalized software architecture for building robotic automation systems in scientific laboratory environments is proposed. Second, a low-cost gantry system commonly used in CNC machining is shown to be capable of working as a robot for the automation of SMIS characterization tasks. Third, automated dense LIBS scanning using the developed robotic platform and automatic data reduction is achieved.

2. Related work

This section reviews the literature related to automation in laboratory environments and LIBS scanning.

Industrial robotic arms, installed either on benchtops6 or mobile bases,9,10 have been used to automate lab-level experimental protocols, by handling samples, transferring samples between instruments, and operating instruments. Though these applications of robotic arms were successful, few technical details were reported in ref. 6, 9 and 10 with respect to the automation systems, such as individual instrument control, multi-instrument integration, and high-level planning and execution. There have been other automation systems for more narrowed down tasks in laboratory environments with more technical details reported, such as solid dispensing,7 liquid handling,15 operating reactors,8 simple sample pre-treatments followed by mass spectrometry characterization,16 and mobile robot navigation in a distributed lab.17 However, the approaches introduced in ref. 7, 8 and 15–17 are ad hoc and can be difficult to generalize. In contrast to these studies, this work explores replacing industrial robotic arms with a low-cost 3D translation gantry system for SSIM-pattern characterization tasks based on a generalized software architecture for laboratory automation systems.

This work chooses LIBS18 as the characterization probe to validate the robotic platform's competency. Plain LIBS measurement is point-wise19 and some extra effort must be made to achieve LIBS scanning. Some LIBS devices can perform a small step raster pattern within their laser aperture20 but will not suffice for large samples. Another common approach is putting a sample on a 2D or 3D (XY or XYZ) translation stage and moving the sample with respect to the laser beam,21–23 which in theory can handle large samples, but falls into the SMIS pattern, which can be challenging to automate. By contrast, this work presents SSIM-pattern LIBS scanning, which is suitable for large samples and easier to automate with a lower budget.

3. Generalized software architecture

This section introduces the software architecture designed for the mineral and material sample characterization platform and applicable to laboratory automation systems more broadly. First, a general scenario of laboratory automation problems is described and the task of software architecture design is formalized. Second, the dual-layer action server design for any individual device's communication and control, which serves as a basic module of the software architecture, is introduced. Third, the complete software architecture is demonstrated.

3.1. A general scenario of laboratory automation problems

Let there be a set of devices image file: d5dd00263j-t1.tif operated in a laboratory environment. A device can be either a scientific instrument (e.g. a furnace, a balance, a spectrometer, etc.) or a robotic tool (e.g. a robotic arm, a gripper, a camera, etc.). Each device image file: d5dd00263j-t2.tif can perform a set of actions, denoted by image file: d5dd00263j-t3.tif, where image file: d5dd00263j-t4.tif indicates that devices may have different numbers of actions. For example, a balance's action set can be image file: d5dd00263j-u4.tif and a gripper's action set can be image file: d5dd00263j-u5.tif. Let image file: d5dd00263j-t5.tif be the set of all actions of all devices. Then, the automation of an experimental protocol image file: d5dd00263j-t6.tif, a sequence of sets of actions, can be denoted by
image file: d5dd00263j-t7.tif
where image file: d5dd00263j-t8.tif. In other words, at any step t, there can be either one action or multiple actions running. One automation system may need to handle multiple protocols. Let image file: d5dd00263j-t9.tif be the set of protocols handled by one automation system.

We propose that the software for orchestrating image file: d5dd00263j-t10.tif to achieve image file: d5dd00263j-t11.tif should satisfy the following properties: modularity, adaptability, scalability, distributed system support, ROS integration, and user-friendly operation. Explanations of these properties are listed in Table 1. Next, we introduce the dual-layer action server software design as a basic building block and justify the complete software architecture built upon it.

Table 1 Desired properties and justification of the designed software architecture
Desired property Explanation Software architecture justification
Modularity The software can be separated into independent modules to enable flexible and reusable implementations The dual-layer action server blocks, BT and front end have minimal connections with each other
Adaptability The software can be adapted easily for changes in experiments or protocols The system achieves different experimental protocols by simply executing different BTs
Scalability It should be convenient to add more devices to the existing system New dual-layer action server blocks can be easily added without changing existing action server blocks
Distributed system support The software can be deployed to separate machines since devices can take a high space span The dual-layer action server blocks, BT and front end can all run on separate machines within the same local area network
ROS integration ROS is a widely used set of software libraries and tools for building robotic applications and the software should allow easy integration with ROS for using existing resources The ROS layer allows convenient integration with ROS
User-friendly operation The software should be easy to learn and use, especially for non-experts of computer science The front end allows user-friendly operation


3.2. Dual-layer action server design

Fig. 1 shows the dual-layer action server software design for any individual device's communication and control. First, upon the device's driver is a Socket.IO action server layer. It receives requests from Socket.IO clients and handles those requests by calling the device's driver. Second, beyond the Socket.IO layer is a ROS action server layer. It incorporates a corresponding Socket.IO client and serves as a bridge between ROS action clients and the Socket.IO action server. Communications with the device can flow via either the Socket.IO layer or the ROS layer, whichever is more convenient, ensuring high flexibility and efficiency. Note that it is a subjective design choice to use Socket.IO as the first layer communication protocol for its convenient built-in features like reconnection and broadcasting. It is possible to replace Socket.IO with other communication protocols such as WebSocket.24
image file: d5dd00263j-f1.tif
Fig. 1 The dual-layer action server design for any individual device's communication and control.

3.3. Complete software architecture

Fig. 2 shows the complete software architecture for a laboratory automation system. Recall that the system consists of a set of devices image file: d5dd00263j-t13.tif and handles a set of experimental protocols image file: d5dd00263j-t14.tif. Then, the dual-layer action server block for each device image file: d5dd00263j-t15.tif (pink dashed box) builds up the foundation of the software architecture. On top of all action server blocks lies a BT14 for planning and executing an experimental protocol image file: d5dd00263j-t16.tif by incorporating ROS action clients corresponding to the ROS action servers and structuring the switching between action sets in image file: d5dd00263j-t17.tif. In other words, the BT orchestrates image file: d5dd00263j-t18.tif and tells each device image file: d5dd00263j-t19.tif what to do in real time according to image file: d5dd00263j-t20.tif by interacting with the ROS action servers. In practice, multiple BTs are implemented beforehand to account for various experimental protocols in image file: d5dd00263j-t21.tif and users can choose the one to execute that best fits their needs. The last piece of the architecture is a web-based front end to ensure user-friendly operations of the automation system. The front end has dual responsibilities: it (1) communicates with the devices via the Socket.IO layer to allow efficient monitoring and manual control of the system and (2) connects with the ROS layer through roslibjs25 to enable convenient execution of the BT, which is usually implemented within ROS. The designed software architecture is justified in Table 1 according to the desired properties proposed in Section 3.1.
image file: d5dd00263j-f2.tif
Fig. 2 The complete software architecture designed for general laboratory automation systems. {d1, …, dN} denotes the set of devices integrated into the system and image file: d5dd00263j-t12.tif denotes the set of experimental protocols represented by behavior trees to be executed.

4. Robotic platform

This section introduces the technical details of the robotic platform for material chemical characterization built upon the software architecture described in Section 3.

4.1. Hardware

Fig. 3 shows the hardware components of the robotic platform. The main body of the platform is a gantry system (LEAD CNC 1010, OpenBuilds) used in CNC machining. It has 3 degrees of freedom, actuating translational movement in X, Y, and Z directions driven by linear stepper motors with 20 µm resolution and approximately 50 µm repeatability. The travel limit (working area) of the gantry is about 730 × 810 × 100 (mm, X × Y × Z) and the gantry is fixed on a benchtop within a laser safety enclosure.
image file: d5dd00263j-f3.tif
Fig. 3 The robotic platform for mineral and material sample characterization tasks.

An analytical instrument is mounted to the gantry head and approaches samples placed on the working area and performs measurement. A handheld LIBS analyzer (Z300, SciAps) is used as the analytical instrument for validating the experiment efficacy of the platform (see details in Section 5). Other characterization probes, such as handheld X-ray fluorescence (XRF) and Raman spectroscopy, can be mounted to the gantry with custom 3D printed adapters. The LIBS analyzer is capable of quantifying the presence of any element on the periodic table, subject to limits of detection that depend on the absolute and relative concentrations, with a spectral range of 190 to 950 nm. We use LIBS to show lithium-rich regions of a mineral sample that will undergo further processing into lithium-ion battery cathode materials.

A stereo depth camera (ZED 2i, StereoLabs) is used to provide the gantry with visual information of samples. It outputs red, green and blue (RGB) images with a resolution of 1920 × 1080 at a frequency of 30 frames per second (FPS) and depth images with a depth range of 0.3 to 20 m at a frequency of up to 100 FPS.

4.2. Software

Following the software architecture presented in Section 3, we implement the action servers for the devices, BTs and web-based front end. For the gantry, we adopt the existing open-source library26 as the Socket.IO action server. For the LIBS analyzer, due to lack of application programming interfaces (APIs), we additionally implement the device driver based on graphical user interface (GUI) automation, i.e. programmatically controlling the keyboard and mouse to interact with the device's control software. For the development of the web-based front end, we use TypeScript27 and the open-source library Vue3.28 For the implementation of the BTs, we use the open-source libraries py_trees29 and py_trees_ros.30 Fig. 4 shows the web-based front end implemented specifically for the experiments described in Sections 5 and 6.
image file: d5dd00263j-f4.tif
Fig. 4 The web-based front end of the robotic platform implemented specially for the experiment described in Sections 5 and 6.

4.3. Vision

4.3.1 Sample detection. A You Only Look Once version 8 (YOLOv8) vision model is fine-tuned using the Ultralytics YOLO framework31 for detecting sample locations. The dataset for fine-tuning, which consists of 23 images and 123 bounding boxes, is manually collected and annotated to ensure quality. The model is fine-tuned using default hyper-parameters for 25 epochs. The best checkpoint, which achieves an mAP50 of 99.2%, is used for the case studies.
4.3.2 Coordinate transformation. Suppose a measurement can be represented as a point within the stereo camera's view. The camera provides both an RGB image and a depth image of the view. The RGB and depth images are aligned with each other, i.e., the RGB and depth information of the measurement point is stored in the same 2D pixel location in the two images, respectively. The point's depth information is the length of the projection of the Euclidean distance between the point and the camera onto the camera's Z-axis. The point's 2D pixel location and depth information need to be transformed to its 3D location in the world coordinate for the gantry to understand the position of the measurement.

Formally, let [u, v] denote the point's 2D pixel location in the camera's RGB image, Pc = [xc, yc, zc] denote that point's 3D location in the camera's coordinate frame Fc, and Pw = [xw, yw, zw] denote the point's 3D location in the world coordinate frame Fw. The values of u and v are already known from the camera's RGB image. The value of zc is also known from the camera's depth image. The values of u, v and zc need to be converted to Pw so that the gantry can carry the LIBS analyzer to the sample location to complete measurement.

First, the values of xc and yc are computed based on the classic pinhole camera model using the following equations:

xc = (ucx) × zc/fx,

yc = (vcy) × zc/fy,
where fx, fy, cx, cy are the camera's intrinsic parameters and provided by the manufacturer.

Second, Pc is transformed back to Pw with a linear transformation using the following equation:

image file: d5dd00263j-t22.tif
where image file: d5dd00263j-t23.tif and image file: d5dd00263j-t24.tif are the rotational and translational transformation matrices from Fw to Fc and can be computed by the OpenCV32 image file: d5dd00263j-u1.tif function. The image file: d5dd00263j-u2.tif function requires a set of points with world coordinates and corresponding image pixel coordinates as inputs. A way to prepare those inputs is to image a black-and-white chessboard pattern with known world coordinates of corners and use the OpenCV image file: d5dd00263j-u3.tif function to compute the corresponding image pixel coordinates of corners.

4.4. Specifications

Due to the travel limit of the gantry and the dimensions of the LIBS analyzer, samples should not exceed the size of 600 × 550 × 46 (mm, X × Y × Z). Moreover, samples should not be less than 5 × 5 (mm, X × Y) to guarantee that the laser aperture of the LIBS analyzer is effectively covered and no light is scattered away from the aperture, ensuring safe operation. As will be shown in Section 6, there are no mandatory sample pre-treatments. Collision avoidance is implemented by moving the gantry to the highest position before any movement in X and Y directions. Because the gantry motors have an approximate movement repeatability of approximately 50 µm, the 2D LIBS scanning resolution is also approximately 50 µm. The spot size of an individual LIBS measurement is approximately 50 µm, and the spacing between spots can be optically rastered at approximately 100 µm pitch, so in the example presented here the motor resolution is lower than the measurement resolution.

5. Case study 1: LIBS scanning

We use a LIBS analyzer as the analytical instrument to validate the efficacy of the developed robotic platform. LIBS uses a pulsed laser to form a high-temperature plasma from a small quantity of mass ablated from a sample's surface. Ionized atoms are driven to electronically excited states, which relax to lower energy states upon cooling. Electronic transitions emit photons with characteristic wavelengths that are element-specific and diagnostic of both the type and concentration of the ablated element.18 LIBS is widely applied for elemental measurement of geological samples19 and believed to be “the optimal way to achieve a first quick screening and then provide valuable data prior to any further laboratory analyses”18 due to its fast response and wide elemental cover range.

One drawback of LIBS is that it only measures one point at one time and would be inefficient for nonhomogeneous samples. To address that issue, we demonstrate a dense LIBS scan of a sample surface using the developed platform. This is a particularly useful technique for materials containing lithium, such as the spodumene (LiAlSi2O6)-bearing pegmatite core sample shown in 5, because LIBS is one of only a few techniques that provide both high fidelity and spatial localization for lithium.

5.1. Methods

A cylindrical rock core was cut using a diamond saw to create a flat surface with dimensions of about 147 × 45 mm (see Fig. 5) for the experiment. A 4 × 10 mm rectangular area on the surface is chosen for a dense LIBS scan with a gap of 0.2 mm between measurement points in both directions, i.e. there are 1071 LIBS data points collected in total.
image file: d5dd00263j-f5.tif
Fig. 5 The surface of the spodumene-bearing pegmatite core sample cut using a diamond saw for the LIBS scan experiment. The dashed box indicates the area for the LIBS scan.

The LIBS analyzer uses a Nd:YAG laser source with a wavelength of 1064 nm and a pulse energy of 5 mJ for sample ablation. It is equipped with an on-board spectrometer covering a spectral range of 190 to 950 nm. Before laser ablation argon is flushed to purge the sample surface as well as create an atmosphere that enhances LIBS signals.33

Data is automatically reduced in four steps. First, peaks are found and the background is identified and subtracted from the raw spectrum to produce a data spectrum. Then, peaks are fit with Voigt profiles. Third, the fitted profile is subtracted from the data spectrum and peaks are fit to the residuals to identify interfering peaks. Finally, peaks are indexed to specific elements using an iterative refinement. Fig. 6 shows an example of the automated data reduction.


image file: d5dd00263j-f6.tif
Fig. 6 Example of automated data reduction and chemical analysis. (a) Automated peak finding. (b) Na I emission lines. (c) H emission lines. (d) Plasma temperature calibration curves from Li I 670 nm and 610 nm lines. (e) Measured Li concentration fraction as a function of plasma temperature. (f) Four to five mineralogical classes can be identified from Li I and H concentrations using k-means clustering.

The automated scan process is planned and executed by a specially designed BT (shown in Fig. 7). At the beginning, the BT stores the locations of all points to be measured. For one single point, the gantry first moves up to a safe level, then carries the LIBS analyzer to the location of the point, and finally moves down to align the analyzer's aperture with the point. After that, the analyzer triggers a laser pulse and collects raw LIBS data, which is exported to a csv file and further analyzed by the algorithm described in the previous paragraph. Then, the BT removes that location from the list of all locations. The BT ends when all points have been measured. Note that the BT is designed in a way that it would pick up any previously failed action before moving forward, ensuring the stability of the scan.


image file: d5dd00263j-f7.tif
Fig. 7 A collapsed view of the behavior tree implemented specifically for the LIBS scanning case study. Children of “Measure Next” are hidden for simplicity. Labels on the left of node blocks indicate node types. P: parallel; S: sequence; F: fallback; A: action; C: condition.

5.2. Results

Fig. 8 demonstrates the distributions of various elements (Li, K, and Si) among the scanning area on the sample surface. Each element is characterized by the normalized area of its most predominant peak identified during the automated data reduction. Min–max normalization is used to linearly transform the peak areas of each element to the range of [0, 1]. The distributions shown in Fig. 8 reveal element-specific differences in richness among the scanning area, showcasing the platform's competency in autonomous elemental characterization.
image file: d5dd00263j-f8.tif
Fig. 8 Distributions of various elements (Li, K, and Si) among the scanning area on the sample surface. Elements are characterized by the normalized area of their most predominant peak. Min–max normalization is used to transform the peak areas of each element to [0, 1].

6. Case study 2: autonomous LIBS characterization

This case study demonstrates another use case of the platform where multiple mineral samples are randomly placed on the benchtop and LIBS measurement is taken autonomously by the platform. Without any human interference, the platform is tasked with locating samples, identifying reachable and non-measured samples, deciding the next sample to measure, and completing the measurement, until all samples have been measured.

6.1. Methods

The platform is set up with a hypothetical reachable area with dimensions of 450 × 205 (mm, X × Y, gray area in Fig. 10). Three mineral samples (see Fig. 10) with various appearances and dimensions are used in this case study. They are initially randomly placed in the reachable area of the platform. When the platform executes the measurement of the first sample, another sample is manually moved outside of the reachable area and becomes unreachable by the platform. The BT used for this case study is based on the one described in Section 5.1 with a slight modification, as shown in Fig. 9. More specifically, the fallback node “Main Task” is wrapped by a higher-level sequence node “Task Branch” and two action nodes “Move Gantry Aside” and “Identify Samples” are added prior to “Main Task”. Details about the LIBS analyzer and data reduction are described in Section 5.1.
image file: d5dd00263j-f9.tif
Fig. 9 A collapsed view of the behavior tree implemented specifically for the autonomous LIBS characterization case study. Children of “Measure Next” are hidden for simplicity. Labels on the left of node blocks indicate node types. P: parallel; S: sequence; F: fallback; A: action; C: condition.

6.2. Results

Fig. 10 shows the sample identification and detection results at various time points during the autonomous measurement. Bounding box colors indicate whether samples are reachable or not (red: unreachable and blue: reachable). Underscores under IDs indicate measured samples. At the beginning of the measurement (Fig. 10a), the platform correctly perceives that all three samples are reachable and non-measured and measures sample 1 next. After sample 1 is measured (Fig. 10b), the platform knows sample 1 has been measured and detects that sample 2 becomes unreachable. Therefore, it skips sample 2 and measures sample 3 next. After sample 3 is measured (Fig. 10c), the platform recognizes that all samples in the reachable area have been measured and the task is completed. The LIBS spectra of samples 1 and 3 are broadly similar, but show trace element differences that distinguish them. For example, both samples have high abundances of Li, K, and Si, but sample 3 has 140 ppm Rb, as determined from the intensity of the 780.2 nm peak, while sample 1 does not have appreciable intensity in this region. The results highlight the platform's autonomy in terms of perception, dynamic decision-making, and execution.
image file: d5dd00263j-f10.tif
Fig. 10 Sample identification and detection results at various time points during the autonomous measurement. Gray color indicates the hypothetical reachable area. Bounding box colors indicate whether samples are reachable or not (red: unreachable and blue: reachable). Underscores under IDs indicate measured samples. (a) At the beginning of the measurement. (b) After sample 1 is measured. (c) All samples in the reachable area have been measured and the measurement is completed.

7. Discussion

The average measurement speed of the automated LIBS scan is 1520 bits per second (4 measurements per minute), while a proficient operator can measure one point per minute, on average, indicating the automated LIBS scan not only frees researchers from tedious operations but also accelerates LIBS data acquisition by 3–4 times. While for the autonomous LIBS measurement, two measurements can be taken per minute since extra processing time is needed for the computer vision algorithms. But this operation mode is completely autonomous and still effectively frees researchers from tedious laboratory work.

The primary hardware components, including the gantry, camera, and computer (but excluding the LIBS analyzer), cost about $3000, $550, and $1100, respectively, which is much more affordable than a commonly used robotic arm alone (e.g., a UR5e robotic arm manufactured by Universal Robots costs around $40000). However, the tradeoff is that a commercial robotic arm usually has at least 6 degrees of freedom (3D translational movements + 3D rotational movements) and can handle a wider range of automation tasks. Even so, the gantry-based approach would be a better choice for tasks with lower requirements of degrees of freedom and prototyping new automation systems with lower budgets.

The function of the robotic platform is not limited to LIBS characterization; rather, it depends on the tool(s) that can be integrated with the platform. It is possible, and future work should explore integrating other analytical instruments like a handheld XRF analyzer and tools like an electronically controlled pipette with the platform to cover a wider range of laboratory tasks.

The software architecture is derived from a general scenario of laboratory automation problems and should work well for other laboratory systems in addition to the developed platform. Future work should further validate the generalizability of the software architecture by developing other robotic systems or expanding the current platform.

Future work may also include the quantitative reduction of LIBS measurements to absolute concentrations and its inclusion in the feedback loop of the platform's decision-making process. In-depth LIBS data analysis is a separate task and is outside the scope of the current study, but its integration into the workflow described here would enable sample identification based on chemical composition and downstream planning based on chemical labels, in addition to location and dimensional labels.

8. Summary and future work

This work introduces a generalized custom-designed software architecture for building robotic automation systems in scientific laboratory environments. The basic block of the architecture is a dual-layer (Socket.IO and ROS) action server design, which facilitates the implementation of a web-based front end for user-friendly operations and the use of ROS BT for convenient task planning and execution. Based on the architecture, an automated experimental platform is developed, with a low cost gantry system capable of 3D translational movements serving as the main robot. With the integration of a LIBS analyzer, a LIBS scan experiment is conducted to demonstrate the efficacy of the robotic platform and the software architecture.

Future work should add other or more analytical instruments, like an XRF analyzer, to the robotic platform to perform more types of characterization tasks. Future work should also combine other types of tools, like an electronically controlled pipette, with the platform. Another interesting direction for future work is integrating the platform into larger laboratory automation systems to complete more complex experimental protocols in parallel with a focus on workflow management and device orchestration. Lastly, future work should obtain quantitative results from raw LIBS spectra and use those in the feedback loop of the platform's decision-making process.

Author contributions

Contributions are reported according to the CRediT taxonomy. X. C. co-conceptualized the study, curated and analyzed data, conducted experiments, developed methods and software, validated and visualized results, and drafted and revised the manuscript; Y. W. secured funding, supervised the project, and reviewed the manuscript; M. W. conceptualized the study, curated and analyzed data, managed the project, secured resources, and reviewed and revised the manuscript.

Conflicts of interest

There are no conflicts of interest to declare.

Data availability

Data and source code for this article, including the LIBS analyzer's driver and server, front end, ROS 2 servers and behavior trees, automated data reduction algorithm, and LIBS measurement raw data are available at https://github.com/Living-Minerals-Lab/LIBS_trigger, https://github.com/Living-Minerals-Lab/mini_platform_fe, https://github.com/Living-Minerals-Lab/mini_platform, https://github.com/Living-Minerals-Lab/alibz, and https://doi.org/10.5281/zenodo.17796049, respectively.

Acknowledgements

XC, YW, and MLW were supported by the U.S. Department of Energy, Office of Fossil Energy and Carbon Management, Mineral Sustainability Division, through LBNL under Contract DE-AC02-05CH11231. The authors thank William Evans for designing and 3D printing the LIBS analyzer adapter and assembling the robotic platform.

References

  1. F. Jia, Y. Ma and R. Ahmad, Review of current vision-based robotic machine-tending applications, Int. J. Adv. Des. Manuf. Technol., 2024, 131(3), 1039–1057 CrossRef.
  2. E. Lamon, M. Leonori, W. Kim, and A. Ajoudani, Towards an intelligent collaborative robotic system for mixed case palletizing, in 2020 IEEE International Conference on Robotics and Automation (ICRA), IEEE, 2020, pp. 9128–9134 Search PubMed.
  3. M. Faccio, M. Bottin and G. Rosati, Collaborative and traditional robotic assembly: a comparison model, Int. J. Adv. Des. Manuf. Technol., 2019, 102, 1355–1372 CrossRef.
  4. C. Müller, “World robotics 2024 – industrial robots,” International Federation of Robotics, Tech. Rep., 2024, 1–8 Search PubMed.
  5. A. Angelopoulos, J. F. Cahoon and R. Alterovitz, Transforming science labs into automated factories of discovery, Sci. Robot., 2024, 9(95), eadm6991 CrossRef PubMed.
  6. N. J. Szymanski, B. Rendy, Y. Fei, R. E. Kumar, T. He, D. Milsted, M. J. McDermott, M. Gallant, E. D. Cubuk and A. Merchant, et al., An autonomous laboratory for the accelerated synthesis of novel materials, Nature, 2023, 624(7990), 86–91 CrossRef CAS PubMed.
  7. Y. Jiang, H. Fakhruldeen, G. Pizzuto, L. Longley, A. He, T. Dai, R. Clowes, N. Rankin and A. I. Cooper, Autonomous biomimetic solid dispensing using a dual-arm robotic manipulator, Digital Discovery, 2023, 2(6), 1733–1744 RSC.
  8. S. Asche, G. J. Cooper, G. Keenan, C. Mathis and L. Cronin, A robotic prebiotic chemist probes long term reactions of complexifying mixtures, Nat. Commun., 2021, 12(1), 3547 CrossRef CAS PubMed.
  9. B. Burger, P. M. Maffettone, V. V. Gusev, C. M. Aitchison, Y. Bai, X. Wang, X. Li, B. M. Alston, B. Li and R. Clowes, et al., A mobile robotic chemist, Nature, 2020, 583(7815), 237–241 CrossRef CAS PubMed.
  10. T. Dai, S. Vijayakrishnan, F. T. Szczypiński, J.-F. Ayme, E. Simaei, T. Fellowes, R. Clowes, L. Kotopanov, C. E. Shields and Z. Zhou, et al., Autonomous mobile robots for exploratory synthetic chemistry, Nature, 2024, 1–8 Search PubMed.
  11. I. Holland and J. A. Davies, Automation in the life science research laboratory, Front. Bioeng. Biotechnol., 2020, 8, 1–18 Search PubMed.
  12. R. Rai, Socket.IO real-time web application development, Packt Publishing, 2013 Search PubMed.
  13. S. Macenski, T. Foote, B. Gerkey, C. Lalancette and W. Woodall, Robot operating system 2: Design, architecture, and uses in the wild, Sci. Robot., 2022, 7(66), eabm6074,  DOI:10.1126/scirobotics.abm6074.
  14. M. Colledanchise and P. Ögren, Behavior trees in robotics and AI: an introduction, CRC Press, 2018 Search PubMed.
  15. H. Fleischer, D. Baumann, S. Joshi, X. Chu, T. Roddelkopf, M. Klos and K. Thurow, Analytical measurements and efficient process generation using a dual–arm robot equipped with electronic pipettes, Energies, 2018, 11(10), 2567 CrossRef.
  16. C.-L. Chen, T.-R. Chen, S.-H. Chiu and P. L. Urban, Dual robotic arm “production line” mass spectrometry assay guided by multiple arduino-type microcontrollers, Sens. Actuators, B, 2017, 239, 608–616 CrossRef CAS.
  17. H. Liu, N. Stoll, S. Junginger and K. Thurow, Mobile robot for life science automation, Int. J. Adv. Rob. Syst., 2013, 10(7), 288 CrossRef.
  18. C. Fabre, Advances in laser-induced breakdown spectroscopy analysis for geology: A critical review, Spectrochim. Acta B Atom Spectrosc., 2020, 166, 105799 CrossRef CAS.
  19. N. Khajehzadeh and T. K. Kauppinen, Fast mineral identification using elemental libs technique, IFAC-PapersOnLine, 2015, 48(17), 119–124 CrossRef.
  20. B. Connors, A. Somers and D. Day, Application of handheld laser-induced breakdown spectroscopy (libs) to geochemical analysis, Appl. Spectrosc., 2016, 70(5), 810–815 CrossRef CAS PubMed.
  21. P. Lucena, J. M. Vadillo and J. J. Laserna, Mapping of platinum group metals in automotive exhaust three-way catalysts using laser-induced breakdown spectrometry, Anal. Chem., 1999, 71(19), 4385–4391 CrossRef CAS PubMed.
  22. H. Bette and R. Noll, High speed laser-induced breakdown spectrometry for scanning microanalysis, J. Phys. D: Appl. Phys., 2004, 37(8), 1281 CrossRef CAS.
  23. J. O. Cáceres, F. Pelascini, V. Motto-Ros, S. Moncayo, F. Trichard, G. Panczer, A. Marín-Roldán, J. Cruz, I. Coronado and J. Martin-Chivelet, Megapixel multi-elemental imaging by laser-induced breakdown spectroscopy, a technology with considerable potential for paleoclimate studies, Sci. Rep., 2017, 7(1), 5080 CrossRef PubMed.
  24. I. Fette and A. Melnikov, Rfc 6455: The websocket protocol, USA, 2011 Search PubMed.
  25. RobotWebTools, “roslibjs”, 2023, available: https://github.com/RobotWebTools/roslibjs Search PubMed.
  26. OpenBuilds, “Openbuilds-control”, 2024, available: https://github.com/OpenBuilds/OpenBuilds-CONTROL Search PubMed.
  27. G. Bierman, M. Abadi, and M. Torgersen, Understanding typescript, in ECOOP 2014–Object-Oriented Programming: 28th European Conference, Uppsala, Sweden, July 28–August 1, 2014. Proceedings 28, Springer, 2014, pp. 257–281 Search PubMed.
  28. vuejs, “core”, 2024, available: https://github.com/vuejs/core Search PubMed.
  29. splintered reality, “py_trees”, 2025, available: https://github.com/splintered-reality/py_trees Search PubMed.
  30. “py_trees_ros”, 2025, available: https://github.com/splintered-reality/py_trees_ros Search PubMed.
  31. G. Jocher, J. Qiu, and A. Chaurasia, Ultralytics YOLO, 2023, available: https://github.com/ultralytics/ultralytics Search PubMed.
  32. G. Bradski, The OpenCV Library, Dr Dobb’s J., 2000, 122–125 Search PubMed.
  33. D. J. Palásti, L. P. Villy, A. Kohut, T. Ajtai, Z. Geretovszky and G. Galbács, Laser-induced breakdown spectroscopy signal enhancement effect for argon caused by the presence of gold nanoparticles, Spectrochim. Acta B Atom Spectrosc., 2022, 193, 106435 CrossRef.

This journal is © The Royal Society of Chemistry 2026
Click here to see how this site uses Cookies. View our privacy policy here.