Next Article in Journal
The Relationship Between the Fractal Dimension and the Evolution of Rock-Forming Minerals Crystallization on the Example of the Northwestern Part of the Lovozero Intrusion
Next Article in Special Issue
Analysis of Multifractal Characteristics and Detrended Cross-Correlation of Conventional Logging Data Regarding Igneous Rocks
Previous Article in Journal
Control Error Convergence Using Lyapunov Direct Method Approach for Mixed Fractional Order Model Reference Adaptive Control
Previous Article in Special Issue
Pore Structure and Fractal Characteristics of Inter-Layer Sandstone in Marine–Continental Transitional Shale: A Case Study of the Upper Permian Longtan Formation in Southern Sichuan Basin, South China
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fractal Analysis of Volcanic Rock Image Based on Difference Box-Counting Dimension and Gray-Level Co-Occurrence Matrix: A Case Study in the Liaohe Basin, China

1
School of Mathematics and Statistics, Beihua University, Jilin 132000, China
2
College of Geo-Exploration Science and Technology, Jilin University, No. 938, Ximinzhu Street, Changchun 130026, China
*
Author to whom correspondence should be addressed.
Fractal Fract. 2025, 9(2), 99; https://doi.org/10.3390/fractalfract9020099
Submission received: 18 December 2024 / Revised: 23 January 2025 / Accepted: 31 January 2025 / Published: 4 February 2025

Abstract

Volcanic rocks, as a widely distributed rock type on the earth, are mostly buried deep within basins, and their internal structures possess characteristics by irregularity and self-similarity. In the study of volcanic rocks, accurately identifying the lithology of volcanic rocks is significant for reservoir description and reservoir evaluation. The accuracy of lithology identification can improve the success rate of petroleum exploration and development as well as the safety of engineering construction. In this study, we took the electron microscope images of four types of volcanic rocks in the Liaohe Basin as the research objects and comprehensively used the differential box-counting dimension (DBC) and the gray-level co-occurrence matrix (GLCM) to identify the lithology of volcanic rocks. Obtain the images of volcanic rocks in the research area and conduct preprocessing so that the images can meet the requirements of calculations. Firstly, calculate the different box-counting dimension. Divide the grayscale image into boxes of different scales and determine the differential box-counting dimension based on the variation of grayscale values within each box. The differential box-counting dimension of basalt ranges from 1.7 to 1.75, that of trachyte ranges from 1.82 to 1.87, that of gabbro ranges from 1.76 to 1.79, and that of diabase ranges from 1.78 to 1.82. Then, the gray-level co-occurrence matrix is utilized to extract four image texture features of volcanic rock images, namely contrast, energy, entropy, and variance. The recognition of four types of volcanic rock images is achieved by combining the different box-counting dimension and the gray-level co-occurrence matrix. This method has been experimentally verified by volcanic rock image samples. It has a relatively high accuracy in identifying the lithology of volcanic rocks and can effectively distinguish four different types of volcanic rocks. Compared with single-feature recognition methods, this approach significantly improves recognition accuracy, offers reliable technical support and a data basis for volcanic rock-related geological analyses, and drives the further development of volcanic rock research.

1. Introduction

1.1. The Theoretical Basis of Volcanic Rock Lithology Identification

Against the background of the increasing demand for oil and gas resources and the growing difficulty in oil and gas exploration, identifying the lithology of volcanic rocks constitutes an important part in the reservoir evaluation of volcanic rock formations and oil and gas exploration [1,2,3,4].
The formation of volcanic rocks is a complex geological process involving the eruption, cooling, and solidification of high-temperature magma and the subsequent geological transformation. During this process, differences in physical properties, such as mineral composition, degree of crystallization, grain size, and arrangement, directly determine the lithological characteristics of volcanic rocks.
During the formation of volcanic rocks, the crystallization and aggregation of minerals exhibit complex self-organizing phenomena, endowing them with fractal structures at different scales. For example, during volcanic eruptions, the rapid or slow cooling of magma leads to different degrees of mineral crystallization, thereby forming fractal structures with different degrees of complexity. As a quantitative index, the fractal dimension can effectively reflect the complexity of this structure and provides an important basis for distinguishing different lithologies [5,6].
Regarding texture features, parameters extracted from the Gray-Level Co-Occurrence Matrix (GLCM), such as contrast, correlation, energy, and entropy, are closely related to the arrangement and distribution of minerals inside the rock. The size, shape of mineral grains, and the spatial relationships among them determine the texture features of the image.

1.2. Comparison of Advantages Between Traditional Methods and Fractal Dimension

In recent years, with the renewal and development of logging equipment, logging data have become more abundant. As a result, a variety of logging lithology interpretation methods based on logging response characteristics have emerged, ranging from cross-plot interpretation methods to multivariate statistical analysis methods, and then to machine learning algorithms that have emerged with the application of big data, gradually improving the timeliness of logging lithology interpretation [7,8,9,10].
Compared with the various logging lithology interpretation methods developed in recent years based on logging response characteristics, using the fractal dimension of volcanic rock core images to identify volcanic rock lithology has unique advantages [11,12,13].
From the perspective of cost, the renewal and maintenance costs of logging equipment are high, while the cost of obtaining core images is relatively low, which makes our method more feasible in research and application scenarios with limited resources. In terms of intuitiveness, methods based on logging data require complex data processing and analysis, while the fractal dimension analysis of core images can more intuitively reflect lithological characteristics, facilitating rapid understanding and judgment by researchers. In addition, under some complex geological conditions, logging data are easily interfered with, leading to deviations in interpretation results. However, the fractal dimension identification of volcanic rock core images is relatively less sensitive to geological conditions and has stronger stability.

1.3. Fractal Geometry

