Next Article in Journal
Comparison of Echocardiography and Myocardial Scintigraphy to Detect Cancer Therapy-Related Cardiovascular Toxicity in Breast Cancer Patients
Previous Article in Journal
Pedestrian-Accessible Infrastructure Inventory: Enabling and Assessing Zero-Shot Segmentation on Multi-Mode Geospatial Data for All Pedestrian Types
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Development of a Powder Analysis Procedure Based on Imaging Techniques for Examining Aggregation and Segregation Phenomena

by
Giuseppe Bonifazi
1,2,*,
Paolo Barontini
3,
Riccardo Gasbarrone
4,
Davide Gattabria
1 and
Silvia Serranti
1,2
1
Department of Chemical Engineering, Materials and Environment, Sapienza University of Rome, via Eudossiana 18, 00184 Rome, Italy
2
Research Center for Biophotonics, Sapienza University of Rome, Corso della Repubblica 79, 04100 Latina, Italy
3
CHEMI S.p.A., Via Vadisi 5, 03010 Patrica, Italy
4
Research and Service Center for Sustainable Technological Innovation (Ce.R.S.I.Te.S.), Sapienza University of Rome, 04100 Latina, Italy
*
Author to whom correspondence should be addressed.
J. Imaging 2024, 10(3), 53; https://doi.org/10.3390/jimaging10030053
Submission received: 22 January 2024 / Revised: 17 February 2024 / Accepted: 19 February 2024 / Published: 21 February 2024
(This article belongs to the Topic Computer Vision and Image Processing, 2nd Edition)

Abstract

:
In this manuscript, a method that utilizes classical image techniques to assess particle aggregation and segregation, with the primary goal of validating particle size distribution determined by conventional methods, is presented. This approach can represent a supplementary tool in quality control systems for powder production processes in industries such as manufacturing and pharmaceuticals. The methodology involves the acquisition of high-resolution images, followed by their fractal and textural analysis. Fractal analysis plays a crucial role by quantitatively measuring the complexity and self-similarity of particle structures. This approach allows for the numerical evaluation of aggregation and segregation phenomena, providing valuable insights into the underlying mechanisms at play. Textural analysis contributes to the characterization of patterns and spatial correlations observed in particle images. The examination of textural features offers an additional understanding of particle arrangement and organization. Consequently, it aids in validating the accuracy of particle size distribution measurements. To this end, by incorporating fractal and structural analysis, a methodology that enhances the reliability and accuracy of particle size distribution validation is obtained. It enables the identification of irregularities, anomalies, and subtle variations in particle arrangements that might not be detected by traditional measurement techniques alone.

Graphical Abstract

1. Introduction

A particle size distribution (PSD), which indicates the proportion of particles at different sizes within a sample, provides detailed information about the characteristics and properties of materials [1]. Accurate analysis of PSD plays a significant role in various fields, including materials science, pharmaceuticals, mining, environmental monitoring, and manufacturing processes. By examining the PSDs, scientists and researchers can gain valuable insight into the behavior and performance of materials.
In the pharmaceutical industry, particle size analysis is crucial for ensuring the quality and efficacy of drug formulations. The PSD directly affects the therapeutic effect of the drug, as particle sizes can impact dissolution rate, bioavailability, and absorption. Moreover, particle sizes influence production processes and the quality of the final product, with uniform particles aiding in mixing, compression, and formulation [2]. Inconsistent particle sizes can lead to stability issues, difficulties in filling capsules, and incorrect dosage. Additionally, PSD affects compatibility with other excipients and formulations, as well as the mode of drug administration.
In the pharmaceutical sector, particle size evaluation is crucial for quality control purposes, ensuring consistency and compliance, and identifying manufacturing variations or issues for timely interventions [3]. Moreover, by studying the PSD of a specific bulk material and/or powder, researchers can develop optimized drug delivery systems (DDSs) and enhance the therapeutic effectiveness of medications [4].
In this context, the development and application of image analysis procedures for the analysis of PSD can help provide precious information for optimizing industrial processes (i.e., quality and performance of various substances and products).
Most of the commercially available techniques for particle size measurement are designed for the analysis of dispersed particles [5]. In this scenario, sieving, an approach that is well-suited to bulk powders, is acknowledged for its simplicity but is time-consuming when analyzing particle blends [6]. Laser diffraction, extensively applied for particle size measurement, involves dispersing powder in a fluid, allowing a laser diffraction device to effectively average various dimensions as particles flow randomly through the light beam [7,8]. Other methods, such as dynamic light scattering [9], focused-beam reflectance measurement (FBRM) [10], acoustic spectroscopy [11,12], and near-infrared spectroscopy (NIRS) [13], have also proven successful in particle size measurement. However, many of these techniques are not designed for the rapid and noninvasive analysis of bulk powders, requiring individual particle dispersion (i.e., in a liquid or gas) before analysis. In this context, computer-assisted microscopy or traditional microscopy is frequently regarded as a standard method in particle size analysis [14]. Visual and microscopic inspection plays a crucial role in understanding materials. Although microscopy and image analysis (IA) offers fast and versatile approaches, sample preparation and powder sample dispersion remain challenges in routine IA. Consequently, exploring novel approaches that leverage image information for particle size and shape analysis is a subject still worth studying and developing.
In this article, the proposed methods, which focus on utilizing advanced image analysis techniques, both fractal and texture-based, aim to investigate a dedicated fast and noninvasive quality control approach to bulk powder. This qualitative approach is designed to provide useful information about the PSD of bulk powders and determine particle aggregation and/or segregation phenomena. In this context, fractal analysis allows for the quantification of irregularities and self-similar patterns within particle distributions, thus enabling a more precise and detailed understanding of particle size variations and spatial arrangement [15]. The fractal analysis also allows for the identification of fractal dimensions and spatial correlations within particle distributions, aiding in the differentiation between aggregation and segregation behaviors. Textural analysis contributes to characterizing patterns and spatial correlations, as detectable in particle images [16]. In more detail, the approach presented in this paper was designed to investigate a series of Out-of-Trend (OoT)/Out-of-Specification (OoS) instances regarding the specified PSD of the final API (Active Pharmaceutical Ingredient) product, which were encountered throughout the production of 2021 in a manufacturing site of an Italian pharmaceutical chemical company.
Initial quality control (QC) internal investigation did not conclusively identify the primary cause behind these quality deviations. The company’s QC team suspected the presence of at least one systemic phenomenon that could potentially impact either the analytical results (prompting an investigation into their accuracy by testing products using an alternative technique to light scattering) or the actual product quality itself. In the case of a definitive resolution regarding the analytical results, the focus would have shifted toward identifying more effective routes to guide the internal investigation.
The methodology presented in this paper involves several steps, as shown in Figure 1. First, the sample is prepared by dispersing the powder on a suitable sample holder. The dispersed sample is then placed on a microscope slide. Next, a microscope equipped with a high-resolution camera captures images of the sample, ensuring that a representative portion of the sample is analyzed. Once the images are obtained, image processing algorithms are applied to perform fractal analysis and textural analysis.
Following this approach, researchers and manufacturers can gain deeper insights into the characteristics of their samples (i.e., bulk pharmaceutical solids). The method enables the identification of samples with a broad particle size distribution, indicating the presence of particles spanning a wide range of sizes. It also helps to detect samples with two distinct particle size distributions, which may indicate specific phenomena such as particle aggregation or segregation.

2. Materials and Methods

2.1. Sample Preparation and Digital Images Acquisition

