The study of self-similarity, i.e., local and global similarity, allows quantitative characterization of surface roughnesses and the inhomogeneity of pore structures, reflecting the validity and irregularity of the spaces occupied by complex forms1,2,3. CSD is a porous mineral widely distributed in China, with complex associative relationships, poor functional structure, and low utilization of high value-added materials, which is very likely to cause a serious waste of resources and tremendous pressure on the environment if it is disposed of as a coal-series waste through open piling and backfilling of mining areas4,5. Use of the primary minerals in diatomite causes problems such as resource depletion, mining difficulty, and environmental pollution during development and utilization, while the low cost of mining CSD compensates for resource depletion and environmental damage and enables resourceful utilization of coal-series wastes6,7,8. Diatomite is a natural porous mineral with a unique 3D pore structure, and it exhibits properties such as high porosity, large SSA, and chemical stability , and it has been widely used in filter aids9, adsorbents10, carriers11, and porous ceramics12. Diatomite is an important mineral resource and functional mineral material for modern industry13,14,15,16. The characteristic parameters of the pore structure are mainly the SSA, pore volume, average pore diameter, most probable diameter, pore diameter distribution and surface roughness17,18,19,20. The technology of diatomite-based porous mineral materials is developing rapidly, but the primary mineral resources of high-quality diatomite are becoming scarce, and there is an urgent need to find CSD self-similar functional structures and utilize theory and evaluation indices and to solve the resource bottleneck problem.

The development and utilization of a self-similarity functional structure for CSD generally includes 2 stages: purification of the raw soil and preparation of the materials. (1) Raw soil purification refers to the selection of suitable technology to separate associated minerals, such as metal minerals, clay minerals, detrital minerals, and organic matter. Purification increases the contents of useful minerals such as opal and others in the diatomite, separates consociated gangue minerals, and improves the 3D pore structures of clogs and encapsulants. Opal is the main constituent mineral of the diatom skeleton, and its chemical composition is SiO2-nH2O; the SiO2 content can be used to indirectly evaluate the self-similarity pore structure of diatomite. Sun et al.21 found that the effect of feed concentration on the SiO2 content of the concentrate during centrifugal purification of diatomite was most significant by using response surface methodology, and the content increased from 80.17% to 86.89% with a significant increase in porosity. Chen et al.22 used hydraulic dispersion, high-temperature calcination, and ultrasonic cavitation to purify clayey diatomite; the SiO2 content increased from 63.54% to 90.95%, the SSA increased from 66.65 m2·g−1 to 111.53 m2·g−1, and a good pore diameter distribution was obtained. Wakeel23 used centrifugation and calcination to increase the SiO2 content of Nile diatomite from 73.64% to 87.60%, the SSA from 55.66 m2·g−1 to 74.18 m2·g−1, and the pore volume from 0.0176 cm3·g−1 to 0.023 cm3·g−1 at low cost to obtain products that met the need for self-similar functional structures in different industries. (2) Material preparation refers to use of the unique 3D pore structure of diatomite to load active sites and structures onto diatomite carriers. Due to their self-similarity functional structure, diatomite-based materials exhibit excellent synergistic effects and diverse uses. Dispersion and agglomeration of diatomite-based material particles are the key factors affecting the performance, and the self-similarity pore structure of diatomite can be evaluated indirectly with the material properties. Li et al.24 synthesized diatomite-based Pb(II)-imprinted materials via surface ion imprinting, and grafting of active components onto the surface of diatomite with self-similarity functional structures to form a uniform distribution of imprinted active sites prevented self-adsorption. Xu et al.25 prepared CuFe2O4/diatomite composites for pesticide removal and reported that a uniform distribution of CuFe2O4 on the self-similarity functional structure of diatomite mitigated the agglomeration of CuFe2O4, and the SSA increased by 3.8 times (57.20 m2·g−1); the material exhibited excellent mixed pesticide removal and interference resistance. Ren et al.26 prepared diatomite-based materials by hydrothermal modification of CaO; the rate of methylene blue adsorption was increased by nearly 7 times, and the formation of calcium alumina silicate and hard calcium silicate on the surface of the self-similarity material increased the SSA and pore volume.

Microstructural research methods are mainly qualitative or quantitative studies of microstructural features and their evolution, while macroscopic properties are manifestations of the microstructures27. In essence, raw soil purification and material preparation of diatomite mainly involve the development and use of the 3D pore structures, in which the differential 3D pore structures have different self-similarity functional uses. Therefore, pore structure parameters and fractal dimensions are of great significance for the development and utilization of diatomite. Hu et al.28 analysed the pore structure of diatomite via N2 adsorption and desorption and established a relationship between the pore structure and moisture regulation. Jiang et al.29 reported that the pore diameter distribution affected the self-similarity pore structures of diatomite-based porous ceramics. This directly determined the application areas of the porous ceramics, in which the CO2 gas released by CaCO3 affected the self-similarity porosity (61.61–67.53%) and the pore diameter distribution (1.2~26.6 μm). Smith et al.30 analysed the self-similarity fractal dimensions of traditional triblock copolymer mesoporous silicates based on the FHH model for N2 adsorption–desorption. Sun et al.31 used the Menger model to calculate the fractal dimensions of complex gelling systems and establish the relationship between the self-similarity fractal dimension and the strength, porosity, and SSA of the system. Wang et al.32 analysed the self-similarity fractal characteristics and pore structures of natural sedimentary diatomites under different consolidation pressures with SEM images, an image segmentation method and an optimal thresholding method and explored the relationship between the fractal box dimension of diatomite and the isotropic consolidation pressure. Niu et al.33 and Zhang et al.34 realized 3D visualization of the microstructures of haematite flocs and soft soils, respectively, based on SEM images. 3D visualization of the microstructure can reveal self-similarity functional structures35. Fractal theory can characterize the multidimensional pore structures of porous materials, which studies of the self-similar functional structure of CSD36.