In view of the complexity and irregularity of volcanic rocks, traditional Euclidean geometric theories are unable to accurately describe these objects [14]. Therefore, the introduction of fractal characteristics serves as a new approach to the study of volcanic rocks. Fractal dimension (FD) is an important parameter for describing fractal characteristics, which can reflect the surface roughness and structural irregularity of fractal objects [15,16,17]. Generally speaking, a larger fractal dimension value represents a more complex structure. Research is conducted by calculating the fractal dimension of well logging curves and the distribution of volcanic lithology in the formation, and the corresponding lithological profile is established. The larger the fractal dimension of the well logging curve is, the more complex the internal structure and composition of the corresponding volcanic rocks will be [18,19].
With the continuous development of digitalization, the application of digital image processing technology in the geological field has opened up new avenues and infused new vitality into the identification of volcanic rock lithology. In two-dimensional images, the pore structure is studied by calculating the fractal dimension of the grayscale CT images of rocks [20]. The fractal dimension of the rock pore structure increases with the increase in the porosity ratio. Even with the same porosity, the fractal dimensions may vary. In the three-dimensional CT images of sandstone reservoir rocks, their fractal dimensions, porosity, and sphericity are estimated to analyze the microstructure differences among sandstone reservoir rocks with different permeabilities [21].

1.4. Gray Release Co-Occurrence Matrix

In the 1970s, Haralick proposed the gray-level co-occurrence matrix (GLCM), which was used to describe and analyze the texture features of image [22,23]. Image texture features are one of the important features used to identify the objects or regions of interest in an image, which describe the surface characteristics of the image or a certain region of the image. Due to the fact that different rock structures possess distinct image texture characteristics, the classification of rocks can be achieved by utilizing image texture features [24]. The gray-level co-occurrence matrix was applied to the analysis of computed tomography images of different rock types. The results demonstrated that each rock type had a unique GLCM, based on which the rocks could be classified [25,26,27].

1.5. DBC-GLCM

The method proposed in this paper, which comprehensively utilizes the Differential Box-counting Dimension (DBC) and the Gray-Level Co-occurrence Matrix (GLCM), has unique advantages.
The DBC method can effectively capture the complexity and self-similarity characteristics of rock textures by calculating the fractal dimension of volcanic rock images. Due to the differences in the microstructures of volcanic rocks with different lithologies, these differences will be reflected in the fractal dimension, thus providing a quantitative basis for lithology identification. Compared with traditional methods, the DBC method does not rely on the collection of a large number of rock samples, and it can rapidly process a large amount of image data, improving the identification efficiency.
The GLCM method starts from the spatial dependence of image gray levels and extracts texture features such as energy, contrast, and entropy. These features can reflect information such as the arrangement of internal mineral particles and the distribution uniformity of volcanic rocks. They are of great significance for differentiating lithologies with similar appearances but different microstructures.
Combining the DBC and GLCM methods gives rise to a comprehensive lithology identification system. This system can not only fully leverage the advantages of the two methods and describe the lithological characteristics of volcanic rocks from multiple dimensions, but it can also improve the accuracy and stability of lithology identification. Compared with traditional methods, this DBC-GLCM-based approach can better address the challenges of volcanic rock lithology identification under complex geological conditions, providing more reliable technical support for petroleum exploration and engineering construction.

2. Samples and Methods

2.1. Geological Background and Samples

The Liaohe Basin is located in the plain area of central and southern Liaoning Province, China, and it is part of the Bohai Bay Basin, with a total area of approximately 25,500 square kilometers [28,29]. Among them, the eastern sag of the Liaohe Basin is the research area of this paper [30,31]. The research area is shown in Figure 1 [32]. The eastern sag of the Liaohe Basin is a NE-trending half-graben sag. A large number of volcanic rocks have developed in the strata. These volcanic rocks have not only completely recorded the process of Paleogene volcanism in this area but also constitute the most important oil and gas reservoirs in this area. Conducting comprehensive, in-depth, and systematic research on it holds significant importance for understanding the Paleogene tectonic evolution and dynamic processes in the Liaohe and Bohai Bay basins, as well as for practical hydrocarbon exploration and application. Obtain 2000 typical volcanic rock samples in the eastern sag area of the Liaohe Basin. In this paper, taking the microscopic images of four types of volcanic rock cores, namely basalt, trachyte, gabbro, and diabase, as the research objects, combined with the lithofacies characteristics of Cenozoic intermediate–basic volcanic rocks in the Liaohe Basin, the lithology of these four types of volcanic rocks was identified by using DBC and GLCM.

2.2. Experimental Data Preprocessing

2.2.1. Image Gray Release

A color image contains multiple color channels (such as the three RGB channels). When processing it, the data volume is relatively large and complex, and gray scaling can reduce the computational difficulty. When R = G = B, the color represents a grayscale color, where the value of R = G = B is called the grayscale value. Therefore, each pixel in a grayscale image only requires one byte to store the grayscale value (also known as the intensity value or brightness value), and the grayscale range is from 0 to 255. Commonly used gray scaling methods include the maximum-value method, the average-value method, and the weighted-average method, as shown in Figure 2. To ensure the consistency of the analysis, all original images adopt a common resolution with a pixel size of 519 × 392. In Matlab, the resolution of an image can be adjusted using the imresize function.
In practical applications, the weighted-average method is widely recognized. It can generally meet the gray scaling requirements in most cases. The grayscale image obtained through this method is visually closer to the human eye’s perception of a color image. It can preserve the details and contrast of the image well, facilitating subsequent processing and analysis based on the grayscale image [33].
Grayscale Scaling Range: Scaling the grayscale image and altering its grayscale range can affect the image’s contrast and detail representation. If the grayscale scaling range is too large, some subtle texture features in the image may be overmagnified. As a result, during the calculation of the fractal dimension, these details, which might not be dominant originally, can have a significant impact on the result, making the calculated fractal dimension unstable or inaccurate. Conversely, if the grayscale scaling range is too small, the image contrast decreases, and some important texture features may be weakened. This will also affect the accuracy of the fractal dimension calculation and prevent it from truly reflecting the fractal characteristics of the volcanic rock image.

2.2.2. Filtering Processing

Before analyzing an image, one of the most crucial steps is to remove unwanted noisy pixels from the image. This task is referred to as filtering or denoising. Image filtering is classified into linear filtering and non-linear filtering. Commonly used filtering methods include mean filtering, median filtering, Gaussian filtering, etc. In this study, a Gaussian filter with a kernel size of 5 × 5 and a mean squared deviation of 1.5 was first applied to reduce Gaussian noise. Subsequently, a median filter with a kernel size of 3 × 3 was used to remove salt-and-pepper noise. The following are the results of the filtering process applied to the microscopic images of basalt [34,35].
(1)
Gaussian filtering: It belongs to linear smoothing filtering. The principle is to perform a weighted average on the image. The value of each pixel is obtained by a weighted average of its own value and those of other pixels in the neighborhood. Figure 3 shows the result of Gaussian filtering.
(2)
Median filtering: It is a type of non-linear filtering. Its principle is to replace the grayscale value of a pixel with the median value of the grayscale values in the neighborhood of that pixel. The advantage of this method is that the obtained pixel values are mostly real values, and isolated noise points can be easily removed. Figure 4 shows the result of median filtering.

