Coal gangue content measurement method, system and equipment based on AC impedance detection

By introducing measurement frequency and compactness as auxiliary variables, and using the support vector regression model and Sparrow algorithm to process the vector characteristics of AC impedance, the problem of single auxiliary variables and inaccurate measurement results in the existing technology is solved, and the coal content is significantly improved. Accuracy of waste rate measurement.

CN118243740BActive Publication Date: 2024-09-13GUANGZHOU MARITIME INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410568122.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-09-13
Estimated Expiration
2044-05-09

AI Technical Summary

Technical Problem

The existing coal gangue content measurement method based on AC impedance detection only considers a single auxiliary variable and does not fully consider other influencing factors. Moreover, the data processing method fails to fully utilize the vector characteristics of AC impedance, resulting in insufficient accuracy of measurement results.

Method used

The measurement frequency and compactness are introduced as auxiliary variables, and the support vector regression model is combined with the RBF kernel function and the Sparrow algorithm to construct the SSA-SVR model, which comprehensively considers the amplitude and phase changes of the AC impedance to improve measurement accuracy.

Benefits of technology

By considering multiple auxiliary variables and making full use of vector characteristics, the accuracy of coal gangue content measurement and system information processing capabilities are significantly improved to meet the measurement needs of complex scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118243740B
    Figure CN118243740B
Patent Text Reader

Abstract

The present disclosure relates to a method, system and equipment for measuring the gangue content of coal based on AC impedance detection, and the method includes the following steps: model construction: collecting sample data, the sample data including the measurement frequency, moisture content, compactness, impedance data and gangue content of the coal sample, inputting the sample data into the model for training to obtain a gangue content measurement model with the measurement frequency, moisture content, compactness and impedance data as input and the gangue content as output; gangue content measurement: measuring the target coal, obtaining the measurement frequency, moisture content, compactness and impedance data of the target coal and inputting them into the gangue content measurement model, and obtaining the gangue content of the target coal through the gangue content measurement model. The system and equipment are used to execute the method. The present disclosure measures the gangue content of coal by introducing the measurement frequency and compactness, which helps to improve the accuracy of the measurement results of the gangue content of coal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of coal gangue content measurement, and in particular to a coal gangue content measurement method, system and equipment based on AC impedance detection. Background Art

[0002] In the process of whole truck coal trading, there may be illegal acts of infiltrating coal gangue and water into the coal. For the detection of the gangue content of whole truck coal, the traditional practice is mostly to use manual sampling. The samples collected by this method are not representative enough, the analysis results have large errors, and there is a possibility of adulteration. In addition, manual sampling has the defects of poor uniformity, time-consuming and labor-intensive, low sampling efficiency, and poor data accuracy. It is not applicable to units with large coal consumption such as large thermal power plants and smelters.

[0003] The indirect measurement method of gangue content is a screening method that utilizes the differences in physical properties such as optical, magnetic, electrical and radioactive properties between gangue and pure coal. For example, there is the radiation method based on X-ray transmission imaging and the image analysis method based on image recognition technology. The radiation method needs to consider the potential threat of radiation to the human body and its applicable scenarios are limited. The image analysis method does not fully consider the impact of complex factors such as light intensity, humidity, coal dust, etc. on the recognition results, and has low recognition accuracy and poor practicality.

[0004] AC impedance detection is a non-destructive measurement technology that obtains the AC impedance of the detected object by applying a small-amplitude AC signal of a certain frequency. Specifically, the dielectric properties of a whole truck of coal are closely related to the structure and composition of the coal. It is a practical way to obtain the gangue content of the coal by measuring the AC impedance of the whole truck of coal. For example, the inventor participated in the article "Research on Coal Doping Rate Detection Method Based on AC Impedance Soft Measurement and Improved SVM", which verified the influence of coal moisture content and doping rate (gangue content) on output impedance through experiments, and obtained that the coal moisture content and impedance value can be used as auxiliary variables of the coal doping rate (gangue content) soft measurement model, that is, the coal gangue content can be measured by measuring the coal moisture content and impedance value. With the practical application and in-depth research of this technology, the inventor found that this technology has the following defects:

[0005] First, this technology only considers the impact of moisture content and gangue content on coal AC impedance, and the selection of auxiliary variables is relatively simple, without fully considering other factors that may affect coal AC impedance, resulting in insufficient accuracy of the final gangue content measurement results;

[0006] Second, in terms of data processing, this technology treats the AC impedance of coal as a simple resistance value for calculation, without considering the comprehensive changes of the AC impedance phase and amplitude during the measurement process, which affects the accuracy of the final measurement results;

[0007] Third, due to the particularity of the tested samples, the sample size of the coal AC impedance data set is small and heterogeneous. When the number of input variables (auxiliary variables) is large, it will lead to a complex relationship between the input variables and the output variables (coal gangue content). Simply using the least squares method or support vector machine algorithm in the above literature cannot meet the system information processing requirements.

[0008] In summary, the existing soft measurement method of coal gangue content based on AC impedance considers a single auxiliary variable, does not consider the vector characteristics of AC impedance, and the data processing method is only applicable to scenarios with fewer auxiliary variables, so there is room for improvement. Summary of the invention

