An intelligent identification method for feldspar minerals based on multi-polarized rock thin sections
By combining multiple statistics of the grayscale symbiosis matrix and multi-angle orthogonal polarization information to form high-dimensional features, the problem of insufficient identification in the prior art is solved, and a more refined classification and quantitative analysis of feldspar minerals is achieved.
Patent Information
- Application Number
- CN202210480410.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-05
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-05-05
AI Technical Summary
The prior art failed to effectively utilize multi-angle orthogonal polarization information in rock sheet image analysis, ignored the statistics of double crystal features, and it was difficult to carefully identify feldspar components, and the image sample view threshold and few components, resulting in recognition results. Not fine and quantitative enough.
The weighting method combines the four statistics (contrast, entropy, correlation, energy) of the grayscale symbiosis matrix of the image, and the double-crystal features of the single-polarized and multi-angle orthogonal polarized rock sheet images are formed by splicing the double-crystal characteristics of the single-polarized and multi-angle orthogonal polarized rock sheet images of the same particle sample to form a high Dimensional channel characteristics and subclassification of feldspar minerals using K-means clustering method.
Through weighted processing and high-dimensional feature splicing, better feldspar mineral classification effect is achieved, the fineness and quantitativeness of identification are improved, and the types of plagiarite, microplagiarite, orthofeldspar, etc. can be better distinguished.
Smart Images