The method presented in this paper is based on an accurate sample preparation procedure using the PD-10 powder dispersing system (Galai Production Ltd., Midgal Haemek, Israel). This system ensures uniform dispersion of the powder on a sample holder by activating a lever after creating a vacuum within the chamber. First, the powder is placed on top of the chamber. The device is then activated to ensure a vacuum in the chamber. By activating the lever, the powder is finely dispersed onto a glass slide, which will later allow for microscopic observation. This preliminary step of sample preparation is shown in Figure 2.
The glass slide (Figure 3) can be then analyzed by a computer-assisted microscope in transmitted light. Image acquisition was performed by a Wild MZ95™ microscope (Leica AG, Wetzlar, Germany) equipped with the TOUPCAM™ U3CMOS Series (ToupTek Photonics, Hangzhou, China) digital camera (complementary metal–oxide–semiconductor, CMOS, camera), directly interfaced with a Personal Computer (Figure 3).

2.2. Implementation of MATLAB Algorithms for Image and Extracted Data Analysis

Images and data have been processed using MATLAB (Ver 9.12., MathWorks, Natick, MA, USA). The processing involves several procedures, including filter application, color balancing, binarization, and segmentation.
In detail, MATLAB routines were developed to process both the acquired digital microscope images in batches and the data resulting from their analyses. The operative steps of these routines are reported in the following.
Routine 1—Fractal dimension as a function of the grayscale level used as the binarization threshold.
Operative steps:
  • Conversion of the original image to grayscale.
  • Binarization of the grayscale image at different thresholds for the grayscale levels, ranging from 0 to 255 with a step of 5.
  • Calculation of the fractal dimension using the box-counting method for each binarized image.
  • Obtaining the curve of the fractal dimension as a function of the binarization threshold (grayscale level) of the image.
The MATLAB scripts and functions utilized for fractal dimension, as a function of the grayscale level used as the binarization threshold adopted on multiple images, are available at GitHub: https://github.com/Gasby90/FD_multiple_images_grayscale_level (accessed on 20 November 2023).
Routine 2—Calculation of Haralick texture features:
Operative steps:
  • Conversion of the original image to 8-bit grayscale.
  • Calculation of the co-occurrence matrix in 4 directions (0°, 45°, 90°, 135°).
  • Calculation of Haralick parameters for the 4 directions.
  • Calculation of the averaged Haralick parameters for the 4 directions.
The MATLAB script used to perform textural analysis on multiple images is available at GitHub: https://github.com/Gasby90/textural_multiple_images (accessed on 20 November 2023).
Fractal dimension (box-counting method) calculation. Fractal dimension (FD) is a statistical measure indicating how completely a fractal fills space [17,18]. A fractal is a geometric object with internal self-similarity: it repeats its shape in the same way at different scales so that enlarging any part of it produces a figure similar to the original [19].
In fractal geometry, the Minkowski-Bouligand dimension, also known as the Minkowski dimension or box-counting dimension, is a way to determine the fractal dimension of a set S in Euclidean space R n , or more generally, in a metric space ( X ,   d ) [20,21,22]. To calculate this dimension for a fractal set S, it is assumed that this fractal lies on a uniformly spaced grid. The measure of cell size is determined by observing how this number changes as the grid becomes finer. Let The box-counting dimension is defined by:
d i m b o x S lim r 0 l o g ( n r ) l o g ( 1 / r )
where n ( r ) is the number of boxes of side length ε needed to cover the set.
If the limit does not exist, it is still possible to compute the upper and lower limits to determine the upper and lower box dimensions, respectively. The upper box dimension is sometimes referred to as the Kolmogorov or entropy dimension, while the lower box dimension is also known as the lower Minkowski dimension.
Box counting is a method that is preferred due to its simplicity and robustness, making it easily applicable to a wide range of shapes [23].
In the described methodology, we adopted the boxcount.m [24] MATLAB function (Appendix B), which is implemented to determine the fractal properties of the two-dimensional binarized images.
The utilized algorithm operates as follows:
  • The binarized image is divided into square boxes of size r × r. The number of boxes ( n ( r ) ) containing a portion of the shape is counted;
  • The process starts with the smallest box that encompasses the entire binarized shape and has a side length of 2 times the pixel size. This ensures that the entire shape is covered by the initial box;
  • The process is then repeated, with the box size (r) being divided by 2 at each iteration. This is continued until the box size reaches the pixel size of the image. Each iteration counts the number of boxes that contain a portion of the shape.
The fractal dimension is finally determined by calculating the slope of the line obtained from the linear regression of the l o g ( n ( r ) ) values against l o g ( 1 / r ) . The absolute value of the slope represents the fractal dimension of the shape in the 2D image. The slope indicates how the number of boxes changes with respect to the box size, providing insights into the complexity and self-similarity of the shape.
Gray-Level Co-occurrence Matrix and Haralick texture features calculation. The Gray-Level Co-occurrence Matrix (GLCM) is a matrix defined on an image that captures the distribution of co-occurring pixel values (grayscale or color values) at a given offset [25].
The GLCM is defined for an image I of size n × m , parameterized by an offset ( Δ x ,   Δ y ) , by the equation:
C Δ x , Δ y ( i , j ) = p = 1 n q = 1 m 1 ,   i f   I ( p , q ) = i   a n d   I ( P + Δ x ,   q + Δ y ) = j 0 ,   o t h e r w i s e
A GLCM evaluates the texture characteristics occurring in an image. Texture encompasses the geometric patterns and/or repetitive arrangements of gray levels found within an image. When a region within an image exhibits a consistent texture, it implies that certain local statistical measures or other properties remain steady, change gradually over time, or display an approximate periodicity. Due to the typically large and sparse nature of co-occurrence matrices, it is common to employ various metrics from the matrix to derive a more meaningful set of features, commonly known as the Haralick texture features [26].
The HaralickTextureFeatures.m [27] MATLAB function (Appendix B) was adopted to calculate GLCM for each image and extract specific Haralick texture features. The GLCM is calculated on the basis of the frequency with which a pixel with intensity (gray level) i is found in a specific spatial relationship with a pixel with intensity j . By default, the spatial relationship is defined as the pixel of interest and the pixel immediately to its right (horizontally adjacent). Each element ( i , j ) in the resulting GLMC is simply the sum of the number of times the pixel with value i has been observed in the specified spatial relationship with a pixel with value j in the input image. The number of gray levels in the image determines the size of the GLCM matrix. GLCMs are calculated for the four directions: 0° (offset: [0 D]), 45° (offset: [−D D]), 90° (offset: [−D 0]), and 135° (offset: [−D D]).
Finally, the texture features are calculated from the resulting GLMC according to Haralick’s work [26,28].
The Haralick texture features extracted from GLCM are Angular Second Moment (Energy), Contrast, Correlation, and Entropy. These features are briefly described below.
Angular Second Moment (Energy)
The angular second moment (ASM), also referred to as energy, serves as an indicator of local intensity variation or contrast within an image. It can be mathematically represented by the equation:
A S M = i j p ( i , j ) 2
where p ( i , j ) represents the (i, j)-th element in a grayscale spatial dependence matrix that has been normalized ( = P ( i , j ) / R ) .
The ASM provides insights into the overall regularity of an image, taking into account the differences between adjacent pixels. In an organized image, where value pairs occur more frequently, each value p ( i ,   j ) from the co-occurrence matrix is assigned a weight. This weight increases with higher levels of order and decreases with increased disorder within the image.
Contrast.
The feature Contrast (CON) quantifies the difference between the gray levels of a pixel and its surrounding region and is defined by the equation:
C O N = n = 0 N g 1 n 2 i = 1 N g J = 1 N g p ( i , j ) i j = n
where N g denotes the number of distinct gray levels present in the image.
An absence of any contrast (CON = 0) occurs when the values of i and j are the same, indicating that the pixels being compared are entirely like their surroundings, then the weight n 2 in the CON function is n = | i j | = 0 . In the case where i and j differ by 1, a small contrast exists, and the weight n 2 is assigned a value of 1. As the difference between   i and j increases to 2, the contrast intensifies, and the corresponding weight grows to n 2 = 4. The weight n 2 exhibits an exponential increase with the widening discrepancy in gray levels between the pixel values i and j .
Correlation.
The feature Correlation (COR) captures the linear relationship between gray levels of neighboring pixels and is defined by the following equation:
C O R = i j i j p i , j μ x μ y σ x σ y
where μ x , μ y and σ x , σ y are the mean and standard deviation of p x and p y , respectively. p x ( i ) represents the i-th element in the marginal probability matrix, obtained by summing the rows of p i , j , given by j = 1 N g P ( i , j ) and p y j signifies the sum of probabilities for all i-th elements in column j, computed as i = 1 N g P ( i , j ) .
A high correlation between two pixels implies a strong predictability of their association, as expressed through a linear regression equation. Generally, pixels exhibit a greater tendency to be correlated with nearby pixels compared to those located further away. This property can be leveraged to estimate the size of an object within the analyzed image. In the implemented code, a condition is implemented to check the values of σ x and σ y : if either of them equals zero, the correlation is set to 1.
Entropy.
In this context, Entropy (ENT) represents the opposite of energy and, therefore, measures the level of disorder in the image.
E N T = i = 1 N g j = 1 N g p ( i , j ) · l o g   p ( i , j )
Each value p ( i ,   j ) within the co-occurrence matrix always falls within the range of 0 and 1, as the matrix is represented in the form of probabilities. The logarithm of this quantity will consistently yield a result of either 0 or a negative value. When the p ( i ,   j ) value decreases (indicating a lower likelihood of that specific pixel combination occurring), the absolute value of l o g   p ( i ,   j ) increases, subsequently raising the entropy value. The negative sign preceding the function ensures that each term becomes positive.
Exploratory analysis by Principal Component Analysis. In the field of multivariate statistics, Principal Component Analysis (PCA) is a technique used for data simplification and analysis [29,30]. In fact, PCA is typically the first step when dealing with complex multivariate data. PCA is a powerful tool for exploratory data analysis, allowing the evaluation of an entire data matrix to describe the structure of samples and variables involved, as well as to assess potential correlations between samples and analyzed variables.
In the case study, PCA was adopted as an exploratory analysis technique for:
  • PSDs of the analyzed samples.
  • Fractal dimension curves as a function of the grayscale level are used as the binarization threshold for the samples.
  • Fractal dimension curves are a function of the counting box size with a defined threshold for the samples.