2.2.3. Binarization

Convert the obtained image into grayscale, with the brightness range from 0 to 255. During the binarization process, the size of each pixel in the image is compared with the threshold value. If the grayscale value of a pixel is greater than or equal to the threshold T, the grayscale value of this pixel is set to a fixed value (usually 255, representing white); if the grayscale value of a pixel is less than the threshold T, the grayscale value of this pixel is set to another fixed value (usually 0, representing black). In this way, a grayscale image can be converted into a binary image with only two colors, black and white.
The threshold can be determined using global and local thresholding methods. However, different thresholding methods will have a certain impact on the results. When extremely high or low thresholds are used during the binarization process, the generated binary image may lose some important texture information, resulting in inaccurate fractal dimension values. Global thresholding methods, such as the Otsu method, also known as the maximum between-class variance method, is an adaptive threshold-selection approach. The core idea of this method is to analyze the grayscale histogram of the image to find an optimal threshold that maximizes the between-class variance between the foreground and the background. In the calculation of the fractal dimension of volcanic rock images, the Otsu method can binarize the images reasonably according to the grayscale distribution characteristics of the images themselves, effectively avoiding the subjectivity of artificially setting thresholds. Generally speaking, in the calculation of the fractal dimension, the binary image obtained by this method can effectively reflect the macroscopic outline and main structural features of volcanic rocks. The calculated fractal dimension is relatively stable and highly accurate and can be used for the preliminary classification and feature extraction of volcanic rock images. Local thresholding methods calculate a unique local threshold using the brightness of detected pixels in the neighborhood around a pixel (i.e., the window). This local approach can effectively identify the local features of pixels in images with varying backgrounds, including illumination or background noise. However, it requires more computational effort. For complex volcanic rock images, due to its inability to adapt to the local variations of the image, the binarization effect may be poor, which in turn can lead to significant deviations in the calculated results of the fractal dimension [36,37,38].
In this study, we used the Otsu method to determine the threshold. Through Matlab calculation, the threshold of Figure 5a was obtained as 92. If the grayscale value of a pixel is greater than or equal to the threshold of 92, the grayscale value of this pixel is set to 255 (i.e., white); if the grayscale value of a pixel is less than the threshold of 92, the grayscale value of this pixel is set to 0 (i.e., black). A binary image with only two colors, black and white, was obtained as shown in the Figure 5c.

2.3. Methods

2.3.1. DBC

Its main idea is as follows as shown in Figure 6: An image with a pixel size of M × M is regarded as a three-dimensional (3-D) spatial surface, where x , y represent the positions of pixels on the two-dimensional spatial plane of the image and z represents the gray level of pixels. The x , y plane is divided into non-overlapping grids of size s × s . The proportion of each block is r = s / M , where M 2 s > 1 and s are integers. In this case, a non-square grid introduces 0 to form a complete grid with a size of s × s pixels. There is a column of s × s × h on each grid, where h represents the height of each box. n r is the total number of boxes required to fill each grid at a ratio r, and the subscript r indicates the result obtained using the ratio r. If the total number of gray levels is G , then G / h = M / s , h = s G / M . Let the minimum and maximum gray levels in the i , j th block fall into the k th and l th bins, respectively. Then
n r i , j = l k + 1
For example, when s = h = 3 , assign numbers 1, 2, 3…, and the minimum and maximum gray levels of the image in the grid fall into box numbers 3 and 1, respectively. Then the number of boxes covering this block is calculated as follows:
n r = 3 1 + 1 = 3 , as shown in Figure 7 [39].
N r is the number of boxes required to fill the entire image at a proportion r .
N r = i , j n r i , j
Perform the least squares linear fitting estimation on the slope of the curve within the range of log N r - log 1 / r to obtain the FD, namely the fractal dimension [39].
F D = lim r 0 log N r log 1 / r

2.3.2. GLCM

As shown in Figure 8. Firstly, grayscale processing is carried out on the volcanic rock images. Then, the GLCM can be defined as the probability of the occurrence of two pixels with gray values of i and j, whose adjacent distance is d and directions are θ (0°, 45°, 90°, 135°) within the image domain Nx × Ny.
P i , j d , θ = # x 1 , y 1 , x 2 , y 2 N x × N y f x 1 , y 1 = i , f x 2 , y 2 = j
In the formula, #(x) represents the number of elements in set x that satisfy certain conditions. d is the distance between (x1,y1) and (x2,y2), and θ is the included angle between the coordinates of (x1,y1) and (x2,y2), as shown in Figure 9.
The GLCM can extract texture features in four directions (0°, 45°, 90°, 135°). Here, contrast, energy, entropy, variance, and mean sum are listed, and their formulas are as follows [40,41,42]:
  • Contrast W 1 : Contrast is manifested by the difference in brightness of pixel points in image textures. It is related to the gray values and positions of pixels and reflects the amplitude of local grayscale changes in an image.
    W 1 = p i , j i j 2
  • Energy W 2 : Energy, also known as angular second moment, is the sum of the squares of all elements in the gray-level co-occurrence matrix. It can reflect the uniformity of the gray distribution and the coarseness or fineness of the texture in an image.
    W 2 = p i , j 2
  • Entropy W 3 : Entropy represents the amount of information in an image and can characterize the complexity of textures. It reflects the randomness or complexity of textures in an image. The greater the entropy value is, the more complex the texture will be.
    W 3 = p x , j log 10 p i , j
  • Sum of variances W 4 : Among them, m is the mean value of p.
    W 4 = i m 2 p i , j
  • Sum of averages W 5 : The mean value sum is a measure of the average gray value of the pixel points within the image area, reflecting the brightness and darkness of the image and is applicable to grayscale images.
    P X k = p i , j , k = 2 , 3
    W 5 = k × P X k