[0009] In order to solve the problems existing in the above-mentioned prior art, the present invention aims to provide a method, system and device for measuring the gangue content of coal based on AC impedance detection. The present invention introduces measurement frequency and compactness to measure the gangue content of coal, which helps to improve the accuracy of the measurement results of the gangue content of coal.

[0010] The present invention discloses a method for measuring the gangue content of coal based on AC impedance detection, comprising the following steps:

[0011] Model construction: Collect sample data, including the measurement frequency, moisture content, compactness, impedance data and gangue content of the coal sample, input the sample data into the model for training to obtain a gangue content measurement model with the measurement frequency, moisture content, compactness and impedance data as input and the gangue content as output;

[0012] Gangue content measurement: Measure the target coal, obtain the measurement frequency, moisture content, compactness and impedance data of the target coal and input them into the gangue content measurement model, and obtain the gangue content of the target coal through the gangue content measurement model.

[0013] Preferably, the measurement frequency is 10kHZ, 30kHZ, 50kHZ, 70kHZ or 90kHZ, the compactness is represented by the internal pressure of the coal, and the impedance data includes the phase and amplitude of the AC impedance.

[0014] Preferably, in the model building step, the sample data is built by an orthogonal experimental method according to the correlation of various factors in the sample data.

[0015] Preferably, the Pearson correlation coefficient is used to analyze the correlation of various factors in the sample data, and a heat map is constructed to characterize the correlation analysis results.

[0016] Preferably, in the model building step, n groups of sample data are collected, and each group of sample data is represented as a sample set M i, i∈[1,n], the support vector regression model is used as the gangue content measurement model:

[0017] f(x i )=w T φ(x i )+b,

[0018] Among them, x i Represents the sample set M i The feature subset of f(x i ) represents the sample set M i The corresponding gangue content value, w and b represent the normal vector and intercept of the hyperplane respectively, and T represents the matrix transpose operation.

[0019] Preferably, RBF is used as the kernel function of the support vector regression model.

[0020] Preferably, the Sparrow algorithm is used as the optimization algorithm of the support vector regression model.

[0021] The present invention discloses a coal gangue content measurement system based on AC impedance detection, comprising:

[0022] A model building module, which is used to collect sample data, the sample data including the measurement frequency, moisture content, compactness, impedance data and gangue content of the coal sample, and input the sample data into the model for training to obtain a gangue content measurement model with the measurement frequency, moisture content, compactness and impedance data as input and the gangue content as output;

[0023] The gangue content measurement module is used to measure the target coal, obtain the measurement frequency, moisture content, compactness and impedance data of the target coal and input them into the gangue content measurement model, and obtain the gangue content of the target coal through the gangue content measurement model.

[0024] A computer device disclosed in the present invention comprises a processor and a memory connected by signals, wherein the memory stores at least one instruction or at least one program, and when the at least one instruction or the at least one program is loaded by the processor, the method for measuring the gangue content in coal based on AC impedance detection as described in claim 1 is executed.

[0025] The present invention discloses a computer-readable storage medium, on which at least one instruction or at least one program is stored. When the at least one instruction or the at least one program is loaded by a processor, the method for measuring the gangue content of coal based on AC impedance detection as described above is executed.

[0026] The advantages of the coal gangue content measurement method, system and device based on AC impedance detection disclosed in the present invention are:

[0027] 1. Based on the moisture content and gangue content, the present invention introduces two important influencing factors, namely, measurement frequency and compactness, as auxiliary variables of the gangue content measurement model, and fully considers various factors that may affect the AC impedance of coal, so that the results of measuring the gangue content of coal based on various auxiliary variables are more comprehensive and accurate. Compared with the scheme of considering the effects of moisture content and gangue content on the AC impedance of coal separately in the existing literature, the method is more scientific and helps to improve the accuracy of the measurement of the gangue content of coal;

[0028] 2. The present disclosure fully considers the vector characteristics of AC impedance and introduces a representation method of amplitude plus phase, which is more complete and accurate than the method of using resistance alone;

[0029] 3. The present invention is based on the characteristics of coal AC impedance data, and fully considers the introduction of multiple auxiliary variables after measurement frequency and compactness. It adopts support vector regression model as the gangue content measurement model, and uses RBF as the kernel function of the model. It uses the sparrow algorithm as the optimization algorithm to construct the SSA-SVR measurement model, which can meet the calculation requirements of the present invention and has high measurement accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a flow chart of the steps of a method for measuring the gangue content of coal based on AC impedance detection described in this embodiment;

[0031] Figure 2 It is the amplitude diagram of coal AC impedance at different measurement frequencies;

[0032] Figure 3 It is the phase diagram of coal AC impedance at different measurement frequencies;

[0033] Figure 4 It is the amplitude diagram of coal AC impedance at different compactness;

[0034] Figure 5 It is the phase diagram of AC impedance of coal at different compactness;

[0035] Figure 6 It is the amplitude diagram of coal AC impedance at different moisture contents;

[0036] Figure 7 is the phase diagram of coal AC impedance at different moisture contents;

[0037] Figure 8 It is the amplitude diagram of coal AC impedance at different gangue content;

[0038] Fig. 9 It is the phase diagram of coal AC impedance at different gangue contents;