PCA was performed in MATLAB environment using the PLS_toolbox (Ver. 9.0; Eigenvector Research Inc., Manson, DC, USA).
The data were pre-processed using the Autoscale algorithm before performing PCA. Autoscale is a commonly used pre-processing method that involves centering each column (variable) by subtracting its mean and dividing it by the standard deviation of that column.

2.3. Method Testing and Validation

The samples used in this study were provided by CHEMI S.p.A. (Frosinone, Italy).
The analyzed samples were coded according to their product requirement compliance (i.e., PSD specifications) from the same batch clustered into two categories, which are ‘In Specification’ (IS) (in case of complete overlapping with the product specifications) and ‘Out of Specification’ (OOS) (in case of small or great deviation).
The IS samples are “aligned” with the particle size distribution specifications and meet the requirements. On the other hand, the OOS samples show a PSD shift toward higher values. Simultaneously, these samples exhibit the presence of a portion of material characterized by a “correct” particle size distribution and another portion characterized by a particle size distribution representing larger particles (i.e., bimodal distribution). The presence of these samples can result in greater heterogeneity within the batch and, in particularly severe cases, lead to a tendency for segregation between the two components.
The IS samples are labeled as A0802, A0804 and A0801. The Identifications (IDs) of OOS samples are A0065, A0418 and A0053.
This heterogeneity in particle size distribution is clearly visible in the curves obtained from a laser diffraction particle size analyzer (Malvern Instruments Ltd., Malvern, Worcestershire, UK), as shown in Figure 4, with particle sizes ranging from 0.32 µm to 285.73 µm (100% passing). The percentiles of the PSDs obtained by the laser diffraction method are reported in Appendix A. The laser diffraction method is based on the scattering of laser light by particles [31]. This methodology relies on two optical models: the Fraunhofer diffraction model and the Mie theory. The Fraunhofer model assumes a parallel laser beam and a distant detector relative to the particle size, providing an approximation of particle size distribution. Conversely, the Mie theory, rooted in Maxwell’s equations, offers a more precise solution by considering electromagnetic wave propagation and other phenomena beyond diffraction. This theory requires knowledge of the material’s refractive index and provides an exact solution for light scattering from homogeneous spheres. Both models output volume-based PSD, which characterizes PSD in terms of volume rather than mass.
The analyzed product, in its hydrochloride form, precipitates from a solution by adding NaOH, which, depending on the rate of addition, results in obtaining particles of the correct size. If the NaOH is added within a certain time frame (about 45–60 min), a PSD curve that meets the compliance criteria is achieved. However, if the NaOH is added after 45–60 min, the particles tend to aggregate, posing the risk of deviating the product from specifications, even after routine milling with a Fitzpatrick mill. In this case, the average PSD of the samples is different due to increased heterogeneity and segregation of particles. There are also other factors that have a significant impact on the PSD, i.e., the use of a rotating paddle dryer and the portion of the product that is subjected to mechanical action. Depending on the yield, moisture content, loading methods, etc., the distribution of the wet product inside the dryer does not always occur uniformly, nor in a way that ensures the paddles act on the entirety of the product. The portion of the product that does not undergo the action of the paddles will have a coarser PSD compared to the portion that does experience the full effect. This leads to two problems: (i) the “average” PSD is shifted towards higher values and, in extreme cases, may exceed the specification (which requires the entirety of the sample to be below 100 µm), and (ii) the presence of a fraction with the correct PSD alongside a coarser portion, causing overall batch non-uniformity. In severe instances, this discrepancy might prompt the segregation of the two components, accurately identified by the internal quality system, therefore preventing the release of affected batches.
Utilizing fractal dimension and textural features provides a comprehensive insight into the PSD of the powder product. These advanced imaging techniques enable a more nuanced understanding of their spatial arrangement and irregularities, which may not be fully captured by the laser diffraction technique that assumes that the samples are formed by perfect spherical particles. By examining textural characteristics and fractal dimensions at different grayscale levels, valuable insights into particle aggregation and segregation phenomena can be gained despite operating within a two-dimensional space.

2.4. Sample Preparation and Image Acquisition

In the initial tuning phase of the acquisition conditions, numerous tests were carried out to choose the appropriate weight to be placed on the microscope slide. Once the appropriate weight of the product was determined for subsequent microscope analysis, each sample was weighed and dispersed onto the slide using the powder dispersing system. The dry powder samples were dispersed within the vacuum dispersion chamber of the Galai PD-10 at a pressure of −85 kPa (equivalent to −0.85 bar as indicated on the pressure gauge). This negative pressure facilitates the intake of the powder and its dispersion on the glass slide. After preparing the slide for analysis, digital images were acquired using the microscope. During this phase, two sets of images were acquired with the Wild MZ95™ microscope, which are:
  • seven images at three different magnifications (×1, ×3.2, ×5) for two samples (one OOS and one IS, the N series samples as reported in Table 1) and
  • ten images for each sample at a magnification of ×1 (Table 2).
The weight range for the analysis tests at different magnifications (×1, ×3.2, and ×5) on samples A0801 and A0065 (N Series) is 0.06–0.08 g. In more detail, the N series comprises a subgroup consisting of two samples, subsampled from A0065 (OOS) and A0801 (IS): N_A0065 and N_A0801. Meanwhile, the weight range used for the microscope analysis at magnification ×1 is 0.14–0.17 g. The weight of each sample dispersed on the slide and analyzed is reported in Table 1 and Table 2.

