P.
Pietsch
a,
M.
Ebner
a,
F.
Marone
b,
M.
Stampanoni
bc and
V.
Wood
*a
aLaboratory for Nanoelectronics, ETH Zuerich, Gloriastrasse 35, 8092 Zurich, ETZ H65, ETZ J86, Switzerland. E-mail: ppietsch@iis.ee.ethz.ch; mebner@ethz.ch; vwood@ethz.ch; Tel: +41 44 633 8583 Tel: +41 44 632 4603 Tel: +41 44 432 6654
bSwiss Light Source, Paul Scherrer Institute, 5232 Villigen, WBBA/216, Switzerland. E-mail: federica.marone@psi.ch; marco.stampanoni@psi.ch; Tel: +41 56 310 5318 Tel: +41 56 310 4724
cInstitute for Biomedical Engineering, University and ETH Zuerich, Zuerich, Switzerland
First published on 11th January 2018
In the past few years, tomography has emerged as an indispensable tool to characterize and quantify the microstructural parameters of porous media, including lithium ion battery electrodes and separators, fuel cell parts, and supercapacitor electrodes, as well as electrolysis diaphragms. However, tomographic data often suffer from low image contrast between the pore space and the solid phase. As a result, data binarization is error-prone, which translates into uncertainties in the calculated parameters, such as porosity, tortuosity, or specific surface area. We systematically investigate this error propagation on a set of seven commercial negative lithium ion battery electrodes imaged with X-ray tomographic microscopy, and find that, for low porosity electrodes, the selection of binarization criteria can lead to uncertainties in the calculated tortuosity exceeding a factor of two. Our analysis shows that Otsu's interclass variance, which can be determined from a simple and computationally cheap analysis of the histogram of gray values, is a good predictive indicator of the expected uncertainty in the microstructural characteristics.
X-ray tomographic microscopy (XTM) has become the tool of choice to characterize and quantify the microstructure of, for example, lithium ion battery (LIB)1–7 electrodes, LIB separators,8 fuel cell electrodes,9,10 gas diffusion layers,11,12 supercapacitor electrodes,13 electrolysis diaphragms9,14 and reticulate porous ceramics.15 Many XTM experiments aim at condensing the rich microstructure information into a set of few characteristics that can subsequently be attributed to a homogeneous effective medium with similar properties as the original microstructure. The most common characteristics are (i) the porosity ε, which affects both storage and transport properties, (ii) the tortuosity τ, which affects transport properties and is inversely proportional to the medium's effective conductivity or diffusivity, and (iii) the specific surface area As, which controls conversion rates at the material interfaces. In a typical experiment, a sample is imaged ex situ or in situ and, before the microstructural parameters can be calculated,16 the resulting 3D dataset(s) (which contain a range of gray scale values) must be binarized, a procedure whereby voxels (the volume element in 3D, analogous to a pixel in 2D) are assigned one of two distinct gray-scale values and are thereby associated with either the pore space or the active particle phase.
Currently, there is little consistency in data acquisition and image processing procedures among different studies. Unless a ground truth is available for the binarization, the quality of data binarization is typically judged by visual inspection, which is highly subjective. Such a ground truth could, for example, be given by imaging the same sample with an alternative imaging technique that provides significantly better spatial resolution and contrast, albeit often at the cost of invasiveness, increased effort, or smaller sample volumes. This approach has for example been taken in a correlative microscopy study, where the ground truth for the X-ray data was provided by a focused ion beam scanning electron microscopy dataset having higher resolution.17
In this study, we develop a simple method to estimate the errors in common microstructural parameters that are induced by binarization of three-dimensional tomographic data sets.
A typical workflow to binarize tomographic data consists of16 (i) preprocessing the grayscale data by applying a set of filters (e.g. histogram equalization, anisotropic diffusion filters, and noise reduction filters), (ii) thresholding the data, and (iii) postprocessing the binarized data (e.g. a morphological image operation to ensure that a specific type of feature is associated with a given phase).
To systematically investigate how these data processing steps affect the resulting microstructure, we parametrize the binarization process with a variable threshold and filter. The thresholding and filtering methods chosen for this study are discussed in subsequent sections; however, the impact of changing the threshold and filter is shown qualitatively in Fig. 1a. Depending on the chosen threshold and the filter, strikingly different binarized microstructures are obtained from the same raw data. The threshold is a gray scale value that defines which pixels are associated with the pore space and which are associated with the active material. Pixels with a gray scale value smaller than the threshold are associated with the pore space, and those with a gray scale value larger than the threshold are associated with the active material. Increasing the threshold value (moving up the y-axis in Fig. 1a), increases the number of pixels associated with the pore space, resulting in more small-scale features. Filtering can be applied before and after the threshold, and it can be understood as a measure of how strongly the data are modified (e.g., through contrast enhancements, smoothing and noise reductions in the pre- or post-processing step) to facilitate binarization. As shown in Fig. 1a, increasing filtering (moving along the x-axis) eliminates small features from the data.
Fig. 1 (a) A representative section of a tomogram showing the range of gray scale values present in the raw data. To analyze the microstructure, this raw data must be binarized. Selection of a threshold and a filtering routine will result in different binarized microstructures. A blue rectangle is inserted around a region with small features to guide the eye in assessing the impact of the threshold and filtering parameters on preserving these features. (b) Data processing procedure: for each tomographic raw dataset, 11 thresholds obtained from different histogram-based thresholding algorithms, define the threshold uncertainty range (blue). The degree to which the raw data is smoothed and filtered upon binarization is controlled by the max-flow-min-cut algorithm (see ESI†) with a corresponding filtering range (red) that is defined by noise reduction and feature preservation criteria. The uncertainty ranges of the microstructural characteristics, porosity (ε), tortuosity (τ) and specific surface area (As) are then calculated on the set of binarizations resulting from all threshold – filtering parameter combinations. Repeating this computationally expensive procedure (green route) for different electrodes allows us to establish a lookup table for the expected uncertainty as a function of the Otsu interclass variance, which is a simple histogram based quantity. Once the lookup table is established, simply calculating Otsu's interclass variance from a histogram of the raw data is sufficient to estimate the microstructural uncertainty ranges, allowing for quick feedback to optimize imaging parameters (orange route). |
Fig. 1b illustrates the analysis carried out in this paper and how our findings can be implemented to provide error bars on the reported microstructural parameters and/or to optimize imaging parameters on the fly during an XTM imaging beamtime. In the first step, we use the computationally expensive processing path (depicted by the green arrows) to define and evaluate microstructural uncertainties based on strict criteria. In the second step, we make use of our findings to enable a simple and computationally cheap processing path (orange arrows) to quickly estimate microstructural uncertainties and even enable direct feedback and optimization of imaging parameters in real time during an imaging study.
We performed XTM imaging at the TOMCAT beamline at the Swiss Light source in standard attenuation contrast geometry, using a voxel size of 162.5 × 162.5 × 162.5 nm3 (see ESI†). The tomographic data for these electrodes are provided open source.‡19
As previously mentioned, the binarization process is parametrized with two continuously tunable parameters: (i) a threshold that assigns every voxel in the raw data with a gray value larger than the threshold to the foreground and every voxel with a gray value smaller than the threshold to the background and (ii) a filtering parameter that controls the smoothness and feature preservation of the binarization.
To facilitate understanding of the binarization routine applied here, we explain the concepts using a 2D image consisting of pixels. All concepts can be transferred straightforwardly to the case of 3D volumetric image data consisting of voxels.
Applying a threshold to a grayscale image (Fig. 2a) results in a preliminary binarization (Fig. 2b). The assignment of a pixel to either the foreground or the background depends only on its gray value with respect to the threshold level. The hatched pixel in Fig. 2b has been associated with the foreground phase; however, its gray value in the raw data (Fig. 2a) is only slightly above the threshold level, making its affiliation to the foreground or background quite ambiguous. Furthermore, all four of its neighbors belong to the background. Since the size scale of the features in the reconstructed image should be larger than a single pixel, the binarization is likely to be improved by flipping the pixel and associating it with the background phase (Fig. 2c). This is an example of a filtering procedure based on this morphological information that can be used to obtain smoother binarizations with reduced noise.
The technical implementation of this is based on the graph cuts theory framework.19 Specifically, we work with a MATLAB based implementation of the max-flow-min-cut algorithm,20–22 which can be downloaded from ref. 23, as discussed in detail in the ESI.†
However, on a qualitative level, one can consider the filtering parameter as a measure of how easily pixels are flipped to adapt the same phase as their neighbors. A small value of the filtering parameter means that the binarization result obtained from thresholding will only be slightly changed. In contrast, a large value for the filtering parameters means that that pixels will adapt to the phase of their neighbors.
Fig. 3 explains the concrete choice of thresholding and filtering ranges used in this work. To define limits on the thresholding axis, we apply 11 different commonly used automated thresholding techniques to the histograms: Otsu,24 Huang,25 isodata,26 peak-average (threshold is defined as the mean of the two peak positions, when the histogram data are fitted with a set of two Gaussians), minerror,27 moments,28 max-entropy,29 triangle,30 Yen,31 Shanbhag32 and Li33 (see ESI†). The different thresholds for a histogram of the Samsung 25R6 electrode data are shown in Fig. 3a. From the distribution of different thresholds, we determine the mean (dashed black) and the standard deviation (light gray area). We define this standard deviation as the range of reasonable thresholds.
A reasonable range of the filtering parameter has to be introduced. To define the lower bound of filtering, we consider the noise level. A minimal amount of filtering should be applied to reduce the amount of noise in the binarizations (“noise reduction criterion”). Since the true spatial resolution is typically on the order of 3 × 3 × 3 voxels, the number of domains with a size smaller or equal to 3 × 3 × 3 voxels is taken as the noise level. As illustrated for the Samsung 25R6 electrode in Fig. 3b, the noise level (blue line) decreases with increasing strength of the filter. We define the lower limit on filtering to be the point (marked by an ‘x’) where the noise level has dropped to 50% of its value at zero filtering (blue dashed line).
In the high filtering limit, the filtering parameter should not exceed a value that erases microstructural features of significant size (“feature preservation criterion”). As the filtering parameter is gradually increased, larger and larger domains will be flipped (i.e. assigned to the phase to which they were not assigned at zero filtering). Tracking the mean size of the 10 largest connected domains in the data that are flipped as a function of the filtering parameter (red curve in Fig. 3b) allows us to set the upper filtering bound where this value equals the minimum of the D50 value of the pore size distribution and the D50 value of the particle size distribution at zero filtering (red dashed line). In other words, we do not allow microstructural features with a size larger or equal to the D50 value of either particle or pore size distribution to be erased by the filtering. According to this criterion, electrodes with small particles and pores allow less filtering than those with larger particles and pores.
We apply a large set of threshold and edge cutting cost binarization parameter combinations within the aforementioned bounds to 350 × 350 × 150 vox3 (57 × 57 × 24 μm3) crops of each of the seven electrodes and calculate the corresponding porosities, tortuosities, and specific surface areas. The maps in Fig. 3c–e plot these values for the Samsung 25R6 electrode. The four magenta lines demark the upper and lower limits on the threshold and the filter parameter as defined above, and the red hatched regions therefore indicate the corresponding range of binarizations. We take the middle point (orange dot) as the parameters for the optimal binarization. As the edge cost parameter is varied, we slightly adapt the threshold limits, such that the porosity remains constant along the boundaries. Absolute positive and negative errors for the different microstructural characteristics can then be defined for each electrode according to:
Δ+ = max4i=1(Pi − Popt) | (1) |
Δ− = max4i=1(Popt − Pi) | (2) |
Fig. 4 (a) Renderings of the seven commercial LIB negative electrodes investigated in this study. (b) Threshold and filter parameter ranges (respectively, the vertical and horizontal distances between the magenta lines in Fig. 3c–e) for the different electrodes. The ranges are normalized with respect to the highest occurring ranges for the threshold (E35 electrode) and the filtering parameter (GCA-2000 electrode). (c) Porosity (ε), (d) tortuosity (τ), and (e) specific surface area (As) results for the seven different electrodes. The yellow bars show the values resulting from binarization with the parameter combination that is considered optimal (Popt), while the red and blue bars show the negative (Δ−) and positive (Δ+) errors. |
There is a negative correlation between the threshold range (red) and the filtering range (blue) in Fig. 4b: for electrodes that are easy to binarize, the threshold uncertainty range is small, while the filtering parameter can be varied in a rather large range without degrading the segmentation quality. On the other hand, a large threshold uncertainty implies that small changes in the filtering parameter significantly affect the binarization results.
The outcomes of the microstructural analysis of the seven electrodes are summarized in Fig. 4c–e. First, as expected from the Bruggeman relation,34 higher porosities correlate with lower tortuosities, as smaller porosities imply thinner and longer diffusion pathways.1,35 Second, as the electrodes show on average rather small porosities, an increase of pore space will also increase the specific surface area, explaining the positive correlation between the two quantities. Most importantly the errors Δ+ and Δ− are rather small for electrodes with large porosities but become very large for small porosity electrodes. In particular, for low porosity electrodes, the computed tortuosity is extremely sensitive to the binarization. For example, in the case of the Tesla and the E35 electrodes, the positive errors in the tortuosities exceed the optimal tortuosity values themselves (i.e. the relative error δ+ exceeds 100%, meaning that the tortuosity is uncertain by a factor of more than two). These results highlight that great care should be taken when low porosity electrodes with weak contrast are binarized for microstructural analysis. The detailed analysis of all seven electrodes is presented in the ESI (Fig. S5–S11†).
The focus of this study is to investigate the uncertainty of microstructural parameters associated with the binarization process; however, it is important to keep in mind other sources of uncertainty, shortcomings and limits associated with XTM imaging. As in most microstructural studies based on X-ray micro-tomographic data,1–7 we compute the porosity, tortuosity and specific surface area values by separating the gray scale data into two phases (i.e., binarizing): the active particle phase (foreground) and the pore phase (background). In lithium ion electrodes, one also finds carbon black and a polymeric binder, which are weakly X-ray absorbing and have feature sizes that typically fall below the spatial resolution limit of X-ray micro-tomography. The carbon black and polymer domain may be present in voxels associated with the particles and in voxels associated with the pores. While the porosity uncertainty arising from this effect is likely to be small due the low weight fraction of these additives in typical commercial negative electrodes (2–4 wt%),36 it could potentially explain the deviations between tortuosity estimates obtained from XTM data and those estimates obtained from electrochemical impedance measurements.37 Furthermore, as has already been discussed elsewhere,6 many surface features of graphite are smaller than the spatial resolution of most XTM setups. Indeed, while our values for the specific surface area of the different electrodes are comparable to other XTM studies of graphite,6,38 they are one to two orders of magnitude below the values obtained from BET surface area measurements (5–100 μm−1).39 Despite this limitation, the trends in specific surface areas provide useful insights into the particle size and shape.
The approach taken above is a computationally expensive and time-consuming way to determine the error in microstructural parameters, as it requires the calculation of binarizations and their corresponding microstructural parameters for many combinations of threshold and filtering parameters. We therefore investigate if our results could be used to develop a criterion, by which the expected uncertainties in the microstructural parameters could be estimated from raw data (e.g. the histogram of gray values).
To find such a criterion, we condense the information contained in a histogram into eight parameters; the mean μ and the standard deviation σ of the overall population as well as the means μj, standard deviations σj and population fractions ωj of the two subpopulations (j = 1, 2) determined by using a single threshold (Fig. 5a), which can be calculated for example from Otsu's automated thresholding method.24
We consider three criteria that are typically used to quantify bimodality and test their correlation with the calculated relative uncertainties δ+ + δ− of the microstructural parameters ε, τ, and As. These are Ashman's D40 (CAsh), Otsu's interclass variance24 (COtsu) and Chaudhuri Agrawal's index41 (CCA), which are defined as:
(3) |
COtsu = ω1ω2(μ1 − μ2)2 | (4) |
(5) |
Pearson’s linear correlation coefficients are tabulated in Fig. 5b, and the values close to 1 in absolute value indicate that CAsh, COtsu, and CCA all show a very strong correlation with the microstructural uncertainties.
In Fig. 5c, we plot the relative microstructural uncertainties δ = δ+ + δ− of ε, τ, and As as a function of Otsu's interclass variance COtsu, which shows the most pronounced correlation. The observed trend makes qualitative sense: electrodes with histograms that appear more bimodal by visual inspection (i.e. have more pronounced and separate peaks) show smaller uncertainties in the microstructural characteristics. The curves δε(COtsu), δτ(COtsu) and δAs(COtsu) are empirical 2nd order polynomial representations with the colored shadings representing plus/minus one standard deviation σ:
δε(COtsu) = 2.31 × 105 × (COtsu)2 − 1.49 × 104 × (COtsu) + 227% ± 6.2% |
δτ(COtsu) = 6.64 × 105 × (COtsu)2 − 3.37 × 104 × (COtsu) + 428% ± 17.7% |
δAs(COtsu) = 3.47 × 105 × (COtsu)2 − 1.79 × 104 × (COtsu) + 258% ± 7.3% |
While these equations linking the uncertainties in ε, τ, and As to Otsu's interclass variance do not have a physical meaning, they enable the estimation of those uncertainties from the knowledge of the histogram of gray values. For example, if an Otsu interclass variance of 0.015 is measured for a raw-dataset, the relative errors δ = δ+ + δ− for each of the three microstructural characteristics can be roughly expected in the range 50–100%. With this understanding, imaging parameters (such as the exposure time for a single projection, the number of projections acquired during a tomographic scan, or phase retrieval parameters) can be iteratively altered during a series of XTM experiments until the expected microstructural uncertainties are as low as required. It is important to note, however, that while some imaging parameters (such as the exposure time for a projection) simultaneously improve the accuracy of the sample reconstruction and the image contrast, other parameters improve the contrast (i.e. binarizability) at the expense of reconstruction accuracy. For example, the Paganin phase retrieval filter42 decreases the binarization uncertainty with improved image contrast, but reduces the accuracy of the reconstruction due to lower spatial resolution.5
The uncertainties calculated in this work represent only the uncertainty of the binarization procedure. They do not reflect the accuracy of the XTM reconstructions themselves. For example, with the XTM settings used for these experiments (which result in a voxel edge length of 162.5 nm), nanometer-scale features (such as pores within the graphite particles and the binder-phase) will not be resolved, irrespective of how small the binarization uncertainty is. As described in the ESI,† insight into the accuracy of the reconstruction can be achieved by comparing different types of measurement methods.
However, because the calculated uncertainties refer only to the uncertainty of the binarization procedure and not to the accuracy by which the tomographic reconstructions represent the sample, the relationship between the Otsu interclass variance and the microstructure uncertainties (Fig. 5c) holds independently of the experimental setup and its parameter settings (as long as the histograms are consistently calculated and normalized). XTM reconstructions acquired from two different cathodes imaged with a different X-ray energy and in a different experiment consistently showed very small microstructure uncertainties at large Otsu interclass variances in agreement with our findings on the seven graphite electrodes (see ESI Fig. S4†).
Footnotes |
† Electronic supplementary information (ESI) available: (1) Details on sample preparation, tomographic imaging parameters, and computational methods, (2) comparison of tomographic and gravimetric porosity measurements, (3) validation of microstructural uncertainties with tomographic data from cathodes, and (4) detailed evaluations of each of the seven electrodes, including the threshold range, the filter parameter range, visualization of the binarizations and the three maps for the microstructural parameters porosity, tortuosity and specific surface area (Fig. S5–S11). See DOI: 10.1039/c7se00498b |
‡ The tomographic raw data sets of the seven commercial lithium ion battery negative electrode microstructures are provided open source and can be found at the DOI: 10.3929/ethz-b-000220966 |
This journal is © The Royal Society of Chemistry 2018 |