3. Results

The dataset is divided into a training set, a test set, and a validation set. The training set accounts for 70%, the test set makes up 15%, and the remaining 15% is used for validation. This stratification is based on the distribution of different lithologies in the dataset to ensure that each subset contains a representative proportion of each rock type.
In this paper, the different box-counting dimension and gray-level co-occurrence matrix are utilized to comprehensively discriminate the lithology of volcanic rocks. The process of this discrimination method is illustrated in Figure 10 [43,44].

3.1. DBC Experiment Results

The fractional box-counting dimension of volcanic rocks was calculated using the Fraclab toolbox in Matlab. Nine points were selected within each box, and a least squares linear fitting was performed. The results are shown in Figure 11. The linear equation y = k x + b was obtained, and the absolute value of the slope k of this straight line is the fractional box dimension; that is, |k| = FD.
  • As can be seen from Figure 12, the difference box-counting dimension of volcanic rocks in this area ranges from 1.6 to 1.9. The surface texture of volcanic rocks is relatively complex, and its difference box-counting dimension is between 1 and 2 (the difference box-counting dimension of a straight line is 1, and that of a planar figure is 2).
  • The difference box-counting dimensions of trachyte, diabase, and gabbro are all larger than that of basalt, indicating that the surface structures of trachyte, diabase, and gabbro are more complex than that of basalt. As can be seen from the obtained data, the differential box-counting dimension can, to a certain extent, distinguish basalt and trachyte from the other two types of volcanic rocks. When the fractal dimension ranges of diabase and gabbro overlap (1.76–1.84), the FD-GLCM method is comprehensively utilized to distinguish the lithologies of these three types of volcanic rocks.

3.2. GLCM Experiment Results

In this study, diabase and gabbro samples were selected as the test objects. The gray-level co-occurrence matrices were calculated when d = 1, 2, 3, and 4, respectively. For the distances (d = 1 to d = 4), we chose these values because they can capture texture information at different scales. A smaller distance (d = 1) focuses on the local texture details, while larger distances (up to d = 4) can reveal more global and coarser-scale texture features. Analyze the influence of different values of d on the texture parameter values. To neglect the impact of directional differences and make the characteristic parameter values independent of image rotation, the characteristic parameter values calculated here are taken as the average of the values in four directions: 0°, 45°, 90°, 135°. Generally, contrast, energy (angular second moment), entropy, and variance are used as texture feature parameters. Although the sum of means is not a traditional texture feature parameter, it reflects the overall grayscale characteristics of an image and can serve as an indicator of color shade and intensity. It holds significant importance for enhancing texture expression and classification. In Table 1 and Table 2, W1, W2, W3, W4, and W5 represent contrast, energy, entropy, variance, and mean value, respectively.
As can be seen from Table 1 and Table 2, when the distance between pixel pairs d varies from 1 to 4, the values of W1, W2, W3, W4, and W5 are all affected to a certain extent. W3 shows an upward trend as the value of d increases; while W1, W2, and W4 exhibit a downward trend with the increase in d. Corresponding to the change in d value in the texture characteristics of volcanic rocks, it can be indicated that when d is within the range of 3–5, it represents the periodic change in the volcanic rock texture corresponding to the co-occurrence matrix. Therefore, it is considered that when d = 4, the calculated texture feature parameter values have better representativeness for the texture.
For gabbro and diabase images, when d = 4, their gray-level co-occurrence matrices are calculated and shown in Table 3 and Table 4, respectively.
The contrast W1 mainly reflects the degree of local grayscale differences in the image. Although there are certain differences in mineral grain size between gabbro and diabase, the manifestation of this grain-size difference in the image grayscale contrast is not sufficient to form distinct features that can accurately distinguish the two. The energy W2 is vulnerable to interference from factors such as local noise in the image and small-scale mineral impurities. In actual rock images, these local interfering factors may cause fluctuations in the energy values, thus affecting its reliability as a means to distinguish between gabbro and diabase. Entropy W3 has unique advantages in differentiating between gabbro and diabase. It can better capture the differences between the two types of rocks from the perspectives of texture complexity and randomness. Entropy is sensitive to the uniformity of the grayscale distribution in an image. The differences in the size, shape, and distribution uniformity of mineral grains in gabbro and diabase lead to variations in the grayscale distribution of the images, thus resulting in different entropy values. For example, the texture formed by the interweaving of mineral grains in diabase may result in a relatively non-uniform grayscale distribution, leading to a larger entropy value. In contrast, the equigranular texture of gabbro may make the grayscale distribution more uniform, with a relatively smaller entropy value. This threshold is obtained through calculation and comparison. By comparing the magnitude relationship between the entropy value and the threshold, these two types of rocks can be distinguished to a certain extent.
Evidently, for the images of gabbro and diabase, the lithology of volcanic rocks can be discriminated through a comprehensive analysis of the W3 value. By integrating two different sets of experimental data from the differential box-counting dimension and the gray-level co-occurrence matrix, basalt, trachyte, diabase, and gabbro can be distinguished.

4. Discussion

4.1. Model Evaluation

In this study, accuracy, precision, recall, and F1-score were used as evaluation indicators to conduct a comparative analysis of the results of the random forest model and FD-GLCM. The results are shown in Table 5.
As can be seen from the table, the recognition effects of random forest and FD-GLCM on gabbro and diabase are not very good. The three evaluation indicators, namely precision, recall, and F1-score, are not high, resulting in a relatively large number of misjudgments for this type of lithology. Firstly, the fractal dimension values and the texture features derived from GLCM of a small number of diabase samples are extremely close to those of gabbro. This similarity makes it difficult for our classification method to accurately distinguish between them. In addition, during the sampling and imaging processes, some samples may be affected by local rock heterogeneity or small-scale impurities, which also leads to misjudgments. However, both methods have relatively good identification results for basalt and trachyte. Overall, the identification accuracy of the random forest model is approximately 88%, and that of the FD-GLCM (Feature-Distribution Gray-Level Co-occurrence Matrix, if this is what it stands for; replace it with the accurate full name if otherwise) is approximately 86%.

4.2. Analysis of Application Effect