3. Result and Discussion

3.1. Principal Component Analysis Applied to Particle Size Distributions

The results of the PCA applied to the particle size distribution curves of the analyzed samples are shown in Figure 5. As previously defined, the particle sizes of the samples range from 0.32 µm (non-zero pass) to 285.73 µm (100% pass). As can be observed from the scores plot of the first two principal components (Figure 5a,b), the IS samples are primarily located in the positive space of PC1 and PC2 (due to the ranges 0.26–0.34 µm, 1.7–3.0 µm, 42–290 µm).
However, sample A0804 (IS) is situated in the negative space of PC1 and the positive space of PC2. On the other hand, the OOS samples are primarily located in the negative space of PC1 and the positive space of PC2. Sample A0418 (OOS) is situated in the negative space of both PC1 and PC2. As can be observed in the PCA loadings plot (Figure 5c), PC1 is positive within the range of 0.27–300 µm. PC2 is positive within the ranges of 0.26–0.34 µm, 1.7–3.0 µm, and 42–290 µm. Finally, PC2 is negative within the ranges of 0.34–1.7 µm and 3.1–42 µm.

3.2. Binarization at Different Grayscale Levels

In Figure 6, Figure 7 and Figure 8, examples of the binarization process at different grayscale levels are shown for the samples from the N series (N_A0801—IS, and N_A0065—OOS), respectively, acquired at magnifications of ×1, ×3.2, and ×5.

3.3. Average Fractal Dimension as a Function of the Grayscale Level Adopted as Binarization Threshold

The average fractal dimension (calculated using the box-counting method, averaged over the size of the calculation boxes) and its standard deviation for samples from the N series (N_A0801—IS and N_A0065—OOS; samples from Table 1) at different magnifications (×5, ×3.2, and ×1) for six binarization thresholds (gray level: <50, <90, <135, <180, <205, and <230, as shown in Figure 6, Figure 7 and Figure 8) are presented in Table 3. As observed from Table 3, at the binarization thresholds of 50 and 90, the average fractal dimension of the IS sample is consistently lower than that of the OOS sample. For higher binarization thresholds, the fractal dimensions of the IS and OOS samples are nearly equivalent. Evaluating each sample at a magnification of ×1 (samples from Table 2), this trend becomes more evident when considering the entire range of binarization from 0 to 255 with a step of 5. The fractal dimensions (calculated using the box-counting method) as a function of the grayscale level adopted to perform the binarization for each analyzed sample at a magnification of ×1 (samples from Table 2) are shown in Figure 9. As highlighted in Figure 9b the average fractal dimension of the OOS samples is consistently higher than the fractal dimension calculated for the IS samples in the threshold intervals of <20 and <170 grayscale levels.

3.4. Co-Occurance Matrices and Haralick Descriptors

The Haralick descriptors (ASM, CON, COR, and ENT) obtained for the 4 directions (0°, 45°, 90°, and 135°) from the co-occurrence matrices of individual digital images at a magnification of ×1 (10 images per sample) were averaged per sample. Subsequently, the values obtained for the 4 directions were averaged (µ) for each sample. The results obtained are reported in Table 4.
The parameters obtained in Table 4 were then averaged according to their conditions: OOS and IS samples. The results obtained from the calculation of the averages are reported in Table 5. Even in this case, the values obtained for each direction were averaged together. As can be seen from Table 5, the ASM of the OOS samples is generally smaller than that of the IS samples, indicating that the images of the OOS samples are more disordered compared to the IS samples. The CON parameter of the OOS samples is, on average, larger than that of the IS samples. This suggests that there is a greater difference in grayscale tones between pixels in the images of the OOS samples compared to the IS samples. The COR parameter is generally lower for the IS samples compared to the OOS samples. This means that in the case of the OOS samples, there is a stronger linear dependence of grayscale levels between neighboring pixels in the images compared to the IS samples. The COR parameter could, therefore, serve as an indicator of particle aggregation in the OOS samples. Lastly, the ENT parameter is generally higher for the OOS samples compared to the IS samples, indicating that the images of the OOS samples exhibit greater disorder compared to the IS samples.

3.5. Principal Component Analysis of the Average Fractal Dimension as a Function of the Grayscale Level Adopted as the Binarization Threshold

The arrays of the average fractal dimension (calculated using the box-counting method, averaged over the box size) as a function of the grayscale level adopted as the binarization threshold for each sample analyzed at a magnification of ×1 (samples in Table 2), shown in Figure 9, were modeled using PCA. The result of the PCA is summarized in Figure 10. As highlighted by the scores plot of the first two principal components, the first principal component explains approximately 70% of the variance and can discriminate between the OOS and IS groups. Specifically, the scores of the fractal dimension arrays for the OOS samples are in the positive PC1 space (from grayscale threshold 0 to 185), while those of the IS samples are in the negative space (from grayscale threshold 190 to 255). From the above, it can be concluded that for the identification of OOS samples, it is necessary to adopt a grayscale threshold <185.

3.6. Local Fractal Dimension with a Defined Binarization Threshold (<90 Grayscale Level) for Two Samples

As seen in Figure 10, for the identification of OOS samples, it is necessary to analyze binarized images with a grayscale threshold <185. In this section, the results of binarization at a grayscale level of 90 and 220 and the resulting FD dimensions are reported, just as an example, for two digital images: one for the OOS sample (N_A0065 B03 at Magnification ×1; Figure 11) and one for the IS sample (N_A0801 A01 at Magnification ×1; Figure 12). The comparison of local fractal dimension as a function of FD calculation for binarized images at grayscale level 90 for samples N_A0065 B03 (Magnification ×1)—OOS and N_A0801 A01 (Magnification ×1)—IS is shown in Figure 13. As can be observed in Figure 13a, with the same box size (around 102 pixels) and number of boxes, the fractal dimension of the OOS fractal sample is higher than that of the IS sample.

3.7. Local Fractal Dimension with a Defined Binarization Threshold (<90 Gray Level)

It is important to note that for the same computation box size (around 102 pixels) and number of boxes, the fractal dimension of the OOS sample was greater than that of the IS sample in the test performed with a defined binarization threshold (<90 gray level) for samples N_A0065 and N_A0801 (1× magnification). The calculation of local fractal dimension was performed as a function of the computation box size for all acquired images of samples at 1× magnification and binarized with a gray-level threshold of 90 (Table 2). Figure 14 and Figure 15 show examples of digital image acquisition under the microscope, conversion to grayscale, and binarization with a predefined gray-level threshold of 90 for the OOS samples and IS samples, respectively. The images acquired under the microscope at 1× magnification have a size of 4096 × 3286 pixels. For images acquired at 1× magnification, 1 mm corresponds to 575 ± 10 pixels, so one pixel is approximately 0.0017 mm (1.7 µm). Therefore, the computation boxes for fractal dimension range from 1 pixel to 4096 pixels (1.7–6963 µm). Figure 16 shows the local fractal dimension as a function of the computation box size, calculated for all analyzed samples categorized by sample condition. As can be observed, the local fractal dimension of the OOS samples is slightly higher than that of the IS samples, with the computation box size ranging from 1.7 µm to 217 µm.

3.8. Principal Component Analysis of the Local Fractal Dimension with a Defined Binarization Threshold (<90 Gray Level) as a Function of the Computation Box Sizes