Due to differences in the mineralogical characteristics of CSDs, different PSSs have different functional structures and exhibit different self-similarities, which is highly important for solid waste resource utilization. Moreover, traditional research on CSD has been focused on changes in the crystal structures, morphologies, component contents, physicochemical properties, performance, and related mechanisms. However, there have been no reports in the literature on quantitative characterization and self-similarity studies of the functional structure of CSD based on particle size characteristics. In this study, CSD was taken as the research object, and PSS as the entry point, based on gas adsorption methods (Brunauer‒Emmett‒Teller (BET) model, Barrett‒Joyner‒Halenda (BJH) model, FHH model, and Menger model), an image segmentation method, an optimal thresholding method, a 3D reconstruction method, etc., to illustrate the microstructures and self-similarities of CSDs with different PSSs and to provide fractal geometric evaluation indices for functional applications.

Experiments and methodology

Preparation of samples with different PSSs

The CSD was taken from the Yong'an mining area in Heilongjiang Province, the particle sizes were less than 2 mm, and the diatom particles were incomplete. The chemical composition is shown in Table 1, and the main component was SiO2 (59.22%), which also contained impurities such as Al2O3, Fe2O3, K2O, Na2O, CaO, MgO, etc. Meanwhile, the loss on ignition (LOI) was 10.50%. The mineral composition is shown in Fig. 1, in which the main components were opal and quartz, followed by feldspar, mica, montmorillonite, haematite, magnetite and other minerals, and the content of opal was approximately 12.39%, which accounted for approximately one-eighth of the total mineral content.

Table 1 Contents (wt.%) of the major chemical and mineral components (by pattern fitting and Rietveld refinement) of the CSD.
Figure 1
figure 1

XRD patterns of CSDs (a), SiO2 crystal (P3121, a=b=4.913 Å, c=5.404 Å57) and amorphous structure (b), relative content (wt. %) of different crystal minerals based on pattern fitting and Rietveld refinements (c), and relative contents (wt. %) of crystalline minerals and noncrystalline minerals (d).

The CSD was divided into 9 PSSs, namely, − 2+1 mm, − 1+0.5 mm, − 0.5+0.25 mm, − 0.25+0.15 mm, − 0.15+0.075 mm, − 0.075+0.045 mm, − 0.045+0.038 mm, − 0.038+0.025 mm, and − 0.025 mm, through a set of standard sieves, where "-" indicates a less than relationship and "+" indicates a greater than relationship (Fig. 2).

Figure 2
figure 2

Preparation process of the CSD samples (− 2+1.0 mm, − 1.0+0.5 mm, − 0.5+0.25 mm, − 0.25+0.15 mm, − 0.15+0.075 mm, − 0.075+0.045 mm, − 0.045+0.038 mm, − 0.038+0.025 mm, − 0.025 mm).

Characterization methodology

Based on previous qualitative analyses of CSD, the chemical compositions of the samples were quantitatively analysed with volumetric and gravimetric methods37; the mineral compositions and crystal structures of the CSDs were analysed with a D8 ADVANCE X-ray diffractometer (XRD, Bruker, Germany)38; and the SSAs and pore structures of CSDs with different PSSs were measured with a 3H-2000PMV autospecific surface area analyser (Beishide Instrument S&T. (Beijing) Co., Ltd., China)39. First, the total pore volumes (VT) of the CSD samples were calculated with the BET model based on low-temperature N2 isothermal adsorption and desorption data. Second, the average pore diameters (Da) were calculated based on the VT and SSA. Finally, the distributions of the SSAs and pore diameters for CSDs with different PSSs were analysed with the BJH model40,41.

Based on the data from the desorption branches of the N2 isothermal adsorption–desorption curves, the FHH model42,43,44 suggested that the gas adsorbed on the fractal surface can be represented as Eq. (1).

$${\text{ln}}\left( {\frac{{\text{V}}}{{{\text{V}}_{{0}} }}} \right){\text{ = Aln}}\left[ {{\text{ln}}\left( {\frac{{{\text{p}}_{{0}} }}{{\text{p}}}} \right)} \right]{\text{ + constant }}$$
(1)