Take Well H24 in the study area as an example, and compare the prediction results with the lithologic section. In the well section with a depth ranging from 2870 to 2980 m, as shown in Figure 13, the lithological profile of the volcanic rock is basalt and diabase. The interval from 2942 to 2951 m is diabase. The random forest method misclassified diabase as gabbro at 2946 m and 2929 m. The FD-GLCM method misidentified diabase as gabbro at 2942 m and 2945 m. Both of the above-mentioned methods wrongly judged diabase as gabbro. Overall, except for individual thin layers, the prediction results are basically consistent with the lithologic section, indicating a relatively good prediction effect.
In lithology identification, there is an overlapping range in the differential box-counting dimensions of gabbro and diabase. Therefore, the gray-level co-occurrence matrix (GLCM) is further utilized to discriminate the lithology. Due to the fact that the texture features derived from GLCM of some gabbro and diabase are highly similar, misjudgments between gabbro and diabase are likely to occur.

4.3. Computational Complexity of DBC and GLCM Methods

The time complexity of the DBC method is proportional to the image size and the number of scales taken into account, where the main computational cost stems from grid partitioning and grayscale change analysis. The spatial complexity is primarily determined by the image size.
The time complexity of the GLCM method is related to the image size, the number of gray levels, and the number of distances and angles considered and is significantly influenced by the number of gray levels. The spatial complexity is mainly determined by the number of gray levels (for storing the GLCM matrix) but is also related to the image size. In practical applications, it is necessary to select an appropriate method or optimize the algorithm according to the specific image data and computing resources so as to improve the computational efficiency and reduce resource consumption.

4.4. Limitation

Regarding the sensitivity to image resolution, we acknowledge that when the image resolution is low, detailed information in the image will be lost. There will be spatial blurring between pixels, making it impossible to accurately calculate the differential box-counting dimension and affecting the construction of the gray-level co-occurrence matrix. When the image resolution is high, some unnecessary noise will be introduced. This noise can interfere with the calculation of the differential box-counting dimension. The calculation of the gray-level co-occurrence matrix (GLCM) increases significantly, and at high resolutions, the GLCM matrix becomes extremely large. The DBC and GLCM methods have certain limitations when dealing with high-resolution images. In practical applications, appropriate adjustments and optimizations are required according to specific circumstances to ensure the effectiveness and accuracy of these methods.

4.5. Practical Application and Scalability

In practical geological exploration, our method can be integrated into the existing logging and core analysis workflows. For instance, during logging operations, our method can be used to process the acquired images in real time to identify the lithology of volcanic rocks. Subsequently, this information can be utilized to guide subsequent exploration and production decisions, such as determining the location of potential oil-bearing reservoirs. For the discovered oil and gas reservoirs, using this method to conduct a detailed analysis of the lithology of the surrounding volcanic rocks helps to describe the reservoir characteristics more comprehensively. This provides a scientific basis for formulating reservoir exploitation plans and improving the oil and gas recovery rate.
Regarding scalability, we analyzed the computational complexity of our method. Although the current implementation incurs a certain computational cost, we have proposed several strategies for handling larger datasets. For instance, we can utilize parallel computing techniques to accelerate the processing of a large number of images. Additionally, we can adopt distributed computing techniques, distributing data-processing tasks to multiple computing nodes for parallel processing to improve computational efficiency and reduce the overall computing time. For example, by using distributed computing frameworks such as Apache Spark, it is possible to rapidly process large-scale image data and compute features such as the Gray-Level Co-occurrence Matrix (GLCM).

5. Conclusions

(1)
The images of volcanic rocks indicate that the microscopic structures of volcanic rocks are fractal structures with self-similarity, the complexity of which can be described by the magnitude of the fractal dimension. The value of the differential box-counting dimension of volcanic rocks is in direct proportion to the complexity of the rock surface. For rocks with more complex surface textures, the calculated values of the differential box-counting dimension will be larger.
(2)
The differential box-counting dimension of basalt ranges from 1.7 to 1.75, that of trachyte ranges from 1.82 to 1.87, that of gabbro ranges from 1.76 to 1.79, and that of diabase ranges from 1.78 to 1.82. The application of the differential box-counting dimension can distinguish basalt from the other three types of volcanic rocks.
(3)
Since the differential box-counting dimensions of trachyte, diabase, and gabbro overlap to some extent, we further comprehensively utilize the differential box-counting dimension and the gray-level co-occurrence matrix method to distinguish the lithology of volcanic rocks. In terms of the W3 value, it is gabbro when W3 > 14 and diabase when W3 < 14. Compared with the method of identifying volcanic rocks based on a single feature, the method that combines the differential box-counting dimension and the gray-level co-occurrence matrix is more accurate in identifying the lithology of volcanic rocks.

Author Contributions

Conceptualization, S.L.; software, Z.W.; validation, Z.W.; formal analysis, S.L.; investigation, D.M.; re-sources, Z.W.; data curation, S.L.; writing—original draft preparation, S.L. and D.M.; visu-alization, Z.W.; supervision, Z.W.; project administration, D.M.; funding acquisi-tion, D.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Natural Science Foundation of Jilin Province with grant number YDZJ202501ZYTS661, the Education Department of Jilin Province under grant number No. JJKH20250805KJ, Chunhui Project Foundation of the Education Department of China with grant number HZKY20220367 and the Postgraduate Innovation Program Project of Beihua University with grant number 2024039.

Data Availability Statement