The arrays of fractal dimension (local fractal dimension with a defined binarization threshold <90 gray level) as a function of the computation box sizes for each analyzed sample at 1× magnification (samples from Table 2), shown in Figure 16, were modeled using principal component analysis (PCA). The results of the PCA are summarized in Figure 17. As highlighted in the scores plot of the first two principal components, the first principal component explains approximately 70% of the variance and successfully discriminates between the OOS and IS groups. Specifically, the scores of the fractal dimension arrays for the OOS samples are in the positive PC1 space, while those of the IS samples are in the negative PC1 space (from computation box sizes of 870 µm to 6963 µm).

4. Conclusions

PCAs applied to the PSDs of the analyzed samples showed that the OOS sample scores mainly cluster in a separate space compared to the IS sample scores (Figure 5). The average fractal dimension of the OOS samples is found to be generally higher than the calculated fractal dimension for the IS samples in the <20 and <170 grayscale threshold intervals (Figure 9). Additionally, as highlighted by the PCA, for the purpose of identifying OOS samples, it is necessary to analyze a grayscale threshold of <185 (Figure 10). By setting a threshold value of 90, the local fractal dimension of the OOS samples is slightly higher than that of the IS samples within the calculation box size range of 1.7 µm to 217 µm (Figure 16). From the texture analysis and evaluation of Haralick descriptors (Table 5), it was inferred that:
  • The ASM of the OOS samples is generally smaller than that of the IS samples, indicating that the images of the OOS samples are more disordered compared to those of the IS samples.
  • The CON parameter of the OOS samples is generally larger than that of the IS samples. This indicates that there is a greater difference in grayscale tones among the pixels in the images of the OOS samples compared to the IS samples.
  • The COR parameter is generally lower for the IS samples compared to the OOS samples. This means that in the case of the OOS samples, there is a greater linear dependence of grayscale levels between neighboring pixels in the images compared to the IS samples. The Correlation parameter could, therefore, be an indicator of particle aggregation in the OOS samples.
  • Lastly, the ENT parameter is generally higher for the OOS samples compared to the IS samples, indicating that the images of the OOS samples are more disordered compared to the IS samples.
  • Based on the results obtained so far, the following hypotheses have been validated:
  • The “average” PSD (Particle Size Distribution) of the OOS samples is shifted towards higher values.
  • The presence of a portion with a correct PSD and a portion with a coarse PSD causes a general heterogeneity within the batch.
The significant deviation from the expected PSD, coupled with the presence of a bimodal distribution, further underscores the complexity of the particle arrangement in the OOS samples. This collective evidence from multiple analytical techniques corroborates the conclusion that the OOS samples exhibit distinct and anomalous particle size distributions compared to their IS counterparts, highlighting the importance of comprehensive quality control measures in powder production processes.
Finally, the guidance regarding the bimodal nature of the PSD directed the internal investigation of the company’s QC personnel toward identifying all systemic factors that could have caused such a phenomenon. Addressing and resolving these factors led to a significant outcome: the production of over 300 tons of product throughout the entire year of 2023, with minimal occurrences of OOS instances.
The methodology outlined in this paper significantly contributes to ensuring product quality and streamlining manufacturing processes. Moreover, the presented approach enables the analysis of the pseudo-three-dimensional aspect of powder sample images captured under the microscope, facilitating a deeper understanding of particle behavior.
In conclusion, the proposed method offers an insightful and specialized approach to quality control in the analysis of powder particles exhibiting a broad size spectrum. By incorporating fractal and textural analysis, this methodology improves the reliability and accuracy of particle size distribution validation. It identifies irregularities, anomalies, and subtle variations in particle arrangements that traditional measurement techniques may miss. This comprehensive approach enhances the overall quality assessment of powder production processes.

Author Contributions

G.B.: Conceptualization, Methodology, Resources, Writing—Review and Editing, Visualization, Supervision. P.B.: Validation, Resources, Writing—Review and Editing, Visualization. R.G.: Conceptualization, Methodology, Software, Validation, Formal analysis, Investigation, Data Curation, Writing—Original Draft, Writing—Review and Editing, Visualization. D.G.: Methodology, Validation, Formal analysis, Investigation, Data Curation, Writing—Original Draft. S.S.: Validation, Resources, Writing—Review and Editing, Visualization. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data used in this study is available from the corresponding author upon reasonable request. The MATLAB scripts and functions used for fractal dimension as a function of the grayscale level used as the binarization threshold are available at GitHub: https://github.com/Gasby90/FD_multiple_images_grayscale_level (accessed on 20 November 2023 Month Year). The MATLAB script used to perform textural analysis on multiple images is available at GitHub: https://github.com/Gasby90/textural_multiple_images (accessed on 20 November 2023).

Conflicts of Interest

The authors declare no conflict of interest. The company has no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, and in the decision to publish the results.

Appendix A

Table A1 reports the percentiles of the particle size distributions (PSDs) obtained by the laser diffraction method. Dv(10), Dv(50), and Dv(90) represent specific percentiles of the cumulative PSD. In more detail, Dv(10) indicates the particle diameter below which 10% of the sample volume exists; Dv(50), also known as the median particle size by volume, represents the particle diameter below which 50% of the sample volume exists. This parameter corresponds to the midpoint of the cumulative particle size distribution, where half of the particles by volume are smaller, and half are larger. Finally, Dv(90) is the particle diameter below which 90% of the sample volume exists.
Table A1. Percentiles of the particle size distributions (PSDs) obtained by laser diffraction method: Dv(10), Dv(50), and Dv(90).
Table A1. Percentiles of the particle size distributions (PSDs) obtained by laser diffraction method: Dv(10), Dv(50), and Dv(90).
Sample IDA0053A0065A0418A0801A0802A0804
ConditionOOSOOSOOSISISIS
Dv(10)5.4 µm5.9 µm4.7 µm4.2 µm3.9 µm4.9 µm
Dv(50)15.6 µm16.1 µm13.4 µm12.1 µm11.2 µm13.7 µm
Dv(90)41.1 µm40.1 µm34.8 µm29.0 µm26.9 µm34.8 µm

Appendix B. (Additional Information)

Detailed information about the MATLAB function boxcount.m by Frederic Moisy can be retrieved at: https://it.mathworks.com/matlabcentral/fileexchange/13063-boxcount (accessed on 20 November 2023).
Detailed information about the MATLAB function HaralickTextureFeatures.m by Rune Monzel can be retrieved at: https://www.mathworks.com/matlabcentral/fileexchange/58769-haralicktexturefeatures (accessed on 20 November 2023).

