Yuan
Li‡
,
Biplab
Dutta‡
,
Qi Jie
Yeow
,
Rob
Clowes
,
Charlotte E.
Boott
* and
Andrew I.
Cooper
*
Department of Chemistry and Materials Innovation Factory, University of Liverpool, 51 Oxford Street, Liverpool, L7 3NY, UK. E-mail: c.boott@liverpool.ac.uk; aicooper@liverpool.ac.uk
First published on 11th April 2025
A high-throughput (HTE) robotic colourimetric titration workstation was developed using a commercial liquid handling robot (Opentrons OT-2) and computer vision-based analysis. While designed for multiple titration applications, hydrogen peroxide (H2O2) determination serves as the most elaborate and well-characterized demonstration of its capabilities. Specifically, potassium permanganate (KMnO4) redox titration was employed to quantify the hydrogen peroxide (H2O2) concentration, leveraging the distinct colourimetric transition from colourless to pale pink at the titration endpoint. To monitor this colour change, a webcam was installed on the OT-2 pipette mount, capturing real-time titration progress. Image analysis was enhanced through VGG-augmented UNet for segmentation and the CIELab colour model, ensuring robust and reproducible detection of subtle colour changes. The sensitivity test of the computer vision-aided colour analysis was strongly correlated to UV-vis spectroscopy (R2 = 0.9996), with a good linear dynamic range at low concentrations. The analytical accuracy of this workstation was ±11.9% in a 95% confidence interval and its corresponding absolute concentration difference was only 0.50 mM. To validate its real-world applicability, this workstation was first deployed to monitor the photoproduction of H2O2 over a conjugated polymer photocatalyst, DE7. In addition to performing redox titrations, we demonstrated that this workstation can also be used for acid–base titration and complexometric titration, capturing a diverse range of colour changes.
The development of HTE approaches has benefitted from advances in computer vision.10 For example, computer vision has aided continuous colour monitoring of chemical reactions such as pH-modulated titration experiments,11 catalyst degradation, and product formation kinetics,12,13 where reaction progress was linked to colour change. Furthermore, computer vision has been used for object/edge detection to assist the analysis of nanoparticles in transmission electron microscope (TEM) images14 or cell-biomaterial analysis,15 for solubility screening,16,17 and for other lab automation tasks including gas flow control in organic synthesis,18 viscosity measurement,19 and automated real-time monitoring and control of workup processes.20–22
Hydrogen peroxide (H2O2) is one of the 100 most important chemicals due to its wide range of applications,23,24 such as organic synthesis, paper bleaching, wastewater treatment and energy storage. In addition to the traditional commercial (but polluting) anthraquinone method,25 researchers have investigated alternative routes such as electrocatalysis,26,27 and photocatalysis.28,29 H2O2 concentration can be determined by a range of characterisation methods including H2O2-testing strips,30 chemical titration,31 titration combined with optical spectroscopy,32–34 HPLC35 and NMR.36 However, these methods often either suffer from low accuracy (error: ±20% for H2O2 tests strips), long reaction times (UV-vis and fluorimetry), or high-cost (NMR and HPLC), which may prohibit their use in HTE systems. For low-cost HTE H2O2 determination, colourimetric titration methods are attractive as their colour change could be easily visualised with the aid of computer vision.37
Here, a liquid-handling industrial robot (OT-2) was integrated with a standard webcam to enable HTE robotic titration, with H2O2 determination via KMnO4 redox titration as the most detailed and well-characterized example. Unlike other hardware platforms, such as the Creality Ender 3 Pro,38 or traditional titration setups using Arduino open-source microcontrollers,39,40 this workstation required no prior expertise in robotics, fluid dynamics, or software development. An interactive user-friendly interface was also developed, allowing chemists without programming expertise to easily operate it. This robotic titration workstation was first utilized to monitor H2O2 photoproduction using an organic semiconductor photocatalyst. Furthermore, its modular design enables easy adaptation for other colourimetric titrations, including acid–base titration for acidity/alkalinity testing and complexometric titration for water hardness analysis. With the relatively low-cost and commercial availability of OT-2, this workstation is accessible for other research groups, supporting colourimetric titration endpoint analysis in their experiments and highlighting its potential for establishing an affordable, self-driven laboratory in the future.
Correspondingly, deck 3, well number D3 was selected as the camera position and the webcam was attached to the pipette mount of OT-2. Except for the fixed position between plate and camera, the position of the remaining labware is interchangeable. Specifically, four positions (deck 4, 6, 7, and 9) were designated for liquid storage, while four positions (deck 1, 8, 10, and 11) were allocated for tips. Deck 2 remained as a spare. This flexible arrangement allows these 9 positions to be adjusted to meet the experimental demands of other titration chemistries. With the exception of the stock solution preparation, all procedures were carried out by an OT-2 liquid handling robot, controlled by a PC.
(1) Plate preparation: 100 μL, 1 M H2SO4 was added to the targeted columns of the plate with the multi-channel Opentrons P300 GEN2 pipette. As shown in Fig. 2, the sample to be analysed for H2O2 concentration was added to the eight wells in one column using the multi-channel Opentrons P300 GEN2 pipette. One plate can hold up to 12 samples.
(2) Pre-estimation: Four different KMnO4 solutions (1, 2, 4 and 10 mM) were prepared and stored in the KMnO4 reservoir (A1–A4) as shown in Fig. 1. 40 μL of each KMnO4 solution was aspirated with the single-channel Opentrons P20 GEN2 pipette and dispensed to the rows E–H of each column sequentially, as shown in Fig. 3c and f. The calculation details of the volume of the KMnO4 solution used in the pre-estimation and titration are described in Table S2.† Then, the multi-channel Opentrons P300 GEN2 pipette was used to mix the solution with a set mixing volume of 100 μL, and this step was repeated five times to obtain a homogeneous solution for analysis. Following mixing, a tip-rinsing step was added to avoid any cross contamination.
(3) Titration: 20 μL of the selected KMnO4 concentration (determined in the pre-estimation step) was aspirated and then evenly dispensed in 5 μL portions to rows A–D of each column as shown in Fig. 3. Each sample was measured four times (in parallel) to minimise random error. The multi-channel Opentrons P300 GEN2 pipette was also applied to mix the solutions thoroughly. These steps were repeated 12 times for each sample.
As shown in Fig. 3b, an image of the 96-well plate was captured, prior to KMnO4 addition, and used as a reference for the following colour analysis. Subsequent images were then taken for the pre-estimation step (Fig. 3c) and during the titration, an image was captured after each addition of KMnO4, for a total of 13 images as shown in Fig. 3d.
For the pre-estimation, the first well with a* > 0 in rows E–H of the plate was identified and the corresponding KMnO4 concentration of the well was used for the titration (Fig. 3f) and its analysis details could be found in ESI Section 5.2.†
For the titration, 13 points were obtained initially for each sample after signal processing. Initially, a piecewise fitting with a linear (a* < 0) and a tangent (a* > 0) basis function were performed (Fig. S10a and b†). This approach provided a good fitting of the results, however a decrease in a* values was observed when KMnO4 concentration was higher than 4 mM (Fig. S10c†). To minimise this effect on extracting the titration endpoint, some points were then deleted after showing a decreasing trend, but unfortunately a large deviation in titration endpoint was still obtained (Fig. S10d†). To address this, as shown in Fig. 3g, a piecewise fitting of the a* using a linear (when a* < 0) and a polynomial (when a* > 0) basis function was performed. The intersection provided a volume estimate for the endpoint of the redox reaction between H2O2 and KMnO4. This volume estimate value was further put into the designed excel (Table S4†) based on the stoichiometric relationships. For most datasets the 4th power polynomial showed good accuracy, and 3rd power polynomial was only used when there were insufficient points to perform the 4th polynomial fitting (see ESI Section 5.3† for more details).
Here, we briefly describe the development of the HTE H2O2 determination protocol encompassing the creation of necessary instructions for the OT-2 robot, efficient service message block (SMB) communication between the local working PC and OT-2, instruction parsing and subsequent command execution by the OT-2 robot, pre-estimation method for selecting the ideal titrant, titration stage, and image capture and analysis system. Initially, an intuitive working system was built to allow OT-2 to communicate with our local working PC through an SMB server as shown in Fig. 4 (ESI Section 4.2†).
![]() | ||
Fig. 4 The illustration of the interactive working system for HTE H2O2 determination (SMB server – service message block, OT-2 image reprinted with permission from Opentrons. Copyright Opentrons). |
The protocol designer script, containing system configuration and transfer configuration, set the titration protocol parameters, and executing the protocol required running the master protocol and the slave H2O2 protocol script in tandem. The protocol designer script writes labware definition and liquid transfer instructions in the system/transfer configuration files and then stores them in the SMB server. The protocol master script was then used to initiate the execution; that is, sending a trigger signal to the slave script residing in the Raspberry Pi built into the OT-2. Upon receiving the trigger signal, Raspberry Pi positions the gantry arm to align the camera's field of view with the 96-well plate. Then, a Raspberry Pi controller sends another trigger back to the SMB server, which activates the camera that was controlled by the working PC. The images gained through these operations are also stored in the SMB server and then analysed by the computer based on the CIELab colour model through the H2O2 protocol master script. Following image capture, the VGG-augmented UNet41 generates a mask (see ESI Section 5†) mapping the wells with the mask coordinates and triggers the Raspberry Pi to parse instructions from the transfer configuration.
The transfer configuration tasks were split into the following parts: plate preparation, pre-estimation, and titration. During the plate preparation stage, OT-2 transferred 1 M H2SO4 and H2O2 (concentration to be estimated) from the reservoirs defined by the system configuration (system config.) to the white 96-well plate. Our pre-estimation stage, somewhat equivalent to binning H2O2 by conventional stick measurements, estimated the concentration range of H2O2, thus aiding the selection of KMnO4 titrant (range 1–10 mM) for titration (see Section 2.2). Finally, the titration stage was performed using the titrant determined by pre-estimation. Vigorous mixing of KMnO4 during stepwise addition was crucial for accurately estimating the pre-estimation and titration point; otherwise, a significant phase shift of a* versus KMnO4 volume trace was observed. An independent mixing step was introduced to alleviate such inhomogeneity issues (for more details see ESI Section 2.3†). In this stage, 5 μL of KMnO4 was sequentially added and a trigger signal was sent to the camera for image acquisition and colour extraction. This step was run until the total number of defined titration steps was exhausted (see Section 2.4). Note that the trigger signal mentioned above was just a ‘.csv’ file containing keywords ‘run’ or ‘done’ and stored in the SMB server. After titration, the protocol master script plotted the a* versus KMnO4 volume. We estimated the titration endpoint by fitting this result with piecewise continuous functions – regions with a* ∼ 0 and a* > 0 were fitted with a linear line and an exponential, respectively.
![]() | ||
Fig. 5 Sensitivity test (x – H2O2 concentration determined by the plate reader, y – H2O2 concentration determined by the liquid robot Opentrons (OT-2)). |
Samples from 1 to 10 mM H2O2 concentration were tested for sensitivity evaluation. The H2O2 concentration obtained from the automated workflow based on the CIELab colour model was strongly correlated to the H2O2 concentration measured by the plate reader based on the UV-vis spectrometer with an R2 of 0.9996. A slope of 0.935 and a negative intercept of −0.023 was obtained from the linear fitting, which indicated that the consumed KMnO4 volume calculated from OT-2 was lower than that calculated from the plate reader. This could be attributed to the use of different types of plates. For the experiments carried out by the plate reader, a transparent 96-well plate was utilized to satisfy the light penetration requirements. While in our HTE H2O2 determination, a white 96-well plate was selected to achieve high contrast, which allowed the camera to observe the subtle colour change, from colourless to pale pink. This meant that a lower KMnO4 volume was required for the pink colour to be detected on the OT-2 and hence a lower H2O2 concentration was calculated. To further verify this difference, a transparent 96-well plate was used in our workstation, and it also showed a delay to the titration endpoint (Fig. S13 and S14†).
To estimate the reproducibility of this analytical method for H2O2 determination, four unknown samples of H2O2 concentration were randomly selected and tested three times respectively (Table 1). The low standard deviation on the estimated volume and corresponding concentration indicated that the HTE H2O2 determination using an automated liquid handling robot OT-2 has good repeatability. The core of our analysis method is to find the titration endpoint, a very subtle colour change from transparent to pale pink. Thus, the linear dynamic range (LDR) was also tested using a KMnO4 concentration of 1 mM and it showed a good linear relevance at lower KMnO4 concentrations (Fig. S15†). At higher concentrations, the colour is too saturated, which breaks down the uniformity of the CIElab colour model. However, in our case, the target is titration endpoint analysis, where the colour change is far from saturation.
Item | Estimated volume (μL) | Estimated conc. (mM) |
---|---|---|
a Note: the working limit of a single-channel P20 GEN2 pipette is 1 μL, and the KMnO4 was determined by UV-vis spectrometer with three significant figures. | ||
Sample 1 | 21 ± 1 | 0.610 ± 0.017 |
Sample 2 | 23 ± 1 | 1.282 ± 0.033 |
Sample 3 | 24 ± 0 | 2.557 ± 0.000 |
Sample 4 | 33 ± 1 | 3.551 ± 0.123 |
Over 200 random samples, with H2O2 concentrations between 0 and 10 mM, were prepared and tested using the automated workflow and the iodometry method (calculation details summarized in Table S6†). Fig. 6 showed that the relative difference decreased as the H2O2 concentration increased. This trend was also reflected by the statistical analysis, as shown in the inset plot. Within the 95.4% confidence interval, the relative difference was ±11.86%, with an R2 of 0.97. The corresponding absolute difference was also calculated (Fig. S18†) and all deviations were lower than 1 mM (99.7% confidence interval: ±0.75 mM, 95% confidence interval: ±0.50 mM).
![]() | ||
Fig. 7 The H2O2 photoproduction over photocatalyst DE7. The error bar is the standard deviation of HTE H2O2 determination, where each sample was measured four times in parallel. |
To highlight the modularity feature of this designed workstation, some other titration chemistries were also tested on our platform. Initially, colour parameters (L, a*, b*, R, G, B, C, h) were evaluated as a preparatory step for other applications. Among these, the hue parameter from the CIELCh colour model, a model that directly derives its scale values from CIELab colour model, was selected for its ability to distinguish different colours while being less affected by solution concentration (Fig. S21†). More details on parameter selection could be found in ESI Section 8.2.† Subsequently, we modified the code, to make the user interface easier for chemists navigate and use with their selected titration chemistry. This flexibility expands the operational space for chemists, enhancing the universality of the workstation.
To demonstrate the ability of this workstation to analyse diverse titration chemistries and hence capture different colour changes, the acidity/alkalinity test and water hardness analysis were selected as proof-of-concept systems. The acidity/alkalinity test, critical for ensuring quality in the food,45 beverage,46 or cosmetics industry,47 were assessed via titration using methyl orange as the pH indicator (ESI Section 8.3†). For this titration, the colour shifts from red to yellow, corresponding to a hue shift from ∼30 to ∼60 (Fig. S22†). Another example is water hardness analysis (calcium ions (Ca2+) analysis by ethylenediaminetetraacetic acid disodium salt dihydrate (EDTA) titration),48,49 a typical complexometric titration. Proper identification and management of water hardness could help individuals and industries reduce costs, improve equipment efficiency, safeguard health, and maintain ecological balance. During titration, Ca2+ was chelated by EDTA at pH = 10, employing Eriochrome Black T as an indicator, producing a colour shift from wine red to purple and finally blue, with a corresponding hue transition from ∼350 to ∼220 (Fig. S23†). For both titrations, our workstation was able to effectively capture the titration endpoint using the hue parameter. This demonstrates that by appropriate colour parameter selection this workstation can monitor a broad range of colourimetric titrations (for more details see ESI Section 8.4†). The code details on the development of these two new applications, to assist in transferring this workstation to a new application, can be found here: https://github.com/yuanlee0325/HTE-robotic-titration-using-computer-vision.git
First, the system is designed for aqueous samples that exhibit distinct colour changes at the titration endpoint, facilitating precise colour analysis. However, challenges may arise when analysing opaque samples or highly saturated colours. Additionally, the current fitting analysis for the titration does not incorporate advanced algorithms to optimize the selection of fitting functions. If it could correlate colour to reagent concentration, this would unlock greater analytical potential of our designed workstation in chemistry. Finally, when performing more complex chemistries on the workstation, certain limitations may arise, including restricted deck space, non-inert atmosphere, and the requirement that all reagents must be in liquid or solution form.
The modular design of this workstation also confers extensive adaptability, presenting opportunities to construct low-cost, self-driven laboratories. Initially, through modifications to the computer vision approach, this workstation could also achieve object/edge detection, which is a powerful tool for automated materials chemistry (e.g., to locate crystals or particles). This workstation could be further extended to the integration with other digital laboratory tools to support comprehensive workflows for materials discovery in self-driven lab. For example, it could serve as an H2O2 quantitation tool within our existing photocatalytic workflow,50 thereby expediting the development of photocatalysts. Or, it could be coupled with flow chemistry setups to monitor reaction progress, such as dye degradation, where yield correlates with observable colour change. Collectively, these features underscore the potential of this workstation as a tool for advancing automation and efficiency in chemical search.
Footnotes |
† Electronic supplementary information (ESI) available. See DOI: https://doi.org/10.1039/d4dd00334a |
‡ These authors contributed equally to this work. |
This journal is © The Royal Society of Chemistry 2025 |