The data used in this study are restricted due to privacy and confidentiality agreements with the data providers. Interested researchers can submit a data access request to moudan@beihua.edu.cn.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Zou, C.-N.; Zhao, W.-Z.; Jia, C.-Z.; Zhu, R.-K.; Zhang, G.-Y.; Zhao, X.; Yuan, X.-J. Formation and distribution of volcanic hydrocarbon reservoirs in sedimentary basins of China. Pet. Explor. Dev. 2008, 3, 257–271. [Google Scholar] [CrossRef]
  2. Liu, B.; Zhang, B.; Guo, Q.; Tan, N.; Wang, J.; Chen, X. Discovery and exploration inspiration of deep volcanic gas reservoirs in eastern sag of Liaohe depression. China Pet. Explor. 2020, 25, 33–43. [Google Scholar]
  3. He, H.; Li, S.; Liu, C.; Kong, C.; Jiang, Q.; Chang, T. Characteristics and quantitative evaluation of volcanic effective reservoirs: A case study from Junggar Basin, China. J. Pet. Sci. Eng. 2020, 195, 107723. [Google Scholar] [CrossRef]
  4. Hu, C.; Deng, Q.; Lin, L.; Hu, M.; Hou, X.; Zong, L.; Song, P.; Kane, O.I.; Cai, Q.; Hu, Z. Lower Cretaceous volcanic-sedimentary successions of the continental rift basin in the Songliao Basin, northeast China: Implication in high-quality reservoir prediction and hydrocarbon potential. Mar. Pet. Geol. 2023, 158, 106540. [Google Scholar] [CrossRef]
  5. Fan, C.; Li, H.; Qin, Q.; Shang, L.; Yuan, Y.; Li, Z. Formation Mechanisms and Distribution of Weathered Volcanic Reservoirs: A Case Study of the Carboniferous Volcanic Rocks in Northwest Junggar Basin, China. Energy Sci. Eng. 2020, 8, 8. [Google Scholar] [CrossRef]
  6. Kousehlar, M.; Weisenberger, T.; Tutti, F.; Mirnejad, H. Fluid Control on Low-temperature Mineral Formation in Volcanic Rocks of Kahrizak, Iran. Geofluids 2012, 12, 295–311. [Google Scholar] [CrossRef]
  7. Dong, S.; Wang, Z.; Zeng, L. Lithology identification using Kernel Fisher discriminant analysis with well logs. J. Pet. Sci. Eng. 2016, 143, 95–102. [Google Scholar] [CrossRef]
  8. Xu, T.; Chang, J.; Feng, D.; Lv, W.; Kang, Y.; Liu, H.; Li, J.; Li, Z. Evaluation of active learning algorithms for formation lithology identification. J. Pet. Sci. Eng. 2021, 206, 108999. [Google Scholar] [CrossRef]
  9. Duan, Y.; Xie, J.; Su, Y.; Liang, H.; Hu, X.; Wang, Q.; Pan, Z. Application of the decision three method to lithology identification of volcanic rocks-taking the Mesozoic in the Laizhouwan Sag as an example. Sci. Rep. 2020, 11, 19209. [Google Scholar]
  10. Lyu, Q.; Luo, S.; Guan, Y.; Fu, J.; Niu, X.; Xu, L.; Feng, S.; Li, S. A New Method of Lithologic Identification and Distribution Characteristics of Fine—Grained Sediments: A Case Study in Southwest of Ordos Basin, China. Open Geosci. 2019, 26, 17–28. [Google Scholar] [CrossRef]
  11. Xu, Z.; Shi, H.; Lin, P.; Liu, T. Integrated lithology identification based on images and elemental data from rocks. J. Pet. Sci. Eng. 2021, 205, 108853. [Google Scholar] [CrossRef]
  12. Lai, J.; Fan, X.; Liu, B.; Pang, X.; Zhu, S.; Xie, W.; Wang, G. Qualitative and quantitative prediction of diagenetic facies via well logs. Mar. Pet. Geol. 2020, 120, 104486. [Google Scholar] [CrossRef]
  13. Shehata, A.A.; Osman, O.A.; Nabawy, B.S. Neural network application to petrophysical and lithofacies analysis based on multi-scale data: An integrated study using conventional well log, core and borehole image data. J. Nat. Gas Sci. Eng. 2021, 93, 104015. [Google Scholar] [CrossRef]
  14. Mandelbrot, B.; Passoja, D.; Paullay, A. Fractal character of fracture surfaces of metal. Nature 1984, 308, 721–722. [Google Scholar] [CrossRef]
  15. Pentland, A.P. Fractal-based description of natural scenes. IEEE Trans. Pattern Anal. Mach. Intell. 1984, 6, 661–674. [Google Scholar] [CrossRef]
  16. Peleg, S.; Naor, J.; Hartley, R.; Avnir, D. Multiple resolution texture analysis and classification. IEEE Trans. Pattern Anal. Mach. Intell. 1984, 4, 518–523. [Google Scholar] [CrossRef]
  17. Sarkar, N.; Chaudhuri, B.B. An efficient differential box-counting approach to compute fractal dimension of image. IEEE Trans. Syst. Man Cybern. 1994, 24, 115–120. [Google Scholar] [CrossRef]
  18. Leary Peter, C. Deep borehole log evidence for fractal distribution of fractures in crystalline rock. Geophys. J. Int. 1991, 107, 615. [Google Scholar] [CrossRef]
  19. Jorge, L.; Luis, O.; Jerson, G. Identification of Natural Fractures using Resistive Image Logs, Fractal Dimension and Support Vector Machines. Ing. E Investig. 2016, 36, 125. [Google Scholar]
  20. Peng, R.; Yang, Y.; Ju, Y.; Mao, L.; Yang, Y. Computation of Fractal Dimension of Rock Pores Based on Gray CT Images. Chin. Sci. Bull. 2011, 56, 2256–2266. [Google Scholar] [CrossRef]
  21. Xia, Y.; Cai, J.; Perfect, E.; Wei, W.; Zhang, Q.; Meng, Q. Fractal Dimension, Lacunarity and Succolarity Analyses on CT Images of Reservoir Rocks for Permeability Prediction. J. Hydrol. 2019, 579, 124198. [Google Scholar] [CrossRef]
  22. Haralick, R.M.; Shanmugam, K.; Dinstein, I. Textural features for image classification. IEEE Trans. Syst. Man Cybern. 1973, SMC-3, 610–621. [Google Scholar] [CrossRef]
  23. Haralick, R.M. Statistical and structural approaches to texture. Proc. IEEE 1979, 67, 786–804. [Google Scholar] [CrossRef]
  24. Garg, M.; Dhiman, G. A novel content-based image retrieval approach for classification using GLCM features and texture fused LBP variants. Neural Comput. Appl. 2020, 33, 1311–1328. [Google Scholar] [CrossRef]
  25. Singh, A.; Armstrong, R.T.; Regenauer-Lieb, K.; Mostaghimi, P. Rock characterization using gray-level co-occurrence matrix: An objective perspective of digital rock statistics. Water Resour. Res. 2019, 55, 1912–1927. [Google Scholar] [CrossRef]
  26. Xie, Y.; Wang, J. Study on the identification of the wood surface defects based on texture features. Optik 2015, 126, 2231–2235. [Google Scholar]
  27. Saptarshi, C.; Debangshu, D.; Sugata, M. Integration of morphological preprocessing and fractal based feature extraction with recursive feature elimination for skin lesion types classification. Comput. Methods Programs Biomed. 2019, 178, 201–218. [Google Scholar]
  28. Peng, W.; Hu, G.; Feng, Z.; Liu, D.; Wang, Y.; Lv, Y.; Zhao, R. Origin of Paleogene Natural gases and discussion of abnormal carbon isotopic composition of heavy alkanes in the Liaohe Basin, NE China. Mar. Pet. Geol. 2018, 92, 670–684. [Google Scholar] [CrossRef]
  29. Huang, S.; Feng, Z.; Gu, T.; Gong, D.; Peng, W.; Yuan, M. Multiple origins of the Paleogene natural gases and effects of secondary alteration in Liaohe Basin northeast China: Insights from the molecular and stable isotopic compositions. Int. J. Coal Geol. 2017, 172, 134–148. [Google Scholar] [CrossRef]
  30. Li, S.; Huang, Y.; Feng, Y.; Guo, Y.; Zhang, B.; Wang, P. Cenozoic extension and strike-slip tectonics and fault structures in the eastern sag, Liaohe depression. Chin. J. Geophys.-Chin. Ed. 2020, 63, 612–626. [Google Scholar]
  31. Han, R.; Wang, Z.; Wang, W.; Xu, F.; Qi, X.; Cui, Y.; Zhang, Z. Igneous rocks lithology identification with deep forest: Case study from eastern sag, Liaohe Basin. J. Appl. Geophys. 2023, 208, 104892. [Google Scholar] [CrossRef]
  32. Wang, W.; Lin, C.; Zhang, X. Fractal dimension analysis of pore throat structure in tight sandstone reservoirs of Huagang formation: Jiaxing area of east China sea basin. Fractal Fract. 2024, 8, 374. [Google Scholar] [CrossRef]
  33. Asawari, K.; Aparna, J. Gray-scale image compression technique: A review. Int. J. Comput. Appl. 2015, 131, 22–25. [Google Scholar]
  34. Saha, S.K.; Pradhan, S.; Barai, S.V. Use of machine learning based technique to X-ray microtomographic images of concrete for phase segmentation at meso-scale. Constr. Build. Mater. 2020, 249, 118744. [Google Scholar] [CrossRef]
  35. Sherzer, G.L.; Alghalandis, Y.F.; Peterson, K.; Shah, S. Comparative study of scale effect in concrete fracturing via Lattice Discrete Particle and Finite Discrete Element Models. Eng. Fail. Anal. 2022, 135, 106062. [Google Scholar] [CrossRef]
  36. Gencel, O.; Nodehi, M.; Bozkurt, A.; Sarı, A.; Ozbakkaloglu, T. The use of computerized tomography (CT) and image processing for evaluation of the properties of foam concrete produced with different content of foaming agent and aggregate. Constr. Build. Mater. 2023, 399, 132433. [Google Scholar] [CrossRef]
  37. Yoon, J.; Kim, H.; Sim, S.-H.; Pyo, S. Characterization of porous cementitious materials using microscopic image processing and X-ray CT analysis. Materials 2020, 13, 3105. [Google Scholar] [CrossRef]
  38. Sherzer, G.L.; Alghalandis, Y.F.; Peterson, K. Introducing fracturing through aggregates in LDPM. Eng. Fract. Mech. 2022, 261, 108228. [Google Scholar] [CrossRef]
  39. Li, J.; Du, Q.; Sun, C. An improved box-counting method for image fractal dimension estimation. Pattern Recognit. 2009, 42, 2460–2469. [Google Scholar] [CrossRef]
  40. Chinmaya, P.; Ayan, S.; Nihar, K.M.; Debotosh, B. Differential box counting methods for estimating fractal dimension of gray-scale images: A survey. Chaos Solitons Fractals 2019, 126, 178–202. [Google Scholar]
  41. Cristina, M.; Laura, F.; Riccardo, G.; Ernestina, C.; Riccardo, R. Glcm, an image analysis technique for early detection of biofilm. J. Eng. 2016, 185, 48–55. [Google Scholar]
  42. Gabriel, R.G.; Gabriel, P.; Alejandro, P.; Alejandro, C.; Cristina, W.; Samanta, S.S.; Emilia, L.; Nieves, P. Assessment of multi-data sentinel-1 polarizations and GLCM texture features capacity for onion and sunflower classification in an irrigated valley: An object level approach. Agronomy 2020, 10, 845. [Google Scholar]
  43. Paladugu, R.; Veera, M.R.; Bhima, P.R. Optimal GLCM combined FCM segmentation algorithm for detection of kidney cysts and tumor. Multimed. Tools Appl. 2019, 78, 18419–18441. [Google Scholar]
  44. Redouan, K.; Sidi, M.F.; Abderrahmane, S.; Rajaa, T.; Mustapha, T. A combined method of fractal and GLCM features for MRI and CT scan images classification. Signal Image Process. 2014, 5, 4. [Google Scholar]