where p is the equilibrium pressure, V is the volume of adsorbed N2 at the equilibrium pressure, V0 is the volume of adsorbed N2 in the monolayer, p0 is the saturated N2 pressure, lnV is linearly fitted to ln[ln(p0/p)], and A is a constant related to the fractal dimension (D’) and the adsorption mechanism. When the adsorption mechanism is capillary condensation, D’ can be expressed as in Eq. (2).

$${\text{D}}^{\prime } {\text{ = A + 3 }}$$
(2)

The pore structure of the CSD was analysed with the Menger model45, and Eq. (3) was obtained based on the pore volume Vp(r) = R3 - V(r).

$$\lg \left( { - \frac{{{\text{dV}}}}{{{\text{dr}}}}} \right) \sim \left( {2 - {\text{D}}^{\prime } } \right)\lg {\text{r}}$$
(3)

Combining the Warshburn equation and Eq. (3) led to Eq. (4).

$$\lg \left( {\frac{{{\text{dV}}_{{\text{p}}} }}{{{\text{dp}}}}} \right) \sim \left( {{\text{D}}^{\prime } - 4} \right)\lg {\text{p}}$$
(4)

The fractal dimension of a self-similarity pore structure was translated into a measure of the N2 pressure and the pore volume, which were derived directly from the slope of a double logarithmic plot of dVp/dp vs. p31.

A Sigma 300 scanning electron microscope (SEM, Zeiss, Germany) was used to measure the pore structures and analyse the self-similarity fractal characteristics of the CSDs with different PSSs32. An image that had been stored within the computer, which was composed of pixel points of size k*, was considered. Since the SEM image contained parametric information that could be mistaken for particles and pores during image processing, thus affecting the accuracy of the image, it was necessary to crop the image, subtract the boundaries and leave an accurate image that contained only the CSD image without text, and the image pixels for this experiment were 2837 × 2121. The image was binarized so that each pixel point was either black or white. For this study, the image in jpg format was converted to a grayscale image with the rgb2gray function in MATLAB software. It was first binarized with the optimal segmentation thresholding method to obtain a binarized image with background pixels as particles (white) and target pixels as pores (black). The optimal threshold segmentation method46,47 originated from fractal theory in image processing, and the basic principle was to determine a grayscale threshold. Then, the relationship between the size of the pixel grayscale value and the threshold value in the image was determined for image segmentation. Using this method, the boundary contour of the substance was clearly defined, and the image was converted into black and white so that the information of the image was stored in a matrix, with each point representing a pixel of the image.

In binarization of the images, some of the particles were mistaken for apertures when the threshold value was too large; thus, the optimal threshold value was determined to ensure that most of the particles were defined in terms of their contours. The following binarization algorithm with an optimal segmentation threshold was used:

  • (1) The minimum and maximum grayscale values fmin and fmax in the image were found and denoted the initial value of the threshold, as in Eq. (5).

$${\text{l}}_{{1}} { = }\frac{{{\text{f}}_{{{\text{min}}}} + {\text{f}}_{{{\text{max}}}} }}{{2}}$$
(5)
  • (2) The digital image was divided into foreground and background parts with the threshold value derived in the previous step, and the average grayscale values fA and fB of the two parts were found with Eqs. (6) and (7).

    $${\text{f}}_{{\text{A}}} = \frac{{\mathop \sum \nolimits_{{{\text{f}}({\text{i}},{\text{j}}) < {\text{l}}_{{\text{n}}} }} {\text{f}}({\text{i}},{\text{j}}) \times {\text{w}}({\text{i}},{\text{j}})}}{{\mathop \sum \nolimits_{{{\text{f}}({\text{i}},{\text{j}}) < {\text{l}}_{{\text{n}}} }} {\text{w}}({\text{i}},{\text{j}})}}$$
    (6)
    $${\text{f}}_{{\text{B}}} = \frac{{\sum\nolimits_{{{\text{f}}({\text{i}},{\text{j}}) > {\text{l}}_{{\text{n}}} }} {\text{f}} ({\text{i}},{\text{j}}) \times {\text{w}}({\text{i}},{\text{j}})}}{{\sum\nolimits_{{{\text{f}}({\text{i}},{\text{j}}) > {\text{l}}_{{\text{n}}} }} {\text{w}} ({\text{i}},{\text{j}})}}$$
    (7)

    where f(i,j) is the grayscale value of the (i,j) point corresponding to the planar image and w(i,j) is the corresponding weight coefficient, which is generally taken as w(i,j)=1.


  • (3) The new threshold was found; \(l_{{n + 1}} = (f_{A} {\text{ }} + {\text{ }}f_{B} )/2;{\text{if}}|l_{{n + 1}} - ln|{\text{ }} \le {\text{ }}0.001\), then the loop ended; otherwise, step (2) was used for recalculation.

The SEM image was first converted into a grayscale image, in which the darker grayscale region was the pores, and the grayscale value was analysed. Then, the threshold l was obtained with the above algorithm and Eq. (8) to extract the microstructural information in the SEM image.

