Kieran D. Richards‡
*,
Ella Comish and
Rachel C Evans
*
Department of Materials Science and Metallurgy, University of Cambridge, CB3 0FS, UK. E-mail: rce26@cam.ac.uk; k.d.richards@swansea.ac.uk
First published on 28th February 2025
The quanitative analysis of solid-particle stabilized emulsions, known as Pickering emulsions, is crucial for their application in food, cosmetics, and pharmaceuticals. However, size analysis of these emulsion droplets, with diameters ranging from 5 to 500 μm, is challenging due to their non-uniform spatial and polydisperse size-distribution. Here, we investigate the application of the circle-Hough transform (CHT), a well-established computer-vision technique characterised by its ability to detect circular features in noisy images, for the seldom explored quantitative assessment of droplet size from optical microscopy images. This is particularly relevant to images where emulsions are captured in a single 2D focal plane. To implement the CHT with optical images, we have developed an open-source software application (“Hough-Scan”), which incorporates a user-friendly graphical interface for ease of use, and a tiling algorithm allowing localised regions of circles to be processed in parallel and improving computational efficiency. Using Hough-Scan, we demonstrate that the CHT has superior precision, recall and accuracy for the identification of Pickering emulsion droplets and determination of their size, compared to both manual identification and established computer vision methods. Our study demonstrates that CHT implementation using Hough-Scan can significantly increase the ease of image analysis for a diverse range of Pickering emulsion systems of varying spatial and size distribution, as well as visual artefacts common to example microscopy images.
The droplet size, distribution and packing determine their suitability for different applications.1,7 For example, droplet diameter and volume fraction affect the rheological behaviour, with higher volume fractions in oil-in-water (O/W) emulsions showing shear-thickening behaviour,8–10 which is crucial for controlling viscosity, texture, and flow, particularly in food and cosmetics.11,12 Reducing the droplet size enhances the oil–water interfacial area, which is pivotal in fields like biphasic catalysis as it increases potential reaction sites.13 Droplet size also affects the loading capacity, which can determine the delivery mode (i.e. orally, dermally, intravenously) for pharmaceutical applications.14,15
However, accurate determination of the droplet size of Pickering emulsions is not trivial. If the droplets are small (<1 μm), scattering techniques such as dynamic light scattering (DLS) or small-angle X-ray-scattering (SAXS) can be used.5,16 This is typical when emulsifying nanoparticles such as gold,17 nano silica18 or cellulose nanocrystals.19 If larger particles are used (>1 μm), or the particle concentration is low, the resulting emulsion droplets are too large to be captured by these methods.20,21 Laser diffraction techniques are capable of analysing larger droplets, but require significant sample volumes (tens of mL), usually obtained through dilution, thereby altering their morphology (i.e. packing/arrangement of droplets).22,23 Diffraction techniques also use mathematical reconstruction, e.g. by Mie theory, where experimental errors such as multiple scattering in concentrated samples, are difficult to quantify.24
Microscopy is a valuable alternative to evaluate the dimensions of emulsions. For larger (>5 μm) droplets, optical microscopy, which is simple, inexpensive and requires smaller volumes (often a single drop), can be used to provide a qualitative assessment of the emulsion characteristics.5,25 It is, however, challenging to extract meaningful quantitative data, such as mean size and distribution, from microscopy images due to factors such as overlapping droplets, varying image quality, and non-uniform droplet distributions. Conventionally, manual data extraction techniques are used to identify droplet sizes and radii.26–30 Droplets are individually identified, by eye, and circles are drawn around them using image processing software such as ImageJ.31 This method, however, is extremely time-consuming and prone to systematic human errors.25,32
Computer vision has emerged as a powerful tool for automating data extraction from complex images. Most commonly a thresholding technique, followed by a region growing (RG) method is used to identify individual circles.33–35 Watershedding, a method where the image is divided based on ‘high-relief’ areas, in this case droplet edges, may also be used.36,37 However, typical Pickering emulsions are characterised by a high density of, often overlapping, circles that are difficult to distinguish by RG methods. To address this limitation, here we apply the Circle Hough Transform (CHT), which instead transforms the image into a parameter space where circles are detected based on patterns that correspond to circular shapes. Each point in parameter space is assigned a number of ‘votes’ which correspond to the likelihood of finding a circle. This makes CHT less sensitive to noise and partial occlusions in images.
The CHT has previously been used in diverse fields such as red blood-cell counting38 and motorcycle helmet detection,39 as well as for on-line detection of surfactant-based emulsions,24,40,41 highlighting the versatility and robustness of the technique. For example, Becker et al.24 used a previously developed CHT algorithm42 to monitor the breakup dynamics of the O/W emulsions stabilised with Tween 20 surfactant. They observed that compared to manual sizing, CHT analysis gave accurate sizing results for video frames featuring a small number of large diameter (>100 μm) droplets.
To our knowledge, CHT for quantitative assessment of the morphology of Pickering emulsions has not previously been explored. Here, we evaluate the suitability of CHT for analysing this challenging class of emulsions, which commonly form packed structures of many droplets or polydisperse structures with many overlapping droplets.1,5,26 We have developed an open-source software application, “Hough-Scan”,43 which utilises the OpenCV image library,44 and to lower the barrier of entry, includes a user-friendly interface that enables easy input of image pre-processing parameters. A tiling algorithm and parallel processing are also included to reduce the computational burden associated with analysing high-resolution images of tens to hundreds of droplets. Using the Hough-Scan application, we compare the precision, recall (the proportion of all droplets that are correctly identified) and accuracy of CHT to standard manual and RG methods for the quantitative analysis of a diverse range of Pickering emulsion systems, demonstrating its broad applicability. Our study demonstrates that CHT implementation using Hough-Scan can significantly increase the ease of image analysis for Pickering emulsions compared to existing methods.
For each image, TP and FP were determined manually. The outputs from the image analysis for a given method, i.e. radii and coordinates, were randomly sampled and marked as true or false by comparing them against the original image. Random sampling was achieved using the Python random module (which uses pseudo-random number generators based on the Mersenne Twister algorithm) to choose a random index of a list of droplets that had not been chosen before.
Fifty samples were taken for each image and fifty images were used in total, spanning a wide range of emulsion morphologies (compositions given in ESI,† Section S2). This sampling level provides a reasonable compromise between experimental demand (i.e. the time required to analyse each sample image) and a suitably robust data set for analysis.
A FN for a given image was determined by comparing a random sample of fifty manually defined droplets to the output from one of the image analysis methods and marking anything with a difference in coordinate greater than 1.5 times the radius as false (i.e., coordinate ± 1.5 × radius = false). This limit was found to provide the best balance between sensitivity and specificity.
The accuracy of each method was determined by comparing the radii of fifty manually determined circles, to the equivalent circle determined by either the RG or CHT methods. For these comparisons, fifty droplets were randomly chosen in the manual image and compared to the same fifty droplets in each of the CHT/RG images. This was repeated for fifty images. It should be noted that all images were benchmarked against manual droplet identification, which as previously stated, carries its own biases due to the subjective nature of image interpretation as well as human errors. The use of these idealised measurements applies to both precision/recall metrics, as well as droplet size. A qualitative discussion is also given regarding the ease-of-use, time-to-analyse and applicability to edge cases, such as colour, contrast and resolution differences.
![]() | ||
Fig. 2 Excerpts from artificially-produced test images described in ESI,† Section S1. (a)–(f) differ in polydispersity, overlap and spatial configuration. (g) and (h) are referred to as “limited contrast” emulsions and represent examples where emulsions do not appear as dark, well-defined lines. (i) shows simulation of a focal plane where droplets appear less defined toward edges of the image and (j) shows the effect of obstructive artefacts such as clumps of particle aggregate. Red lines show the position and radius of spheres identified by RG and blue lines show the spheres identified by CHT. |
The test-images in Fig. 2 also help to highlight some of the limitations of the RG approach, as shown by the red outlines. For images where the circles are touching or overlapping, RG was unable to identify the droplets. This is because the technique has no way of differentiating one circle from another. The way that the image is thresholded prior to analysis can create either one conjoined island where circles touch, or several incomplete circles where each outline intersects. In both cases the circularity of the islands does not qualify for detection as it would compromise the accuracy in the radii. While pre-processing techniques such as watershedding may be applied, these methods need to be chosen on a per-image basis for the best results and may create new irregularities such as unintentionally splitting droplets, further compromising the accuracy of radii identification. Although not the focus of this work, these compromises can be seen in Fig. S2 (ESI†). In contrast, the CHT does not have this problem as it searches for circular objects using their edges as opposed to the islands used by RG (see ESI,† Section S3). Moreover, it can be tuned to be sensitive to incomplete circles.
For cases where droplets were successfully identified, RG showed good accuracy (less than 2 pixels different). The exception to this is Fig. 2(i) where the global threshold used causes the edges of the in-focus part of the image to bleed into the surrounding pixels, making the droplet appear bigger. This causes the droplets to be on average 4 pixels larger in size (see ESI,† Table S1).
From inspection of Fig. 3, important morphological characteristics of Pickering emulsions can be identified. Firstly, we can see that emulsions may be highly polydisperse (a) or nearly monodisperse (b). Packing also varies from tightly packed (b), where there is little space between the droplets, to loose-packed (c), where droplets are spread out. Highly polydisperse, but tightly packed, emulsions (d) have droplets that overlap with each other making it difficult to resolve individual droplets. Emulsions may also contain coloured species (e)–(h). Nile red is a dye that may be used in either the continuous phase or the dispersed phase (depending on whether a water-in-oil (W/O) or O/W emulsion is produced).48 Note that where the continuous phase is dyed and droplets are small, both phases may appear coloured as the continuous phase occludes the dispersed phase (f). We can also produce emulsions using coloured particles. Examples include Azo-silica (g), used in previous work by our group,45 and copper(II) phthalocyanine (h), a dye which has previously been shown to stabilise Pickering emulsions.26 In the former example, coloured particles aggregate in the oil phase forming challenging image-artefacts (g – irregular yellow shapes in background), but those at the interface of the emulsion do not produce a colour. In the latter, the particles sit at the interface and the droplets appear coloured (h – blue droplets). The addition of dyes may also affect droplet detection by either increasing (h) or decreasing (f) the contrast between the two phases. Aggregated particles may also appear similar to droplets, i.e., dark, round features, which may be difficult to differentiate, depending on the technique.
Fig. 3 also shows examples of both (W/O) emulsions (a) and (O/W) emulsions (c). This leads to subtle differences in contrast between the two phases in both images, with O/W (c), in this case, having a lower contrast. Other artefacts also appear in the images, which may make droplet identification difficult. For example, droplets at the edges of the image may appear blurry (i). This is common when a small condenser aperture is used to capture images with a large depth of field. Dark rings may also arise due to diffraction patterns at the edges between liquids with a different refractive index.49 Overall, this sample set represents a diverse range of emulsion morphologies which compare the CHT and RG methods.
![]() | ||
Fig. 4 Comparison in performance between the CHT and RG methods at identifying Pickering emulsion droplets from 50 images. (a) Plot of precision vs. recall, showing CHT has better precision and recall than RG. Images with higher precision also have higher recall, indicating that some images are easier to analyse than others. (b) Plot of recall vs. difference in radii between samples analysed by CHT and RG, and manually measured samples. Error bars show the standard deviation found by either method. This shows that even with better recall, CHT values for the radius are closer to the actual values, while RG underpredicts the value. The error bars show the standard deviation of the difference in radii. (c) is an example of an emulsion optical microscopy image that has been thresholded by two methods in (d) a simple threshold used in the RG and (e) a hysteresis threshold used for CHT, showing that simple thresholding has difficulty in separating the edge droplets because they out of focus in the original image. Droplet islands can merge (red rectangle, d) or not be detected (green rectangle, d) by under- and over-thresholding, respectively. The image also demonstrates how thresholding causes the droplet radii to be underpredicted as islands formed do to not extend all the way to the edges of the droplets. Also shown are false islands formed between droplets when they pack together (yellow rectangle, d). The emulsion composition can be found in the ESI,† Section S2 (Emulsion 24). |
The results show that the CHT consistently outperforms the RG method. The average recall for CHT was 0.86 ± 0.08 vs. 0.68 ± 0.14 for RG, indicating that CHT correctly identified more circles in a given image than RG; however, neither method reached 100% droplet identification. By comparison, while 100% recall is theoretically possible by manual methods, it is extremely time-consuming (upwards of ∼40 min per image for >100 droplets) and not guaranteed due to human bias or errors due to attention span. One of the main reasons for poor recall is due to the narrow depth-of-field often seen in high-resolution microscopy images of emulsions. This is a trade-off which is usually made to capture a clear image of one layer of emulsion droplets, with the consequence that the image edge is often out of focus. CHT and RG handle out-of-focus droplets differently. RG relies on the formation of islands by thresholding. It is, however, difficult to adequately capture both the centre of the image and its edges. For instance, if the threshold is too low, islands fuse together, whereas if it is too high, they are removed altogether (Fig. 4(d)), (red and green rectangles respectively).
Workarounds exist, such as watershedding techniques, mentioned previously, and local thresholding,33,36 but these produce other side effects such as the formation of additional islands (more false positives) or require more manual processing.37 The CHT method, showed better recall than RG because it uses a different approach, canny edge detection (hysteresis thresholding), to segment the image (Fig. 4(e)). This method creates very thin, often discontinuous, lines around droplets. For RG, this would make droplets difficult to identify, but because CHT uses an accumulator image, complete islands are not required. CHT is still affected by out-of-focus parts of images, but to a lesser extent as a lower threshold can be used.
The mean precision, i.e. the fraction of all identified droplets that are correctly identified (eqn (1)), was 0.96 ± 0.07 for CHT and 0.60 ± 0.16 for RG. From Fig. 4, the precision is better for CHT than RG across all images, being close to 100% in many cases. This suggests that the RG method generates several islands that do not correspond to real droplets. Fig. 4(d) (yellow rectangle) shows that these islands occur between droplets, especially when they pack together. ImageJ uses a circularity parameter which is designed to eliminate non-spherical shapes. However, from the results here, many of these voids between droplets are spherical enough to be detected. CHT does not have the same problem as circles are not generated from islands, but instead from the edges, as mentioned previously. The voids between droplets do not produce the same bright spots on the accumulator image (see ESI,† Section S3).
When using automated analysis of droplets, there is often a trade-off between droplet identification (recall) and the accuracy of that identification. With simple thresholding and RG, for example, it is often possible to identify more islands by increasing the threshold, but those islands will be smaller than the true image (Fig. 4(d), bottom left of image). To check whether this was the case, the relationship between recall and the accuracy of radii identification was investigated. Fig. 4(b) shows the average difference in radii obtained for fifty randomly sampled droplets of fifty different images and the recall obtained for those images. Firstly, we can see that there is no significant relationship between the recall and accuracy. This suggests good technique by the operator (i.e., the thresholding has been chosen to best interpret the images). The images with lower recall for RG show a greater spread in values. This suggests that the method worked well for parts of the images (the centre), and less well for other parts (the edges).
Overall, RG underpredicted the radii for all images, whereas CHT was very close to the manually identified values. The is again likely due to the specific thresholding technique used. For RG, the islands created at the centre of the droplets are smaller than the actual droplet as the boundary, which is usually quite thick, is excluded (Fig. 4(d)). This effect is compounded where dark rings appear around droplets as in Fig. 3(i). CHT does not have the same issue as it uses the edges instead of the body of the circle.
This analysis has shown that CHT works well for the case of Pickering emulsion droplets, having good precision and recall, as well as good accuracy, when compared to manual measurement. In the next section we will identify specific examples to show where CHT or RG work particularly well and any considerations that should be made when using these methods.
Fig. 5(a) shows a sample containing overlapping droplets. These normally arise where there are multiple layers of small, often polydisperse, droplets, which may depend on the stability or the preparation method used to produce the emulsions.1,9 CHT performs better here as RG cannot distinguish between two droplets that overlap and two separate droplets, as it treats any boundary as a boundary between droplets. Increased polydispersity also makes it more difficult to tune the manually input CHT and RG parameters as small droplets add less to an accumulator image in the former or do not appear as circular due to resolution constraints in the latter. This makes it more difficult to capture the different populations. Fig. 5(b) shows an emulsion which has an inhomogeneously coloured background. This occurs for unstable emulsions with coloured stabilising particles (in this case Azo-silica) which aggregate in one of the phases. RG also performs worse than CHT in this case. This is because the thresholding has difficulty separating the grey background, the yellow aggregate and the dark grey droplet edges. Instead, the yellow and dark grey regions are combined, so droplets on top of the aggregate are ignored and spaces between the aggregate and droplet edges are perceived as droplets. CHT thresholds similarly, but because the edges between the yellow and grey areas are not circular, it does not contribute significantly to the droplet identification. We note that the misidentified droplets only occur for coloured emulsions that have this inhomogeneous background. Where a more consistent colour is observed, as in Fig. 3(e), (f) and (h), the same effect was not observed.
Fig. 5(c) shows the voids that form when droplets pack together. This normally occurs for emulsions at high drop volume fractions.50 For this case, we can see that RG interprets the void between droplets as a real droplet. This is because, when the image is thresholded, an island is formed between the droplets, which is circular enough to be recognised by RG. CHT by comparison correctly ignores the void. Fig. 5(d) shows a large droplet which is indicative of a highly-unstable emulsion. In this case, RG can identify the droplet, whereas CHT does not. This occurs when there are both very large droplets (ca. 1/20th of the total image) and small droplets (<1/100th) in the same image. Non-identification is due to the tiling algorithm used in CHT. To capture the small droplets, the tiles should be set small, but this also means that in any given tile, there is not enough of the circular interface of the large droplets to enable successful identification. Fig. 5(e) corresponds to the poorest performing image for CHT, having a precision of 0.57 (Fig. 4(a)). This arises from the presence of dark objects (aggregated particles) which form dark spots in solution which are circular enough to be interpreted as spheres at low resolution.
![]() | ||
Fig. 6 Artificially-generated difficult optical microscopy images of a Pickering emulsion (Image 58, ESI,† Section S2). (a) Original image, (b) modified image with the resolution lowered from 2341 × 1640 px to 0.125 its original value (i.e., 293 × 205) and (c) an image that has had its contrast artificially reduced. |
Image | Precision | Recall | Accuracy (%radii difference) | |||
---|---|---|---|---|---|---|
CHT | RG | CHT | RG | CHT | RG | |
Original | 1.00 | 0.76 | 0.94 | 0.92 | −1 ± 5 | −20 ± 8 |
Low resolution | 0.92 | 0.94 | 0.96 | 0.90 | −2 ± 20 | −14 ± 7 |
Low contrast | 1.00 | 0.53 | 0.96 | 0.73 | −2 ± 9 | −15 ± 7 |
The spread in the values, however, is significantly greater for the low-resolution sample. The unmodified image and low-contrast image had a standard deviation in the accuracy of 5 and 9%, respectively, whereas the low-resolution image is 20%. This shows that while the recall and precision are good, CHT does not accurately capture some of the low-resolution droplets. This is likely due to the poor resolution making it difficult to fit the shape of the circle accurately. By comparison, RG had a precision of 0.94 and 0.53 for the low resolution and low contrast images, respectively, compared to 0.76 for the unmodified image. The improved precision for the low-resolution image is because it is easier to distinguish droplets, with fewer visible islands produced by overlapping or close packing droplets, because of the lower detail. The recall was 0.90 and 0.73 for the low resolution and low contrast images versus 0.92 for the original. This is expected as, for the low contrast image, it is more difficult to separate droplets from the background when thresholding. The difference in radii was similar for both images at, ca. −14%, showing as mentioned previously, that thresholding erodes the edges of the droplets.
Apart from these test cases, other conditions may also arise that make image analysis challenging. For example, while Pickering emulsions typically form spheres, in unstable systems, processes such as arrested coalescence can occur, which may result in the formation of oblate spheroid droplets that look like two conjoined spheres.50 These non-spherical objects are detectable by RG, but not by CHT, as they do not produce the same bright spots on the accumulator image.
A final consideration is the ease of the method, which is highly dependent on the implementation. In this study, we employ the widely used ImageJ software to perform RG and compare it against the dedicated Hough-Scan tool. While ImageJ is a multi-purpose image editing tool offering many features, it does not offer purpose-built details such as a preview window to test different settings.
The run time for RG is typically <1 s and does not significantly change with the image being analysed. In contrast, CHT is more dependent on how the parameters are constrained and the image is being processed, (i.e., the size, resolution and number of droplets). A well-constrained image takes <1 s (on the hardware used here, see experimental section), but images that have wide constraints (i.e., a wide min. and max. range of droplets sizes) can take as long as 13 s, using the images analysed here. On balance, if analysing droplets by computer vision, where droplets are sufficiently variable that parameters need to be optimised and where high-resolution images containing densely packed droplets are used, the Hough-Scan tool is a good option in terms of usability, as it has a good balance of speed and manual refinement capabilities.
One limitation for implementation of CHT was shown – the identification of large droplets, but this can easily be overcome by adjustments to the tiling algorithm used, i.e., by performing an additional pass over the image without tiling and by constraining the possible sizes to only large droplets. We note that some of the limitations of RG can be overcome by pre-processing the image by sharpening, using deconvolution algorithms or bandpass filtering. Likewise image segmentation33,47 including the use of watershedding, local thresholding,33 or machine learning approaches can be used to separate droplets from the background.51 The latter can also be used to separate layers of overlapping droplets and exclude voids which have proved challenging for RG. Similarly, pre-processing or machine-learning approaches could also be used to enhance the images that are passed to the CHT. This would likely further improve the recall and accuracy of the CHT approach, although the degree of improvement may not be as great as for RG.
In the wider context of the analysis of Pickering emulsions, we have shown that CHT provides an opportunity to work with small volumes of emulsions, which may be highly unstable, coloured or have difficult to work with images, such as those with low contrast or resolution. The process is also fast enough that there is potential to run it in real time, allowing live videos to be analysed. An exciting prospect of the CHT method is that machine learning could be used to optimise the parameters (ESI,† Section S3). This would enable completely automated droplet identification, with similar recall, precision and accuracy as the results given above. Furthermore, users could work with datasets that are too large to process manually, for example, collections of many emulsions or a single emulsion tracked in situ over several days. Using time-lapse photography, the CHT parameters could be self-optimised to best suit an emulsion with a changing morphology. This would also have broader implications industrially, for example in quality control, where fully-automated systems could be used to monitor emulsion composition.
Footnotes |
† Electronic supplementary information (ESI) available: Description of emulsion compositions; (2) detailed explanation of the Hough-Scan application. See DOI: https://doi.org/10.1039/d4sm01252f |
‡ Current address: Department of Chemistry, Swansea University, Swansea, SA28PP UK. |
This journal is © The Royal Society of Chemistry 2025 |