Figure 1. (a) The location of the Liaohe Basin; (b) four types of volcanic rocks studied.
Figure 1. (a) The location of the Liaohe Basin; (b) four types of volcanic rocks studied.
Fractalfract 09 00099 g001
Figure 2. Basalt image gray release processing: (a) microscopic image, (b) maximum method gray image, (c) average method gray image, (d) weighted average method gray image.
Figure 2. Basalt image gray release processing: (a) microscopic image, (b) maximum method gray image, (c) average method gray image, (d) weighted average method gray image.
Fractalfract 09 00099 g002
Figure 3. Gaussian filter image.
Figure 3. Gaussian filter image.
Fractalfract 09 00099 g003
Figure 4. Median filter image.
Figure 4. Median filter image.
Fractalfract 09 00099 g004
Figure 5. Basalt image preprocessing: (a) microscopic image, (b) gray image, (c) binary image.
Figure 5. Basalt image preprocessing: (a) microscopic image, (b) gray image, (c) binary image.
Fractalfract 09 00099 g005
Figure 6. DBC Flowchart.
Figure 6. DBC Flowchart.
Fractalfract 09 00099 g006
Figure 7. Sketch of determination of the number of boxes by the DBC method.
Figure 7. Sketch of determination of the number of boxes by the DBC method.
Fractalfract 09 00099 g007
Figure 8. GLCM flowchart.
Figure 8. GLCM flowchart.
Fractalfract 09 00099 g008
Figure 9. GLCM sketch map of space position.
Figure 9. GLCM sketch map of space position.
Fractalfract 09 00099 g009
Figure 10. Flowchart for comprehensively discriminating volcanic lithology based on differential box-counting dimension and gray-level co-occurrence matrix.
Figure 10. Flowchart for comprehensively discriminating volcanic lithology based on differential box-counting dimension and gray-level co-occurrence matrix.
Fractalfract 09 00099 g010
Figure 11. Plot the relationship between ln(N) and ln(1/n) for volcanic rock images using the DBC dimension method. (a) Fractal dimension of the basalt image, in Well D15–2106 m. (b) Fractal dimension of the trachyte image, in Well O20–2260 m. (c) Fractal dimension of the gabbro image, in Well J28–1332 m. (d) Fractal dimension of the diabase image, in Well H28–1135 m.
Figure 11. Plot the relationship between ln(N) and ln(1/n) for volcanic rock images using the DBC dimension method. (a) Fractal dimension of the basalt image, in Well D15–2106 m. (b) Fractal dimension of the trachyte image, in Well O20–2260 m. (c) Fractal dimension of the gabbro image, in Well J28–1332 m. (d) Fractal dimension of the diabase image, in Well H28–1135 m.
Fractalfract 09 00099 g011
Figure 12. Range of fractal dimension of four kinds of volcanic rocks.
Figure 12. Range of fractal dimension of four kinds of volcanic rocks.
Fractalfract 09 00099 g012
Figure 13. H24well, depth 2850–2950 m predict the lithology results of volcanic rocks.
Figure 13. H24well, depth 2850–2950 m predict the lithology results of volcanic rocks.
Fractalfract 09 00099 g013
Table 1. Analysis of gabbro samples.
Table 1. Analysis of gabbro samples.
dW1W2 (1 × 10−4)W3W4W5
d = 118,575.2884.11513.231123.1623406.308
d = 218,550.1213.27913.615123.0613406.229
d = 318,526.2463.00613.759122.9653405.892
d = 418,505.1052.82113.847122.8713405.526
Table 2. Analysis of diabase samples.
Table 2. Analysis of diabase samples.
dW1W2 (1 × 10−4)W3W4W5
d = 132,059.1462.46113.657169.2193423.735
d = 232,035.0651.89213.962169.1443425.269
d = 332,014.5941.78714.057169.0783427.228
d = 431,994.2951.70214.119169.0133428.788
Table 3. Gray-level co-occurrence matrix of gabbro images.
Table 3. Gray-level co-occurrence matrix of gabbro images.
SampleW1W2 (1 × 10−4)W3W4W5
118,597.3764.95913.0923406.319123.252
221,326.2655.11812.8732851.409135.922
318,911.3281.21213.9482696.592127.337
418,453.3011.55313.6122978.959124.396
517,703.9116.29112.7734230.387116.075
613,253.3031.70613.7783667.94997.905
723,534.5874.49912.6182156.852146.211
827,924.7939.42411.7611865.669161.428
918,904.2926.84912.3614359.485120.601
1025,812.2564.46712.9252061.523154.114
Table 4. Gray-level co-occurrence matrix of diabase images.
Table 4. Gray-level co-occurrence matrix of diabase images.
SampleW1W2 (1 × 10−4)W3W4W5
132,045.4862.86513.6273424.492169.1774
229,986.9440.82714.2092795.745164.898
320,582.4790.94913.8362206.793135.557
419,231.5181.11913.6011848.355131.845
526,672.4791.58614.1884477.683148.979
625,713.9863.13813.6342599.351152.035
722,705.3551.15813.6532586.818141.8398
820,343.6341.84913.5091571.144137.013
919,205.0516.5512.6341972.271131.274
1022,749.6155.8712.0835925.378132.083
Table 5. Comparison of lithology identification results between the random forest model and FD-GLCM method.
Table 5. Comparison of lithology identification results between the random forest model and FD-GLCM method.
LithologyRandom Forest ModelFD-GLCM
Precision/1Recall/1F1Precision/1Recall/1F1
Basalt0.810.910.850.910.920.915
Trachyte0.870.920.8940.880.900.89
Gabbro0.820.670.7380.670.670.67
Diabase0.760.670.7120.870.780.823
Accuracy/10.880.86
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