$${\text{ f(i,j) = }}\left\{ {\begin{array}{*{20}c} {{\text{0 f(i,j) }} \le {\text{ l}}} \\ {\text{1 f(i,j) > l}} \\ \end{array} } \right.$$
(8)

where l is the threshold value obtained with the optimal segmentation thresholding algorithm. A program in MATLAB was used to convert the above binarized image into a data file, in which the number of rows and columns corresponded to the binarized image, and each frame of data was assigned a value of 1 or 0 depending on the colour of the pixel point to which it corresponded (Fig. 6); 1 indicated that the corresponding pixel point in the binarized image was white and 0 indicated that it was black.

Self-similarity fractal features are objective characteristics of many natural things and phenomena, and physical fractals that exist in nature tend to show scale and randomness; i.e., they only show fractal features statistically at a particular scale. Characterisation of the fractal for a research object depends on the characteristics of the object as well as the purpose of the research, and different descriptive methods can be used to compute the fractal dimensions, such as the Hausdorff dimension48 and similarity dimension49. However, for many fractals, both of these dimensions are difficult to compute; in practice, the box dimension32,50 is generally used, and one of its equivalent formulas is shown in Eq. (9).

$$\lg {\text{N}}_{{\text{k}}} = {\text{C}} - {\text{D}}^{*} \lg {\text{k}}$$
(9)

where C is a constant; k is the size of the box; and Nk indicates the number of boxes of size k needed to cover all foreground images. In the calculation, the data file is divided into blocks, each of which is a square with side lengths containing pixels of number n. The number of blocks containing 0 is denoted as Nkn. If the size of a pixel point is k*, the length of a block with n rows and columns is kn = nk*. The corresponding number of boxes can be obtained by using kn as the edge length for block division.

In 3D reconstructions of SEM images with MATLAB software51,52,53, the first step was to collect and process the 3D image data, and then, according to the imaging principle, calculate the action of all pixels on the light to obtain the two-dimensional (2D) projection image and construct the 3D body reconstruction fragments. The 3D display effect was set up to complete the 3D reconstruction of SEM images. The body projection method was mostly used to calculate the projection of an object on a plane54,55. By projecting points on the surface of the 3D object, i.e., the 3D data points after preprocessing, along the parallel lines to the 2D plane, and by transforming the angle between the parallel lines and the 3D object so that all of the 3D data points were projected on the 2D surface, the projection principle is shown in Fig. 13b. The conversion from a 2D to 3D display was realized by continuously projecting the map. The operation was simplified by the MATLAB software, and the projection calculation was completed directly through the isosurface function, a function tool for drawing 3D implicit function images.

Results and discussion

Pore structure analyses

Fig. 3 shows the results of N2 isothermal adsorption and detachment of the CSD after drying, mixing, condensation, and crushing to particle sizes of less than 2 mm. As shown in Fig. 3a-f, the CSD had different colours, such as black‒grey, dark-grey, and white‒grey, which was attributed to nonuniformity of the water contents of the samples. As shown in Fig. 3g, the N2 isothermal adsorption-desorption isotherms of the CSDs exhibited type IV isothermal curves, and there were obvious hysteresis loops in the relative pressure (p/p0) range 0.6–0.9, indicating the presence of a typical mesoporous structure in the CSD56. The isothermal adsorption desorption curves did not show high plateaus at high relative pressures (p/p0 > 0.9), indicating the presence of macropores in the CSD. Little N2 was adsorbed at low relative pressures (p/p0 < 0.1), indicating that the microporous structure in the CSD was not developed. The geometric nonuniformity of the pore structures determined that a single pore diameter did not accurately characterize the real pore distribution, and a reasonable model was needed to analyse the pore diameter distribution. Fig. 3h,i shows the pore diameter distribution curves and the SSA vs. pore diameter distribution curves of CSDs analysed by the BJH model. As shown in Fig. 3h, there was an obvious peak for dV/dD in the range of pore diameters from 0 nm to 10 nm, indicating that the pore distribution in this range was more concentrated. As shown in Fig. 3i, the dS/dD plot of the CSD had an obvious peak in the pore diameter range 2 nm to 5 nm, indicating that the pore distribution in this range was also more concentrated. Moreover, when the pore diameter was larger than 10 nm, a part of the total SSA distribution curve for the CSD still existed in the pore diameter range, but the proportion of SSA was smaller than that of the SSA distribution for the pore diameters in the range 2–10 nm, which suggested that the SSA of CSD was mainly determined by the mesopores with smaller diameters. As shown in Fig. 3j, the SSA curve showed a good fit with a correlation coefficient (R2) of 0.9999, a slope (a) of 0.0838, an intercept (b) of 0.0012, and a BET constant (c) of 74.1 in the range of relative pressures 0.04 < p/p0 < 0.32. Using Eq. (10), the SSA was calculated as 51.2128 m2·g−1.

$$\frac{{\text{p}}}{{{\text{V}}({\text{p}}_{0} - {\text{p}})}} = \frac{1}{{{\text{V}}_{{\text{m}}} \times {\text{c}}}} + \frac{c - 1}{{{\text{V}}_{{\text{m}}} \times {\text{c}}}} \times \frac{{\text{p}}}{{{\text{p}}_{0} }} \to {\text{V}}_{{\text{m}}} = \frac{1}{{{\text{a}} + {\text{b}}}} \to {\text{ SSA}} = 4.35{\text{V}}_{{\text{m}}}$$
(10)

where p is the pressure after adsorption equilibrium; p0 is the saturated vapour pressure of the adsorbent at the adsorption temperature; Vm is the saturated adsorption capacity for a single layer of the adsorbed material; 4.35 is the area occupied by a single-molecule layer of 1 mL N2 under standard conditions; and V is the amount of adsorbate on the adsorbent at the adsorption equilibrium pressure.

Figure 3
figure 3

Samples of raw soil (a, b), samples after drying (c, d), samples after mixing and shrinking (e), samples after crushing and shrinking to − 2 mm particle sizes (f), isothermal adsorption desorption curve (g), pore diameter distribution curves of the BJH Model (h), SSA distribution curves of the BJH Model (i), and SSA fitting curve of the BET Model (j).

Fig. 4a, b shows the N2 isothermal adsorption and desorption data for CSDs with different PPSs. The isothermal adsorption and desorption curves, pore diameters and SSAs of the CSDs at 9 PPS reflected similar changes in the pore structures. As the particle sizes of the CSDs decreased, the corresponding hysteresis loop expanded, the pore diameters decreased, and the SSA increased. The isothermal adsorption and desorption curves of CSDs with different PPSs were indicated type IV isothermal curves, and were hysteresis loops within the range of relative pressures p/p0 = 0.6–0.9, which indicated that there was a typical mesoporous structure in the CSD. An obvious hysteresis loop was observed in the isothermal adsorption desorption curve of the − 0.025 mm sample, indicating that the mesopores for the CSD with a fine PPS were obviously more abundant, which was attributed to a reduction in gangue minerals, which weakened the agglomeration of CSD particles and resulted in a richer pore structure. The isothermal adsorption desorption curves did not show high plateaus at high relative pressures (p/p0 > 0.9), suggesting that CSD contained macropores. Little N2 was adsorbed at low relative pressures (p/p0 < 0.1), indicating that the microporous structure of the CSD was not developed. Moreover, N2 adsorption at relative pressures p/p0 = 0.98 increased from 55.8441 cm3·g−1 for − 2+1 mm to 75.3813 cm3·g−1 for − 0.025 mm, and N2 adsorption for − 0.025 mm was significantly greater than that for the other PPSs, showing an overall increase with decreasing particle sizes. The dV/dD and dS/dD for the CSDs with different PPSs had obvious peaks in the range of pore diameters from 0 nm to 10 nm, indicating that the distribution of pores was more concentrated in this range. Moreover, when the pore diameter was larger than 10 nm, a part of the total SSA distribution curve for the CSD was still present in the range of pore diameters at different PPSs, but the proportion of the SSA accounted for was smaller than that for the SSA distribution for pore diameters pf 2 nm to 10 nm, indicating that the SSAs of the CSDs with various PPSs were mainly determined by the mesopores with smaller diameters. In addition, the R2 values of the SSA fitted curves at different PPSs in the range of relative pressures 0.04 < p/p0 < 0.32 were greater than 0.9 (Fig. 4b), indicating that the fits were better, the SSA increased from 26.8294 m2·g−1 for − 2+1 mm to 47.0258 m2·g−1 for − 0.025 mm, and the SSA of − 0.025 mm was significantly larger than those of the other PPSs, showing an overall increase with decreasing particle size.

Figure 4
figure 4figure 4

(a) Isothermal adsorption-desorption curves, pore diameter distribution curves from the BJH model, and SSA distribution curves from the BJH model for CSDs with different PPSs (D1: − 2+1 mm, D2: − 1+0.5 mm, D3: − 0.5+0.25 mm, D4: − 0.25+0.15 mm, D5: − 0.15+0.075 mm). (b) Isothermal adsorption desorption curves, BJH model pore diameter distribution curves, BJH model SSA distribution curves, and SAA fitting curves from the BET model for CSDs with different PPSs (D1: − 2+1 mm, D2: − 1+0.5 mm, D3: − 0.5+0.25 mm, D4: − 0.25+0.15 mm, D5: − 0.15+0.075 mm, D6: − 0.075+0.045 mm, D7: − 0.045+0.038 mm, D8: − 0.038+0.025 mm, D9: − 0.025 mm).

Table 2 and Fig. 5 show the main pore structure parameters of CSDs analysed by the gas adsorption method (N2) at different PPSs, in which N2 adsorption was positively correlated with the SSA, and the SSA decreased from 47.0258 m2·g−1 at − 0.0258 mm to 4.6050 m2·g−1 at − 0.5+0.25 mm. The hysteresis loops of the isothermal adsorption and desorption isotherms for CSDs with different PPSs in the range of − 0.5 mm generally showed gradual decreases with increasing PSS, indicating that the Vmes of the CSD basically decreased after grading (Fig. 4a, b). Moreover, the VT values of the CSDs with different PSSs in the range of − 0.5 mm decreased with increasing PSS, and the VT reached a maximum value of 0.1407 cm3·g−1 at − 0.025 mm, which was related to the embedded particle sizes of the gangue minerals in the CSDs with different PPSs; as the PSS increased, the pore diameter increased, which increased the pore volume. The t-plot method was used to analyse the microporous structures of CSDs with different PSSs, and the microporous volumes (Vmic) were close to 0 cm3·g−1, indicating that there were basically no micropores in the CSD. Combined with the N2 isothermal adsorption desorption isotherms and pore diameter distribution curves, the pore channels of the CSD were mainly multilevel pore structures composed of mesopores and macropores, and basically, there were no micropores.

Table 2 Pore structure parameters of CSDs with different PSSs after low-temperature N2 adsorption.
Figure 5
figure 5

Pore structure parameters of CSD samples with different PSSs determined via low-temperature N2 gas adsorption (SSA is the specific surface area, Smic is the specific surface area of micropores, VT is the total pore volume of nitrogen gas adsorption, Vmic is the microporous pore volume, Vmes is the mesopore volume, Da is the average pore diameter, Dmes is the mesopore average pore diameter, and Dmmes is the mesopore most probable diameter). D1: − 2+1 mm, D2: − 1+0.5 mm, D3: − 0.5+0.25 mm, D4: − 0.25+0.15 mm, D5: − 0.15+0.075 mm, D6: − 0.075+0.045 mm, D7: − 0.045+0.038 mm, D8: − 0.038+0.025 mm, D9: − 0.025 mm).

