A coal gangue identification method based on electromagnetic detection
Through the coal gangue identification method based on electromagnetic detection, static coal gangue electromagnetic signals are used to train the identification network and update parameters, which solves the environmental impact and sample information extraction difficulties of intelligent identification of coal gangue in fully mechanized caving working face, improves the identification accuracy and coal gangue Waste recovery rate and enhanced safety.
Patent Information
- Application Number
- CN202410521164.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-04-28
Smart Images

Figure CN118364289B
Abstract
Description
Technical Field
[0001] The invention relates to a coal gangue identification method, in particular to a coal gangue identification method based on electromagnetic detection, and belongs to the technical field of coal gangue identification in fully mechanized caving working faces. Background Art
[0002] Among the existing coal reserves, the production and reserves of thick coal seams (thickness ≥ 5m) account for about 45%, and the coal reserves with a burial depth of more than 1,000 meters account for 50%. Therefore, mines with a production capacity of tens of millions of tons in my country are mainly based on thick coal seams. Comprehensive mechanized top coal caving mining (abbreviated as fully mechanized top coal caving mining) is usually carried out by arranging a coal mining face along the bottom of a gently inclined extra-thick coal seam or at the bottom of a certain stage of height of a steeply inclined extra-thick coal seam. The coal on the top of the working face is collapsed at the rear of the coal mining face by the effect of mine pressure or with the aid of artificial loosening, and falls into the coal discharge port of the top coal caving hydraulic support and is transported out by the rear scraper conveyor. The fully mechanized top coal caving mining has the advantages of low tunnel excavation rate, low investment, high production and high efficiency, and the ability to adapt to changes in coal seam thickness. It is currently a widely promoted mining method for mining thick coal seams in my country.
[0003] The coal discharge process of fully mechanized caving mining is currently usually controlled by manual operation. When operating the coal discharge port at the rear of the hydraulic support, the coal discharger needs to continuously observe the coal falling situation at the rear end of the hydraulic support by listening and visual inspection, and judge the approximate proportion of the discharged coal gangue according to the color, texture and sound of the discharged material, and then make a decision on the closing time of the coal discharge port. When a large amount of gangue falls, the rear coal discharge port is closed through the hydraulic support electro-hydraulic control system. This method of manually controlling the coal discharge port is not only labor-intensive, low in work efficiency, and highly random, but also very easy to cause over-discharge and under-discharge, resulting in reduced coal gangue recovery rate and coal quality, increased transportation and washing costs, and other problems. In addition, the harsh working conditions at the fully mechanized caving site will endanger the personal safety and health of the coal discharger. Therefore, the intelligent identification of coal gangue in the fully mechanized caving working face is a technical problem that needs to be solved urgently in the coal field. It is one of the key technologies for intelligent fully mechanized caving mining in coal mines and a prerequisite for realizing unmanned fully mechanized caving working faces.
[0004] The methods used for intelligent identification of coal gangue in fully mechanized caving working faces in the prior art focus on natural gamma ray detection, detection of vibration and sound signals generated by coal gangue falling and impacting the rear tail beam of hydraulic support or scraper conveyor, digital image recognition, etc. With the development of deep learning network models based on convolutional neural networks, the intelligent detection of coal and gangue in coal and gangue mixtures is achieved by machine learning based on the principles of target classification and target detection, which can provide new ideas and directions for intelligent identification of coal gangue in fully mechanized caving working faces. However, the methods of coal gangue identification using deep learning models in the prior art are greatly affected by the environment and difficult to extract sample information. Summary of the invention
[0005] In view of the problems existing in the above-mentioned prior art, the present invention provides a coal gangue identification method based on electromagnetic detection, which uses the coal gangue electromagnetic signals of a simulated static coal gangue dropping experiment as experimental samples to train the identification network, and uses the electromagnetic data of dynamically dropped coal gangue to update the identification network, thereby improving the accuracy of the identification network by effectively increasing the training samples.
[0006] To achieve the above purpose, the coal gangue identification method based on electromagnetic detection specifically includes the following steps:
[0007] Step 1, establish the original data set including CIFAR data set and static coal gangue electromagnetic time-frequency image data set;
[0008] The acquisition of static coal gangue electromagnetic time-frequency map data set includes the following steps:
[0009] Step 1-1, build a static coal-gangue mixture electromagnetic detection experimental platform, which includes a sample box, a transmitting antenna, a receiving antenna, a vector network analyzer and a computer. The transmitting antenna and the receiving antenna, which are electrically connected to the vector network analyzer through radio frequency connecting lines, are arranged on both sides of the sample box respectively. The vector network analyzer is electrically connected to the computer. After signal calibration, the experimental sample is placed in the sample box;
[0010] Step 1-2, start the signal generator module of the vector network analyzer, conduct electromagnetic detection experiments on the experimental samples in the sample box through the transmitting antenna and the receiving antenna, continuously collect electromagnetic signal data, and convert the two-dimensional electromagnetic data into time-frequency images and save them to form a static coal gangue electromagnetic time-frequency map data set.
[0011] Step 2, perform initial convolutional neural network training on the original data set, set termination training iteration conditions including the number of training iterations or monitoring network performance indicators, stop training when the network reaches a predetermined number of iterations or performance level, and obtain the optimal network model including the optimal model parameters;
[0012] Step 3: Input the coal-rock dynamic electromagnetic time-frequency diagram into the optimal network model to update the network training. Use transfer learning to apply the trained network model to the coal-rock dynamic electromagnetic time-frequency diagram for training. Fine-tune the network parameters to make the network adapt to the new data distribution and feature representation, and finally train a network structure that has completed transfer learning.
[0013] Step 4, after testing and verifying the network, save the network's structural parameters and input the real-time dynamic coal gangue electromagnetic time-frequency diagram for identification.
[0014] Furthermore, in Step 1-2, converting the two-dimensional electromagnetic data into a time-frequency image specifically includes the following steps:
[0015] Step 1-2-1, save the received electromagnetic data in S2P format;
[0016] Step 1-2-2, extract the frequency domain signal S from the S2P file 11 ;
[0017] Step 1-2-3, O(0,0) is the antenna excitation signal, and the antenna excitation signal is a sinusoidal excitation signal, O(1,1) is the time domain reflection wave signal, calculate the reflection signal F[O(1,1)], and obtain the frequency domain data;
[0018] Step 1-2-4, after selecting a suitable window function, multiply the frequency domain data by the selected window function point by point to obtain the windowed frequency domain data;
[0019] Step 1-2-5, use the inverse linear frequency modulation Z transform to convert the frequency domain signal into the time domain signal, specifically:
[0020] Assume that the linear frequency modulation signal is represented in the frequency domain as X(f), where f represents the frequency. X(f) is obtained by Fourier transform. The frequency domain signal X(f) is Z-transformed to obtain the representation in the Z plane. The Z-transform is expressed by the following formula:
[0021]
[0022] Where: x(n) is the time domain signal, N is the length of the signal, and z is a complex variable;
[0023] Through the inverse linear frequency modulation Z transform operation, the signal on the Z plane is mapped back to the time domain, which is expressed by the following formula:
[0024]
[0025] Where: C is a closed path on the Z plane, usually a unit circle; j represents a complex number;
[0026] Step 1-2-6, according to the time domain signal and the frequency domain signal, the electromagnetic signal amplitude, time and frequency are converted into a time-frequency diagram using continuous wavelet transform. Specifically:
[0027] The selected wavelet basis function is convolved with the time domain signal to be analyzed to obtain wavelet transform coefficients of continuous scale, and then these coefficients are converted into a time-frequency diagram that reflects both time and frequency information, where the horizontal axis represents time, the vertical axis represents frequency, and the color or brightness of the image represents the energy or amplitude of the signal;
[0028] Step 1-2-7, convert all coal gangue electromagnetic data into electromagnetic time-frequency diagrams and store them in the sample library.
[0029] Furthermore, the reflection signal F[O(1,1)] is obtained in Step 1-2-3 as follows:
[0030] For an M-port network, the S parameter is described as an M×M square matrix, and any element in the matrix is described by the following formula:
[0031]
[0032] Where: F represents the Fourier transform of the function, V m (t), V n (t) represents the real-time voltage value of port m and port n, Z 0m , Z 0n Represents the characteristic impedance of the m-port and the n-port;
[0033] The reflected signal F[O(1,1)] is obtained according to the above formula.
[0034] Furthermore, when a two-port network is used, the impedance values of the two ports are the same, which can be simplified to
[0035]
[0036] The reflected signal F[O(1,1)] is obtained according to the above formula.
[0037] Furthermore, the windowing process in Step 1-2-4 is expressed by the following formula:
[0038]
[0039] Where: X(f) is the original frequency domain data, representing the frequency domain signal extracted from the S parameters, X w (f) is the frequency domain data after windowing, I 0 is the modified zero-order Bessel function, β is the window shape parameter, and f c is the main lobe width parameter of the window, and f is the frequency.
[0040] Furthermore, in Step 1-2-6, the electromagnetic signal is expressed as x(n) in the time domain, and the wavelet basis function is ψ(t), then the continuous wavelet transform is expressed as:
[0041]
[0042] Where: a,b (n) is the wavelet basis function adjusted according to the scale parameter a and the displacement parameter b.
[0043] Furthermore, the experimental samples in Step 1-1 include coal block samples and gangue samples. The particle sizes of the coal block samples and gangue samples are divided into multiple particle sizes according to the actual working conditions of the fully mechanized caving working face. The coal block samples and gangue samples are weighed and proportioned by a mass scale to form experimental samples with different particle sizes and different coal-gangue mixed ratios.
[0044] Furthermore, in Step 3, when the trained network model is applied to the coal-rock dynamic electromagnetic time-frequency diagram for training by using transfer learning, the specific steps are as follows:
[0045] Step 3-1, load the convolutional neural network model pre-trained on the static gangue dataset and the cifar dataset. This model includes the feature representation learned on the static gangue dataset and the cifar dataset;
[0046] Step 3-2, keep the underlying feature extractor of the model unchanged and choose to freeze the bottom layer of the model;
[0047] Step 3-3, fine-tune the model according to the characteristics of the dynamic coal gangue dataset, add or delete some fully connected layers, and adjust the number or size of convolution kernels;
[0048] Step 3-4, select the top layer or part of the layers of the unfrozen model and use the dynamic coal gangue dataset to fine-tune the model, and train these layers during the fine-tuning process;
[0049] Step 3-5, use an independent validation set to evaluate the fine-tuned model, and make further adjustments and optimizations based on the evaluation results by adjusting the model structure, adjusting hyperparameters, or adding data enhancement.
[0050] Furthermore, in Step 3-4, a small learning rate is selected when fine-tuning the model using the dynamic coal gangue dataset.
[0051] Compared with the existing technology, this coal gangue identification method based on electromagnetic detection uses the CIFAR data set and the electromagnetic signals of coal gangue in simulated static coal gangue dropping experiments as experimental samples to train the recognition network. Then, transfer learning is used to input the electromagnetic data of dynamically dropped coal gangue to update the recognition network, which can effectively increase the training samples and improve the accuracy of the recognition network. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a schematic diagram of the principle of the present invention;
[0053] Figure 2 It is a schematic diagram of the static coal-gangue mixture electromagnetic detection experimental platform of the present invention;
[0054] Figure 3 It is the time-frequency diagram of electromagnetic signal of coal gangue of the present invention;
[0055] Figure 4 It is a physical picture of the experimental samples of coal gangue mixture with different mixing ratios;
[0056] Figure 5 This is a physical picture of experimental samples of coal gangue mixture with different particle sizes. DETAILED DESCRIPTION
[0057] The coal gangue identification method based on electromagnetic detection uses CIFAR data set and electromagnetic signals of coal gangue in simulated static coal gangue dropping experiment as experimental samples to train the identification network, and then uses transfer learning to input electromagnetic data of dynamically dropped coal gangue to update the identification network, which can effectively increase the training samples to improve the accuracy of the identification network. The present invention is further described below in conjunction with the accompanying drawings.
[0058] like Figure 1 As shown, the coal gangue identification method based on electromagnetic detection specifically includes the following steps:
[0059] Step 1: Create an original dataset containing the CIFAR dataset and the static coal gangue electromagnetic time-frequency map dataset. By performing continuous wavelet transform on the electromagnetic signal data, the time domain and frequency domain information of the electromagnetic signal are fused into a time-frequency map, thereby providing a richer and more accurate feature representation.
[0060] The acquisition of static coal gangue electromagnetic time-frequency map data set includes the following steps:
[0061] Step 1-1, build a static coal-gangue mixture electromagnetic detection experimental platform, such as Figure 2 As shown, the static coal gangue mixture electromagnetic detection experimental platform includes a sample box, a transmitting antenna, a receiving antenna, a vector network analyzer and a computer. The transmitting antenna and the receiving antenna, which are electrically connected to the vector network analyzer through radio frequency connecting lines, are correspondingly arranged on both sides of the sample box. The vector network analyzer is electrically connected to the computer. After signal calibration, the experimental sample is placed in the sample box.
[0062] When calibrating the signal, first reset the parameter settings of the vector network analyzer, set the excitation channel to 2, set 2 traces for each channel, set the scan type of the excitation signal to linear frequency scan, set the scan range to 100KHz to 8.5GHz, set the number of scan points to 1601, and calibrate the signal of the vector network analyzer through the RF calibration device, which are open, short and load calibration respectively, and then use the transfrom calibration piece to connect the two RF cables for transmission calibration. After the calibration is completed, use two RF cables to connect to the transmitting antenna and the receiving antenna respectively. In order to achieve better electromagnetic detection effect, the transmitting antenna and the receiving antenna are double-ridged horn ultra-wideband antennas with a bandwidth of 0 to 12GHz.
[0063] The experimental samples include coal block samples and gangue samples. The types of coal block samples can be divided into bituminous coal, anthracite, lignite, etc., and the types of gangue samples can be divided into mudstone, shale, sandstone, etc., and the particle sizes of coal block samples and gangue samples are divided into multiple particle sizes according to the actual working conditions of the fully mechanized caving working face. The coal block samples and gangue samples are weighed and proportioned by a mass scale to form experimental samples with different particle sizes and different coal-gangue mixed ratios.
[0064] Step 1-2, start the signal generator module of the vector network analyzer, set the trigger source to internal excitation, and the trigger mode to "Continuous" scanning. Perform electromagnetic detection experiments on the experimental samples in the sample box through the transmitting antenna and the receiving antenna, continuously collect electromagnetic signal data, and convert the two-dimensional electromagnetic data into time-frequency images to save them to form a static coal gangue electromagnetic time-frequency diagram data set. These electromagnetic signal data record the electromagnetic characteristics of coal gangue mixtures under different conditions, which can provide rich sample resources for subsequent model training.
[0065] The conversion of two-dimensional electromagnetic data into time-frequency images includes the following steps:
[0066] Step 1-2-1, save the received electromagnetic data in S2P format.
[0067] Step 1-2-2, extract the frequency domain signal S from the S2P file 11 .
[0068] Step 1-2-3, O(0,0) is the antenna excitation signal, and the antenna excitation signal is a sinusoidal excitation signal, O(1,1) is the time domain reflection wave signal, calculate the reflection signal F[O(1,1)], and obtain the frequency domain data.
[0069] For an M-port network, the S parameter can be described as an M×M square matrix. Any element in the matrix can be described by the following formula:
[0070]
[0071] Where: F represents the Fourier transform of the function, V m (t), V n (t) represents the real-time voltage value of port m and port n, Z 0m , Z 0n Represents the characteristic impedance of the m-port and the n-port.
[0072] When using a two-port network, the impedance values of the two ports are the same, so it can be simplified to
[0073]
[0074] In the S parameter, S 11The amount of signal reflected from the transmitting port of the system under test is called return loss; S 21 The amount of signal received from the transmitting port to the receiving port is called insertion loss. It can also be understood as the amount of signal transmitted from the transmitting port through the medium to the receiving port. The reflected signal F[O(1,1)] can be obtained according to the above formula.
[0075] Step 1-2-4, after selecting the appropriate window function, multiply the frequency domain data by the selected window function point by point to reduce spectrum leakage and harmonic interference, improve spectrum resolution and accuracy, and obtain the windowed frequency domain data, so that it changes in frequency to adapt to the spectrum shape of the window function. You can select a Kasier window and apply it to the frequency domain data to obtain the windowed frequency domain data. The windowing process can be expressed by the following formula:
[0076]
[0077] Where: X(f) is the original frequency domain data, representing the frequency domain signal extracted from the S parameters, X w (f) is the frequency domain data after windowing, I 0 is the modified zero-order Bessel function, β is the window shape parameter, and f c is the main lobe width parameter of the window, and f is the frequency.
[0078] Step 1-2-5, use the inverse linear frequency modulation Z transform to convert the frequency domain signal into a time domain signal. The inverse linear frequency modulation Z transform is a transformation method based on the complex domain. It converts the frequency domain signal into a representation of the time domain signal by performing complex mathematical operations on the frequency domain signal. In this process, the frequency domain signal is mapped to the time axis while retaining the frequency domain characteristics. It can obtain frequency domain information in the time domain while gaining a deeper understanding of the time domain structure and dynamic changes of the signal. Assume that the linear frequency modulation signal is represented in the frequency domain as X(f), where f represents the frequency. X(f) can be obtained by Fourier transform. Perform a Z transform on the frequency domain signal X(f) to obtain a representation on the Z plane. The Z transform can be expressed by the following formula:
[0079]
[0080] Where: x(n) is the time domain signal, N is the length of the signal, and z is a complex variable.
[0081] Through the inverse linear frequency modulation Z transform operation, the signal on the Z plane is mapped back to the time domain, which can be expressed as:
[0082]
[0083] Where: C is a closed path on the Z plane, usually a unit circle; j represents a complex number.
[0084] The above integral can be approximated by using numerical integration methods, such as the composite trapezoidal integration method or the Simpson integration method, to calculate the inverse transform.
[0085] Step 1-2-6, according to the time domain signal and the frequency domain signal, the electromagnetic signal amplitude, time and frequency are converted into a time-frequency diagram using continuous wavelet transform. The selected wavelet basis function is convolved with the time domain signal to be analyzed to obtain the wavelet transform coefficients of continuous scale, and then these coefficients are expressed as a time-frequency diagram, where the horizontal axis represents time, the vertical axis represents frequency, and the color or brightness of the image represents the energy or amplitude of the signal, so that Figure 3 As shown, the time domain signal and the frequency domain signal are converted into a time-frequency diagram that reflects both time and frequency information.
[0086] The electromagnetic signal is represented as x(n) in the time domain, the wavelet basis function is ψ(t), and the continuous wavelet transform can be expressed as:
[0087]
[0088] Where: a,b (n) is a wavelet basis function adjusted according to the scale parameter a and the displacement parameter b. The wavelet basis function can be Morlet wavelet.
[0089] Step 1-2-7, convert all coal gangue electromagnetic data into electromagnetic time-frequency diagrams and store them in the sample library to prepare for subsequent deep learning.
[0090] Step 2, perform initial training of the convolutional neural network on the original data set, set termination training iteration conditions including the number of training iterations or monitoring network performance indicators, stop training when the network reaches the predetermined number of iterations or performance level, and obtain the optimal network model including the optimal model parameters. By performing initial training of the convolutional neural network on the CIFAR data set and the static coal gangue electromagnetic time-frequency image data set, the network can learn rich feature representations to prepare for subsequent recognition tasks.
[0091] Step 3, input the coal rock dynamic electromagnetic time-frequency diagram into the optimal network model to update the network training, use transfer learning to apply the trained network model to the coal rock dynamic electromagnetic time-frequency diagram for training, and fine-tune the network parameters to enable the network to adapt to the new data distribution and feature representation, and finally train the network structure that has completed transfer learning.
[0092] When using transfer learning to apply the trained network model to the coal-rock dynamic electromagnetic time-frequency diagram for training, the specific steps are as follows:
[0093] Step 3-1, load the convolutional neural network model pre-trained on the static coal gangue dataset and the cifar dataset. This model contains the feature representations learned on the static coal gangue dataset and the cifar dataset.
[0094] Step 3-2, keep the underlying feature extractor of the model unchanged and choose to freeze the bottom layer of the model. Doing so prevents these layers from being modified during fine-tuning, thereby retaining the features they learned on the original dataset.
[0095] Step 3-3, fine-tune the model according to the characteristics of the dynamic coal gangue dataset, add or delete some fully connected layers, adjust the number or size of convolution kernels, etc. These adjustments can make the model better adapt to the new dataset.
[0096] Step 3-4, select the top layer or part of the layers of the unfrozen model and use the dynamic coal gangue dataset to fine-tune the model, and train these layers during the fine-tuning process. This allows the model to gradually adapt to the characteristics of the new dataset. During the fine-tuning process, a smaller learning rate can be selected to avoid over-adjusting the model parameters on the new dataset. The fine-tuning process should be performed with the bottom layer frozen to ensure that the feature representation of the bottom layer remains unchanged.
[0097] Step 3-5, use an independent validation set to evaluate the fine-tuned model. Based on the evaluation results, further adjustments and optimizations are made by adjusting the model structure, adjusting hyperparameters, or adding data enhancement to improve the performance and generalization ability of the model, thereby achieving better performance. During the evaluation process, it is necessary to consider indicators such as the model's accuracy, recall rate, and F1 value to ensure the generalization ability and stability of the model.
[0098] Step 4, after testing and verifying the network, save the structural parameters of the network, and input the real-time dynamic coal gangue electromagnetic time-frequency diagram for identification. By testing and verifying the trained network model, evaluate its performance in the coal gangue identification task, and save the structural parameters of the network. In practical applications, you only need to input the real-time collected dynamic coal gangue electromagnetic time-frequency diagram to identify the mixed gangue rate through the trained network model.
[0099] Example:
[0100] Taking the actual coal-rock occurrence conditions of a fully mechanized caving working face in a coal mine as an example, a static coal-gangue mixture electromagnetic detection experimental platform was built, and the coal block samples and gangue samples were weighed and proportioned by a mass scale to form the following Figure 4 , Figure 5As shown in the figure, the experimental samples with different particle sizes and different coal gangue mixed ratios are subjected to electromagnetic detection experiments in the sample box through the transmitting antenna and the receiving antenna, and the electromagnetic signal data are continuously collected. According to Step 1, the two-dimensional electromagnetic data is converted into a time-frequency image and saved to form a static coal gangue electromagnetic time-frequency map data set, and the static coal gangue electromagnetic time-frequency map data set is stored in the sample library.
[0101] Download the cifar-10 dataset. The cifar-10 dataset contains 60,000 color images of 32*32 size. These images are divided into 10 classes, with 6,000 images in each class. 50,000 images are used for training, forming 5 training batches, each with 10,000 images. The other 10,000 images are used for testing, forming a separate test batch. The test batch data is taken from each of the 10 classes. 1,000 images are randomly selected from each class, and the remaining images are randomly arranged to form a training batch. The number of images of each class in each training batch is not necessarily the same. In general, there are at least 5,000 images in each class in the training batch.
[0102] Load the pre-trained model, download the pre-trained weights of the VGG model, load the pre-trained VGG model through the interface provided by the Keras deep learning framework, and build a VGG16 model suitable for the task by adding a fully connected layer or adjusting the output layer on the basis of the pre-trained VGG model. To ensure the convergence and stability of the model, select the Adam optimizer, set the learning rate to 0.001, and use the cross entropy loss function as the loss function;
[0103] First, train the model using the training dataset:
[0104] During the training process, monitor the loss and performance indicators on the training set and validation set, and adjust hyperparameters and model tuning as needed. Set the batch size of training to 32 and the number of training epochs to 50.
[0105] Use the test data set to evaluate the performance of the model, use accuracy as the evaluation indicator, obtain the performance of the model on the actual data, and adjust the model according to the evaluation results, including adjusting the network structure, adjusting the hyperparameters, and adding regularization. When the model has completed the preset number of training rounds of 50, it can be judged that the training has been completed, and the trained model is saved as the "vgg16_weights_original.h5" file. At this time, the accuracy of the pre-trained VGG16 model on the ImageNet dataset can reach between 70% and 80%.
[0106] Secondly, transfer learning is performed on the static coal gangue electromagnetic time-frequency graph data:
[0107] Load the "vgg16_weights_original.h5" file that has been trained on a large-scale image dataset and has learned common image features. After loading, add a new output layer on top to meet the requirements of the current task. The number of neurons in the new output layer corresponds to the number of categories of the current task. Freeze the first 19 layers of the VGG16 model. These layers constitute the backbone of VGG16 and are responsible for extracting image features. The purpose of freezing is to keep the parameters of these backbone parts unchanged and not train them, so as to avoid losing the common features learned on large-scale datasets in subsequent training.
[0108] In the model compilation stage, configure the model's optimizer, loss function, and evaluation index. Select the Adam optimizer with a learning rate of 0.001, the cross entropy loss function for multi-category classification tasks, and select accuracy as the evaluation index.
[0109] In the frozen training phase, the VGG16 model with the backbone frozen is used for training. Data batches are generated from the dataset and trained on these batches using the fit_generator function. The number of training rounds is set to 50. In each round of training, the VGG16 model will receive a batch of data, calculate the loss through forward propagation, and update the model parameters through backpropagation.
[0110] In the unfreezing stage, all layers of the VGG16 model are unfrozen so that all layers can participate in subsequent training. The purpose of unfreezing is to make the entire model more flexible and better adapt to the needs of the current task;
[0111] Use the unfrozen VGG16 model to continue training on the dataset. Use the fit_generator function to train again. Set the number of training rounds to 100, with the initial number of training rounds to 50. This setting allows the model to continue learning new features based on the previous ones, thereby further optimizing the performance of the model.
[0112] After the training is completed, the trained model weight file is saved as the "vgg16_weights_Update.h5" file. At this time, the accuracy of the pre-trained VGG16 model on the static coal gangue microwave image dataset can reach about 80% to 90%.
[0113] Then transfer learning is performed on the collected dynamic coal gangue microwave data:
[0114] Load the "vgg16_weights_Update.h5" pre-trained model file. This is a pre-trained model that has been trained on a large-scale image dataset and static coal gangue electromagnetic data. It has learned the image features of static coal gangue data and can be used as a basic model.
[0115] The VGG16 model is adjusted according to the characteristics of the dynamic coal gangue dataset, including adjusting the input layer size of the model to adapt to the image size of the dynamic coal gangue dataset, and adjusting the number of neurons in the output layer to match the number of categories of the task;
[0116] Select Adam optimizer, set learning rate to 0.001, and use cross entropy loss function as loss function;
[0117] Freeze the main part of the VGG16 model, namely the convolutional layer and the pooling layer, and only train the newly added output layer. By freezing the parameters of some layers, training time and computing resources can be saved;
[0118] Gradually unfreeze the layers of the VGG16 model so that the entire model can participate in the training. During the unfreezing training phase, balance the convergence speed and performance of the model by adjusting the learning rate or adopting different training strategies;
[0119] The trained model is evaluated using a dynamic coal gangue dataset. The performance of the model is evaluated by calculating the accuracy, precision, recall and other indicators of the model on the test set. These evaluation indicators can help us understand the performance of the model on actual data and provide a reference for further optimization.
[0120] Tune the model based on the evaluation results, including adjusting the network structure, adjusting hyperparameters (such as learning rate, batch size, etc.), adding regularization, etc., to further improve the performance and generalization ability of the model;
[0121] When the model has completed the preset number of training rounds of 50, it can be judged that the training is complete. The trained model is saved as the "vgg16_weights_Last.h5" file. Through field verification, the accuracy of the pre-trained VGG16 model on the dynamic coal gangue dataset can reach about 90% to 95%.
[0122] This coal gangue identification method based on electromagnetic detection uses the CIFAR dataset and the electromagnetic signals of coal gangue in a simulated static coal gangue dropping experiment as experimental samples to train the recognition network. Then, transfer learning is used to input the electromagnetic data of dynamically dropped coal gangue to update the recognition network, which can effectively increase the training samples and improve the accuracy of the recognition network.
Claims
1. A coal gangue identification method based on electromagnetic detection, characterized in that: The specific steps include: Step 1, establish the original data set including CIFAR data set and static coal gangue electromagnetic time-frequency image data set; The acquisition of static coal gangue electromagnetic time-frequency map data set includes the following steps: Step 1-1, build a static coal-gangue mixture electromagnetic detection experimental platform, which includes a sample box, a transmitting antenna, a receiving antenna, a vector network analyzer and a computer. The transmitting antenna and the receiving antenna, which are electrically connected to the vector network analyzer through radio frequency connecting lines, are arranged on both sides of the sample box respectively. The vector network analyzer is electrically connected to the computer. After signal calibration, the experimental sample is placed in the sample box; Step 1-2, start the signal generator module of the vector network analyzer, conduct electromagnetic detection experiments on the experimental samples in the sample box through the transmitting antenna and the receiving antenna, continuously collect electromagnetic signal data, and convert the two-dimensional electromagnetic data into time-frequency images and save them to form a static coal gangue electromagnetic time-frequency image data set; Step 2, perform initial convolutional neural network training on the original data set, set termination training iteration conditions including the number of training iterations or monitoring network performance indicators, stop training when the network reaches a predetermined number of iterations or performance level, and obtain the optimal network model including the optimal model parameters; Step 3: Input the coal-rock dynamic electromagnetic time-frequency diagram into the optimal network model to update the network training. Use transfer learning to apply the trained network model to the coal-rock dynamic electromagnetic time-frequency diagram for training. Fine-tune the network parameters to make the network adapt to the new data distribution and feature representation, and finally train a network structure that has completed transfer learning. Step 4, after testing and verifying the network, save the network's structural parameters and input the real-time dynamic coal gangue electromagnetic time-frequency diagram for identification.
2. The coal gangue identification method based on electromagnetic detection according to claim 1 is characterized in that: The conversion of two-dimensional electromagnetic data into time-frequency images in Step 1-2 specifically includes the following steps: Step 1-2-1, save the received electromagnetic data in S2P format; Step 1-2-2, extract the frequency domain signal S from the S2P file 11 ; Step 1-2-3, O(0,0) is the antenna excitation signal, and the antenna excitation signal is a sinusoidal excitation signal, O(1,1) is the time domain reflection wave signal, calculate the reflection signal F[O(1,1)], and obtain the frequency domain data; Step 1-2-4, after selecting a suitable window function, multiply the frequency domain data by the selected window function point by point to obtain the windowed frequency domain data; Step 1-2-5, use the inverse linear frequency modulation Z transform to convert the frequency domain signal into the time domain signal, specifically: Assume that the linear frequency modulation signal is represented in the frequency domain as X(f), where f represents the frequency. X(f) is obtained by Fourier transform. The frequency domain signal X(f) is Z-transformed to obtain the representation in the Z plane. The Z-transform is expressed by the following formula: Where: x(n) is the time domain signal, N is the length of the signal, and z is a complex variable; Through the inverse linear frequency modulation Z transform operation, the signal on the Z plane is mapped back to the time domain, which is expressed by the following formula: Where: C is a closed path on the Z plane, usually a unit circle; j represents a complex number; Step 1-2-6, according to the time domain signal and the frequency domain signal, the electromagnetic signal amplitude, time and frequency are converted into a time-frequency diagram using continuous wavelet transform. Specifically: The selected wavelet basis function is convolved with the time domain signal to be analyzed to obtain wavelet transform coefficients of continuous scale, and then these coefficients are converted into a time-frequency diagram that reflects both time and frequency information, where the horizontal axis represents time, the vertical axis represents frequency, and the color or brightness of the image represents the energy or amplitude of the signal; Step 1-2-7, convert all coal gangue electromagnetic data into electromagnetic time-frequency diagrams and store them in the sample library.
3. The coal gangue identification method based on electromagnetic detection according to claim 2 is characterized in that: The reflection signal F[O(1,1)] is obtained in Step 1-2-3 as follows: For an M-port network, the S parameter is described as an M×M square matrix, and any element in the matrix is described by the following formula: Where: F represents the Fourier transform of the function, V m (t), V n (t) represents the real-time voltage value of port m and port n, Z 0m , Z 0n Represents the characteristic impedance of the m-port and the n-port; The reflected signal F[O(1,1)] is obtained according to the above formula.
4. The coal gangue identification method based on electromagnetic detection according to claim 3 is characterized in that: When a two-port network is used, the impedance values of the two ports are the same, which can be simplified to The reflected signal F[O(1,1)] is obtained according to the above formula.
5. The coal gangue identification method based on electromagnetic detection according to claim 2 is characterized in that: The windowing process in Step 1-2-4 is expressed by the following formula: Where: X(f) is the original frequency domain data, representing the frequency domain signal extracted from the S parameters, X w (f) is the frequency domain data after windowing, I0 is the modified zero-order Bessel function, β is the window shape parameter, and f c is the main lobe width parameter of the window, and f is the frequency.
6. The coal gangue identification method based on electromagnetic detection according to claim 2 is characterized in that: In Step 1-2-6, the electromagnetic signal is expressed as x(n) in the time domain, and the wavelet basis function is ψ(t), then the continuous wavelet transform is expressed as: Where: a,b (n) is the wavelet basis function adjusted according to the scale parameter a and the displacement parameter b.
7. The coal gangue identification method based on electromagnetic detection according to claim 1, characterized in that: The experimental samples in Step 1-1 include coal block samples and gangue samples. The particle sizes of the coal block samples and gangue samples are divided into multiple particle sizes according to the actual working conditions of the fully mechanized caving working face. The coal block samples and gangue samples are weighed and proportioned by a mass scale to form experimental samples with different particle sizes and different coal-gangue mixed ratios.
8. The coal gangue identification method based on electromagnetic detection according to claim 1, characterized in that: In Step 3, when using transfer learning to apply the trained network model to the coal-rock dynamic electromagnetic time-frequency diagram for training, the specific steps are as follows: Step 3-1, load the convolutional neural network model pre-trained on the static gangue dataset and the cifar dataset. This model includes the feature representation learned on the static gangue dataset and the cifar dataset; Step 3-2, keep the underlying feature extractor of the model unchanged and choose to freeze the bottom layer of the model; Step 3-3, fine-tune the model according to the characteristics of the dynamic coal gangue dataset, add or delete some fully connected layers, and adjust the number or size of convolution kernels; Step 3-4, select the top layer or part of the layers of the unfrozen model and use the dynamic coal gangue dataset to fine-tune the model, and train these layers during the fine-tuning process; Step 3-5, use an independent validation set to evaluate the fine-tuned model, and make further adjustments and optimizations based on the evaluation results by adjusting the model structure, adjusting hyperparameters, or adding data enhancement.
9. The coal gangue identification method based on electromagnetic detection according to claim 8, characterized in that: In Step 3-4, when fine-tuning the model using the dynamic coal gangue dataset, a small learning rate is selected.