Li, S.; Wang, Z.; Mou, D. Fractal Analysis of Volcanic Rock Image Based on Difference Box-Counting Dimension and Gray-Level Co-Occurrence Matrix: A Case Study in the Liaohe Basin, China. Fractal Fract. 2025, 9, 99. https://doi.org/10.3390/fractalfract9020099

AMA Style

Li S, Wang Z, Mou D. Fractal Analysis of Volcanic Rock Image Based on Difference Box-Counting Dimension and Gray-Level Co-Occurrence Matrix: A Case Study in the Liaohe Basin, China. Fractal and Fractional. 2025; 9(2):99. https://doi.org/10.3390/fractalfract9020099

Chicago/Turabian Style

Li, Sijia, Zhuwen Wang, and Dan Mou. 2025. "Fractal Analysis of Volcanic Rock Image Based on Difference Box-Counting Dimension and Gray-Level Co-Occurrence Matrix: A Case Study in the Liaohe Basin, China" Fractal and Fractional 9, no. 2: 99. https://doi.org/10.3390/fractalfract9020099

APA Style

Li, S., Wang, Z., & Mou, D. (2025). Fractal Analysis of Volcanic Rock Image Based on Difference Box-Counting Dimension and Gray-Level Co-Occurrence Matrix: A Case Study in the Liaohe Basin, China. Fractal and Fractional, 9(2), 99. https://doi.org/10.3390/fractalfract9020099

Article Metrics

Back to TopTop