[0039] Fig.10is a heat map of the Pearson correlation coefficients of the auxiliary variables in this embodiment;

[0040] Fig.11 It is a comparison chart of the fitness convergence curves of each optimization algorithm of the SVR model;

[0041] Fig.12 It is a bar chart comparing the optimization results of each optimization algorithm of the SVR model;

[0042] Fig.13 is a flow chart for constructing a gangue content measurement model described in this embodiment;

[0043] Fig.14 It is a schematic diagram of the structure of the computer device described in this embodiment.

[0044] Description of reference numerals: 101 - processor, 102 - memory. DETAILED DESCRIPTION

[0045] like Figure 1 As shown, a method for measuring the gangue content of coal based on AC impedance detection described in the present disclosure includes the following steps:

[0046] Model construction: Collect sample data, including the measurement frequency, moisture content, compactness, impedance data and gangue content of the coal sample, input the sample data into the model for training to obtain a gangue content measurement model with the measurement frequency, moisture content, compactness and impedance data as input and the gangue content as output;

[0047] Gangue content measurement: Measure the target coal, obtain the measurement frequency, moisture content, compactness and impedance data of the target coal and input them into the gangue content measurement model, and obtain the gangue content of the target coal through the gangue content measurement model.

[0048] Coal has a conductive bathtub effect, which is manifested as follows: insert the rod sensor into a container full of coal, and start the measurement system in sweep mode with a sweep frequency range of 10Hz-500kHz. Ten measurements are taken at each frequency point, and the average value is taken as the measurement result. The coal powder impedance shows a monotonically decreasing trend in the range of 10-1000Hz, and the coal impedance becomes significantly smaller as the frequency increases.

[0049] The existing detection method is to select one of the characteristic frequency points in the "bathtub" as the measurement frequency. However, since the impedance of coal in the bathtub area shows a stable trend but is not constant, the fluctuation of the instrument frequency during the measurement process will also affect the measurement results. In order to reduce the impact, according to the law of large numbers and the central limit theorem in statistics, the present invention can be known to reduce the error through a large number of repeated independent experiments. The five frequency points of 10kHz, 30kHz, 50kHz, 70kHz and 90kHz are tested. The impedance performance of coal and coal gangue at these five frequency points is as follows: Figure 2 , Figure 3 As shown, it can be seen that at these five frequency points, the impedance change trend of coal and coal gangue is relatively stable, and the impact on the measurement results is small.

[0050] Since the measurement of sample compactness is difficult to achieve in practical applications, this embodiment extrudes pure coal powder to different degrees, taking an extrusion height of 1 cm as the unit gradient, and obtains three coal samples with different densities: no extrusion, 1 cm extrusion, and 2 cm extrusion. A thin film pressure sensor is used to measure the pressure 10 times, and the average value is taken as the pressure value of the sample, which are 852.2g, 1131.4g, and 1665.2g respectively. Among them, 852.2g is a natural stacking state without external force compression. During the measurement process, ensure that the conditions such as the insertion position and depth of the rod are kept consistent for each measurement. The impedance measurement results are as follows: Figure 4 , Figure 5 shown.

[0051] It can be seen from the test that when the coal powder is squeezed, that is, when the coal compactness increases, the coal impedance decreases significantly. As the squeezing degree (compactness) increases, the coal impedance continues to decrease, but the reduction amplitude becomes weaker. When the coal powder is not squeezed, the phase of the coal powder decreases with the frequency, and the proportion of capacitive reactance in the coal impedance continues to increase. When the coal powder is squeezed, the phase of the coal powder increases with the increase of the frequency ratio and constantly tends to 0°. As the squeezing degree increases, that is, the compactness of the coal powder increases, the phase of the coal powder increases.

[0052] When collecting the above-mentioned measurement frequency and compactness data, the moisture content in the coal is collected synchronously through a moisture sensor, and the collected data is preprocessed and normalized to reduce the impact of multi-source information heterogeneity on the final gangue content measurement results.

[0053] This test will verify the effect of moisture content on the amplitude and phase of coal impedance, specifically:

[0054] The calculation formula for total moisture in coal is: M t =100*m1 / m, where M t It represents the moisture content in coal, m is the mass of coal sample, and m1 is the mass lost during the drying process of coal sample.

[0055] The moisture content of the anthracite used in this experiment is 5%. Considering that the visual and texture differences of coal are quite large after the moisture content exceeds 30%, the moisture content of the coal is controlled below 30% during the experiment. Five groups of control experiments were set up, with a moisture content of 5% as a gradient, and coal samples with moisture contents of 10%, 15%, 20%, 25% and 30% were prepared. A spray pot device is used to adjust the moisture content in the coal, and the coal is stirred with a stirrer to ensure that the moisture content in the coal remains uniform, thereby avoiding measurement result deviations caused by uneven moisture absorption. Subsequently, a moisture content sensor is used to obtain the AC impedance and phase performance of coal at different moisture contents. The test results are as follows. Figure 6 and Figure 7 shown.

[0056] As the moisture content of coal increases, the AC impedance of coal gradually decreases. This phenomenon is due to the fact that as the moisture content in coal increases, the bonds in some coal molecules break, and the water also contains Ca 2+ 、Na + Plasma causes the number of free electrons to increase, thereby reducing the resistance of coal and increasing the relative dielectric constant, which in turn leads to a decrease in the AC impedance of coal.

[0057] In terms of phase performance, the overall trend is that the coal impedance phase increases with the increase of moisture content, gradually tends to 0, showing resistance. However, at the measurement frequency of 10kHz, it is slightly different: when the moisture content increases from 5% to 10%, the impedance phase decreases, and then increases again with the increase of moisture content.

[0058] from Figure 7 It can also be observed that as the moisture content increases, the law of phase change with frequency changes. At 5% moisture content, the coal impedance decreases with increasing frequency, and as the moisture content increases, the impedance phase increases.

[0059] This test will verify the influence of gangue content on the amplitude and phase of coal impedance, specifically:

[0060] Anthracite powder and gangue powder were mixed at different doping rates, and control test samples with gangue contents of 10%, 20%, 30%, 40% and 50% were prepared. The calculation of the gangue content refers to the "Method for Determination of Gangue Content and Lower Limit of Commercial Coal MT / T 1-2007", and the gangue content is equal to the ratio of the mass of gangue to the total mass of coal and gangue. The upper limit of the gangue content is set at 50% because in adulteration detection, once the gangue content exceeds 50%, the visual characteristics of the adulterated coal will be significantly different from the original coal. In addition, considering that the proportion of gangue used in power generation does not exceed 50%, this upper limit was selected. During the doping rate comparison test, other conditions such as moisture content and pressure of each sample were ensured to remain consistent.

[0061] The test results are as follows Figure 8 , Fig. 9 As shown in the figure, it can be observed that the AC impedance value of coal increases monotonically with the increase of the gangue content. In particular, when the gangue content reaches 30%, the increase rate of the AC impedance of coal rises sharply, which is much higher than the case where the gangue content is 20% and below. In addition, with the increase of frequency, the AC impedance of doped coal shows a decreasing trend.

[0062] On the other hand, it is observed that the phase of the AC impedance of coal decreases gradually with the increase of the doping rate. When the gangue content reaches 30%, the phase of the coal drops sharply and approaches -90°, indicating that the capacitive reactance is dominant in the AC impedance, which is also consistent with the above-mentioned change in the AC impedance value of coal when the gangue content is above 30%. The control results show that the phase of the AC impedance of doped coal also decreases with the increase of the measurement frequency within the measurement frequency range.

[0063] The above experiments have proved that the measurement frequency, compactness, moisture content and gangue content all have an impact on the AC impedance of coal and coal gangue, which in turn affects the accuracy of the coal gangue content measurement based on AC impedance. Adding the measurement frequency and compactness as auxiliary variables in the measurement model of coal gangue content will effectively improve the accuracy of the measurement results. In addition, the above-mentioned experiments also prove that the influence of measurement frequency, compactness, moisture content and gangue content on the AC impedance of coal and coal gangue (doped coal) is not only reflected in the amplitude of the AC impedance, but also in the phase of the AC impedance. If only the impedance value of the AC impedance is considered in the prior art, the influence of each auxiliary variable on the phase of the AC impedance will be ignored. For example, there may be a large difference in the gangue content of two groups of doped coal, resulting in a large difference in the phase of the measured AC impedance, but the impedance amplitude is relatively close. In this case, if only the amplitude of the AC impedance is considered, the measured gangue content of the two groups of doped coal will be close, which is quite different from the actual situation, resulting in inaccurate measurement results of the gangue content. Therefore, in this embodiment, the AC impedance is represented by amplitude plus phase, and the vector characteristics of the AC impedance are fully considered to avoid the above situation and improve the accuracy of the gangue content measurement results.

[0064] The following will conduct a qualitative analysis on the relationship between the four variables of measurement frequency, moisture content, gangue content and compactness and AC impedance to determine the factors affecting AC impedance and provide a reliable data set for the design of measurement algorithms.

[0065] The correlation is analyzed using the Pearson correlation coefficient, which can achieve fast and effective analysis of data of different dimensions and ranges. The correlation coefficient value range is -1 to 1. If the correlation coefficient is close to 1, it means that there is a high positive correlation between the two variables; if the correlation coefficient is close to -1, it means that there is a high negative correlation between the two variables; if the correlation coefficient is close to 0, it means that the two variables are independent of each other and have no correlation.

[0066]

[0067] In the formula, i = 1, 2, 3...n, indicating the sample number; x, y are the sample parameters to be analyzed, and X and Y are the average values ​​of the sample parameters. The Pearson correlation coefficients of the gangue content, moisture content, measurement frequency, pressure, measurement impedance and measurement phase are calculated, and the calculation results are displayed in the form of a heat map, such as Fig.10 shown.

[0068] When the absolute value of the Pearson correlation coefficient is between 0-0.2, it indicates a very weak correlation; when it is between 0.2-0.4, it indicates a weak correlation; when it is between 0.4-0.6, it indicates a moderate correlation; when it is between 0.6-0.8, it indicates a strong correlation; and when it is between 0.8-1, it indicates a very strong correlation.

[0069] Combination Fig.10 As shown in the thermodynamic diagram, the AC impedance of coal (measurement impedance and measurement phase) has different degrees of correlation with the moisture content, gangue content, measurement frequency and sample compactness of the coal sample, which can prove the scientificity and correctness of the present invention from the detection mechanism.

