Keywords
image processing, transformation, noise, filter, pixel, frequency, kernel, distribution, hydrogel, pore
This article is included in the NEUBIAS - the Bioimage Analysts Network gateway.
image processing, transformation, noise, filter, pixel, frequency, kernel, distribution, hydrogel, pore
There are some clarifications made to better explain the hydrogel material network and the artefacts associated with the imaging. Furthermore, it is mentioned how to use the code to extract hydrogel pore or wall thickness features. lastly, the result of measurement with the method is compared quantitatively with the reported values in the source paper to validate the method. Figures 1 and 2 have been updated.
See the authors' detailed response to the review by Miroslava Dušková-Smrčková
Biomimetic engineered hydrogels often serve as 3D microporous extracellular microenvironment mimics in regenerative medicine, tissue engineering1 and in-vitro cancer studies2. The physical properties of these gels may provide a mechanical cue to regulate the cell phenotypic activities and functions via cellular mechanotransduction3,4. Moreover, it has been shown that a change in the stiffness/elasticity of hydrogel is associated with the morphological change in the structure of the hydrogel mesh5. This article presents an image analysis method applied to characterise hydrogel structure heterogeneity and porosity resulting from the treatment of fully hydrated hydrogels during plunge-freezing to acquire their cryogenic scanning electron microscopy (cryo-SEM) images. It should be mentioned that during the process of sample preparation for cryo-SEM microscopy, the sample undergoes a probable morphological alteration, furthermore the process itself might introduce artifacts according to the nature of the material and swelling rate. Readers are encouraged to refer to the studies specialized on the imaging of different hydrogel network by Kalasova et al.6 and Pradny et al.7.
The image processing algorithm of the present work has been written as a code in the Python 3.8 language and was applied to analyse the cryo-SEM images of hydrogel, however it is applicable to analyse any other type of images of hydrogel porous network. The present study uses cryo-SEM images of fully hydrated hydrogels adopted with permission from Kaberova et al.8 as input data. To detect the pores precisely, the edges of the hydrogel walls are highlighted, and a band pass frequency filter is applied to optimize the removal of noise with preservation of the edges of hydrogel walls. To detect and measure the thickness of the hydrogel walls, the look up table of the binary image should be inversed to bring hydrogel walls in foreground (white) refer to Figure 1.
Images on the left show the output images of each step in the processing algorithm and the relevant flowchart is illustrated on the right to distinguish foreground (pores) from background (hydrogel walls). The source image adapted from Kaberova et al.8 with permission.
Pre-processing. After loading the image from the specified path, it was first normalized to stretch the Gray level histogram between 0 and 255 and enhance the image contrast. Next, to filter out the noise, a Gaussian (σ =0.7, 3×3) spatial filter convolution was applied to the image. The filtered image is a weighted average of the neighbourhood pixels that better preserve the edges in lower contrast areas while removing the noise9. Afterwards, to extract the edges of the hydrogelwalls, a range of the non-linear 3×3 edge detection filters including Sobel was applied to the image to highlight the locations of sharp intensity transitions. Both the noise and edges belong to the high pass frequencies of the image in essence10 and the edge emphasising filter might introduce some artifacts in these range. Therefore, in the next step, a band pass frequency filter was used to highlight the desired quasi- high range of the frequencies for a better edge detection (refer to Figure 1).
Thresholding. The binarization of cryo-SEM images of gels is challenging as there is no standard method for thresholding. Since in most of the cryo-SEM images there is uneven illumination, the adaptive threshold technique was undertaken to segment the background (hydrogel walls, value=0 black) and foreground pores (pores, value=1 white). The algorithm calculates the optimal value of threshold based on the weighted mean and standard deviation of the pixel values within the neighbouring window of fixed size for each pixel and outperforms the conventional methods11. In the present work, the adaptive Gaussian threshold has been applied to the image on a window size of 25×25 pixels. The window size should be optimized depending on the density of the details (information) and a lower or greater size may be chosen.
Morphological transformation. The pores touching the boarders of the image were excluded and then basic morphological transformation (erosion×1 and opening×5) was applied to ensure that the isolated pixels both in the background and foreground (pores) were eliminated. For all transformations, a 3×3 elliptical structuring element was applied. Erosion transformation was applied to separate the touching pores and remove the remaining very small pores. Following, the holes within the detected pores were filled up. And lastly, the image was reconstructed based on the erosion and opening results and then a watershed algorithm was used to segment the pores and measure pore properties on the final image.
To validate the method, the screenshot images of a hydrogel network from a previously published work where the corresponding pore diameters have been reported, were analysed with the proposed method using Otsu’s thresholding method and setting 0.05 max watershed threshold. The obtained results of the proposed method (17 µm) were compared with the available reported measurement (15 µm from Figure 4 of the reference)12.
After performing the pore detection analysis, each single detected pore was associated with the centre of mass and area and the results were exported in a text file. The cryo-SEM image of the sample hydrogel shown in Figure 1A reveals that the hydrogel structure is heterogenous in spatial domain. Therefore, pore size distribution and statistical analysis alone might not represent the spatial heterogeneity and clustering of the detected pores. To quantify and visualize the spatial heterogeneity of the hydrogel, the kernel density estimation function was fitted on the centre of mass of the detected pores on the spatial domain of the cryo-SEM image.
Comparing the obtained results of the proposed method with the available reported measurements of the pore sizes of fluorescent images of hydrogel elsewhere12, the method has been validated with acceptable accuracy (17 µm compared to the reported value was 15 µm for average pore size). Moreover, the average equivalent diameter of the pores of the analysed source image (adopted from Kaberova et al.8) was equal to 12.36 µm with the corresponding pore size distribution range of 2–36 µm. the comparison of the results with the range reported by Kaberova et al.8 (2–40 µm) shows a good agreement and reliability of the presented method as it is shown in Figure 2B. The results of spatial heterogeneity quantification are presented in the form of contour plots (Figure 2). A higher density value indicates the presence of more pores in the unit of area; therefore, it might represent the location of smaller pore clusters and compactness of the pore clusters. On the other hand, a lower value indicates a less dense area, or an area covered with larger pores. It can be observed from the kernel density contours of a sample image (Figure 2D) that the distribution of most of the larger pores are almost uniformly dispersed; however, the smaller pores formed clusters at the top-left corner of the image.
A) Detected pores of cryo-SEM micrographs. B) Pore size distribution. C) Spatial contour maps of pore area. D) Kernel density estimation dot plots demonstrating the spatial density of detected pores. Data adapted from Kaberova et al.8 with permission.
The algorithm provides an image analysis method for biomaterial science research to investigate the structural heterogeneity of hydrogels. This simple and flexible analysis method allows optimization of different parameters to ideally analyse a broad range of images. We have also demonstrated that based on the data extracted from the image, the kernel density estimation function is a powerful graphical tool to visualize and compare spatial heterogeneity and porosity of the hydrogel. The application of this method can be extended to structural analysis of any other porous network. Furthermore, it is worth mentioning that applying more sophisticated segmentation methods13 to combine classical transformation with deep learning models in the future works might improve the accuracy and performance of the method to distinguish touching pores and separate hydrogel walls.
Zenodo: niliou/Hydrogel-pore-size: Hydrogel pore size distribution. https://doi.org/10.5281/zenodo.430890714.
This project contains the following underlying data:
Data are available under the terms of the Creative Commons Zero "No rights reserved" data waiver (CC0 1.0 Public domain dedication).
Source code available from: https://github.com/niliou/Hydrogel-pore-size.git
Archived source code at time of publication: https://doi.org/10.5281/zenodo.430890714.
License: MIT Licence
The authors would like to thank Niloufar Jamshidi (PhD candidate, UNSW) for her technical assistance particularly in developing the code. This publication was supported by COST Action NEUBIAS (CA15124), funded by COST (European Cooperation in Science and Technology).
Views | Downloads | |
---|---|---|
F1000Research | - | - |
PubMed Central
Data from PMC are received and updated monthly.
|
- | - |
Is the work clearly and accurately presented and does it cite the current literature?
Partly
Is the study design appropriate and is the work technically sound?
Yes
Are sufficient details of methods and analysis provided to allow replication by others?
Yes
If applicable, is the statistical analysis and its interpretation appropriate?
Partly
Are all the source data underlying the results available to ensure full reproducibility?
Yes
Are the conclusions drawn adequately supported by the results?
Yes
References
1. Mickel W, Münster S, Jawerth LM, Vader DA, et al.: Robust pore size analysis of filamentous networks from three-dimensional confocal microscopy.Biophys J. 2008; 95 (12): 6072-80 PubMed Abstract | Publisher Full TextCompeting Interests: No competing interests were disclosed.
Reviewer Expertise: (fluorescence) microscopy, biomaterials, nanotechnology
Competing Interests: No competing interests were disclosed.
Is the work clearly and accurately presented and does it cite the current literature?
Yes
Is the study design appropriate and is the work technically sound?
Yes
Are sufficient details of methods and analysis provided to allow replication by others?
Yes
If applicable, is the statistical analysis and its interpretation appropriate?
Partly
Are all the source data underlying the results available to ensure full reproducibility?
Yes
Are the conclusions drawn adequately supported by the results?
Yes
References
1. Podhorská B, Vetrík M, Chylíková-Krumbholcová E, Kománková L, et al.: Revealing the True Morphological Structure of Macroporous Soft Hydrogels for Tissue Engineering. Applied Sciences. 2020; 10 (19). Publisher Full TextCompeting Interests: No competing interests were disclosed.
Reviewer Expertise: macromolecular chemistry
Alongside their report, reviewers assign a status to the article:
Invited Reviewers | ||
---|---|---|
1 | 2 | |
Version 2 (revision) 12 Apr 21 |
read | read |
Version 1 15 Dec 20 |
read |
Provide sufficient details of any financial or non-financial competing interests to enable users to assess whether your comments might lead a reasonable person to question your impartiality. Consider the following examples, but note that this is not an exhaustive list:
Sign up for content alerts and receive a weekly or monthly email with all newly published articles
Already registered? Sign in
The email address should be the one you originally registered with F1000.
You registered with F1000 via Google, so we cannot reset your password.
To sign in, please click here.
If you still need help with your Google account password, please click here.
You registered with F1000 via Facebook, so we cannot reset your password.
To sign in, please click here.
If you still need help with your Facebook account password, please click here.
If your email address is registered with us, we will email you instructions to reset your password.
If you think you should have received this email but it has not arrived, please check your spam filters and/or contact for further assistance.
Comments on this article Comments (0)