Please check the layout of tables 2 and 3.Yes, I have checked.

The formation of the CSD pore structure was attributed to the 3D constitutive units comprising SiO4 tetrahedra, which exhibited different pore diameters, pore volumes, and SSAs due to plugging and encapsulation of the companion minerals. Fig. 6 shows the 3D spatial surface maps of the pore diameters - pore volumes - SSAs for CSDs with different PPSs, which showed that there was a constraint relationship between the pore diameters, pore volumes, and SSAs, and smaller pore diameters and larger pore volumes generated larger SSAs.

Figure 6
figure 6

3D spatial surface maps of the pore diameters, volumes and SSAs for CSDs with different PSSs (D1: − 2+1 mm, D2: − 1+0.5 mm, D3: − 0.5+0.25 mm, D4: − 0.25+0.15 mm, D5: − 0.15+0.075 mm, D6: − 0.075+0.045 mm, D7: − 0.045+0.038 mm, D8: − 0.038+0.025 mm, D9: − 0.025 mm).

Fractal characterization with the gas adsorption method

There were two distinct linear regions of the isothermal adsorption-desorption isotherms for CSDs with different PPSs, which were located in the relative pressure ranges p/p0 = 0–0.35 and 0.35–1.0 (Fig. 4). With the gas adsorption method, the N2 isothermal desorption data for CSDs were different PPSs were fractally fitted with the FHH model, and the FHH fits are shown in Fig. 7. The linear fitting equations, fractal dimensions (DF1 and DF2), and fitting correlation coefficients (R2) are given in Table 3 for the pore channels in CSDs with pore diameters less than 50 nm and different PPSs. The results showed that the CSD had good fits and different fractal characteristics in both regions, with R2 values greater than 0.93. DF1 and DF2 reflect the inhomogeneity of the surface roughnesses and mesopore volumes of the CSD at different PPSs, respectively, and quantitatively characterize the nonhomogeneity and complexity of the pore structure. The fractal dimension influences the interaction of porous mineral surfaces with other substances during physicochemical processes such as adsorption, adhesion and surface diffusion. Table 3 shows the DF1 and DF2 values calculated from the fitting results in Fig. 7, with DF1 = 2.4756 and DF2 = 2.6358 for − 2 mm and DF1 = 2.5115 and DF2 = 2.6799 for − 0.025, in which D-2 mm < D-0.025 mm. The number of mesopores with small pore diameters in the fine PSS was greater, the distribution of the mesopore apertures was narrower, the number of mesopores with large pore diameters in the coarse PSS was greater, and the distribution of mesopore apertures was wider. The increases in DF1 with decreasing particle sizes indicated that the surface roughness of the CSD increased with decreasing particle sizes, which was consistent with the change rule for SSAs with different PSSs in Table 2 and Fig. 5. In addition, the DF2 also increased with decreasing particle sizes, and the DF2 reached the lowest value of 2.6799 at − 0.025 mm.

