André Colliard-Granero†
ab,
Kangjun Duan†a,
Roswitha Zeiscd,
Michael H. Eikerling
abe,
Kourosh Malekab and
Mohammad J. Eslamibidgoli
*ab
aTheory and Computation of Energy Materials (IET-3), Institute of Energy Technologies, Forschungszentrum Jülich GmbH, 52425 Jülich, Germany. E-mail: m.eslamibidgoli@fz-juelich.de
bCentre for Advanced Simulation and Analytics (CASA), Simulation and Data Science Lab for Energy Materials (SDL-EM), Forschungszentrum Jülich GmbH, 52425 Jülich, Germany
cDepartment of Electrical Engineering, Friedrich-Alexander-Universität Erlangen-Nürnberg, 91058 Erlangen, Germany
dKarlsruhe Institute Technology, Helmholtz Institute Ulm, 89081Ulm, Germany
eChair of Theory and Computation of Energy Materials, Faculty of Georesources and Materials Engineering, RWTH Aachen University, 52062 Aachen, Germany
First published on 19th August 2025
This work harnesses deep learning to expedite analyses of research data for vanadium redox flow batteries. Recent studies have highlighted the significance of analyzing bubbles within vanadium redox flow batteries. The investigation of these bubbles had remained elusive in direct imaging until advancements in cell design facilitated their observation through synchrotron X-ray tomography. Yet, the considerable volume of slices per tomograph and the complexity of the features present challenges for analyzing bubbles. To tackle this issue, we propose a deep learning-based framework that allows experimentalists to conduct high-throughput analyses based on synchrotron X-ray tomographic images of vanadium redox flow batteries. We conducted a benchmarking study on various U-Net configurations using a dataset that includes three complete volumes. These volumes represent different cell configurations and encompass 2294 annotated images. Through a multi-class semantic segmentation approach, we aimed to identify four distinct classes, such as bubbles, electrolytes, membranes, and gaskets. The optimal model achieved a precision of 98%, a recall of 97%, and an F1-score of 97% on the validation set. Following segmentation, the framework facilitates rapid differentiation of electrodes, quantification of bubble volume, individual bubble shape analysis, generation of 2D bubble density maps, and calculation of membrane blockage. All results are readily accessible for interactive, on-site visualization within a 3D environment. The openly available software allows users to engage with the data in a comprehensive and intuitive manner. For access, please visit the following GitHub repository: https://github.com/andyco98/UTILE-Redox.
Of particular concern is the hydrogen evolution side reaction (HER) at the negative half-cell, which can degrade electrode performance by consuming charge, reducing energy efficiency, causing electrolyte imbalances, and hindering desired redox reactions.1,10,13,14 Additionally, this side reaction leads to the formation of bubbles, especially in the negative half-cell,1,10,15–17 which further compromises battery efficiency by disrupting active sites, reducing surface area for redox reactions, and impeding reactant transport.18,19 Addressing these challenges demands focus on identifying, quantifying, and systematically preventing HER and bubble formation.20
Over the last decade, a focused but limited number of research has tackled the challenges posed by the HER in VRFBs.15–17,19–25 Innovative diagnostic approaches, including differential electrochemical mass spectrometry, various electrochemical measurements, specialized hydrogen sensors, and buoyancy-based collection devices, have been utilized to monitor and assess the implications of HER. These methods primarily aim to quantify the hydrogen gas produced via HER by employing indirect measurement techniques. Investigations have revealed that the HER activity is influenced not just by the operational conditions,21,25 but also by inherent properties of battery components themselves.16,19,20 Despite these advances, a comprehensive understanding of how hydrogen gas is distributed within the electrode during operation remains elusive. This aspect is crucial, as it could shed light on potential adverse effects on electrode integrity and ion transport, thereby guiding efforts to mitigate HER's impact on VRFB efficiency and durability.
Various methods have been employed to study the behavior of bubble evolution. These include optical imaging, such as high-speed camera technology, which captures the dynamics of bubbles.26,27 Indirect characterization methods, including acoustic measurements and pressure sensors, provide insights into bubble size distribution and gas release patterns.28–30 Additionally, radioactive imaging techniques, like X-ray imaging and neutron imaging, are used to investigate the internal structure of batteries and bubbles.23,31 Although recent advancements in neutron radiography and transparent VRFB imaging, investigators have succeeded in visualizing hydrogen evolution, they primarily offer a two-dimensional view. This limits their ability to keep the exact distribution of bubbles within the electrode itself.21,23
Researchers have applied X-ray imaging for two primary purposes within VRFBs. First, they examined the process of electrolyte injection and its distribution across VRFB electrodes. Additionally, they investigated the presence of gas residues, various electrolyte properties, and the composition of electrode components. This approach has enabled them to uncover detailed information about the internal structures and defects of VRFBs, which is crucial for improving diagnosis methods, advancing research, and enhancing quality control measures.22,31–35 Bevilacqua et al.32 and Köble et al.31 found it possible to resolve and image the hydrogen bubbles from the HER by synchrotron X-ray tomography. They concluded that hydrogen bubbles often accumulate in existing air bubbles. However, although three-dimensional images can provide more comprehensive information, they face difficulties in image annotation and reconstruction. This hinders the full utilization of experimental data and the in-depth exploration of bubble dynamics.
The process of analyzing 3D volumes from VRFBs is currently hindered by traditional image processing methods' slow, inefficient, and often subjective nature. In contrast to manual analyses, which can take weeks to fully annotate a single tomograph, simpler segmentation methods fall into two categories: algorithmic approaches (e.g., Otsu thresholding) and basic machine learning techniques (e.g., random forest pixel classifiers). Thresholding is limited to binary separations of the grayscale histogram and fails to support the multiclass differentiation needed in our analysis. While pixel classifiers can distinguish multiple classes, they rely only on intensity and ignore spatial and shape features, which is problematic given the intensity similarities among bubbles, membranes, and gaskets. In contrast, deep learning integrates intensity, spatial, and shape information, enabling high-quality segmentation of an entire tomograph within minutes with minimal computational requirements. Therefore, deep learning (DL) and computer vision technologies emerge as powerful alternatives for automating tasks such as annotation, segmentation, and analysis of imaging data, particularly in energy materials. These techniques have received growing attention in recent years, enabling a wide array of applications, including automated analysis of particle morphology in electron microscopy micrographs36,37 to elucidate time-resolved bubble dynamics through optical videos of transparent polymer electrolyte water electrolysers.27 Tang et al.38 developed a 3D deep learning algorithm capable of multiclass segmenting micro-CT tomographies of membrane electrode assemblies in polymer electrolyte membrane fuel cells. This algorithm facilitated the precise and swift segmentation and differentiation of components within the catalyst, membrane, and gas diffusion layers. Subsequently, it enabled the accurate extraction of the connectivity, porosity, and permeability descriptors of the gas diffusion layer and surface roughness between the catalyst layer and membrane. Li et al.39 utilized synchrotron X-ray tomography to investigate intermetallic phases in recycled aluminum alloys, employing DL for automated phase segmentation and subsequent morphological and structural analysis such as phase diameter distribution and spatial Fe- and Al-phases distribution. In another study, Kopp et al.40 demonstrated the application of DL for segmenting quantitative multiclass microdamage in heterogeneous materials using synchrotron radiation. These examples underscore the specific application of such models, which are limited by the availability and quality of training data.
The situation reinforces the necessity for further adapting DL algorithms in specialized areas such as 3D bubble analysis in VRFBs. The goal is to augment the accuracy and speed of segmentation, feature extraction, and volume analysis, thereby advancing our understanding and capabilities within these complex scientific domains. This paper presents a DL-based workflow to analyze synchrotron X-ray tomography images of hydrogen bubbles and the internal structures of vanadium redox flow batteries (VRFB). The workflow comprises four phases: first, it starts with generating meticulously annotated datasets encompassing various examples. The segmented datasets are utilized to train deep learning models, facilitating the automation of semantic segmentation for various regions of interest (ROIs) in images. Upon successful training and demonstration of accurate predictions on unseen imaging data, we establish a framework for the automated analysis of the segmented bubbles' size, shape, and distribution. Lastly, the outcomes of this analysis are represented through graphs and 3D visualizations of the analyzed volumes and other characteristics.
The availability of this methodical pipeline allows researchers to streamline the time-consuming process of analyzing complex 3D volumes in VRFBs, cutting it to just a few seconds. Additionally, this framework will enable users to swap out the provided models with custom versions specifically designed for their unique datasets, thereby broadening its utility. This adaptability, paired with the sophisticated computer vision techniques introduced here for 3D tomography analysis and morphological and spatial analysis of bubbles, highlights the substantial impact of this research on the field.
![]() | ||
Fig. 1 (a) Schematic experimental setup for measuring the synchrotron X-ray tomographies. (b) Exemplification of the obtained images from the VRFB cell and the regions of interest. |
The X-ray tomography scans were performed at the Biomedical Imaging and Therapy Bending Magnet (BMIT-ID) 05ID-2 beamline at the Canadian Light Source Inc (Saskatoon, Saskatchewan, Canada).44 A Budker superconducting wiggler generated high-intensity monochromatic synchrotron radiation with an energy of 30 keV in the storage ring.
The sample was positioned 58 m from the light source, with a 40 cm separation between the sample and the detector. An indirect detection scheme was employed, wherein the luminescent image produced by the X-rays was captured in a 500 mm thick YAG scintillator coupled with a CMOS camera (Orca Flash V2 sCMOS, Hamamatsu Photonics, Shizuoka, Japan), chosen for its fast decay time and low afterglow. The resulting horizontal field of view was 26.6 mm, while the vertical field was limited to 8 mm due to the synchrotron beam's divergence. The estimated spatial resolution of the synchrotron beam was 40 mm.
Prior to each tomographic set, ten dark-field images (camera background, no beam) and ten flat-field images (background with beam, no sample) were recorded. During the tomographic process, the sample was rotated 200° around its vertical axis, with 2000 images for the three-dimensional tomograms captured within a 180° range to mitigate the effects of acceleration and deceleration during rotation. One image was taken every 0.09°.
Reconstruction of the images was carried out using the ufo-kit script developed at the Karlsruhe Institute of Technology.45 To address ring artifacts in the raw images, low-pass filtering of sinograms in the frequency domain was applied before further reconstruction steps.
Our methodology for autonomous analysis of bubbles within vanadium redox flow batteries (VRFB) utilizing synchrotron X-ray tomography is shown in Fig. 2. It manually annotates a comprehensive dataset comprising 2294 image/mask pairs. These pairs represent three distinct tomographic volumes with varying configurations: one half dry, half wet, and two fully wet cells. This diversity in data ensures the model's adeptness at accurately analyzing the different potential conditions present within the VRFBs. Annotations were meticulously conducted on all three volumes using Dragonfly, a commercially available software that streamlines annotation by allowing thresholds to expedite data labeling.46 Each slice was manually classified into four categories for detection: electrolyte, bubble, membrane, and gasket, as depicted in Fig. 1(b).
The dataset was divided into subsets for model training and validation. To optimize the training process, images were resized to 512 × 512 pixels, balancing resolution and memory requirements while preserving the images' contextual integrity. Post-prediction segmentation masks were resized to their original dimensions to maintain the correct aspect ratio.
This research focuses on multiclass segmentation using variations of the U-Net architecture, employing the manually annotated masks as ground truth. The standard U-Net architecture, a fully convolutional neural network, executes convolutions and down-sampling to capture essential image patterns within a latent space during the encoding phase. This process condenses the image information into a singular vector, followed by a decoding phase that inversely reconstructs the image resolution through up-sampling and transposed convolutions. U-Net's distinctive feature is the concatenation of encoder feature maps with corresponding decoder up-sampled feature maps, enhancing the delineation of object boundaries by integrating both low- and high-level features. This approach yields a refined segmentation output, demonstrating improved recognition of object edges and contours.47
Our study explored and evaluated four distinct adaptations of the traditional U-Net architecture for image segmentation at: U-Net with a ResNeXt101 backbone, Attention U-Net, U-Net 3+, and Swin U-Net.
• The ResNeXt101 U-Net variant integrates the ResNeXt101 model with the U-Net framework, utilizing the split-transform-merge strategy characteristic of ResNeXt101. This model is particularly noted for its “cardinality” feature, which refers to using parallel paths within a block to enhance performance without significantly increasing the network's depth or width. Integrating ResNeXt101 into U-Net enables more effective capture of complex image features, leveraging the strength of cardinality.48 This powerful feature extractor was expected to be more robust in differentiating the complex and sometimes ambiguous textures present in the VRFB cell, leading to a more accurate classification of bubbles and surrounding electrolyte.
• Attention U-Net enhances the standard U-Net architecture by incorporating an attention mechanism, focusing the model's processing on specific image regions. This is crucial for identifying objects at varying scales and minor yet significant image sections. By using attention gates before each decoder concatenation, the model emphasizes important pixels while diminishing the impact of irrelevant ones, thus achieving higher segmentation accuracy, particularly in noisy environments.49 We hypothesized that this mechanism would allow the model to selectively amplify the feature representations for bubbles, improving segmentation accuracy, especially for smaller bubbles in noisy regions of an image.
• U-Net 3+ combines the original U-Net architecture with deep supervision methods, facilitating direct feature transfer between encoder and decoder at various levels. This method effectively bridges semantic gaps and maximizes the utility of hierarchical features, thereby enabling the detection of a wider range of image details from broad to fine.50 This allows the model to generate more precise segmentation maps that are accurate for both small and large objects, which is crucial for obtaining an accurate overall gas volume distribution.
• Swin U-Net merges the Swin Transformer with the U-Net design, enhancing image segmentation by modeling long-range dependencies and capturing fine details across different scales. Incorporating the Swin Transformer's efficient self-attention mechanism with U-Net's established encoder-decoder structure results in superior segmentation precision. Swin U-Net's advantage lies in its ability to utilize global and local context information, offering a versatile and accurate approach to addressing segmentation tasks.51 We aim for this global context to help the model discern between challenging local regions and improve its understanding of the relationship between distant features, ultimately enhancing overall segmentation accuracy.
Upon completion of the training phase, the performance of each model was systematically evaluated and compared using established evaluation metrics. These metrics quantitatively assess the accuracy of the models by comparing the pixel classifications in the predicted segmentation masks against those in the ground truth masks. An alignment of both masks facilitates the identification of true positives (TP), where pixels are correctly classified into their respective classes. True negatives (TN) represent instances where pixels are accurately identified as background and do not belong to any class of interest. Conversely, false positives (FP) occur when pixels are erroneously classified into an incorrect class. In contrast, false negatives (FN) are identified when the model fails to classify a pixel correctly, assigning it to the wrong class or neglecting it as part of the background.
Fig. 3 illustrates these four classification outcomes, providing a visual reference for understanding the distribution of TP, FP, TN, and FN within a segmentation task. Building on these basic metrics, we derive more sophisticated evaluation parameters such as precision, recall, and the F1 score. Precision quantifies the accuracy of positive predictions, recall measures the model's ability to identify all relevant instances, and the F1 score offers a harmonic mean of precision and recall, balancing the trade-off between these metrics for a comprehensive assessment of model performance. The three metrics are defined as,
After generating the segmentation maps for a given volume, we constructed a three-dimensional stack of these volumes to facilitate further statistical analyses. Utilizing established mathematical formulations, we extracted essential metrics from the battery cell, including total bubble volume, the bubble volume fraction Rbv defined as the ratio of bubble volume over the total negative electrode volume, and bubble density distribution across different planes. Additionally, we isolated individual bubbles and implemented advanced computer vision algorithms using the OpenCV library52 to analyze the bubbles' shapes and spatial characteristics. These algorithms enhanced our comprehension of the bubbles' morphological features and their spatial arrangement within the cell by extracting the following bubble individual features:
• Volume: calculated by the count of voxels within an individual bubble.
• Orientation: this is determined by computing the vector along the bubble's most significant axis, with polar coordinates derived from this vector and represented in a polar coordinate system.
• Flatness: this metric quantifies the degree to which a bubble's shape is flattened, defined as the ratio of the bubble's intermediate axis length to its shortest axis length,
• Elongation: measures how stretched a bubble is, expressed as the ratio of the bubble's longest axis length to its intermediate axis length,
• Sphericity: assesses how closely a bubble's shape approximates that of a perfect sphere, calculated using the formula:
• Wall proximity: indicates the distance in voxels from the bubble to the nearest cell boundary or membrane, facilitating the analysis of bubbles' spatial distribution within the cell.
In challenging examples, the predictive model occasionally introduced artifacts or noise into the segmentation maps. We implemented two corrective functions to mitigate these inaccuracies and preserve the integrity of our statistical analyses. Initially, a filter was applied across the entire 3D volume stack to eliminate detections of bubbles that appeared one-dimensional (1D), based on the fact that real bubbles should span at least two voxels in depth, with 1D detections likely arising from model-induced noise. Subsequently, a second function assessed the morphological characteristics of the bubbles, excluding artifacts characterized by significant non-convexity and irregular shapes, which provoked errors in the determination of bubble metrics.
The derived measurements were systematically visualized to elucidate the system's characteristics. Advanced 3D visualization techniques were developed using the Visualization Toolkit (VTK) library,53 enabling interactive volume exploration with customizable color mappings based on the measured parameters. Furthermore, the software enabled users to create and export short GIFs depicting the rotating volume, thus enhancing the presentation and visualization of the results.
We have explored four variants of the U-Net architecture: a U-Net model incorporating a pre-trained ResNeXt101 backbone, Attention U-Net, U-Net 3+, and Swin U-Net, based on a visual transformer. These models have been trained using a dataset comprising a number of 1894 training and 400 validation images across 200 epochs with a batch size of 8 augmenting the dataset on-the-fly with random horizontal and vertical flips to increase the spatial robustness of the model. The chosen optimizer was Adam,54 and the selected loss function was categorical focal loss.55 The learning rate has been dynamically adjusted in real-time, ranging from 10−4 down to 10−6, depending on performance improvements across epochs.
Table 1 compares the performance metrics for each evaluated deep learning architecture. According to the F1 scores, all models show similar effectiveness on the validation dataset. However, the U-Net model with the ResNeXt101 backbone slightly surpasses others by achieving a higher recall. Maintaining high precision is crucial in our multiclass segmentation task, as misclassifying non-existent bubbles as present can introduce errors that potentially compromise subsequent statistical analyses.
Model | Precision [%] | Recall [%] | F1-score [%] |
---|---|---|---|
U-Net with ResNeXt101 backbone | 98 | 97 | 97 |
Attention U-Net | 98 | 96 | 97 |
U-Net 3+ | 97 | 94 | 96 |
Swin U-Net | 96 | 92 | 94 |
Beyond quantitative metrics, we have performed a visual evaluation of model efficacy utilizing datasets not encountered during the training phase, presenting a range of configurations to test the models thoroughly. These configurations can essentially be categorized into four distinct scenarios: completely gas-filled (dry), half-filled (half soaked), fully electrolyte-filled (soaked), and post-cell cycling (after hydrogen evolution reaction [HER]). In Fig. 4, the models exhibit acceptable performance in the dry, half wet, and post-HER scenarios, particularly noting that the U-Net model with a ResNeXt101 backbone achieved superior delineation of membranes and bubbles.
Furthermore, it should be noted that models encounter notable difficulties in configurations lacking or having sparse bubble representations. Under these conditions, models are prone to erroneously classify empty electrode backgrounds as bubbles, resulting in a propensity for overprediction. This visual assessment further validates the exceptional performance of the U-Net architecture merged with the ResNeXt101 backbone, which showcased a significant reduction in false positive detections of bubbles relative to other models. This model's adeptness at accurately distinguishing between true bubbles and background articulates its high level of discernment. It reinforces its applicability to complex segmentation tasks where precise detection and the reduction of false positives are paramount.
Automated tomography segmentation expedites the development of sophisticated software designed to extract advanced features from bubble dynamics within the cell. The parameters extracted play a critical role in deepening the system's understanding and facilitating experimentalists' research efforts. Moreover, these parameters are crucial for parameterization processes within simulation sciences, enabling more accurate and predictive modeling of cell dynamics.
A quantitative evaluation of the filtering process was conducted on an unseen dataset to assess the effect on predicted quantifications. Prior to filtering, the analysis detected 3255 bubbles, corresponding to a total bubble volume of 4.25%. After applying the filter, the bubble count was reduced to 488 while the overall bubble volume slightly decreased to 4.20%, a change of only 1.2%. These results indicate that the filtering process effectively removes noise and false positives without compromising the overall volumetric quantification, thereby ensuring reliable individual bubble analysis.
Fig. 5(a) demonstrates the software's ability to conduct region-specific analysis tailored to the user's requirements. Although analyses can encompass the entire cell, we have engineered specialized computer vision algorithms to discern between the positive and negative half-cells. To achieve this, we have delineated the membrane on both sides, enabling pixel-exact separation of the electrodes. This approach benefits membranes with irregular shapes, which cannot be separated through conventional, arbitrary methods.
Identifying the region of interest can start the feature extraction process from the segmented volumes. Classifying voxels into four distinct categories makes it feasible to quantify the total gas volume within the cell and determine the bubble-to-electrolyte ratio to characterize the system.
An insightful outcome derived from the segmentation process is the generation of a 2D bubble density distribution plot across the cell, which is depicted as a density map from the orthogonal planes XY, XZ, and ZY, as illustrated in Fig. 5(b). We aggregate the predictions across each plane by filtering the predictions to retain only bubble voxels, set to ‘1ʼ, and designating the background as ‘0ʼ. These density maps are then created by consolidating the segmented bubble data into a singular image from various perspectives. This aggregation results in regions densely populated with bubbles throughout the volume being assigned higher values, visually represented by warmer hues on the density map. Cooler colors indicate areas with fewer bubbles, while greener hues mark intermediate zones. The density maps from the XY and XZ planes in Fig. 5(b) qualitatively suggest that, in the given example, the bubbles are uniformly distributed across the cell, with an increasing concentration near the central membrane. This visual representation aids in qualitatively assessing bubble distribution and accumulation within the cell from a 2D perspective, avoiding any 3D rendering approach.
Our methodology facilitates the rendering of volumes in three dimensions, enabling the subsequent extraction of specific features of interest. The process involves reconstructing a 3D volume, within which the segmented bubbles are isolated by a function that segregates each bubble surrounded by background voxels and assigns a unique identifier. This segregation permits the detailed analysis of each bubble, including extracting unique morphological attributes through computer vision techniques. These techniques provide insights into the structural properties of individual bubbles, elucidating characteristics commonly analyzed in material science.
These parameters collectively offer a comprehensive characterization of the bubbles' morphology, enhancing their understanding of their behaviour and interaction within the cell environment. As depicted in Fig. 6, the derived measurements are subsequently visualized in corresponding histograms to provide an overview of the system. Furthermore, our methodology supports direct visualization of these measurements by rendering the 3D volume, where each bubble is color-mapped according to its measured values. This interactive 3D visualization capability significantly improves comprehension of property distribution throughout the cell and can be generated automatically. The software also features the ability to create 360° GIFs of the volume of interest, facilitating the later visualization or presentation of findings.
Integrating automated volume segmentation with sophisticated computer vision algorithms has facilitated the creation of specialized functions tailored for specific use cases, enhancing our comprehension of the systems. By combining a function that delineates the detailed contour of the central membrane with precise, pixel-wise segmentation of bubbles, we have pioneered an approach for conducting membrane blockade analysis. As demonstrated in Fig. 7, this methodology allows for quantifying and visualizing bubble voxels in contact with the membrane, laying the groundwork for subsequent correlation analyses.
![]() | ||
Fig. 7 Visual comparison of the original volume alongside its segmentation and the representation of bubbles blocking the membrane. |
As shown in Fig. 7, this function computes the extent of the membrane's surface area obstructed by bubbles and visualizes the implicated bubbles using an interactive 3D visualization tool, enabling detailed examination. The primary objective of this approach is to facilitate future studies that will investigate the correlation between membrane blockage and potential performance degradation in the system. By quantifying the membrane area affected by bubble obstructions, we aim to identify and analyze factors that may contribute to performance losses, thereby offering insights into optimizing system efficiency and reliability.
To further illustrate our tool's capabilities, it is applied to a representative set of synchrotron X-ray tomography datasets of vanadium electrolyte electrodes modified with three different materials: poly(o-toluidine) (POT), Fe–N–C, and Vulcan. This use case is directly based on the study by Köble et al.,43 which performed comprehensive electrochemical characterization of the same electrode samples, including cyclic voltammetry (CV), electrochemical impedance spectroscopy (EIS), and distribution of relaxation times (DRT) analysis. However, their study lacked 3D bubble image analyses of the accompanying tomography datasets. In the tomography scanning experiment, a three-electrode setup was employed featuring carbon felt electrodes with modification as the counter electrode, and an Ag/AgCl reference electrode (3 M NaCl, E = 0.209 V vs. SHE).20,43 The electrolyte was 0.1 M VOSO4 dissolved in 2 M H2SO4. Before inducing hydrogen evolution, electrodes were thoroughly wetted and scanned once by X-ray tomography to identify residual bubbles in the electrode.
Fig. 8 shows the resulting 3D reconstructions of bubble distributions and the results of quantitative bubble analyses. The bubble volume fraction Rbv is defined as the ratio of bubble volume over the total negative electrode volume. In Fig. 8(a), Rbv in the POT-modified electrode before inducing the HER was about 3.03%, indicating that a moderate amount of air was trapped even after complete wetting. Before inducing the HER, Rbv in the Fe–N–C-modified electrode only 0.81% (as shown in Fig. 8(b)), which implies an excellent ability to remove gaseous species and avoid the formation of large bubbles. In Fig. 8(c), the Vulcan electrode had the highest residual bubble volume of 4.59% before starting the HER, indicating that the additional carbon particles hindered the effective removal of gas during the permeation process. From the bubble volume distribution histogram, it can be seen that the Fe–N–C-modified electrode contains mostly small bubbles, while the Vulcan electrode tends to show a wider distribution. Moreover, the bubbles in both the POT-modified electrode and the Vulcan-modified electrode show more obvious shape deformation (lower sphericity and higher elongation), suggesting that the local pore structure may limit bubble release.
In addition, analyses of the bubble orientation reveals that in electrodes with a more anisotropic pore structure, bubbles tend to align along specific directions. This preferential orientation is especially evident in the POT and Vulcan modified electrodes, where the directional bias likely reflects the influence of the fibre alignment and pore connectivity on bubble nucleation and growth. These findings are consistent with the experimental data (dynamic vapor sorption and flow injection experiments) reported by Köble et al.,43 indicating that the Fe–N–C-modified electrode has good porosity and wetting behaviour under flow conditions.
To induce bubble formation in the HER, a potential of −0.5 V vs. Ag/AgCl (about −0.3 V vs. RHE) was applied for 5 minutes. A second tomography scan was then performed. The results are compared to the tomographic images in Fig. 8. By comparing the bubble ratio before and after HER, the catalytic effect of each modified electrode due the application of negative potential can be rationalized. For the POT-modified electrode, Rbv increased from 3.03% to 4.36%, a modest increase indicating that the HER was partially suppressed. In contrast, Rbv in the Fe–N–C-modified electrode increases markedly from 0.81% to 7.45%, highlighting the strong catalytic activity of the iron-based sites for hydrogen production. This observation is consistent with previous electrochemical characterizations that Fe–N–C-modified electrodes can significantly enhance side reactions at the negative half-cell of VRFBs.43 Rbv in the Vulcan-modified electrode exhibit a significant increase from 4.59% to 6.59%. The considerable amount of additional gas formed in this case, can be attributed to carbon black agglomerates that promote bubble nucleation.
Observations reported here are consistent with electrochemical trends reported previously by Köble et al.43 In their CV measurements, Fe–N–C and Vulcan-modified electrodes exhibited higher HER current densities at the negative half-cell, which supports our tomographic finding of increased bubble formation in these samples. Additionally, EIS and DRT analyses revealed that the POT-modified electrode exhibited increased polarization resistance and mass transport impedance, likely due to gas entrapment, an effect also captured in our 3D reconstructions as persistent near-wall bubbles. Together, the tomographic and electrochemical data highlight the distinct behavior of each electrode material: Fe–N–C shows strong HER activity that leads to significant bubble growth despite its favorable performance in the V(IV)/V(V) reaction; POT suppresses HER but may hinder liquid transport; and Vulcan falls between these two extremes in both catalytic and transport characteristics.
Overall, this use case has demonstrated that the proposed 3D bubble image analytical tool is able to extract meaningful structural information from complex tomographic datasets and effectively link it with known electrochemical behaviour. By capturing key features such as bubble volume fraction, shape deformation, and spatial orientation, the tool enables detailed investigation of gas evolution and retention phenomena in porous electrodes. These insights contribute to a deeper understanding of gas–liquid interactions in electrochemical systems and provide a valuable basis for future efforts aimed at optimizing electrode architectures, operating conditions, and material selection.56 The successful application to existing datasets further illustrates the practicality and generalizability of the tool, paving the way for its broader adoption in the study of gas-involved electrochemical processes.
In our application example, we compared electrodes modified with POT, Fe–N–C, and Vulcan treatments and demonstrated that our tool can distinguish differences in bubble dynamics before and after running the hydrogen evolution reaction (HER). This comparison reveals that, for example, the Fe–N–C modification causes a pronounced increase in bubble volume after the HER—indicating a markedly catalytic activity for hydrogen production, whereas the POT-modification shows only a modest increase. Although the extracted morphological descriptors are currently difficult to relate to known electrochemical behaviour, future work could combine them with numerical studies (e.g., multiphase flow or 3D transport simulations) to assess the potential impact of bubble morphology on fluid resistance, local reactant accessibility, and overall cell performance. These insights are valuable in view of understanding bubble dynamics in VRFBs, and they provide valuable insights for electrode optimization.
The presented analytical tool allows experimentalists to replace the time-consuming and error-prone manual analyses of synchrotron tomographic images of VRFBs. It expedites the rapid quantification of bubbles. Furthermore, the tool's advanced automation and visualization capabilities enable swift, visual comparisons across different volumes, enabling comparative degradation analyses between various cells and paving the way towards 4D analyses of bubble dynamics with resolution in space and time. The tool can be readily extended to other electrochemical systems, such as water electrolysers, where bubble formation and transport plays a critical role for performance and durability. We intend to make this tool publicly accessible, ensuring its design supports the seamless incorporation of additional feature extraction functions, new models, and various visualization techniques based on the needs of theoretical and experimental research.
Footnote |
† Equal contribution. |
This journal is © The Royal Society of Chemistry 2025 |