Figure CN114972799B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of feldspar mineral identification, and more specifically to a feldspar mineral intelligent identification method based on multi-polarized rock slices. Background Art
[0002] The analysis of rock thin section images is the basis for identifying the microstructure of reservoir rocks. Under a polarizing microscope, rock thin sections will show different characteristics at different orthogonal polarization angles, which can not only help us understand the composition, properties and structure of reservoir rocks, but also have very important significance and practical value for the study of strata and sedimentary environment of oil and gas basins.
[0003] Traditionally, rock thin section images are identified manually under a microscope, which is time-consuming, labor-intensive, and subject to significant subjective influences. The analysis results are also difficult to quantitatively represent, and the identification process requires guidance from professionals. In addition, with the development of image stitching technology, it has become difficult to conduct detailed and quantitative analysis of the huge amount of data in full-size rock images manually.
[0004] At this time, analyzing rock images through image processing technology will show great development potential in the future. The interference color of feldspar mineral is primary grayish white, and the interference color of quartz mineral is primary yellowish white to grayish white. Therefore, the differences in cognitive levels of different people make it easy for manual identification of the two interference colors to confuse each other.
[0005] At present, the existing intelligent identification of rock thin sections is only based on the identification of quartz and feldspar, and there is no more detailed intelligent identification method for plagioclase, orthoclase, microcline, and striped feldspar. Different types of feldspar minerals have various twin types and extinction angles. Through image processing technology, the interference color, extinction angle, shape, and size of feldspar can be directly obtained, and quantitative characterization can be achieved using intelligent identification technology. In addition, any type of feldspar mineral can be analyzed separately and in detail to extract the characteristics and laws such as twins and interference colors, which makes it convenient for geologists to conduct in-depth analysis and research on finer types of feldspar. Therefore, this technology will be able to further advance geological research in the direction of big data and automation in the future.
[0006] In "Cluster Analysis Based on Rock Image Features", Fan Pengzhao used the contrast of the grayscale co-occurrence matrix as the twin crystal feature of the single polarized image, and used it together with the color feature of the image to form a high-dimensional feature, and used the FCM clustering method to classify rock slices. This study has the following problems:
[0007] First, the data used is single-polarized rock image information, without combining multi-angle orthogonal polarization information.
[0008] Second, the various statistics of the twin-crystal feature are not comprehensively utilized. The twin-crystal feature only utilizes the contrast statistics of the gray-level co-occurrence matrix and ignores other statistics.
[0009] Third, the prior art does not identify and classify the feldspar components in the rock image in a more detailed manner (feldspar: plagioclase, microcline, orthoclase, striped feldspar).
[0010] Fourthly, the rock casting thin section image sample used in the prior art 1 has a small visual threshold and contains few components.
[0011] In Chinese patent CN 202110627104.5, a rock classification method based on deep learning of rock thin section microscopic images is disclosed. The patent performs data enhancement on the collected rock thin sections and inputs them into the deep learning model of ResNet for classification model training. Using this model, a good classification effect is achieved. The patent has the following problems:
[0012] This patent only uses single polarization and orthogonal polarization as the input of the classification model, and does not comprehensively consider the information provided by the two image samples within the model. Summary of the invention
[0013] The present invention overcomes the deficiencies in the prior art. The existing cluster analysis research on rock image features and the patents on rock classification methods based on deep learning of rock thin section microscopic images have various problems. A feldspar mineral intelligent identification method based on multi-polarized rock thin sections is provided. The present invention uses a weighted method to fully combine the four statistics of the grayscale co-occurrence matrix of the image. The present invention forms the features of a higher-dimensional channel by splicing the twin crystal features of the single-polarized and multi-angle orthogonal polarized rock thin section images of the same particle sample, thereby achieving better classification effects in the clustering process.
[0014] The purpose of the present invention is achieved through the following technical solutions.
[0015] A feldspar mineral intelligent identification method based on multi-polarized rock thin sections is carried out according to the following steps:
[0016] ⅰ. Input rock thin section images according to rock particle samples:
[0017] Input multiple groups of rock thin section images in groups, each group contains multiple polarized images;
[0018] ii. Obtain single particle image:
[0019] The maximum inter-class variance method is used to segment the rock thin section image to obtain the single particle image;
[0020] ⅲ. Obtain feldspar particle image:
[0021] Using the training model, the particle image in step ii is classified into three categories to obtain the feldspar particle image;
[0022] ⅳ. Obtain twinning characteristics of feldspar grain images:
[0023] Four statistics of the gray-level co-occurrence matrix of feldspar images are extracted, namely contrast, entropy, correlation, and energy;
[0024] ⅴ. Obtain high-dimensional twinning characteristics of feldspar grain samples:
[0025] The statistics of step ⅳ are weighted, and the weighted features of the gray-level co-occurrence matrix of the multi-angle orthogonal polarization images are combined to form a high-dimensional twin crystal feature;
[0026] ⅵ. Feldspar classification results:
[0027] The K-means clustering method is used to cluster the features and obtain the subclass classification results of the feldspar particle images.
[0028] In step i, the rock thin section image includes a single polarization image and an orthogonal polarization image.
[0029] In step ii, a single particle image is obtained. Based on the extinction characteristics of rock particles and the grayscale differences at different locations in the thin-section image, the rock thin-section image is segmented to obtain a single particle image.
[0030] In step iii, the specific process of obtaining the feldspar particle image is as follows:
[0031] Step 1: Use the trained ResNet101 three-classification network to classify the obtained single particle images into quartz, feldspar, and other categories;
[0032] Step 2, obtaining the feldspar particle image by screening.
[0033] In step iv, the specific process of obtaining the twinning characteristics of the feldspar grain image is as follows:
[0034] Step 1: Convert the RGB image of feldspar particles into a grayscale image, divide the region with the current pixel i as the center, and obtain the current region A i , the area window size is k*k, the cells beyond the image range are filled with the average value of the grayscale sum of the remaining cells in the window, and then the current area A is calculated. i The gray level co-occurrence matrix, the gray level co-occurrence matrix formula can be expressed as:
[0035] p(i,jd,θ)={(x,y)f(x,y)=i,f(x+dcosθ,y+dsinθ)=j;x,y=0,1,2,...,N-1}
[0036] Where p(i, j|d, θ) represents the grayscale co-occurrence matrix of the pixel with grayscale value i and the pixel with grayscale value j separated by distance d and direction θ in the image, f(x, y) represents the grayscale value of the pixel at the xth row and yth column of the image, d is the shift setting value, and θ is the spatial direction angle selected by the grayscale co-occurrence matrix;
[0037] Step 2, calculating the gray level co-occurrence matrix of the feldspar image;
[0038] Step 3, calculate statistics based on the gray-level co-occurrence matrix to quantify the twin characteristics, that is, to obtain the twin characteristics of a single image, wherein the surface of the medium orthoclase is relatively smooth or has precipitation soil on the surface; the surface of the medium plagioclase has extinction stripes or the surface is sericitized; the surface of the medium microcline has lattice twins, and the surface of the medium striped feldspar has fine stripes or rod-shaped stripes.
[0039] In step iv, the contrast Con is calculated as:
[0040]
[0041] The calculation formula of entropy Ent is:
[0042]
[0043] The calculation formula of correlation Corr is:
[0044]
[0045] in,
[0046]
[0047]
[0048]
[0049]
[0050] The calculation formula of energy Asm is:
[0051]
[0052] Where i, j represent the grayscale values of the pixels respectively; p(i, j) = p(i, j|d, θ) represents the grayscale co-occurrence matrix of the pixel with grayscale value i and the pixel with grayscale value j separated by a distance d and in a direction θ in the image; are the means calculated along the rows and columns of the gray-level co-occurrence matrix, δ x , δ y are the row and column standard deviations.
[0053] The contrast, entropy, correlation, and energy of each gray-level co-occurrence matrix in step ⅲ are averaged, and the mean statistics are normalized and weighted to represent the twinning characteristics of the feldspar image with weighted features. The weighted formula is as follows:
[0054]
[0055] X m,n Represents the weighted twin feature of the pixel at the mth row and nth column of the image. Where M and N represent the height and width of the image respectively; Respectively represent the contrast, entropy, correlation, and energy of the normalized pixels in the mth row and nth column. The normalization method uses the maximum-minimum normalization method, so that the importance of each statistic is the same in the subsequent cluster analysis; a, Represents the weight value. Since contrast reflects the depth and clarity of the grooves of twin crystals, it is more important in the rock classification process, so the weight coefficient a is set to 0.7.
[0056] In step V, the specific process of obtaining the high-dimensional twinning characteristics of the feldspar grain sample is as follows:
[0057] Step 1, represents the high-dimensional twinning eigenvector of the i-th group;
[0058] Step 2: On this basis, obtain a high-dimensional twin feature vector dataset X of n groups of feldspar particle images:
[0059] X={x 1 , x 2 ,...x n}.
[0060] In step ⅵ, the specific process of feldspar classification results is as follows:
[0061] Step 1, randomly select a high-dimensional twin feature vector of a feldspar grain image as the initial clustering center c1;
[0062] Step 2: Calculate the shortest distance between each high-dimensional twin feature vector and the current cluster center. The distance measurement standard here uses the Euclidean distance, that is: For sample x i With cluster center c j , t is the number of currently selected cluster centers and the probability of each vector sample being selected as the next cluster center is calculated. The sample point corresponding to the maximum probability value is selected as the next cluster center. The formula is as follows:
[0063]
[0064] Among them, c t+1 , x i∈X, It is the sum of the squares of the shortest distances between all rock thin section samples and the current cluster center;
[0065] Step 3, repeat step 2 until 4 cluster centers are selected, C = {c1, c2, c3, c4};
[0066] Step 4: Calculate the distance from each sample x in the data set to the four cluster centers and assign it to the class corresponding to the cluster center with the smallest distance, that is,
[0067] Step 5: Recalculate the cluster centers of the four categories respectively That is, the centroid of all samples belonging to this category;
[0068] Step 6, repeat steps 4-5 until the cluster center no longer changes, and finally obtain the classification result of the feldspar image.
[0069] The beneficial effects of the present invention are as follows: the present invention performs normalization processing on energy, entropy, contrast, and correlation. The statistical quantities of energy, entropy, contrast, and correlation have different orders of magnitude. In order to make their importance in the subsequent processing process equal, a maximum-minimum normalization method is adopted;
[0070] The present invention uses a weighted method to fully combine the four statistics of the gray-level co-occurrence matrix of the image, and the contrast can more effectively represent the depth and clarity of the grooves of the twin crystal;
[0071] The present invention forms features of a higher-dimensional channel by splicing twin crystal features of single-polarized and multi-angle orthogonal polarized rock slice images of the same particle sample, thereby achieving better classification effect in the clustering process. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 is a flow chart of the method of the present invention;
[0073] Figure 2 is a flow chart of twinning characteristics of feldspar grain images of the present invention;
[0074] Figure 3 It is a schematic diagram of the geometric expression of the gray level co-occurrence matrix in the present invention;
[0075] Figure 4 It is a schematic diagram of gray level co-occurrence matrix calculation in the present invention;
[0076] Figure 5 It is a flow chart of outputting clustering results in the present invention. DETAILED DESCRIPTION
[0077] The technical solution of the present invention is further described below through specific embodiments.
[0078] Embodiment 1
[0079] like Figures 1 to 5 As shown, a feldspar mineral intelligent identification method based on multi-polarized rock slices includes the following steps:
[0080] ⅰ. Input rock thin section images according to rock particle samples
[0081] Input multiple groups of rock thin section images in groups, each group contains multiple polarized images;
[0082] ii. Obtaining a single particle image
[0083] The maximum inter-class variance method is used to segment the rock thin section image to obtain the single particle image;
[0084] ⅲ. Obtain feldspar particle image
[0085] Using the training model, the particle image in step ii is classified into three categories to obtain the feldspar particle image;
[0086] ⅳ. Obtaining twinning characteristics of feldspar grain images
[0087] Four statistics of the gray-level co-occurrence matrix of feldspar images are extracted, namely contrast, entropy, correlation, and energy;
[0088] ⅴ. Obtaining high-dimensional twinning characteristics of feldspar grain samples
[0089] The statistics of step ⅳ are weighted, and the weighted features of the gray-level co-occurrence matrix of the multi-angle orthogonal polarization images are combined to form a high-dimensional twin crystal feature;
[0090] ⅵ. Feldspar classification results
[0091] The K-means clustering method is used to cluster the features and obtain the subclass classification results of the feldspar particle images.
[0092] The rock slice image in step i includes a single polarization image and an orthogonal polarization image.
[0093] In step ii, a single particle image is obtained. Based on the extinction characteristics of rock particles and the grayscale differences at different locations in the thin-section image, the rock thin-section image is segmented to obtain a single particle image.
[0094] Step iii: Get the feldspar particle image. The specific process is as follows:
[0095] First, the trained ResNet101 three-classification network is used to classify the obtained single particle images into quartz, feldspar, and other categories;
[0096] Then, the feldspar particle images are obtained by screening.
[0097] Step iv obtains the twinning characteristics of the feldspar particle image, and the specific process is as follows:
[0098] First, the RGB image of feldspar particles is converted into a grayscale image;
[0099] Then, the gray-level co-occurrence matrix of the feldspar image is calculated;
[0100] Then, statistics are calculated based on the gray-level co-occurrence matrix to quantify the twinning characteristics;
[0101] Finally, the twin crystal features of a single image are obtained.
[0102] Step V obtains the high-dimensional twinning characteristics of the feldspar particle sample, and the specific process is as follows:
[0103] First, the high-dimensional twinning eigenvector of the i-th group is obtained;
[0104] Then, based on this, a high-dimensional twin feature vector dataset of n groups of feldspar particle images is obtained.
[0105] Step ⅵ Feldspar classification results, the specific process is as follows:
[0106] Firstly, a high-dimensional twin feature vector of a feldspar grain image is randomly selected as the initial clustering center;
[0107] Then, the shortest distance between each high-dimensional twin feature vector and the current cluster center is calculated, and the sample point corresponding to the maximum probability value is selected as the next cluster center;
[0108] Then, repeat the above process to select 4 cluster centers;
[0109] Then, the distance from each sample x in the data set to the four cluster centers is calculated, and it is divided into the class corresponding to the cluster center with the smallest distance;
[0110] Afterwards, the cluster centers of the four categories are recalculated respectively;
[0111] Then, repeat the above two steps until the cluster center no longer changes;
[0112] Finally, the classification results of the feldspar image are obtained.
[0113] Preferably, the rock slice image includes 1 single polarization image and 10 orthogonal polarization images at different angles.
[0114] The recognition method of the present invention first obtains feldspar particles in rock thin section images, then uses four statistics based on gray-level co-occurrence matrix to extract twin features of feldspar images and weights them, and then channels the weighted features of the same group of 11 feldspar images to form high-dimensional twin features. Finally, K-means++ is used to cluster and divide the high-dimensional twin feature vector set to achieve the purpose of subdividing feldspar.
[0115] Embodiment 2
[0116] ⅰ. Input rock thin section images according to rock particle samples
[0117] Rock thin section images are input in groups, where each group contains one single polarization image and multiple orthogonal polarization images at different angles of the same rock thin section sample.
[0118] In this embodiment, there is one single polarization image and 10 orthogonal polarization images at different angles, that is, a group of 11 images in total.
[0119] ii. Obtain single particle image
[0120] Based on the extinction characteristics of rock particles, there are differences in grayscale in different places in the thin section image, which is suitable for threshold segmentation algorithm.
[0121] This embodiment selects the maximum between-class variance method (OSTU) to segment the rock thin section image, uses the histogram to calculate the probability of each gray level, and then divides the rock image into two parts: background and target, and calculates the between-class variance for these two parts. The greater the difference between the two gray levels, the greater the between-class variance, and the better the segmentation effect.
[0122] Finally, the value that maximizes the inter-class variance is selected as the threshold τ, which divides the pixels in the image into two categories: greater than τ and less than τ, thereby completing the segmentation of the rock thin section image.
[0123] iii. Obtain feldspar particle image
[0124] Using the trained ResNet101 three-classification network, the network divides the obtained single particle images into quartz, feldspar, and other categories, thereby screening out feldspar particle images.
[0125] iv. Obtain twinning characteristics of feldspar grain images
[0126] First, the RGB image of feldspar particles is converted into a grayscale image.
[0127] Then, the gray-level co-occurrence matrix of the feldspar image is calculated.
[0128] The twin crystals shown in the long grayscale image have a certain grayscale relationship in the image space. Therefore, this embodiment selects a matrix function involving pixel distance and angle: a grayscale co-occurrence matrix, which calculates the grayscale correlation between two pixels separated by a certain distance in the image space.
[0129] As a preferred method, the twinning feature calculation process of a single feldspar grain image is as follows:
[0130] The region is divided with the current pixel i as the center to obtain the current region A i , the area window size is k*k, and in this embodiment, k=16. In order not to lose information, the cells beyond the image range are filled with the average value of the grayscale sum of the remaining cells in the window, and then the current area A is calculated. i The gray level co-occurrence matrix, the gray level co-occurrence matrix formula can be expressed as:
[0131] p(i,j|d,θ)={(x,y)|f(x,y)=i,f(x+dcosθ,y+dsinθ)=j;x,y=0,1,2,...,N-1}
[0132] Among them, p(i, j|d, θ) represents the grayscale co-occurrence matrix of the pixel with grayscale value i and the pixel with grayscale value j separated by distance d and direction θ in the image, f(x, y) represents the grayscale value of the pixel at the xth row and yth column of the image, and d = 1 is set in this method. It can also be simply understood as: what needs to be counted is the number of times f(x+dx, y+dy) = j at the distance (dx+dy).
[0133] In the embodiment application, the spatial direction angle θ selected for calculating the gray level co-occurrence matrix is usually as follows: 0°, 45°, 90°, 135°. When θ=0°, the pixel pairs are horizontally adjacent; when θ=45°, the pixel pairs are diagonally opposite to the left; when θ=90°, the pixel pairs are vertically adjacent; when θ=135°, the pixel pairs are diagonally opposite to the right.
[0134] The direction is bidirectional, for example, 0° includes 180°, and 45° includes 225°.
[0135] Taking a 4*4 matrix area as an example, calculate the gray level co-occurrence matrix of the area.
[0136] First, create an empty matrix of size 4*4, set d=1, θ=0°. Traverse the 4*4 matrix area, the number of times the first grayscale pair (0, 0) appears (d=1, θ=0°)=4; the number of times the second grayscale pair (0, 1) appears (d=1, θ=0°)=2; until the matrix is traversed to obtain the first grayscale co-occurrence matrix. Similarly, when θ=45°, θ=90°, θ=135°, the grayscale co-occurrence matrix is calculated.
[0137] Then, some statistics are calculated based on the gray-level co-occurrence matrix to quantify the twinning characteristics. The characteristics of the four types of feldspar under orthogonal polarization are observed. The surface of medium orthoclase is relatively smooth, or there are precipitation soils on the surface; medium plagioclase has extinction stripes, or the surface is sericited; medium microcline has lattice twins; medium striped feldspar has fine stripes or rod-shaped stripes on the surface.
[0138] Taking into account the characteristics of various feldspars, the statistical quantities: contrast, entropy, correlation, and energy are selected to measure the depth of the grooves, the complexity of the image and the stripes, the speed of stripe changes, and the uniformity of the stripes.
[0139] In the following formula, p(i, j) is used instead of p(i, j|d, θ)
[0140] Contrast: It measures how the image matrix values are distributed, the degree of local changes in the image, and reflects the clarity of the image and the depth of the twin grooves. The deeper the twin grooves, the greater the contrast, and vice versa. The calculation formula is as follows,
[0141]
[0142] Entropy: It measures the randomness of the information contained in the image. Its value indicates the complexity of the grayscale distribution of the image. The larger the entropy value, the more complex the image. The calculation formula is as follows:
[0143]
[0144] Correlation: reflects the consistency of image twins. It measures the similarity of spatial grayscale co-occurrence matrix elements in the row or column direction. Therefore, the correlation value reflects the local grayscale correlation in the image. When the matrix element values are uniformly equal, the correlation value is large; on the contrary, if the matrix pixel values differ greatly, the correlation value is small. The calculation formula is as follows:
[0145]
[0146] in,
[0147]
[0148]
[0149]
[0150]
[0151] Energy: It measures the uniformity of the twin crystals and also reflects the roughness of the twin crystals. The rougher the twin crystals, the higher the energy value. The calculation formula is as follows:
[0152]
[0153] Then, obtain the twin crystal features of a single image
[0154] Calculate the contrast, entropy, correlation, and energy of the four gray-level co-occurrence matrices, calculate the average of the obtained 4 contrasts, 4 entropies, 4 correlations, and 4 entropies, normalize the mean statistics, and weight them to represent the twinning characteristics of the feldspar image with weighted features. The weighted formula is as follows:
[0155]
[0156] X m,n Represents the weighted twin feature of the pixel at the mth row and nth column of the image. Where M and N represent the height and width of the image respectively; Respectively represent the contrast, entropy, correlation, and energy of the normalized pixels in the mth row and nth column. The normalization method uses the maximum-minimum normalization method, so that the importance of each statistic is the same in the subsequent cluster analysis; a, Represents the weight value. Since contrast reflects the depth and clarity of the grooves of twin crystals, it is more important in the rock classification process, so the weight coefficient a is set to 0.7.
[0157] ⅴ. Obtaining high-dimensional twinning characteristics of feldspar grain samples
[0158] The weighted twin features of the same group of feldspar grain images are channel-joined to obtain a high-dimensional twin feature vector, namely: represents the high-dimensional twin feature vector of the i-th group. Thus, we get the high-dimensional twin feature vector dataset X of n groups of feldspar grain images:
[0159] X={x 1 , x 2 ,...x n}
[0160] ⅵ. Feldspar classification results
[0161] Use k-means++ algorithm to get the feature vector set X = {x 1 , x 2 ,...x n} to perform clustering and obtain the feldspar image classification results, specifically:
[0162] 1. Randomly select a high-dimensional twin feature vector of a feldspar particle image as the initial clustering center c1.
[0163] 2. Calculate the shortest distance between each high-dimensional twin feature vector and the current cluster center. The distance measurement standard here uses the Euclidean distance, that is: For sample x iWith cluster center c j , t is the number of currently selected cluster centers and the probability of each vector sample being selected as the next cluster center is calculated. The sample point corresponding to the maximum probability value is selected as the next cluster center. The formula is as follows:
[0164]
[0165] where c t+1 , x i ∈X, It is the sum of the squares of the shortest distances between all rock thin section samples and the current cluster center.
[0166] 3. Repeat step 2 until 4 cluster centers are selected, C = {c1, c2, c3, c4}.
[0167] 4. Calculate the distance from each sample x in the data set to the four cluster centers and divide it into the class corresponding to the cluster center with the smallest distance, that is,
[0168] 5. Recalculate the cluster centers of the four categories separately That is, the centroid of all samples belonging to this category.
[0169] 6. Repeat steps 4-5 until the cluster center no longer changes, and finally obtain the classification result of the feldspar image.
[0170] The present invention performs normalization processing on energy, entropy, contrast and correlation. The statistical quantities of energy, entropy, contrast and correlation have different orders of magnitude. In order to make their importance in subsequent processing equal, a maximum-minimum normalization method is adopted.
[0171] The present invention uses a weighted method to fully combine the four statistics of the grayscale co-occurrence matrix of the image, and the contrast can more effectively represent the depth and clarity of the grooves of the twin crystal.
[0172] The present invention forms features of a higher-dimensional channel by splicing twin crystal features of single-polarized and multi-angle orthogonal polarized rock slice images of the same particle sample, thereby achieving better classification effect in the clustering process.
[0173] The present invention is described above by way of example. It should be noted that, without departing from the core of the present invention, any simple deformation, modification or other equivalent replacement that can be made by those skilled in the art without inventive effort falls within the protection scope of the present invention.
Claims
1. A feldspar mineral intelligent identification method based on multi-polarized rock slices, characterized by: Follow the steps below: ⅰ. Input rock thin section images according to rock particle samples: Input multiple groups of rock thin section images in groups, each group contains multiple polarized images; In step i, the rock thin section image includes a single polarization image and an orthogonal polarization image; ii. Obtain single particle image: The maximum inter-class variance method is used to segment the rock thin section image to obtain the single particle image; In step ii, a single particle image is obtained. Based on the extinction characteristics of rock particles and the grayscale differences at various locations in the thin-section image, the rock thin-section image is segmented to obtain a single particle image. ⅲ. Obtain feldspar particle image: Using the training model, the particle image in step ii is classified into three categories to obtain the feldspar particle image; In step iii, the specific process of obtaining the feldspar particle image is as follows: Step 1: Use the trained ResNet101 three-classification network to classify the obtained single particle images into quartz, feldspar, and other categories; Step 2, obtaining feldspar particle images by screening; ⅳ. Obtain twinning characteristics of feldspar grain images: Four statistics of the gray-level co-occurrence matrix of feldspar images are extracted, namely contrast, entropy, correlation, and energy; In step iv, the specific process of obtaining the twinning characteristics of the feldspar particle image is as follows: Step 1: Convert the RGB image of feldspar particles into a grayscale image, divide the region with the current pixel i as the center, and obtain the current region A i , the area window size is k*k, the cells beyond the image range are filled with the average value of the grayscale sum of the remaining cells in the window, and then the current area A is calculated. i The gray level co-occurrence matrix, the gray level co-occurrence matrix formula can be expressed as: p(i,j|d,θ)={(x,y)|f(x,y)=i,f(x+dcosθ,y+dsinθ)=j;x,y=0,1,2,...,N-1} Where p(i, j|d, θ) represents the grayscale co-occurrence matrix of the pixel with grayscale value i and the pixel with grayscale value j separated by distance d and direction θ in the image, f(x, y) represents the grayscale value of the pixel at the xth row and yth column of the image, d is the shift setting value, and θ is the spatial direction angle selected by the grayscale co-occurrence matrix; Step 2, calculating the gray level co-occurrence matrix of the feldspar image; Step 3, calculating statistics based on the gray-level co-occurrence matrix to quantify the twinning characteristics, that is, obtaining the twinning characteristics of a single image, wherein the surface of the medium orthoclase is relatively smooth or has precipitation soil on the surface; the surface of the medium plagioclase has extinction stripes or surface sericitization; the surface of the medium microcline has lattice twinning, and the surface of the medium striped feldspar has fine stripes or rod-shaped stripes; In step iv, the calculation formula of contrast Con is: The calculation formula for entropy Ent is: The calculation formula of correlation Corr is: in, The calculation formula of energy Asm is: Where i, j represent the grayscale values of the pixels respectively; p(i, j) = p(i, j|d, θ) represents the grayscale co-occurrence matrix of the pixel with grayscale value i and the pixel with grayscale value j separated by a distance d and in a direction θ in the image; are the means calculated along the rows and columns of the gray-level co-occurrence matrix, δ x ,δ y is the standard deviation of the rows and columns; The contrast, entropy, correlation and energy of each gray-level co-occurrence matrix in step iv are averaged respectively, and the mean statistics are normalized and weighted to represent the twinning characteristics of the feldspar image with weighted features. The weighted formula is as follows: X m,n represents the weighted twin feature of the pixel at the mth row and nth column of the image, where M and N represent the height and width of the image, respectively; Respectively represent the contrast, entropy, correlation, and energy of the normalized pixels in the mth row and nth column. The normalization method uses the maximum-minimum normalization method, and the contrast weight coefficient a=0.7; ⅴ. Obtain high-dimensional twinning characteristics of feldspar grain samples: The statistics of step ⅳ are weighted, and the weighted features of the gray-level co-occurrence matrix of the multi-angle orthogonal polarization images are combined to form a high-dimensional twin crystal feature; In step V, the specific process of obtaining the high-dimensional twinning characteristics of the feldspar grain sample is as follows: Step 1, represents the high-dimensional twinning eigenvector of the i-th group; Step 2: On this basis, obtain a high-dimensional twin feature vector dataset X of n groups of feldspar particle images: X={x 1 ,x 2 ,...x n }; ⅵ. Feldspar classification results: The K-means clustering method is used to cluster the features and obtain the subclass classification results of the feldspar particle images; In step ⅵ, the specific process of feldspar classification results is as follows: Step 1, randomly select a high-dimensional twin feature vector of a feldspar grain image as the initial clustering center c1; Step 2: Calculate the shortest distance between each high-dimensional twin feature vector and the current cluster center. The distance measurement standard here uses the Euclidean distance, that is: For sample x i With cluster center c j , t is the number of currently selected cluster centers and the probability of each vector sample being selected as the next cluster center is calculated. The sample point corresponding to the maximum probability value is selected as the next cluster center. The formula is as follows: Among them, c t+1 , x i ∈X, It is the sum of the squares of the shortest distances between all rock thin section samples and the current cluster center; Step 3, repeat step 2 until 4 cluster centers are selected, C = {c1, c2, c3, c4}; Step 4: Calculate the distance from each sample x in the data set to the four cluster centers and assign it to the class corresponding to the cluster center with the smallest distance, that is, x i ∈c k , Step 5: Recalculate the cluster centers of the four categories respectively That is, the centroid of all samples belonging to this category; Step 6, repeat steps 4-5 until the cluster center no longer changes, and finally obtain the classification result of the feldspar image.
Citation Information
Patent Citations
Automatic recognition method for rock particles in sandstone microsection
CN106485223A
Lithology identification method under microscope based on convolutional neural network
CN111563445A
Rock slice microscopic image deep learning-based rock classification method
CN113222071A
Heterogeneous rock digital rock core modeling method based on K-means clustering algorithm
CN113515847A
Method and system to analyze geologic formation properties
US20200225177A1
