Rock acoustic emission signal classification method, system, and apparatus based on confusion matrix
By employing a two-stage classification method based on a confusion matrix and adaptive optimization techniques, the problems of noise interference and low classification accuracy in rock acoustic emission signal processing are solved, achieving high-precision rock brittleness identification and engineering safety assessment.
Patent Information
- Application Number
- CN202611633226.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies for processing acoustic emission signals from rocks suffer from severe noise interference, low classification accuracy, and difficulty in adapting to multi-class signals and small sample scenarios. Traditional methods are sensitive to noise and have weak generalization ability, making it impossible to effectively identify acoustic emission signals from different brittle rocks.
A two-stage classification method based on the confusion matrix is adopted. Through variational mode decomposition and adaptive optimization of support vector machine, combined with feature extraction and dimensionality reduction, a two-stage classification is performed for highly confused categories. The confusion matrix is constructed and features are selected and the model is optimized.
It significantly improves the classification accuracy of rock acoustic emission signals, especially the ability to identify highly confusing categories, and enhances the resistance to noise interference and generalization ability, making it suitable for rock fracture monitoring and engineering safety assessment.
Smart Images

Figure CN123158348A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of rock acoustic emission signal processing technology, specifically relating to a rock acoustic emission signal classification method, system, and apparatus based on a confusion matrix. Background Technology
[0002] Rocks are the main carriers of geotechnical engineering projects such as water conservancy, mining, and tunnels. Rock brittleness is the core parameter characterizing its mechanical properties, crack propagation laws, and energy release characteristics. Under external force loading, the process of internal microcrack initiation, propagation, and penetration will release elastic waves, namely acoustic emission (AE) signals. Rocks with different brittleness levels have significant differences in acoustic emission signals in terms of amplitude, time-domain waveform, frequency-domain distribution, and energy characteristics. Therefore, rock brittleness can be determined by identifying acoustic emission signals.
[0003] In practical engineering monitoring and indoor testing scenarios, acoustic emission signals are highly susceptible to electrical noise interference. Furthermore, acoustic emission signals from different brittle rocks exhibit severe feature overlap. Traditional signal processing and classification methods have significant shortcomings: Empirical Mode Decomposition (EMD) and Ensemble Empirical Mode Decomposition (EEMD) are prone to mode aliasing and poor noise resistance; Variational Mode Decomposition (VMD) relies heavily on human experience in parameter selection and cannot adapt to multiple categories of acoustic emission signals; Classification models such as K-nearest neighbors, random forests, and convolutional neural networks are sensitive to noise and have weak generalization ability in small sample scenarios; Single support vector machine models fail to achieve coordinated optimization of feature extraction, feature selection, and classifier parameters, and cannot specifically handle highly confused samples between classes, ultimately resulting in low overall classification accuracy, which is insufficient to meet the actual needs of rock fracture monitoring and engineering safety assessment. Summary of the Invention
[0004] The purpose of this invention is to provide a method, system, and apparatus for classifying rock acoustic emission signals based on a confusion matrix.
[0005] A rock acoustic emission signal classification method based on confusion matrix includes the following steps: S1. Obtain rock samples with different brittleness levels, collect the original acoustic emission signals of the rock samples during uniaxial compression, and divide them into training set and test set; S2. Set the search range for the parameter combination of variational mode decomposition, and search for the optimal parameter combination within the search range with the goal of minimizing the cross-validation error rate; decompose the training set using the optimal parameter combination to obtain several intrinsic mode components; extract features from each intrinsic mode component and concatenate them into a fusion feature set; S3. Set the search range for the hyperparameter combination of the support vector machine, and search for the optimal hyperparameter combination with the goal of minimizing the fitness function on the fused feature set; construct multiple binary classifiers for the preset categories based on the optimal hyperparameter combination, perform one-stage classification on the fused feature set, and construct a confusion matrix; S4. Based on the confusion matrix, calculate the bidirectional confusion index of each pair of all categories. Define the two categories with the largest bidirectional confusion index as high confusion category pairs. If the bidirectional confusion index pairs of high confusion categories are greater than the confusion threshold and meet the conditions for traffic splitting, then execute S5. S5. Extract the original acoustic emission signals of highly confused category pairs, replace the training set in S2, and execute S2 again to obtain a multi-domain fusion feature set. Calculate the Fisher score of each feature, sort them in descending order, and selectively remove features to obtain a preferred feature subset. Replace the fusion feature set in S3 with the preferred feature subset, and execute the step of obtaining the optimal hyperparameter combination in S3 to obtain the optimal hyperparameter combination of the preferred feature subset. Use the preferred feature subset and its corresponding optimal hyperparameter combination to construct a binary classification support vector machine model, perform two-stage classification of highly confused categories, integrate the two-stage classification results, and output the final classification result of acoustic emission signals of different brittle rocks.
[0006] In S3, a one-stage classification of the fused feature set is performed. Specifically, the features in the fused feature set are sequentially input into a binary classifier for discrimination. Each binary classifier casts one vote for the determined category. The total number of votes for each category is counted, and the category with the highest number of votes is determined as the category of the original acoustic emission signal corresponding to that feature.
[0007] The specific conditions for splitting the flow in S4 are as follows: if the true category of the original acoustic emission signal does not belong to any of the categories in the high confusion category pair, it is defined as an ordinary sample and the first-stage classification result is directly output. If the true category of the original acoustic emission signal belongs to any one of the highly confusing category pairs, and the first-stage classification result is correct, then it is defined as a normal sample, and the first-stage classification result is directly output. If the true category of the original acoustic emission signal belongs to a highly confusing category pair, and the first-stage classification result is misclassified as another category in the highly confusing category pair, then it is defined as a confused sample, and S5 is executed.
[0008] In S2, features are extracted for each intrinsic mode component and concatenated into a fusion feature set. Specifically, time-domain features, frequency-domain features, wavelet-domain features, and entropy-domain features are extracted for each intrinsic mode component, and the features extracted from all components are concatenated into a fusion feature set. The fused feature set is normalized and dimensionality is reduced by principal component analysis. Principal components with a cumulative variance contribution rate not lower than a preset threshold are retained to obtain the dimensionality-reduced feature vector, which is used as the new fused feature set.
[0009] In S5, selective removal is performed after sorting in descending order, specifically as follows: Sort the features in descending order according to their Fisher scores, calculate the correlation coefficient between each feature, and when the correlation coefficient between two features is higher than a preset threshold, retain the feature with the higher Fisher score and remove the feature with the lower Fisher score to obtain the preferred feature subset.
[0010] In S1, clay, engineered sand, and quartz sand were used as raw materials to prepare four types of rock samples with quartz contents of 0%, 10%, 30%, and 50%, respectively. The original acoustic emission signals of the four rock samples with different brittleness levels were collected during the uniaxial compression process.
[0011] The specific formula for the cross-validation error rate in S2 is as follows: , Where Fitness is the cross-validation error rate. For classification accuracy.
[0012] The hyperparameter combination of the support vector machine in S3 includes the basis function penalty factor and the kernel function. The radial function is used as the kernel function, and its expression is: ,in, For the output value, and They represent two different features. This is the kernel function.
[0013] A rock acoustic emission signal classification system based on confusion matrix is used to implement a rock acoustic emission signal classification method based on confusion matrix, including: The signal acquisition module acquires rock samples of different brittleness levels, collects the original acoustic emission signals of the rock samples during uniaxial compression, and divides them into training and test sets. The feature extraction module sets the search range for parameter combinations of variational mode decomposition, and searches for the optimal parameter combination within the search range with the goal of minimizing the cross-validation error rate; the optimal parameter combination is used to decompose the training set to obtain several intrinsic mode components; features are extracted from each intrinsic mode component and concatenated into a fusion feature set; The first-stage classification module sets the search range for hyperparameter combinations of the support vector machine and searches for the optimal hyperparameter combination on the fused feature set with the goal of minimizing the fitness function. Based on the optimal hyperparameter combination, it constructs multiple binary classifiers for preset categories, performs first-stage classification on the fused feature set, and constructs a confusion matrix. The bidirectional confusion index calculation module calculates the bidirectional confusion index of all pairs of categories based on the confusion matrix. The two categories with the largest bidirectional confusion index are defined as high confusion category pairs. If the bidirectional confusion index pairs of high confusion categories are greater than the confusion threshold and meet the diversion processing conditions, then two-stage classification is performed. The two-stage classification module extracts the original acoustic emission signals of highly confused category pairs, replaces the training set in the feature extraction module, and performs feature extraction again to obtain a multi-domain fusion feature set. The Fisher score for each feature is calculated, sorted in descending order, and selectively removed to obtain a preferred feature subset. This preferred feature subset replaces the fusion feature set in the first-stage classification module, and the step of obtaining the optimal hyperparameter combination is performed to obtain the optimal hyperparameter combination of the preferred feature subset. A binary classification support vector machine model is constructed using the preferred feature subset and its corresponding optimal hyperparameter combination to perform two-stage classification of highly confused categories. The two-stage classification results are integrated to output the final classification result of acoustic emission signals of different brittle rocks.
[0014] A rock acoustic emission signal classification device based on a confusion matrix includes a processor and a memory, wherein the processor executes a computer program stored in the memory to implement a rock acoustic emission signal classification method based on a confusion matrix.
[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention independently improves the traditional artificial lemming algorithm in multiple dimensions, effectively overcoming the shortcomings of traditional optimization algorithms such as uneven population distribution, easy getting trapped in local optima, and insufficient optimization accuracy. It can automatically complete the collaborative adaptive optimization of variational mode decomposition parameters and support vector machine hyperparameters, completely abandoning the manual trial-and-error parameter matching mode, and ensuring that the signal decomposition and classification model is always in the optimal working state.
[0016] Meanwhile, this invention features a unique two-stage classification architecture driven by a confusion matrix. Addressing the industry pain point that acoustic emission signals of different types of brittle rocks have overlapping features, especially the difficulty in distinguishing highly confused samples, the invention first uses global four-class classification to locate easily misclassified confused category pairs. Then, it builds a dedicated binary classification branch for the confused categories, re-optimizes the decomposition parameters, refines the feature selection, and jointly tunes the classification model to perform targeted enhanced recognition of difficult-to-classify samples.
[0017] Compared to existing methods such as traditional single feature extraction, random forests, and convolutional neural networks, this invention not only significantly improves overall classification accuracy, but also shows particularly significant improvement in classification performance for highly confused categories with high feature similarity and difficulty in identification. This invention exhibits strong resistance to electrical noise interference and demonstrates excellent generalization ability and operational stability under different experimental conditions and data distributions. It can efficiently and accurately identify acoustic emission signals from rocks of different brittleness levels, and can be widely applied in practical engineering scenarios such as dynamic monitoring of rock fractures, early warning of geotechnical engineering disasters, and structural safety assessment. Attached Figure Description
[0018] Figure 1 is a schematic diagram of the convergence curve of the VMD parameter optimization by IALA in an embodiment of the present invention, wherein (a) is a schematic diagram of the relationship between the number of classification iterations in the first stage of the present invention and the cross-validation error rate, and (b) is a schematic diagram of the relationship between the number of classification iterations in the second stage of the present invention and the fitness function. Figure 2 is a schematic diagram of the performance comparison between IALA and the traditional artificial lemming algorithm in the embodiment of the present invention. (a) is a schematic diagram of the relationship between the number of classification iterations in the first stage of the traditional artificial lemming algorithm and the cross-validation error rate, and (b) is a schematic diagram of the relationship between the number of classification iterations in the second stage of the traditional artificial lemming algorithm and the fitness function. Figure 3 This is a visualization distribution diagram of the acoustic emission signals of rocks after a first-stage classification in an embodiment of the present invention; Figure 4 This is a visualization distribution diagram of the acoustic emission signals of rocks after two-stage classification in an embodiment of the present invention; Figure 5 This is a schematic diagram illustrating the classification accuracy in the first stage of an embodiment of the present invention; Figure 6 This is a schematic diagram illustrating the two-stage classification accuracy in an embodiment of the present invention. Detailed Implementation
[0019] To further understand the content of this invention, the invention will be described in detail with reference to the embodiments.
[0020] This invention relates to a method for classifying rock acoustic emission signals based on a confusion matrix, comprising the following steps: S1. Obtain rock samples of different brittleness levels, collect the original acoustic emission signals of the rock samples during uniaxial compression, and divide them into training set and test set.
[0021] Using clay, engineered sand, and quartz sand as raw materials, four types of rock samples with quartz contents of 0%, 10%, 30%, and 50% were prepared. The original acoustic emission signals of the four rock samples with different brittleness levels were collected during the uniaxial compression process.
[0022] Specifically, standard cubic specimens with brittle mineral contents of 0%, 10%, 30%, and 50% were prepared using raw materials such as engineering sand, clay, and quartz sand in different proportions. These specimens were uniformly processed into 50mm×50mm×50mm cubic standard specimens, corresponding to four different brittleness levels. A microcomputer-controlled rock mechanics testing machine was used to conduct uniaxial compression tests at a constant rate of 2mm / min, with a simultaneous acquisition of signals from an acoustic emission detection system and acoustic emission sensors. The acoustic emission system was set with a noise threshold of 15dB, a peak time definition of 50μs, and an impact time definition of 20μs. The acoustic emission time was 0 μs, the impact lock-in time was 300 μs, the preamplifier gain was 40 dB, and acoustic emission signals of rock fracture with different brittle mineral contents were collected using an acoustic emission detection system and a microcomputer-controlled rock stiffness testing instrument. During the experiment, a constant loading rate of 2 mm / min was maintained, and acoustic emission signals were recorded through 4 acquisition channels at a sampling frequency of 1 MHz. The four types of acoustic emission signals were sampled evenly, and 1000 effective samples were selected for each type. They were randomly divided into training set and test set in a 7:3 ratio, with each type containing 700 training samples and 300 test samples.
[0023] S2. Set the search range for the parameter combination of variational mode decomposition, and search for the optimal parameter combination within the search range with the goal of minimizing the cross-validation error rate; decompose the training set using the optimal parameter combination to obtain several intrinsic mode components; extract features from each intrinsic mode component and concatenate them into a fusion feature set.
[0024] This invention is based on the traditional artificial lemming algorithm and has been optimized and improved in many aspects. The specific improvement steps are as follows: Tent chaotic mapping is introduced to complete population initialization. The training set is only used for the subsequent fitness evaluation process. Tent chaotic initialization does not apply to the training samples, but rather to the individuals in the population whose parameters are to be optimized.
[0025] For each individual in the population, a set of candidate solutions with parameter combinations is provided. A chaotic sequence is generated using the Tent chaotic mapping and mapped to the parameter search space to construct the initial population.
[0026] Since the Tent chaotic sequence has good ergodicity and uniform distribution characteristics, it can effectively improve the coverage of the initial population in the parameter space, reduce the individual clustering phenomenon caused by random initialization, and thus enhance the global search capability of the algorithm.
[0027] Improve the uniformity of the initial population distribution and the coverage of the search space; add an elite-guided search strategy and match it with an adaptive weight factor. The elite-guided search strategy refers to sorting the population according to the individual fitness values in each iteration and selecting a number of individuals with the best fitness to form an elite pool.
[0028] During population updates, ordinary individuals not only refer to the current global best individual, but also randomly select individuals from the elite pool as guiding targets. By adjusting the search direction based on the difference information between the current position and the elite individual, the search process takes into account both the group's excellent experience and the global best information.
[0029] This strategy can enhance the directionality of the search, reduce the blindness caused by random search, and improve the convergence speed and optimization accuracy of the algorithm. The elite-guided search strategy selects the top 20% of dominant individuals to build an elite pool by ranking the fitness of the population.
[0030] During population updates, each individual randomly selects an individual from the elite pool as a guiding target, and performs a search in conjunction with information about the current globally optimal individual. To coordinate global exploration with local development, an adaptive weighting factor F is introduced, whose expression is: , Where Iter is the current iteration number and Max_iter is the maximum iteration number. As the iteration progresses, F gradually decreases, so that the algorithm maintains a large search step size in the early stage to enhance the global exploration ability, and gradually shrinks the search range in the later stage to improve the local exploration ability and convergence accuracy, thereby realizing the dynamic adjustment of the search process.
[0031] The dynamic balancing algorithm has the ability to explore the global and mine the local; it incorporates an enhanced Lévy flight mechanism to improve the randomness of optimization. In the traditional artificial lemming algorithm, Lévy flight mainly achieves search space jumps through random long step sizes, but the search direction has strong randomness.
[0032] To improve search efficiency, this invention combines Lévy flight with the information of the current global best individual. By constructing a distance term between the individual and the global best solution, the Lévy flight step size is guided by the advantageous search area while maintaining the random jump characteristics.
[0033] This strategy retains Lévy flight's ability to search long distances and escape local optima, while enhancing search directionality and optimization efficiency, thereby improving the algorithm's global search performance and convergence accuracy. A Logistic chaotic dynamic perturbation strategy is added to help the population escape local optima. After updating the individual position, a random number r is generated. When r is less than the preset perturbation probability of 0.1, a Logistic chaotic perturbation is triggered.
[0034] First, random initial chaotic values are generated, and a chaotic sequence is generated iteratively using a Logistic mapping. Then, the chaotic sequence is mapped to the parameter search space to construct new candidate solutions, and their fitness values are recalculated.
[0035] If the new fitness is better than the original individual, then update the individual's position in the population; otherwise, retain the original solution.
[0036] By performing chaotic reconstruction on some individuals, ergodic search samples can be reintroduced when the population gets stuck in local convergence, thereby enhancing population diversity and search coverage, reducing the risk of premature convergence, and improving global optimization ability. Finally, a greedy selection strategy is used to update the individual positions and constrain the boundaries to ensure the convergence accuracy and operational stability of the algorithm. The fitness values of the candidate solutions generated after the individual updates are calculated and compared with the fitness of the original individuals.
[0037] If the fitness of a candidate solution is better than that of the original individual, the candidate solution is used to replace the original individual; otherwise, the original individual's position is left unchanged, thus forming a greedy selection strategy. The updated individual is then compared with the current global optimum; if its fitness is better, the global optimum is updated.
[0038] Simultaneously, boundary constraints are applied to the updated individuals; when parameters exceed the preset search range, they are mapped to corresponding boundary values. By combining greedy selection with boundary constraints, the fitness of the population is continuously improved, invalid solutions are prevented from entering the population, and the convergence accuracy and operational stability of the algorithm are enhanced.
[0039] The improved Artificial Lemming Algorithm (IALA) was used to evaluate the number of modes K and the quadratic penalty factor in Variational Mode Decomposition (VMD). Adaptive selection is performed. In step S2, global collaborative optimization has been conducted based on acoustic emission signals from four different types of brittle rocks to obtain the optimal parameter combination suitable for the overall classification task of the four signal types. .
[0040] Specifically, the parameter combination optimization process is explained in detail, using the method independently improved by this invention to search for the number of modes K and the quadratic penalty factor. The optimal combination, the adaptive selection rule is: combining the number of VMD modes K and the quadratic penalty factor. The parameters are constructed as variables to be optimized, and the initial population is generated using Tent chaotic mapping, with each individual corresponding to a set of candidate parameters. .
[0041] For each parameter combination in the population, variational mode decomposition is first performed on the training signal to extract features in the time domain, frequency domain, wavelet domain, and entropy domain. After normalization and dimensionality reduction, these features are input into the classification model for cross-validation to obtain the classification accuracy. And calculate the cross-validation error rate: , Where Fitness is the cross-validation error rate. For classification accuracy.
[0042] A smaller cross-validation error rate indicates better classification performance for the current parameter combination. Individuals in the population are ranked according to their cross-validation error rates, and the top 20% of dominant individuals are selected to construct an elite pool. Subsequently, an elite-guided search strategy is employed, randomly selecting elite individuals from the elite pool as the search direction, and updating the parameter combination based on the information of the current globally optimal individual.
[0043] To enhance global search capabilities, an improved Lévy flight mechanism is introduced during the update process, which adaptively adjusts the search step size based on the distance between the current position and the current optimal position; an adaptive weighting factor is also introduced. , where t is the current iteration number and T is the maximum iteration number. The weights are larger in the early stages of the iteration to expand the search range; the weights gradually decrease in the later stages of the iteration to improve the accuracy of local optimization.
[0044] After completing the search for the optimal parameter combination, the cross-validation error rate of the new individual is recalculated, and a greedy selection strategy is used for screening: if the cross-validation error rate of the new individual is better than that of the original individual, the new solution is retained; otherwise, the original solution is retained.
[0045] To avoid the population getting trapped in local optima, a Logistic chaotic perturbation is triggered with a preset probability in each iteration to regenerate candidate parameters for some individuals, thereby increasing population diversity. This process is repeated until a preset maximum number of iterations is reached, ultimately obtaining the optimal parameter combination that minimizes the cross-validation error. .
[0046] The original acoustic emission signal is decomposed using the optimal parameter combination to obtain each modal component. Features are extracted for each intrinsic modal component and concatenated into a fusion feature set. Specifically, time-domain features, frequency-domain features, wavelet-domain features, and entropy-domain features are extracted for each intrinsic modal component, and the features extracted from all components are concatenated into a fusion feature set. The fused feature set is normalized and dimensionality is reduced by principal component analysis. Principal components with a cumulative variance contribution rate of not less than a preset threshold (95%) are retained to obtain the dimensionality-reduced feature vector, which is used as the new fused feature set.
[0047] The expression for the cumulative variance contribution rate is: , In the formula, The cumulative variance contribution rate (%) of the first m principal components; The eigenvalues are the eigenvalues corresponding to the i-th principal component; is the eigenvalue corresponding to the j-th principal component; m is the number of retained principal components; n is the total number of principal components.
[0048] The cumulative variance contribution rate reflects the degree to which the first m principal components retain information about the overall original data. When the preset threshold is reached (95% in this invention), it is considered that the retained principal components can well represent the original feature information, and the corresponding principal components are used as the input features after dimensionality reduction.
[0049] S3. Set the search range for the hyperparameter combination of the support vector machine, and search for the optimal hyperparameter combination with the goal of minimizing the fitness function on the fused feature set; construct multiple binary classifiers for the preset categories based on the optimal hyperparameter combination, perform one-stage classification on the fused feature set, and construct a confusion matrix.
[0050] The hyperparameter combination of a support vector machine includes basis functions, penalty factors, and a kernel function. A radial function is used as the kernel function, and its expression is: ,in, For the output value, and They represent two different features. This is the kernel function.
[0051] The support vector machine penalty factor C and kernel function As the optimization target, the algorithm independently improved in this invention is used to complete the hyperparameter adaptive optimization. The optimization process involves combining the penalty factor C of the support vector machine with the kernel function. As the variable to be optimized, the cross-validation classification error is used as the fitness function to perform an iterative search to obtain the optimal parameter combination. This enables adaptive optimization of hyperparameters in support vector machines.
[0052] A radial basis function support vector machine (SVM) was constructed using the obtained optimal penalty factor C and kernel parameter γ. A one-to-one strategy was adopted to establish a four-class SVM model. For acoustic emission signals from 0%, 10%, 30%, and 50% brittle rocks, there are a total of four categories. Therefore, binary classifiers were constructed using a pairwise combination method, resulting in six SVM classifiers: 0% vs. 10%, 0% vs. 30%, 0% vs. 50%, 10% vs. 30%, 10% vs. 50%, and 30% vs. 50%.
[0053] To intuitively characterize the distribution features of acoustic emission signal fusion characteristics of rocks of different brittle types, t-SNE dimensionality reduction visualization processing was performed on the fusion features. For example... Figure 3 As shown, the high-dimensional fused features are mapped to a two-dimensional feature space, where different colors represent acoustic emission signal samples of rocks with brittleness of 0%, 10%, 30%, and 50%, respectively. Figure 3It can be seen that samples of different brittleness categories exhibit different aggregation and distribution characteristics in the two-dimensional feature space. There are significant spatial distribution differences between some different categories (0% and 30% of rock acoustic emission signal samples), while some sample regions (10% and 50% of rock acoustic emission signal samples) show a certain degree of overlap. These results indicate that the fused features obtained after variational mode decomposition, feature extraction, and feature fusion can characterize the feature differences between acoustic emission signals of different brittle rocks, providing a feature basis for subsequently establishing a four-class classification recognition model using support vector machines.
[0054] Each classifier is trained using the optimal parameter combination to form a four-class classification model. During the classification process, the acoustic emission signal to be tested undergoes variational mode decomposition, fusion feature extraction, normalization, and principal component dimensionality reduction processing following the same procedure as in the training phase, and is then input into the established four-class classification model. The test sample is sequentially processed by six binary classifiers, with each classifier outputting its corresponding class determination result and casting one vote for the determined class.
[0055] The fused feature set is classified in one stage, specifically: the features in the fused feature set are sequentially input into a binary classifier for discrimination. Each binary classifier casts one vote for the determined category. The total number of votes for each category is counted, and the category with the highest number of votes is determined as the category of the original acoustic emission signal corresponding to that feature.
[0056] For example, when a sample is input into a "0% vs. 10%" classifier, the classifier outputs a judgment result of 0% or 10%; when input into a "10% vs. 50%" classifier, the classifier outputs a judgment result of 10% or 50%. After all binary classifiers have completed their judgments, the total number of votes for each category is counted, and the category with the highest number of votes is determined as the final predicted category for that sample.
[0057] After classifying all validation samples, the correspondence between the true and predicted classes for each sample is calculated, and a confusion matrix is constructed: , This is the confusion matrix; This represents the number of samples whose true class is class i but are predicted to be class j; n is the total number of classes, which is n=4 in this embodiment. Main diagonal elements. Indicates the number of correctly classified samples; off-diagonal elements This represents the number of samples misclassified into other categories. By statistically analyzing the distribution of each element in the confusion matrix, we can obtain the misclassification relationships and the degree of confusion between different categories, providing a basis for subsequent identification of highly confused categories and the construction of a two-stage classification model.
[0058] S4. Based on the confusion matrix, calculate the bidirectional confusion index of each pair of all categories. Define the two categories with the largest bidirectional confusion index as high confusion category pairs. If the bidirectional confusion index pairs of high confusion categories are greater than the confusion threshold and meet the conditions for traffic splitting, then execute S5.
[0059] For confusion matrix Normalization is performed and the misclassification probability of each category is calculated. A bidirectional confusion index is defined to assess the degree of confusion between categories. , in, The normalized confusion rate, which is the percentage of category i that is misclassified as category j, is calculated using the following formula: , In the formula, Let N represent the number of samples that are true class i and predicted as j, and N be the total number of classes. The higher the bidirectional confusion index, the greater the degree of confusion between the two classes. The class pair with the highest bidirectional confusion index is selected as the highly confusing class pair.
[0060] The specific conditions for the split processing are as follows: if the true category of the original acoustic emission signal does not belong to any of the categories in the high confusion category pair, it is defined as an ordinary sample and the first-stage classification result is directly output. If the true category of the original acoustic emission signal belongs to any one of the highly confusing category pairs, and the first-stage classification result is correct, then it is defined as a normal sample, and the first-stage classification result is directly output. If the true category of the original acoustic emission signal belongs to a highly confusing category pair, and the first-stage classification result is misclassified as another category in the highly confusing category pair, then it is defined as a confused sample, and S5 is executed.
[0061] Preferably, the confusion threshold is set to 0.1 to distinguish between normal samples and highly confused samples. Normal samples are directly output as the initial classification result, while highly confused samples are transferred to the second-stage binary classification branch.
[0062] S5. Extract the original acoustic emission signals of highly confused category pairs, replace the training set in S2, and execute S2 again to obtain a multi-domain fusion feature set. Calculate the Fisher score of each feature, sort them in descending order, and selectively remove features to obtain a preferred feature subset. Replace the fusion feature set in S3 with the preferred feature subset, and execute the step of obtaining the optimal hyperparameter combination in S3 to obtain the optimal hyperparameter combination of the preferred feature subset. Use the preferred feature subset and its corresponding optimal hyperparameter combination to construct a binary classification support vector machine model, perform two-stage classification of highly confused categories, integrate the two-stage classification results, and output the final classification result of acoustic emission signals of different brittle rocks.
[0063] The original acoustic emission signals of highly confused class pairs are extracted, and the search range of the parameter combination for variational mode decomposition is set. Within the search range, the optimal parameter combination is searched with the goal of minimizing the cross-validation error rate. The original acoustic emission signals of highly confused class pairs are decomposed using the optimal parameter combination to obtain several intrinsic mode components. Features are extracted from each intrinsic mode component and concatenated into a multi-domain fusion feature set.
[0064] A binary classification dataset is constructed for the original acoustic emission signal samples corresponding to the high confusion category. First, the Fisher discriminant index is used to evaluate the ability of each feature in the multi-domain fusion feature set to distinguish the target category.
[0065] Fisher's score is calculated as follows: , in and They represent the two types of samples in the first... The mean of each feature and Indicates the corresponding variance. To prevent extremely small values with a denominator of zero, selective elimination is performed after sorting in descending order, specifically as follows: Sort the features in descending order according to their Fisher scores, calculate the correlation coefficient between each feature, and when the correlation coefficient between two features is higher than a preset threshold, retain the feature with the higher Fisher score and remove the feature with the lower Fisher score to obtain the preferred feature subset.
[0066] Define the search range for hyperparameter combinations of the support vector machine, and search for the optimal hyperparameter combination of the preferred feature subset with the goal of minimizing the fitness function; construct a binary classification support vector machine model to perform two-stage classification of highly confused categories.
[0067] For the i-th feature, its Fisher score is determined by the difference between the means of the two classes of samples and the degree of dispersion within the class. The larger the Fisher score, the stronger the feature's ability to distinguish between the two classes of samples.
[0068] All features are sorted according to Fisher scores, and features with strong discriminative power are retained first. The correlation coefficient between candidate features is then calculated. When the correlation coefficient between two features exceeds a preset threshold, the feature with the higher Fisher score is retained and the redundant feature with weak discriminative power is deleted, thereby obtaining a preferred feature subset suitable for high confusion category recognition.
[0069] After obtaining the preferred feature subset, the selected features are used as input, and the penalty factor and kernel function of the support vector machine are adaptively optimized using the method of this invention. The parameter combination (C, Using the cross-validation classification error as the fitness value, the optimal solution is searched by continuously updating the parameter combination. The search terminates when the preset maximum number of iterations (40 times) is reached, obtaining the optimal parameter combination with the minimum cross-validation error.
[0070] Finally, a binary classification support vector machine model for high-confusion categories is constructed using the selected subset of features and the optimal parameter combination. This model is then used to further distinguish the high-confusion samples identified in the first-stage classification, thereby improving the ability to differentiate between similar categories and the final classification accuracy.
[0071] To reduce the redundancy caused by the correlation between features, a correlation coefficient-based decorrelation screening strategy is adopted. When the correlation coefficient between features satisfies: At that time, only features with stronger discriminative power are retained; this invention takes... .
[0072] Based on this, the hyperparameters of the selected feature subset and the support vector machine are optimized to achieve collaborative processing of features and the classification model. Through this process, both the overall feature representation capability and the local discrimination capability of highly confusing categories are balanced, providing more effective feature input for subsequent classification models.
[0073] To verify the performance of the improved artificial lemming optimization algorithm of this invention in optimizing variational mode decomposition parameters under different classification tasks, variational mode decomposition parameter optimization was performed on four-class acoustic emission signals and high-confusion binary acoustic emission signals, respectively. Compared with the traditional artificial lemming algorithm shown in Figure 2, as shown in Figure 1, the improved artificial lemming optimization algorithm of this invention can obtain stable fitness values within a smaller number of iterations during the optimization of variational mode decomposition parameters in both four-class and binary classification, indicating that the improved algorithm has a faster convergence speed.
[0074] Based on the confusion matrix and bidirectional confusion index calculation results obtained from the first-stage classification, the 10% brittleness and 50% brittleness categories were identified as a high-confusion category pair. To intuitively characterize the feature distribution of this high-confusion category pair, t-SNE dimensionality reduction visualization was performed on the fused features of acoustic emission signals from 10% brittleness and 50% brittleness rocks. The results are as follows: Figure 4 As shown. By Figure 4 It can be seen that there is a significant overlap between the two types of samples in the two-dimensional feature space, and some samples have similar feature distributions, indicating that there is a high degree of feature similarity between the 10% brittle and 50% brittle acoustic emission signals. Therefore, there is a high possibility of mutual misclassification when using a one-stage four-class classification model. Thus, this invention reconstructs a binary classification dataset for this highly confusing category pair and further optimizes feature selection and the classification model.
[0075] To further verify the effectiveness of the improved algorithm of this invention, the traditional artificial lemming algorithm was used to optimize the variational mode decomposition parameters under the same classification task. The fitness iteration process is shown in Figure 2. Compared with Figure 1, the traditional artificial lemming algorithm requires more iterations to gradually reach a stable fitness value, indicating that the improved artificial lemming optimization algorithm of this invention can improve the convergence efficiency of the variational mode decomposition parameter optimization process.
[0076] The results of the first and second stage classifications are combined. Ordinary samples are classified using the initial four-class classification results, while confused samples are classified using the two-class classification results. The final classification result for all acoustic emission signals is obtained by integrating the results. The overall classification performance is evaluated using the classification accuracy. The experimental results of the first-stage classification accuracy of this invention are as follows: Figure 5 As shown, the two-stage classification results are as follows: Figure 6 As shown.
[0077] The evaluation metric of this invention is classification accuracy. Classification accuracy reflects the model's ability to identify acoustic emission signals of different brittle rocks. The higher the classification accuracy, the better the signal category differentiation effect and the better the overall classification performance of the model.
[0078] This invention independently improves the traditional artificial lemming algorithm in multiple dimensions to obtain a brand-new improved algorithm. Table 1 shows the comparison data of the overall classification accuracy of different algorithms in the embodiments of this invention. Table 1 Overall classification accuracy of different algorithms Among them, (1) SVM directly uses extracted features to complete classification without performing VMD signal decomposition, parameter optimization, or high confusion category identification, with an average accuracy of 71.59%. The method in this paper achieves adaptive signal decomposition through VMD parameter optimization, and combines SVM parameter optimization and a two-stage classification strategy driven by confusion matrix, improving the average accuracy to 94.67%, an increase of 23.08 percentage points.
[0079] (2) VMD-SVM uses fixed VMD parameters to decompose the signal and complete the classification. It does not perform adaptive optimization of VMD parameters, nor does it perform fine classification for highly confusing categories. The average accuracy is 79.33%. The method in this paper uses IALA to perform global collaborative optimization of VMD parameters and introduces a two-stage classification mechanism, which improves the average accuracy by 15.34 percentage points.
[0080] (3) SSA-VMD-SVM uses SSA to optimize VMD parameters and perform classification, but only obtains global parameters applicable to the overall classification task. It does not optimize SVM parameters, nor does it establish a dedicated classification branch for highly confusing categories. The average accuracy is 88.83%. The method in this paper further uses IALA to optimize VMD and SVM parameters and introduces a two-stage classification strategy driven by the confusion matrix, which improves the average accuracy by 5.84 percentage points.
[0081] (4) IALA-VMD-SVM uses the improved IALA to optimize VMD parameters, but still uses a unified SVM model for identification in the classification stage. It does not perform fine modeling for highly confused categories, and the average accuracy is 90.33%. Based on this, the method in this paper introduces a two-stage classification strategy driven by confusion matrix, and performs branch parameter re-optimization and feature reconstruction for highly confused categories, which further improves the average accuracy by 4.34 percentage points.
[0082] (5) VMD-IALA-SVM uses fixed VMD parameters for signal decomposition and only utilizes IALA to optimize SVM parameters, achieving an average accuracy of 88.67%. However, its classification performance is limited due to the lack of adaptive VMD parameter optimization and a fine-grained classification mechanism for highly confusing categories. The method presented in this paper improves the average accuracy by 6.00 percentage points.
[0083] (6) Random Forest uses ensemble decision trees for classification, without performing VMD signal decomposition and classification parameter optimization, and does not consider the confusion between categories, with an average accuracy of 71.17%. In contrast, the method in this paper significantly improves the separability between complex categories through signal decomposition optimization and a two-stage classification strategy, with an average accuracy increase of 23.50 percentage points.
[0084] (7) CNNs directly use samples for end-to-end classification without combining VMD decomposition and fine-grained modeling mechanisms for confused categories, resulting in an average accuracy of 82.34%. With the current sample size, CNNs have limited ability to distinguish highly similar categories. Our proposed method improves the average accuracy to 94.67%, an increase of 12.33 percentage points, through classification-oriented VMD parameter optimization and a two-stage classification strategy.
[0085] Furthermore, for the 10% and 50% high confusion categories in the embodiments of the present invention, the comparison data of classification accuracy before and after optimization of the present invention is shown in Table 2; Table 2 Classification accuracy before and after optimization Furthermore, the model generalization performance test data under different loading conditions are shown in Table 3: Table 3. Test data on model generalization performance under different loading conditions A rock acoustic emission signal classification system based on confusion matrix is used to implement a rock acoustic emission signal classification method based on confusion matrix, including: The signal acquisition module acquires rock samples of different brittleness levels, collects the original acoustic emission signals of the rock samples during uniaxial compression, and divides them into training and test sets. The feature extraction module sets the search range for parameter combinations of variational mode decomposition, and searches for the optimal parameter combination within the search range with the goal of minimizing the cross-validation error rate; the optimal parameter combination is used to decompose the training set to obtain several intrinsic mode components; features are extracted from each intrinsic mode component and concatenated into a fusion feature set; The first-stage classification module sets the search range for hyperparameter combinations of the support vector machine and searches for the optimal hyperparameter combination on the fused feature set with the goal of minimizing the fitness function. Based on the optimal hyperparameter combination, it constructs multiple binary classifiers for preset categories, performs first-stage classification on the fused feature set, and constructs a confusion matrix. The bidirectional confusion index calculation module calculates the bidirectional confusion index of all pairs of categories based on the confusion matrix. The two categories with the largest bidirectional confusion index are defined as high confusion category pairs. If the bidirectional confusion index pairs of high confusion categories are greater than the confusion threshold and meet the diversion processing conditions, then two-stage classification is performed. The two-stage classification module extracts the original acoustic emission signals of highly confused category pairs, replaces the training set in the feature extraction module, and performs feature extraction again to obtain a multi-domain fusion feature set. The Fisher score for each feature is calculated, sorted in descending order, and selectively removed to obtain a preferred feature subset. This preferred feature subset replaces the fusion feature set in the first-stage classification module, and the step of obtaining the optimal hyperparameter combination is performed to obtain the optimal hyperparameter combination of the preferred feature subset. A binary classification support vector machine model is constructed using the preferred feature subset and its corresponding optimal hyperparameter combination to perform two-stage classification of highly confused categories. The two-stage classification results are integrated to output the final classification result of acoustic emission signals of different brittle rocks.
[0086] A rock acoustic emission signal classification device based on a confusion matrix includes a processor and a memory, wherein the processor executes a computer program stored in the memory to implement a rock acoustic emission signal classification method based on a confusion matrix.
Claims
1. A rock acoustic emission signal classification method based on confusion matrix, characterized in that, Includes the following steps: S1. Obtain rock samples with different brittleness levels, collect the original acoustic emission signals of the rock samples during uniaxial compression, and divide them into training set and test set; S2. Set the search range for the parameter combination of variational mode decomposition, and search for the optimal parameter combination within the search range with the goal of minimizing the cross-validation error rate; use the optimal parameter combination to decompose the training set to obtain several intrinsic mode components. Features are extracted from each intrinsic mode component and concatenated into a fused feature set; S3. Set the search range for the hyperparameter combination of the support vector machine, and search for the optimal hyperparameter combination with the goal of minimizing the fitness function on the fused feature set; construct multiple binary classifiers for the preset categories based on the optimal hyperparameter combination, perform one-stage classification on the fused feature set, and construct a confusion matrix; S4. Based on the confusion matrix, calculate the bidirectional confusion index of each pair of all categories. Define the two categories with the largest bidirectional confusion index as high confusion category pairs. If the bidirectional confusion index pairs of high confusion categories are greater than the confusion threshold and meet the conditions for traffic splitting, then execute S5. S5. Extract the original acoustic emission signals of highly confused category pairs, replace the training set in S2, and execute S2 again to obtain a multi-domain fusion feature set. Calculate the Fisher score of each feature, sort them in descending order, and selectively remove features to obtain a preferred feature subset. Replace the fusion feature set in S3 with the preferred feature subset, and execute the step of obtaining the optimal hyperparameter combination in S3 to obtain the optimal hyperparameter combination of the preferred feature subset. Use the preferred feature subset and its corresponding optimal hyperparameter combination to construct a binary classification support vector machine model, perform two-stage classification of highly confused categories, integrate the two-stage classification results, and output the final classification result of acoustic emission signals of different brittle rocks.
2. The rock acoustic emission signal classification method based on confusion matrix according to claim 1, characterized in that, In S3, a one-stage classification of the fused feature set is performed. Specifically, the features in the fused feature set are sequentially input into a binary classifier for discrimination. Each binary classifier casts one vote for the determined category. The total number of votes for each category is counted, and the category with the highest number of votes is determined as the category of the original acoustic emission signal corresponding to that feature.
3. The rock acoustic emission signal classification method based on confusion matrix according to claim 1, characterized in that, The specific conditions for splitting the flow in S4 are as follows: if the true category of the original acoustic emission signal does not belong to any of the categories in the high confusion category pair, it is defined as an ordinary sample and the first-stage classification result is directly output. If the true category of the original acoustic emission signal belongs to any one of the highly confusing category pairs, and the first-stage classification result is correct, then it is defined as a normal sample, and the first-stage classification result is directly output. If the true category of the original acoustic emission signal belongs to a highly confusing category pair, and the first-stage classification result is misclassified as another category in the highly confusing category pair, then it is defined as a confused sample, and S5 is executed.
4. The rock acoustic emission signal classification method based on confusion matrix according to claim 1, characterized in that, In S2, features are extracted for each intrinsic mode component and concatenated into a fusion feature set. Specifically, time-domain features, frequency-domain features, wavelet-domain features, and entropy-domain features are extracted for each intrinsic mode component, and the features extracted from all components are concatenated into a fusion feature set. The fused feature set is normalized and dimensionality is reduced by principal component analysis. Principal components with a cumulative variance contribution rate not lower than a preset threshold are retained to obtain the dimensionality-reduced feature vector, which is used as the new fused feature set.
5. The rock acoustic emission signal classification method based on confusion matrix according to claim 1, characterized in that, In S5, selective removal is performed after sorting in descending order, specifically as follows: Sort the features in descending order according to their Fisher scores, calculate the correlation coefficient between each feature, and when the correlation coefficient between two features is higher than a preset threshold, retain the feature with the higher Fisher score and remove the feature with the lower Fisher score to obtain the preferred feature subset.
6. The rock acoustic emission signal classification method based on confusion matrix according to claim 1, characterized in that, In S1, clay, engineered sand, and quartz sand were used as raw materials to prepare four types of rock samples with quartz contents of 0%, 10%, 30%, and 50%, respectively. The original acoustic emission signals of the four rock samples with different brittleness levels were collected during the uniaxial compression process.
7. The rock acoustic emission signal classification method based on confusion matrix according to claim 1, characterized in that, The specific formula for the cross-validation error rate in S2 is as follows: , in, Fitness The cross-validation error rate, For classification accuracy.
8. The rock acoustic emission signal classification method based on confusion matrix according to claim 1, characterized in that, The hyperparameter combination of the support vector machine in S3 includes the basis function penalty factor and the kernel function. The radial function is used as the kernel function, and its expression is: ,in, For the output value, and They represent two different features. This is the kernel function.
9. A rock acoustic emission signal classification system based on a confusion matrix, used to implement the rock acoustic emission signal classification method based on a confusion matrix as described in any one of claims 1-8, characterized in that, include: The signal acquisition module acquires rock samples of different brittleness levels, collects the original acoustic emission signals of the rock samples during uniaxial compression, and divides them into training and test sets. The feature extraction module sets the search range for parameter combinations of variational mode decomposition, and searches for the optimal parameter combination within the search range with the goal of minimizing the cross-validation error rate; the optimal parameter combination is used to decompose the training set to obtain several intrinsic mode components; features are extracted from each intrinsic mode component and concatenated into a fusion feature set; The first-stage classification module sets the search range for hyperparameter combinations of the support vector machine and searches for the optimal hyperparameter combination on the fused feature set with the goal of minimizing the fitness function. Based on the optimal hyperparameter combination, it constructs multiple binary classifiers for preset categories, performs first-stage classification on the fused feature set, and constructs a confusion matrix. The bidirectional confusion index calculation module calculates the bidirectional confusion index of all pairs of categories based on the confusion matrix. The two categories with the largest bidirectional confusion index are defined as high confusion category pairs. If the bidirectional confusion index pairs of high confusion categories are greater than the confusion threshold and meet the diversion processing conditions, then two-stage classification is performed. The two-stage classification module extracts the original acoustic emission signals of highly confused category pairs, replaces the training set in the feature extraction module, and performs feature extraction again to obtain a multi-domain fusion feature set. The Fisher score for each feature is calculated, sorted in descending order, and selectively removed to obtain a preferred feature subset. This preferred feature subset replaces the fusion feature set in the first-stage classification module, and the step of obtaining the optimal hyperparameter combination is performed to obtain the optimal hyperparameter combination of the preferred feature subset. A binary classification support vector machine model is constructed using the preferred feature subset and its corresponding optimal hyperparameter combination to perform two-stage classification of highly confused categories. The two-stage classification results are integrated to output the final classification result of acoustic emission signals of different brittle rocks.
10. A rock acoustic emission signal classification device based on a confusion matrix, characterized in that, It includes a processor and a memory, wherein the processor executes a computer program stored in the memory to implement the rock acoustic emission signal classification method based on the confusion matrix as described in any one of claims 1-8.