References

  1. Jillavenkatesa, A.; Dapkunas, S.J.; Lum, L.-S.H. Particle Size Characterization; National Institute of Standards and Technology: Gaithersburg, MD, USA, 2001.
  2. Allen, T. Powder Sampling and Particle Size Determination; Elsevier: Amsterdam, The Netherlands, 2003. [Google Scholar]
  3. Vora, L.K.; Gholap, A.D.; Jetha, K.; Thakur, R.R.S.; Solanki, H.K.; Chavda, V.P. Artificial Intelligence in Pharmaceutical Technology and Drug Delivery Design. Pharmaceutics 2023, 15, 1916. [Google Scholar] [CrossRef]
  4. Scannell, J.W.; Blanckley, A.; Boldon, H.; Warrington, B. Diagnosing the decline in pharmaceutical R&D efficiency. Nat. Rev. Drug Discov. 2012, 11, 191–200. [Google Scholar]
  5. Tinke, A.; Govoreanu, R.; Weuts, I.; Vanhoutte, K.; De Smaele, D. A review of underlying fundamentals in a wet dispersion size analysis of powders. Powder Technol. 2009, 196, 102–114. [Google Scholar] [CrossRef]
  6. Laitinen, N.; Antikainen, O.; Yliruusi, J. Does a powder surface contain all necessary information for particle size distribution analysis? Eur. J. Pharm. Sci. 2002, 17, 217–227. [Google Scholar] [CrossRef] [PubMed]
  7. Andres, C.; Réginault, P.; Rochat, M.; Chaillot, B.; Pourcelot, Y. Particle-size distribution of a powder: Comparison of three analytical techniques. Int. J. Pharm. 1996, 144, 141–146. [Google Scholar] [CrossRef]
  8. Hackley, V.A.; Gintautas, V.; Ferraris, C.F. Particle Size Analysis by Laser Diffraction Spectrometry: Application to Cementitious Powders; US Department of Commerce, National Institute of Standards and Technology: Gaithersburg, MD, USA, 2004.
  9. Bryant, G.; Thomas, J.C. Improved particle size distribution measurements using multiangle dynamic light scattering. Langmuir 1995, 11, 2480–2485. [Google Scholar] [CrossRef]
  10. Kempkes, M.; Eggers, J.; Mazzotti, M. Measurement of particle size and shape by FBRM and in situ microscopy. Chem. Eng. Sci. 2008, 63, 4656–4675. [Google Scholar] [CrossRef]
  11. Povey, M.J. Acoustic methods for particle characterisation. KONA Powder Part. J. 2006, 24, 126–133. [Google Scholar] [CrossRef]
  12. Dukhin, A.S.; Goetz, P.J. Characterization of aggregation phenomena by means of acoustic and electroacoustic spectroscopy. Colloids Surf. A Physicochem. Eng. Asp. 1998, 144, 49–58. [Google Scholar] [CrossRef]
  13. Blanco, M.; Peguero, A. An expeditious method for determining particle size distribution by near infrared spectroscopy: Comparison of PLS2 and ANN models. Talanta 2008, 77, 647–651. [Google Scholar] [CrossRef]
  14. Sandler, N.; Antikainen, O.; Yliruusi, J. Characterization of particle sizes in bulk pharmaceutical solids using digital image information. AAPS PharmSciTech 2003, 4, E49. [Google Scholar]
  15. Fu, X.; Ding, H.; Sheng, Q.; Zhang, Z.; Yin, D.; Chen, F. Fractal analysis of particle distribution and scale effect in a soil–rock mixture. Fractal Fract. 2022, 6, 120. [Google Scholar] [CrossRef]
  16. Hirsch, D.M.; Ketcham, R.A.; Carlson, W.D. An evaluation of spatial correlation functions in textural analysis of metamorphic rocks. Geol. Mater. Res. 2000, 2, 1–42. [Google Scholar]
  17. Mandelbrot, B.B. The Fractal Geometry of Nature; WH freeman New York: New York, NY, USA, 1982; Volume 1. [Google Scholar]
  18. Barnsley, M.F.; Devaney, R.L.; Mandelbrot, B.B.; Peitgen, H.-O.; Saupe, D.; Voss, R.F.; Fisher, Y.; McGuire, M. The Science of Fractal Images; Springer: Berlin/Heidelberg, Germany, 1988; Volume 1. [Google Scholar]
  19. Falconer, K. Fractal Geometry: Mathematical Foundations and Applications; John Wiley & Sons: Hoboken, NJ, USA, 2004. [Google Scholar]
  20. Liebovitch, L.S.; Toth, T. A fast algorithm to determine fractal dimensions by box counting. Physics Lett. A 1989, 141, 386–390. [Google Scholar] [CrossRef]
  21. Feng, J.; Lin, W.-C.; Chen, C.-T. Fractional box-counting approach to fractal dimension estimation. In Proceedings of the 13th international conference on Pattern recognition, Vienna, Austria, 25–29 August 1996. [Google Scholar]
  22. Panigrahy, C.; Seal, A.; Mahato, N.K.; Bhattacharjee, D. Differential box counting methods for estimating fractal dimension of gray-scale images: A survey. Chaos Solitons Fractals 2019, 126, 178–202. [Google Scholar] [CrossRef]
  23. Zwartbol, M.H.T.; Ghaznawi, R.; Jaarsma-Coes, M.; Kuijf, H.; Hendrikse, J.; de Bresser, J.; Geerlings, M.I. White matter hyperintensity shape is associated with cognitive functioning—The SMART-MR study. Neurobiol. Aging 2022, 120, 81–87. [Google Scholar] [CrossRef] [PubMed]
  24. Moisy, F. Boxcount. 2008. Available online: https://it.mathworks.com/matlabcentral/fileexchange/13063-boxcount (accessed on 20 November 2023).
  25. Pathak, B.; Barooah, D. Texture analysis based on the gray-level co-occurrence matrix considering possible orientations. Int. J. Adv. Res. Electr. Electron. Instrum. Eng. 2013, 2, 4206–4212. [Google Scholar]
  26. Haralick, R.M. Statistical and structural approaches to texture. Proc. IEEE 1979, 67, 786–804. [Google Scholar] [CrossRef]
  27. Monzel, R. HaralickTextureFeatures. 2018. Available online: https://www.mathworks.com/matlabcentral/fileexchange/58769-haralicktexturefeatures (accessed on 20 November 2023).
  28. Haralick, R.M.; Sternberg, S.R.; Zhuang, X. Image analysis using mathematical morphology. IEEE Trans. Pattern Anal. Mach. Intell. 1987, 532–550. [Google Scholar] [CrossRef]
  29. Beebe, K.R.; Pell, R.J.; Seasholtz, M.B. Chemometrics: A Practical Guide; Wiley New York: New York, NY, USA, 1998; Volume 4. [Google Scholar]
  30. Wold, S.; Esbensen, K.; Geladi, P. Principal component analysis. Chemom. Intell. Lab. Syst. 1987, 2, 37–52. [Google Scholar] [CrossRef]
  31. Eshel, G.; Levy, G.J.; Mingelgrin, U.; Singer, M.J. Critical Evaluation of the Use of Laser Diffraction for Particle-Size Distribution Analysis. Soil Sci. Soc. Am. J. 2004, 68, 736–743. [Google Scholar]