[0070] Through the previous mechanism analysis and Pearson correlation analysis, it is proved that the measurement results of coal AC impedance value and phase value are affected by four factors: measurement frequency, coal moisture content, coal gangue content, and coal compactness. Considering the accuracy and comprehensiveness of the test, the level table of each factor is listed as shown in Table 1 below, where the sample compactness is converted into pressure according to the aforementioned detection principle, and the unit is g. Due to the different value levels of different influencing factors, if the traditional experimental method is used to verify each level of the above four factors, 540 sets of tests will be required, and the establishment of the database will be quite cumbersome and difficult.

[0071] Table 1 Experimental factor level table

[0072]

[0073] The present invention optimizes the experimental scheme and data set by using the orthogonal experimental method. A mixed orthogonal table is generated by SPSS software to obtain 49 groups of experimental schemes. The experimental scheme is designed according to the orthogonal table. During the measurement process, the sample quality, the insertion position and depth of the rod are ensured to be consistent for each measurement. The coal AC impedance value and phase value of the corresponding scheme are recorded. The experimental scheme and some measurement results are shown in Table 2 below. As the basic data set of the measurement model, it is used for the training of the model, which can greatly reduce the amount of data required to be processed.

[0074] Table 2 Part of the orthogonal test plan and test data (training set)

[0075]

[0076] Collect data to form a sample data set. Prepare coal samples according to the experimental scheme shown in Table 2 to calibrate the sample measurement frequency, moisture content, sample compactness, and impedance measurement value (amplitude and phase). Combine the measured gangue content of the sample with other factors and indicators as a sample point to form a sample set M. i ,i∈[1,n],M i ={D1 i 、D2 i 、D3 i 、D4 i 、D5 i 、D6 i}, form a sample set and divide the sample data set into a training validation set and a test set. For example, 80% of the sample data set is used as a training validation set, and 20% of the sample data set is used as a test set. The six analysis indicators of each sample set are sample feature values. The training validation set is used to optimize the parameters of the support vector machine regression SVR model by minimizing the statistical error, which is obtained by orthogonal experiments; the training set is used to train the support vector machine regression SVR model, the validation set is used to obtain the optimal support vector machine regression SVR model, and the test set is used to test the classification performance of the optimized support vector machine regression SVR model.

[0077] Establish a support vector machine regression SVR model, taking the i-th sample point M i For example, the measurement frequency, moisture content, sample compactness, and impedance measurement value (amplitude and phase) corresponding to the i-th sample point are selected as input variables and recorded as x i , corresponding to the i-th sample point M i The gangue content of the gangue sample is the target variable and the expected output of the support vector machine regression SVR model, denoted by y i ; The support vector machine regression SVR model is to transform the feature subset x i The index value matrix and its corresponding coal gangue content y i , mapped to the high-dimensional feature space through a nonlinear mapping function, the sample set x i The eigenvalue matrix input data is related to f(x i )The nonlinear relationship between the output data is:

[0078] f(x i )=w T φ(x i )+b,

[0079] Among them, x i Represents the sample set M i The feature subset of f(x i ) represents the sample set M i The corresponding gangue content value, w and b represent the normal vector and intercept of the hyperplane respectively.

[0080] Also define:

[0081]

[0082] In the objective function of the above formula, C is the penalty coefficient, which can balance the accuracy and complexity of the model. Selecting an appropriate penalty coefficient plays an important role in the accurate fitting of the model; ξ i is the first relaxation factor corresponding to the i-th sample point from the sample set M, which is used to adjust the weight of outliers in the data set modeling process; ξ i *The second relaxation factor, whose value is non-negative, is used to penalize the training of f(x) by adopting an insensitive loss i ) and y i The error constraints between are as follows; ε is the tolerable deviation of the generalized Lagrangian function.

[0083] The constraints in the above optimization model are transformed into equations through the Lagrange multiplier method, and the Lagrangian function is constructed.

[0084]

[0085] The Lagrange coefficient u i ≥0, α i ≥0, Respectively for ω, b, ξ, ξ in the above formula * By taking partial derivatives, we can get the expression of formula (3):

[0086]

[0087] According to the KKT condition, we can get the solution to the SVR problem:

[0088]

[0089] Another feature of the SVR model is that it can achieve high-dimensional mapping of samples. The mapping process uses the kernel function to achieve the mapping of sample data. At this time, the objective function becomes:

[0090]

[0091] in It is a kernel function that can map position samples to high-dimensional feature space. In the SVR model, there are the following kernel function options:

[0092] Table 3 SVR kernel function types

[0093]

[0094] In general applications, the Gaussian kernel function with better adaptability is usually selected as the default function. Since the kernel function will also affect the measurement results of SVR, it is necessary to select a suitable SVR kernel function. Commonly used SVR functions include: linear kernel function, polynomial kernel function and radial basis kernel function, so the above three kernel functions are selected for comparative testing of measurement effects.

[0095] The test environment is MATLAB R2020b version, and the fitrsvm function is used to establish the SVR model. The specific test method is as follows:

[0096] (1) Shuffle the data and form a new shuffled data set;

[0097] (2) Divide the data set into training set and test set;

[0098] (3) Set the parameters of the kernel function of the support vector regression algorithm to Linear, Polynomial, and RBF;

[0099] (4) Use three different kernel functions of SVR to train the training set data and obtain the algorithm model after training;

[0100] (5) Use the trained algorithm models to measure the test set data;

[0101] (6) Calculate the root mean square error (RMSE), mean absolute error (MAE), and goodness of fit (R) of the three different kernel functions in the training set and test set. 2 ) is used as the computational evaluation index of the model.

[0102] (7) Plot the relative error percentage between the measured values ​​and the true values ​​of the three kernel functions in the training set and test set respectively.

[0103] Now we give RMSE, MAE and R 2 The calculation formula is as follows:

[0104]

[0105]

[0106]

[0107] In the formula, i is the variable, N is the number of variables, and x i is the true value, x i ′ is the predicted value, is the average value.

[0108] After software calculation, the evaluation indicators are shown in Table 4 below.

[0109] Table 4 Performance evaluation of three kernel functions

[0110]

[0111] It can be concluded from Table 4 that the polynomial kernel function has the largest data in RMSE and MAE, indicating that the gap between the predicted data and the actual value is very large, and it is also reflected in the goodness of fit R 2It shows that the overall fitting degree is not high; compared with other functions, the various indicators of the RBF kernel function are very excellent, so RBF is determined to be the kernel function applicable to the present invention.

[0112] The general expression of the RBF function is:

[0113]

[0114] The kernel function parameter σ and penalty factor C of the SVR algorithm are important factors that determine the performance of the support vector regression model. The parameter σ directly and implicitly determines the distribution of the data after being mapped to the new feature space and the rate of model training and measurement. Since the coal gangue content detection system based on AC impedance technology involved in the present invention has the characteristics of small data samples and strong data heterogeneity, in order to obtain an optimization algorithm that adapts to the characteristics of the data set of this system, the currently widely used dung beetle algorithm (DBO), sparrow algorithm (SSA), particle swarm algorithm (PSO), gray wolf algorithm (GWO), whale algorithm (WOA) and ant colony algorithm (ALO) are selected to compare and select the cross-validation error of the SVR model as a test function, and the fitness convergence curves of the above 6 optimization algorithms and the bar graphs of the algorithm optimization results are obtained as shown in the figure. Fig.11 , Fig.12 shown.

[0115] like Fig.13 As shown in the figure, the construction and optimization steps of the SSA-SVR model are as follows:

[0116] The penalty coefficient and kernel function width of SVR are used as the location information of the sparrow, and the cross-validation accuracy of the SVR model is used as the fitness in the SSA model.

[0117] Step 1: Normalize the data to eliminate the impact of dimensional differences between different variables on the analysis.

[0118] Step 2: Initialize the relevant parameters of the standard SSA algorithm: the number of sparrow populations, predators, proportion of joiners, safety, warning value, population, number of iterations and other parameters. The specific parameter settings of the SSA algorithm are shown in Table 5. Further initialize the position. The position of the discoverer in the sparrow is randomly generated according to the following formula. Each position of the sparrow represents a pair of parameters [C (penalty factor), σ (core parameter)]. According to relevant references and engineering experience, the penalty factor C∈[10-1,102] and the core parameter σ∈[10-3,102] are selected.

[0119] Table 5 SSA algorithm parameter settings

[0120]

[0121] Step 3 obtains the fitness of each individual through the SVR cross-validation function.

[0122] Select the selected data set to perform model measurement on the sample gangue content and define the model measurement value y i * and the actual measured value y i The fitness function is defined using the mean square error formula:

[0123]

[0124] Step 4 sorts the fitness and finds the current best and worst individuals.

[0125] Step 5 updates the locations of producers, scavengers, and early warning personnel.

[0126] Step 6 calculates the fitness of the updated population individuals.

[0127] In step 5, updating the producer position follows the following formula:

[0128]

[0129] in, It represents the value of the jth dimension of the ith sparrow at iteration t; iter represents the number of iterations, iter max is the maximum number of iterations, which is a set constant; α is a random number between 0 and 1; R2 and ST represent the alarm value and safety threshold respectively. When R2<ST, it means there are no predators around and the producer enters the wide-area search mode. Otherwise, it means that some sparrows have discovered the predator and all sparrows need to fly quickly to other safe areas; Q is a random number that obeys the normal distribution; L represents a 1×d matrix in which each element is 1.

[0130] After updating the joiner's position as described in step 5, in order to avoid falling into the local optimum, the position update strategy described in the following formula is introduced:

[0131]

[0132] Where X P is the current optimal position; X worst Indicates the current global worst position; A is a 1×d matrix, each element in the matrix is ​​randomly set to -1 or 1, A + =A T (AA T ) -1 ; When i>n2, it indicates that the fitness is poor and needs to be moved again.

[0133] The strategy for updating the alerter's position in step 5 is:

[0134]

[0135] Among them, X best is the current global optimal position; β is the step size control parameter, which has a variance of 1 and a mean of 0; K∈[-1,1]; f i is the fitness value of the current sparrow, f g and f w are the current global optimal and worst fitness values ​​respectively; ε is the minimum constant used to avoid zero division error (error caused by the divisor in the division operation or the divisor in the modulus operation is 0). i >f g When X best It is regarded as the center of the sparrow group, and the surrounding is safe. i =f g When , it indicates that the sparrow in the middle of the group is aware of the danger and needs to get closer to other sparrows; K represents the moving direction of the sparrow and is also the step length control coefficient.

[0136] Step 7 updates the optimal position information and fitness information.

[0137] Step 8 determines whether the iteration termination condition is met (the number of iterations is greater than or equal to the maximum number of iterations). If the termination condition is not met, the number of iterations is increased by 1, and the process goes to step 5 to continue updating the iteration; if the termination condition is met, the process goes to step 9.

[0138] Step 9 obtains the optimal position information and sets it as the penalty coefficient and kernel function width parameter of the SVR model respectively.

[0139] Step 10: Input the parameters and training data into the model for training to obtain the SSA-SVR measurement model.

[0140] Step 11: Input the input quantity of the measurement sample into the model for measurement to obtain the measurement result.

[0141] Step 12 performs denormalization on the measurement results and outputs them.

[0142] Step 13 performs comprehensive processing on the measurement data (averaging five groups) to obtain a comprehensive measurement result.

[0143] By comparing the existing AC impedance coal doping or gangue content detection method, in order to verify the effectiveness of the method described in the present invention, PB, SVR, improved BP (SSA-BP) and improved SVR (SSA-SVR) methods are used to perform test data training and simulation, and the results are shown in Table 6.

[0144] Table 6 Comparison of simulation results of BP, SVR and SSA optimized models

[0145]

[0146] Through the comparison of the above performance indicators, it can be observed that the SVR model is superior to the BP neural network in the fitting and measurement capabilities of coal gangue content. At the same time, the introduction of the SSA search algorithm greatly improves the fitting ability of the algorithm, improves the goodness of fit, and reduces the mean absolute error and root mean square error.

[0147] After comparative analysis, it was found that the SSA-SVR model was the best performing model. The test fit after comprehensive processing exceeded 0.98, the average absolute error was less than 2, and the average relative error was 5.4187%. The average relative error of the gangue coal content measurement model based on machine vision was 9.61% in horizontal comparison, and it could even reach 25.33% in the case of stacking. The model proposed in this embodiment has a significant improvement in performance compared to this model.

[0148] In other preferred embodiments, a visualized upper computer software for measuring the coal gangue content can also be developed, and the lower computer is a coal AC impedance test platform, and the test platform sends the detected AC impedance (amplitude and phase) and moisture content to the upper computer through the serial port; the upper computer is mainly responsible for receiving data from the lower computer, and using the SSA-SVR model for measurement, and sending the measured gangue content result of the coal sample to be tested to the lower computer for display through the serial port sending module. The upper computer and the lower computer together constitute the entire coal gangue content detection system.

[0149] In addition to login settings and data storage settings, data encryption and permission management measures need to be implemented to ensure that users can view measurement and analysis data more conveniently and safely. Data encryption can protect the security of data during transmission and storage, while permission management ensures that users can only access data and functions for which they have permission. Such comprehensive measures not only enhance data security, but also improve user experience.

[0150] This embodiment also provides a coal gangue content measurement system based on AC impedance detection, including:

[0151] A model building module, which is used to collect sample data, the sample data including the measurement frequency, moisture content, compactness, impedance data and gangue content of the coal sample, and input the sample data into the model for training to obtain a gangue content measurement model with the measurement frequency, moisture content, compactness and impedance data as input and the gangue content as output;

[0152] The gangue content measurement module is used to measure the target coal, obtain the measurement frequency, moisture content, compactness and impedance data of the target coal and input them into the gangue content measurement model, and obtain the gangue content of the target coal through the gangue content measurement model.

[0153] The coal gangue content measurement system of this embodiment and the aforementioned coal gangue content measurement method are based on the same inventive concept, which can be understood with reference to the above description and will not be described in detail here.

[0154] like Fig.14 As shown, this embodiment also provides a computer device, including a processor 101 and a memory 102 connected by bus signals, wherein the memory 102 stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded by the processor 101 to execute the coal gangue content measurement method as described above. The memory 102 can be used to store software programs and modules, and the processor 101 executes various functional applications by running the software programs and modules stored in the memory 102. The memory 102 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory 102 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 102 can also include a memory controller to provide the processor 101 with access to the memory 102.

[0155] The method embodiments provided in the embodiments of the present disclosure may be executed in a computer terminal, a server or a similar computing device, that is, the above-mentioned computer device may include a computer terminal, a server or a similar computing device. The internal structure of the computer device may include but is not limited to: a processor, a network interface and a memory. Among them, the processor, network interface and memory in the computer device may be connected via a bus or other means.

[0156] Among them, the processor 101 (or CPU (Central Processing Unit)) is the computing core and control core of the computer device. The network interface may optionally include a standard wired interface, a wireless interface (such as WI-FI, a mobile communication interface, etc.). The memory 102 (Memory) is a memory device in the computer device for storing programs and data. It can be understood that the memory 102 here can be a high-speed RAM storage device, or a non-volatile storage device (non-volatile memory), such as at least one disk storage device; optionally, it can also be at least one storage device located away from the aforementioned processor 101. The memory 102 provides a storage space, which stores the operating system of the electronic device, which may include but is not limited to: Windows system (an operating system), Linux (an operating system), Android (Android, a mobile operating system) system, IOS (a mobile operating system) system, etc., and the present disclosure does not limit this; and, in the storage space, one or more instructions suitable for being loaded and executed by the processor 101 are also stored, and these instructions can be one or more computer programs (including program codes). In the embodiment of the present specification, the processor 101 loads and executes one or more instructions stored in the memory 102 to implement the coal gangue content measurement method described in the above method embodiment.

[0157] The embodiment of the present disclosure also provides a computer-readable storage medium, on which at least one instruction or at least one program is stored, and when the at least one instruction or the at least one program is loaded by the processor 101, the coal gangue content measurement method as described above is executed. The computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0158] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

[0159] On the basis of moisture content and gangue content, the present invention introduces two important influencing factors, namely, measurement frequency and compactness, as auxiliary variables of the gangue content measurement model, and fully considers various factors that may affect the AC impedance of coal, so that the results of measuring the gangue content of coal based on various auxiliary variables are more comprehensive and accurate. Compared with the scheme of considering the effects of moisture content and gangue content on the AC impedance of coal separately in the existing literature, the method is more scientific and helps to improve the accuracy of the measurement of the gangue content of coal.

[0160] The present disclosure fully considers the vector characteristics of AC impedance and introduces an amplitude plus phase representation method, which is more complete and accurate than the method of using resistance alone;

[0161] The present invention is based on the characteristics of coal AC impedance data, and fully considers the situation of introducing multiple auxiliary variables after measuring frequency and compactness. It adopts support vector regression model as the gangue content measurement model, and adopts RBF as the kernel function of the model. It adopts sparrow algorithm as the optimization algorithm to construct SSA-SVR measurement model, which can meet the operation requirements of the present invention and has high measurement accuracy.

[0162] In the description of the present disclosure, it is necessary to understand that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the scope of protection of the present disclosure.

[0163] For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the protection scope of the claims of the present disclosure.

[0164] In the description of the present disclosure, it is necessary to understand that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the scope of protection of the present disclosure.

[0165] For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the protection scope of the claims of the present disclosure.

Claims

1. A method for measuring the gangue content of coal based on AC impedance detection, characterized in that: The following steps are involved: Model construction: Collect sample data, including the measurement frequency, moisture content, compactness, impedance data and gangue content of the coal sample, input the sample data into the model for training to obtain a gangue content measurement model with the measurement frequency, moisture content, compactness and impedance data as input and the gangue content as output; Gangue content measurement: measuring the target coal, obtaining the measurement frequency, moisture content, compactness and impedance data of the target coal and inputting them into the gangue content measurement model, and obtaining the gangue content of the target coal through the gangue content measurement model; The compactness is represented by the internal pressure of the coal, and the impedance data includes the phase and amplitude of the AC impedance; In the model building step, we collect Group sample data, each group of sample data is represented as a sample set , , the support vector regression model is used as the gangue content measurement model: , in, Represents a sample set A subset of features, Represents a sample set The corresponding gangue content value is and denote the normal vector and intercept of the hyperplane respectively, Represents a matrix transpose operation; Using RBF as the kernel function of the support vector regression model; The sparrow algorithm is used as the optimization algorithm of the support vector regression model.

2. The method for measuring the gangue content of coal based on AC impedance detection according to claim 1, characterized in that: The measuring frequency is 10 kHz, 30 kHz, 50 kHz, 70 kHz or 90 kHz.

3. The method for measuring the gangue content of coal based on AC impedance detection according to claim 1 or 2, characterized in that: In the model building step, sample data is built by an orthogonal experimental method according to the correlation of various factors in the sample data.

4. According to the coal gangue content measurement method based on AC impedance detection in claim 3, the Pearson correlation coefficient is used to analyze the correlation of various factors in the sample data, and a heat map is constructed to characterize the correlation analysis results.

5. A coal gangue content measurement system based on AC impedance detection, using a coal gangue content measurement method based on AC impedance detection as described in any one of claims 1 to 4, characterized in that: include: A model building module, which is used to collect sample data, the sample data including the measurement frequency, moisture content, compactness, impedance data and gangue content of the coal sample, and input the sample data into the model for training to obtain a gangue content measurement model with the measurement frequency, moisture content, compactness and impedance data as input and the gangue content as output; The gangue content measurement module is used to measure the target coal, obtain the measurement frequency, moisture content, compactness and impedance data of the target coal and input them into the gangue content measurement model, and obtain the gangue content of the target coal through the gangue content measurement model.

6. A computer device comprising a processor and a memory connected by signals, characterized in that: The memory stores at least one instruction or at least one program, and when the at least one instruction or the at least one program is loaded by the processor, the method for measuring the gangue content in coal based on AC impedance detection as described in any one of claims 1-4 is executed.

7. A computer-readable storage medium having at least one instruction or at least one program stored thereon, characterized in that: When the at least one instruction or the at least one program is loaded by the processor, the method for measuring the gangue content in coal based on AC impedance detection as described in any one of claims 1 to 4 is executed.