Figure 7
figure 7

Plots of ln(V) vs. ln[ln(p0/p)] (FHH model) and lg(dVp/dp) vs. lg(p) (Menger sponge model) for different PSSs.

Table 3 Fractal dimension (DF = 3 + A, DM = 4 + A) of CSDs with different PSSs derived with the FHH model and Menger model.

Moreover, Fig. 7 shows the results of Menger model fitting for the fractal features of the macroporous structure of CSDs at different PSSs. Table 3 shows the linear fitting equations, fractal dimensions (DM1 and DM1) and R2 values for the pore channels of CSDs with pore diameters larger than 50 nm. As shown in Table 3, the DM increased with increasing particle sizes, and the correlation coefficients for the Menger model were 0.16 < R2 < 0.89, indicating poor reliability for the fractal features of the macroporous structure determined with the Menger model. Larger DM values indicate greater spatial geometric complexity of the macroporous channel shapes, and larger deviations from a smooth surface. DM1 increased and then decreased with decreasing particle sizes, and the DM1 of − 0.15+0.075 mm had the largest value (4.2891), which indicated that the macroporous structure of − 0.15+0.075 mm was more complex than those of the other PSSs. DM2 decreased and then increased with decreasing particle sizes, and the DM2 reached the lowest value (6.0092) at − 0.15+0.075 mm. DM1=3.7507 and DM2=7.7449 at − 0.025 mm were smaller than those at − 2 mm, indicating that the macroporous pore structures of the CSDs with the coarse PSS were more complicated, while the number of macropores in the fine PSS was less complicated. This was attributed to the presence of structures such as cracks, concave and convex structures, and steps in the coarse PSS of the CSD, which was consistent with the SSA test results in Table 2 and Fig. 5.