Figure 1. Schematic diagram of the methodological approach.
Figure 1. Schematic diagram of the methodological approach.
Jimaging 10 00053 g001
Figure 2. GALAI PD-10 vacuum gauge (a) and sample dispersion on the device’s chamber (b).
Figure 2. GALAI PD-10 vacuum gauge (a) and sample dispersion on the device’s chamber (b).
Jimaging 10 00053 g002
Figure 3. Close-up of the glass slide, as resulting after powder dispersion, in order to be analyzed under transmitted light by the Leica Wild MZ95™ microscope.
Figure 3. Close-up of the glass slide, as resulting after powder dispersion, in order to be analyzed under transmitted light by the Leica Wild MZ95™ microscope.
Jimaging 10 00053 g003
Figure 4. Particle size distribution of the samples labeled according to sample ID (a) and product requirement compliance (i.e., ‘Out of Specification’, OOS, or ‘In Specification’, IS, categories) (b). The samples labeled A0065, A0418, and A0053 correspond to the OOS category, while A0801, A082, and A0804 correspond to the IS category. Particle size distributions (PSDs) were obtained by laser diffraction. At the same particle size, the IS samples generally exhibit a lower volume density compared to the OOS samples. PSD curves of the OOS samples are slightly shifted to the right (or skewed) compared to the PSD curves of the IS samples.
Figure 4. Particle size distribution of the samples labeled according to sample ID (a) and product requirement compliance (i.e., ‘Out of Specification’, OOS, or ‘In Specification’, IS, categories) (b). The samples labeled A0065, A0418, and A0053 correspond to the OOS category, while A0801, A082, and A0804 correspond to the IS category. Particle size distributions (PSDs) were obtained by laser diffraction. At the same particle size, the IS samples generally exhibit a lower volume density compared to the OOS samples. PSD curves of the OOS samples are slightly shifted to the right (or skewed) compared to the PSD curves of the IS samples.
Jimaging 10 00053 g004
Figure 5. PCA scores plot (PC1 vs. PC2) of the particle size distribution for samples (a) and conditions (b) and PCA loadings plot (c). The 95% confidence level reported in the PCA scores plot represents the statistical certainty regarding the dispersion of data points around their respective centroids or means.
Figure 5. PCA scores plot (PC1 vs. PC2) of the particle size distribution for samples (a) and conditions (b) and PCA loadings plot (c). The 95% confidence level reported in the PCA scores plot represents the statistical certainty regarding the dispersion of data points around their respective centroids or means.
Jimaging 10 00053 g005
Figure 6. Binarization process at different grayscale levels for samples from the N series acquired at a magnification of ×1.
Figure 6. Binarization process at different grayscale levels for samples from the N series acquired at a magnification of ×1.
Jimaging 10 00053 g006
Figure 7. Binarization process at different grayscale levels for samples from the N series acquired at a magnification of ×3.2.
Figure 7. Binarization process at different grayscale levels for samples from the N series acquired at a magnification of ×3.2.
Jimaging 10 00053 g007
Figure 8. Binarization process at different grayscale levels for samples from the N series acquired at a magnification of ×5.
Figure 8. Binarization process at different grayscale levels for samples from the N series acquired at a magnification of ×5.
Jimaging 10 00053 g008
Figure 9. Mean fractal dimension (FD) of analyzed samples as a function of the adopted grayscale level used as binarization threshold labeled according to sample ID (a) and averaged according to product requirement compliance (b), i.e., Out of Specification (OOS) or In Specification (IS) categories. The samples designated as A0065, A0418, and A0053 fall within the OOS category, whereas A0801, A082, and A0804 are categorized as IS. At the same grayscale level, the OOS samples exhibit a higher average fractal dimension compared to the IS samples within the grayscale range of 20 to 170.
Figure 9. Mean fractal dimension (FD) of analyzed samples as a function of the adopted grayscale level used as binarization threshold labeled according to sample ID (a) and averaged according to product requirement compliance (b), i.e., Out of Specification (OOS) or In Specification (IS) categories. The samples designated as A0065, A0418, and A0053 fall within the OOS category, whereas A0801, A082, and A0804 are categorized as IS. At the same grayscale level, the OOS samples exhibit a higher average fractal dimension compared to the IS samples within the grayscale range of 20 to 170.
Jimaging 10 00053 g009
Figure 10. PCA scores plot (PC1 vs. PC2) of the arrays of fractal dimension (calculated using the box-counting method) as a function of the grayscale level adopted as the binarization threshold for samples (a) and conditions (b); PCA loadings plot (c) of the first two principal components. The 95% confidence level reported in the PCA scores plot represents the statistical certainty regarding the dispersion of data points around their respective centroids or means.
Figure 10. PCA scores plot (PC1 vs. PC2) of the arrays of fractal dimension (calculated using the box-counting method) as a function of the grayscale level adopted as the binarization threshold for samples (a) and conditions (b); PCA loadings plot (c) of the first two principal components. The 95% confidence level reported in the PCA scores plot represents the statistical certainty regarding the dispersion of data points around their respective centroids or means.
Jimaging 10 00053 g010
Figure 11. Results of binarization at grayscale levels 90 and 220 and calculation of fractal dimension on the binarized images: OOS sample (N_A0065 B03 at Magnification ×1): digital image (a), grayscale image (b), binarized image at grayscale level 90 (c), fractal dimension for binarized image at grayscale level 90 (d), binarized image at grayscale level 220 (e) and fractal dimension for binarized image at grayscale level 220 (f). In (d,f), the number of boxes and the local fractal dimension as a function of box size are shown. The red dashed line represents the space-filling curve, which fills a 2D unit box to map the powder sample in the plot. The blue line, the actual box count, aligns the space-filling curve with the scaling exponents measured by the algorithm.
Figure 11. Results of binarization at grayscale levels 90 and 220 and calculation of fractal dimension on the binarized images: OOS sample (N_A0065 B03 at Magnification ×1): digital image (a), grayscale image (b), binarized image at grayscale level 90 (c), fractal dimension for binarized image at grayscale level 90 (d), binarized image at grayscale level 220 (e) and fractal dimension for binarized image at grayscale level 220 (f). In (d,f), the number of boxes and the local fractal dimension as a function of box size are shown. The red dashed line represents the space-filling curve, which fills a 2D unit box to map the powder sample in the plot. The blue line, the actual box count, aligns the space-filling curve with the scaling exponents measured by the algorithm.
Jimaging 10 00053 g011
Figure 12. Results of binarization at grayscale levels 90 and 220 and calculation of fractal dimension on the binarized images: IS sample (N_A0801 A01 at Magnification ×1): digital image (a), grayscale image (b), binarized image at grayscale level 90 (c), fractal dimension for binarized image at grayscale level 90 (d), binarized image at grayscale level 220 (e) and fractal dimension for binarized image at grayscale level 220 (f). In (d,f), the local fractal dimension as a function of box size and the number of boxes as a function of box size are shown. The red dashed line represents the space-filling curve, which fills a 2D unit box to map the powder sample in the plot. The blue line, the actual box count, aligns the space-filling curve with the scaling exponents measured by the algorithm.
Figure 12. Results of binarization at grayscale levels 90 and 220 and calculation of fractal dimension on the binarized images: IS sample (N_A0801 A01 at Magnification ×1): digital image (a), grayscale image (b), binarized image at grayscale level 90 (c), fractal dimension for binarized image at grayscale level 90 (d), binarized image at grayscale level 220 (e) and fractal dimension for binarized image at grayscale level 220 (f). In (d,f), the local fractal dimension as a function of box size and the number of boxes as a function of box size are shown. The red dashed line represents the space-filling curve, which fills a 2D unit box to map the powder sample in the plot. The blue line, the actual box count, aligns the space-filling curve with the scaling exponents measured by the algorithm.
Jimaging 10 00053 g012
Figure 13. Local fractal dimension as a function of box size (a) and number of boxes as a function of box size (b) for samples N_A0065 and N_A0801. Data1: N_A0065 B03 (Magnification ×1)—OOS; Data2: N_A0801 A01 (Magnification ×1)—IS. In (b), n(r) is the number of boxes, while r represents the box size within the box-counting algorithm. The dashed line represents the space-filling curve, which fills a 2D unit box to map the powder sample in the plot. The continuous line, the actual box count, aligns the space-filling curve with the scaling exponents measured by the algorithm.
Figure 13. Local fractal dimension as a function of box size (a) and number of boxes as a function of box size (b) for samples N_A0065 and N_A0801. Data1: N_A0065 B03 (Magnification ×1)—OOS; Data2: N_A0801 A01 (Magnification ×1)—IS. In (b), n(r) is the number of boxes, while r represents the box size within the box-counting algorithm. The dashed line represents the space-filling curve, which fills a 2D unit box to map the powder sample in the plot. The continuous line, the actual box count, aligns the space-filling curve with the scaling exponents measured by the algorithm.
Jimaging 10 00053 g013
Figure 14. Example: digital image, grayscale image, and binarized image (<90) for OOS samples.
Figure 14. Example: digital image, grayscale image, and binarized image (<90) for OOS samples.
Jimaging 10 00053 g014
Figure 15. Example: digital image, grayscale image, and binarized image (<90) for IS samples.
Figure 15. Example: digital image, grayscale image, and binarized image (<90) for IS samples.
Jimaging 10 00053 g015
Figure 16. Local fractal dimension as a function of the computation box size for the sample condition. The corresponding computation box sizes in µm are indicated at the local fractal dimension values.
Figure 16. Local fractal dimension as a function of the computation box size for the sample condition. The corresponding computation box sizes in µm are indicated at the local fractal dimension values.
Jimaging 10 00053 g016
Figure 17. PCA scores plot (PC1 vs. PC2) of the fractal dimension (of the local fractal dimension with defined binarization threshold (<90 gray level) as a function of the calculation box dimensions for samples (a) and condition (b) and PCA loadings plot (c) of the first two principal components with highlighted computation box sizes of 870 µm to 6963 µm.
Figure 17. PCA scores plot (PC1 vs. PC2) of the fractal dimension (of the local fractal dimension with defined binarization threshold (<90 gray level) as a function of the calculation box dimensions for samples (a) and condition (b) and PCA loadings plot (c) of the first two principal components with highlighted computation box sizes of 870 µm to 6963 µm.
Jimaging 10 00053 g017
Table 1. Amount of material used for acquisition tests with LEICA Wild MZ95™ at magnifications ×1, ×3.2, and ×5. The amount of this material was used to create the N Series samples, a subgroup derived from A0065 (OOS) and A0801 (IS), which are N_A0065 and N_A0801.
Table 1. Amount of material used for acquisition tests with LEICA Wild MZ95™ at magnifications ×1, ×3.2, and ×5. The amount of this material was used to create the N Series samples, a subgroup derived from A0065 (OOS) and A0801 (IS), which are N_A0065 and N_A0801.
Sample IDConditionWeight
(g)
Weight for Microscopy Analysis
(g)
A0801IS0.0730.065
A0065OOS0.0900.084
Table 2. Amount of material used for each sample acquired with LEICA Wild MZ95™ at magnification ×1.
Table 2. Amount of material used for each sample acquired with LEICA Wild MZ95™ at magnification ×1.
Sample IDConditionWeight
(g)
Weight for Microscopy Analysis
(g)
A0053OOS0.1810.170
A0804IS0.1850.174
A0065OOS0.2020.150
A0801IS0.1850.141
A0418OOS0.1850.179
A0802IS0.1930.156
Table 3. Average fractal dimension (FD) and standard deviation of the fractal dimension (Std FD) for samples from the N series (N_A0801—IS and N_A0065—OOS) at different magnifications (×5, ×3.2, and ×1) for the different six adopted binarization thresholds (<50, <90, <135, <180, <205, and <230).
Table 3. Average fractal dimension (FD) and standard deviation of the fractal dimension (Std FD) for samples from the N series (N_A0801—IS and N_A0065—OOS) at different magnifications (×5, ×3.2, and ×1) for the different six adopted binarization thresholds (<50, <90, <135, <180, <205, and <230).
Magnification Sample
ID
Sample
Condition
Average FD
and Std of FD
Grayscale Level (Binarization Threshold)
5090135180205230
×5N_A0801ISFD0.6901.8641.9061.9231.9321.945
×5N_A0801ISStd FD0.4480.1070.0800.0690.0640.059
×5N_A0065OOSFD1.1221.8601.9031.9221.9321.945
×5N_A0065OOSStd FD0.3440.1130.0850.0700.0640.059
×3.2N_A0801ISFD0.6971.8601.9021.9221.9321.947
×3.2N_A0801ISStd FD0.3580.1180.0850.0710.0650.060
×3.2N_A0065OOSFD1.1021.8611.9031.9221.9311.945
×3.2N_A0065 OOSStd FD0.3010.1150.0850.0720.0660.060
×1N_A0801ISFD1.1071.7941.8791.9151.9311.950
×1N_A0801ISStd FD0.4540.1970.1170.0830.0710.063
×1N_A0065OOSFD1.5141.8051.8811.9171.9331.950
×1N_A0065 OOSStd FD0.2570.1720.1140.0820.0700.062
Table 4. Haralick descriptors—Angular Second Moment (ASM), Contrast (CON), Correlation (COR), and Entropy (ENT)—obtained for the 4 directions (DIR: 0°, 45°, 90°, and 135°) from the co-occurrence matrices of individual digital images at a magnification of ×1 (10 images per sample); subsequently averaged per direction (µ).
Table 4. Haralick descriptors—Angular Second Moment (ASM), Contrast (CON), Correlation (COR), and Entropy (ENT)—obtained for the 4 directions (DIR: 0°, 45°, 90°, and 135°) from the co-occurrence matrices of individual digital images at a magnification of ×1 (10 images per sample); subsequently averaged per direction (µ).
A0065 (OOS)A0418 (OOS)A0053 (OOS)
DIR45°90°135°µ45°90°135°µ45°90°135°µ
ASM0.1100.0970.1110.0970.1040.1230.1090.1250.1090.1170.1570.1420.1580.1420.149
CON0.2010.2660.1920.2660.2310.1720.2270.1610.2270.1970.1450.1960.1420.1960.170
COR0.9630.9510.9650.9510.9570.9670.9560.9690.9560.9620.9620.9490.9630.9490.956
ENT3.5243.6833.4993.6833.5973.4183.5753.3863.5753.4893.1563.3143.1473.3143.233
A0802 (IS)A0804 (IS)A0801 (IS)
DIR45°90°135°µ45°90°135°µ045°90°135°µ
ASM0.1800.1640.1810.1640.1720.1510.1370.1530.1370.1440.1720.1560.1730.1560.164
CON0.1390.1860.1360.1860.1620.1480.1980.1420.1980.1710.1510.2000.1460.2000.174
COR0.9510.9340.9520.9340.9430.9630.9510.9650.9510.9570.9520.9370.9540.9370.945
ENT2.9433.0932.9333.0933.0163.1923.3443.1723.3443.2633.0373.1843.0203.1843.106
Table 5. Haralick descriptors—Angular Second Moment (ASM), Contrast (CON), Correlation (COR), and Entropy (ENT)—obtained for the 4 directions (DIR: 0°, 45°, 90°, and 135°) from the co-occurrence matrices of individual digital images at a magnification of ×1, averaged by condition (IS or OOS); subsequently averaged per direction (µ).
Table 5. Haralick descriptors—Angular Second Moment (ASM), Contrast (CON), Correlation (COR), and Entropy (ENT)—obtained for the 4 directions (DIR: 0°, 45°, 90°, and 135°) from the co-occurrence matrices of individual digital images at a magnification of ×1, averaged by condition (IS or OOS); subsequently averaged per direction (µ).
OOSIS
DIR45°90°135°µ45°90°135°µ
ASM0.1300.1160.1310.1160.1230.1670.1520.1690.1520.16
CON0.1730.230.1650.230.1990.1460.1950.1410.1950.169
COR0.9640.9520.9660.9520.9580.9550.9410.9570.9410.948
ENT3.3663.5243.3443.5243.4393.0583.2073.0413.2073.128
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Bonifazi, G.; Barontini, P.; Gasbarrone, R.; Gattabria, D.; Serranti, S. Development of a Powder Analysis Procedure Based on Imaging Techniques for Examining Aggregation and Segregation Phenomena. J. Imaging 2024, 10, 53. https://doi.org/10.3390/jimaging10030053

AMA Style

Bonifazi G, Barontini P, Gasbarrone R, Gattabria D, Serranti S. Development of a Powder Analysis Procedure Based on Imaging Techniques for Examining Aggregation and Segregation Phenomena. Journal of Imaging. 2024; 10(3):53. https://doi.org/10.3390/jimaging10030053

Chicago/Turabian Style

Bonifazi, Giuseppe, Paolo Barontini, Riccardo Gasbarrone, Davide Gattabria, and Silvia Serranti. 2024. "Development of a Powder Analysis Procedure Based on Imaging Techniques for Examining Aggregation and Segregation Phenomena" Journal of Imaging 10, no. 3: 53. https://doi.org/10.3390/jimaging10030053

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop