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
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 to characterise hydrogel structure heterogeneity and porosity based on the cryogenic scanning electron microscopy (cryo-SEM) images of fully hydrated hydrogels.
The image processing algorithm of the present work has been written as a code in the Python 3.7 language and is able to analyse cryo-SEM images. The present study uses cryo-SEM images of fully hydrated hydrogels adopted with permission from Kaberova et al.6 as input data. To detect the pores precisely, the hydrogel fibre edges are highlighted, and a band pass frequency filter is applied to optimize the removal of noise with preservation of the edges of hydrogel walls.
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 noise7. Afterwards, to extract the edges of the hydrogel fibres, 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 essence8 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).
Images on the left show the output images of each step in the processing algorithm and the relevant flowchart is illustrated on the right.
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 and foreground pores. 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 methods9. 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 threshold 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)10.
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 elsewhere10, the method has been validated with acceptable accuracy. 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 in the left-hand side and the corner.
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.6 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 fibrous network.
Zenodo: niliou/Hydrogel-pore-size: Hydrogel pore size distribution. https://doi.org/10.5281/zenodo.430890711.
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.430890711.
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?
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)