Fractal characterization of the image processing method

Fig. 8 shows SEM images of the − 2 mm and − 0.025 mm samples. As shown in Fig. 8a, the mineral composition in the CSD was complex, with a high content of gangue minerals, diatomite surface covering and pore channel plugging with clay minerals, and poor pore structure characteristics. As shown in Fig. 8b, the diatoms in the fine PSS of the CSDs had complete morphologies, more 3D pore channels, and better pore structure characteristics. In comparison, the diatoms are mainly enriched in the fine PSSs of the CSDs and showed better pore structure characteristics.

Figure 8
figure 8

SEM images of CSD for − 2 mm (a) and − 0.025 mm (b).

SEM image analyses and self-similarity fractal characterizations of the CSDs with different PSSs were carried out via image processing (Fig. 9). As shown in Fig. 10, in the SEM images of the CSDs with different PSSs, the selected images had more obvious fractal features and thus were more representative. The black areas in the image were the pore channels, and the white areas were the particles and skeletons. As seen in the RGB images, the CSD was mainly composed of rounded diatom particles, which were structured and connected together by the outer rings. Due to this structural feature, there were many pore channels of different diameters between and within the diatom particles. As the particle sizes of the CSD decreased, the diatom surface was covered, and pore channels were blocked by fewer gangue minerals, exposing more pore channels. At − 0.025 mm, the macropores between the diatom particles gradually disappeared, and the internal mesopores were exposed. The grayscale thresholds of the CSDs with different PSSs were obtained from algorithms (6–7) as 106 (− 2+1 mm), 113 (− 1+0.5 mm), 101 (− 0.5+0.25 mm), 119 (− 0.25+0.15 mm), 151 (− 0.15+0.075 mm), 137 (− 0.075+0.045 mm), 100 (− 0.045+0.038 mm), 91 (− 0.038+0.025 mm), and 144 (− 0.025 mm). The grayscale images processed with the Eq. (8) algorithm are shown in binary images, with the background pixels as particles (white) and the target pixels as pores (black).

Figure 9
figure 9

SEM image processing and analyses (grayscale histogram, binary processing, 3D reconstruction and fractal dimension) were performed with MATLAB.

Figure 10
figure 10

RGB, grayscale, and binary images (D1: − 2+1 mm, D2: − 1+0.5 mm, D3: − 0.5+0.25 mm, D4: − 0.25+0.15 mm, D5: − 0.15+0.075 mm, D6: − 0.075+0.045 mm, D7: − 0.045+0.038 mm, D8: − 0.038+0.025 mm, D9: − 0.025 mm).

According to Eq. (9), a plot of lg(1/k) vs. lgNk was subject to least squares fitting in the double logarithmic coordinate plane, and the slope of the resulting straight line was the number of box dimensions. The binary images were imported into the written MATLAB program, and the fitting results are shown in Fig. 11. The Nk values of the CSDs with different PSSs are shown in Table 4.

Figure 11
figure 11

Linear fits of bi-logarithmic plots of fractal dimensions and PSSs (D1: − 2+1 mm, D2: − 1+0.5 mm, D3: − 0.5+0.25 mm, D4: − 0.25+0.15 mm, D5: − 0.15+0.075 mm, D6: − 0.075+0.045 mm, D7: − 0.045+0.038 mm, D8: − 0.038+0.025 mm, D9: − 0.025 mm).

Table 4 Nk for different PSSs of the CSDs.

As shown in Fig. 11, the SEM images of the CSDs with different PSSs had better fractal characteristics after binarization, and the correlation between the experimental data points and the fitted straight line was high. Thus, the microstructural changes of the CSDs with different PSSs were described by the fractal box dimension. Combined with the SEM images in Fig. 10, the changes in fractal features were divided into two stages: (1) from the perspective of D1 to D4, the variations in the box dimensions of the coarse PSS were not significant and relatively large due to the clogging and encapsulation of the mesopores with gangue minerals and the presence of structures such as cracks, concavity and convexity, and steps; (2) from the perspective of D5–D9, the box dimensions of the fine PSS increased with decreasing particle sizes, which was consistent with N2 isothermal adsorption–desorption, FHH modelling, and SEM imaging. However, the overall box dimensions of D5–D9 were smaller than those of D1–D5. This is because the mineralogical characteristics of the CSD had a significant impact on the box dimension, while the effects of particle gaps and gangue mineral particles on the box dimension were relatively small for fine PSSs. Therefore, the fractal box dimension characterized the changes in the self-similar pore structure and the changes in the pore distribution after the disappearance of structural properties for CSDs at different PSSs discussed in this study.

To visualize the self-similarity 3D pore structures of the CSD, 3D SEM images of the different PSSs were reconstructed. (1) Based on the SEM grayscale image, the grayscale histogram was created by the imhist function in MATLAB software (Fig. 12). The horizontal axis of the histogram represents the grayscale value, the vertical axis represents the pixel, and each vertical line represents the number of pixels contained under the grayscale value, i.e., the frequency of each grayscale value appearing in the whole SEM image of the CSD. The grayscale values ranged from 0 to 255, and the blacker the image was, the smaller the grayscale value, and the brighter the image was, the larger the grayscale value; i.e., the pixels with grayscale values of 0 were black and represented apertures in the SEM image, the pixels with grayscale values of 255 were white and represented particles, and the other pixels were between black and white. (2) The preprocessed image was added to the search path of the MATLAB software, and then the image information was extracted by the imread function. The pixels of the CSD image used in this experiment were 2837 × 2121, the pixels of the image were used as the length and width, the grayscale value was taken as the height to obtain the 3D dataset, and the data were stored in a CAT file for subsequent use. (3) The acquired 3D data were projected on the apparent plane with the body projection method, i.e., the acquired 3D body data of the SEM image were projected onto the plane that was observed visually according to the projection method, and then the projected equivalent surface was drawn with the isosurface function. (4) The colour, shadow and display effect of the image were set to make the 3D model more intuitive, and comprehensive 3D reconstructions of the CSDs were achieved at different PSSs. The final 3D reconstruction is shown in Fig. 13. The reconstructed 3D image provided a good 3D display, the undulations of the self-similarity structures of the CSDs were clearly observed, and the sizes, shapes and distributions of the particles and pores were all consistent with the actual pore structure characteristics of CSDs at different PSSs.

Figure 12
figure 12

Grayscale histograms of SEM images with different PSSs (D1: − 2+1 mm, D2: − 1+0.5 mm, D3: − 0.5+0.25 mm, D4: − 0.25+0.15 mm, D5: − 0.15+0.075 mm, D6: − 0.075+0.045 mm, D7: − 0.045+0.038 mm, D8: − 0.038+0.025 mm, D9: − 0.025 mm).

Figure 13
figure 13

3D reconstructions of CSDs with different PSSs (D1: − 2+1 mm, D2: − 1+0.5 mm, D3: − 0.5+0.25 mm, D4: − 0.25+0.15 mm, D5: − 0.15+0.075 mm, D6: − 0.075+0.045 mm, D7: − 0.045+0.038 mm, D8: − 0.038+0.025 mm, D9: − 0.025 mm).

Conclusions

CSD comprises coal-series waste through open piling and backfilling of mining areas, which causes a serious waste of resources and great pressure on the environment. In this study, we took CSD as the research object and PSS as the entry point and conducted a self-similarity study based on an analytical gas adsorption method, an image segmentation method, an optimal threshold method and a 3D reconstruction method to illustrate the self-similarity 3D pore structures of CSDs at different PSSs.

The main chemical component of the CSD was SiO2 (59.22%), and the LOI was 10.50%; the main mineral component was opal, with a content of approximately 12.39%, which accounted for approximately one-eighth of the total mineral content. Opal was the main constituent mineral of the diatom skeleton, with a chemical composition of SiO2·nH2O, and formation of the pore structure (diatom skeleton) was attributed to the 3D constituent unit built by SiO4 tetrahedra. The self-similarity pore structure was poorly characterized due to the low SiO2 content and the complexity of the associated minerals in the CSD.

The pore structures of the CSDs with different PSSs were dominated by mesopores and macropores, with basically no micropores. The SSA and Vmes values were positively correlated with the amount of N2 adsorbed and negatively correlated with the PSS in general. The fractal dimensions calculated with the FHH model were 2.51/2.68 for − 0.025 mm and 2.48/2.64 for − 2 mm, suggesting that the mesopore structure of fine PSS was complex, whereas macropores were predominantly present in the coarse PSS. This was attributed to clogging and encapsulation of gangue minerals as well as the presence of structures such as cracks, concave and convex cracks, and steps that gave the CSD different self-similarity pore structural characteristics at different PSSs.

The grayscale thresholds, binarized images, grayscale histograms, 3D reconstruction images, and a series of box dimensions calculated from the SEM images of CSD at different PSSs in the image processing method enabled intuitive indications of the microstructure of the CSDs as well as self-similarity features. Meanwhile, the reconstructed 3D image provided a good 3D display, the undulations of the self-similarity functional structures of the CSDs were clearly observed, and the sizes, shapes, and distributions of the particles and pore channels matched the pore structures of the actual CSDs. Self-similarity studies based on particle sizes are important for the functional application of CSDs.