Coal manual sampling method based on near infrared spectroscopy

Through near-infrared spectroscopy and U-Net network model, coal quality is detected in real time and the sampling plan is dynamically adjusted, which solves the problems in the existing technology of high cost of coal sampling precision verification and inability to adapt to various coal types and quality fluctuations, and realizes for efficient and accurate coal sampling.

CN118655111APending Publication Date: 2024-09-17CHINA CERTIFICATION & INSPECTION (GROUP) CO LTD HEBEI BRANCH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410643805.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing coal sampling methods have problems such as high precision verification costs, heavy workload, inability to adapt to various coal types and quality fluctuations, and the inability to adjust sampling plans in real time.

Method used

An artificial coal sampling method based on near-infrared spectroscopy is used to predict the moisture, ash content, volatile matter and calorific value of coal samples by training the U-Net network model, calculate the sampling precision in real time, and dynamically adjust the sampling plan according to changes in precision.

Benefits of technology

It realizes rapid on-site detection of coal quality, reduces the workload of sample preparation and laboratory analysis, ensures that the sampling precision meets the requirements, and is suitable for quality fluctuations of multiple types of coal and large quantities of coal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655111A
    Figure CN118655111A
Patent Text Reader

Abstract

The invention relates to the technical field of sampling, in particular to a coal manual sampling method based on near infrared spectroscopy, which comprises the following steps: step 1, model training: training a model for predicting moisture, calorific value, ash content and volatile component in an unknown coal sample; 2, an initial sampling scheme is formulated, wherein the initial sampling scheme is used for formulating the number of subsamples for sampling, the weight of the subsamples, expected sampling precision and predicted values of the subsamples; according to the method, the quality of each subsample can be rapidly detected, the sampling precision can be calculated in real time according to parameters such as ash content, volatile component, sulfur content and calorific value, and meanwhile, manual sampling parameters can be adjusted in real time according to the change condition of the sampling precision, so that the final sampling precision is ensured to meet the requirement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of sampling, and in particular to a coal artificial sampling method based on near infrared spectroscopy. Background Art

[0002] Manual sampling of coal is mainly based on GB / T 475-2008, the manual sampling method for commercial coal samples. According to this standard, before starting manual sampling of coal, it is necessary to determine the sampling precision based on the coal quality characteristic parameters (generally dry basis ash content). After that, according to the procedures specified in the standard, the number of sampling units and the number of unit sub-samples are determined, and sampling is carried out using a continuous sampling method or an intermittent sampling method. According to the standard, in order to ensure that the sampling results meet the precision requirements, double sampling or multiple sampling methods should be used during the sampling process to take double or multiple sub-samples, and the samples should be prepared and sent to the laboratory for inspection, and the sampling precision should be calculated by statistical methods. This method of checking and calculating precision has the following serious defects, so that it cannot be implemented in actual work. First, the workload of sampling, sample preparation and analysis is increased, which greatly increases the detection cost. Second, it is necessary to continuously analyze the quality parameters of at least 10 sampling units, which increases the workload and cost. Third, this sampling method of first assessing precision is only applicable to a single type of coal, and the quality fluctuation is stable. In the current coal trade, the sources of commercial coal are diverse and each batch is inspected, so the precision of the method cannot be assessed in advance. If the precision is calculated after sampling, the commercial coal has been delivered. Once the precision requirements are not met, resampling cannot be performed or the cost of resampling is too high to be implemented. Fourth, in order to ensure the cost of precision verification, only dry ash is used as the evaluation parameter, while calorific value and sulfur, which are more important for coal quality and trade, are not considered, and there is no literature report. In summary, in actual coal trade, the verification of the precision of manual sampling cannot be strictly implemented according to the standard. Fifth, for mixed coal or blended coal, or large batches of commercial coal, the quality fluctuations in the coal flow may be large, and the sampling parameters calculated according to one quality parameter such as particle size and ash content may not meet the requirements of sampling precision. Therefore, for commercial coal sampling, the ideal way is to calculate the precision in real time and adjust the sampling plan according to the fluctuation of precision. However, the above method has not been reported.

[0003] At present, near-infrared spectroscopy, laser-induced breakdown spectroscopy, X-ray fluorescence spectroscopy and other rapid analysis technologies for coal have developed rapidly. Near-infrared spectroscopy has high analysis accuracy for coal laboratory samples and has been reported in a large number of literatures, but it still has low accuracy for on-site analysis. Laser-induced breakdown spectroscopy can achieve rapid detection of coal quality parameters, but the equipment is expensive and the samples need to be pre-processed such as tablets. X-ray fluorescence spectroscopy is accurate in analyzing the ash-forming element composition in coal. The document "Research on High-Stable Analysis of Coal Quality Based on NIRS-XRF Dual Spectrum Combination" achieves rapid detection of parameters such as calorific value and ash content, but it also has disadvantages such as high equipment price, sample pre-treatment, and inability to be applied on-site. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, the present invention provides a method for manual sampling of coal based on near-infrared spectroscopy. As a solution suitable for manual sampling of commercial coal, this solution can realize rapid detection of the quality of each sub-sample, and calculate the sampling precision in real time according to parameters such as ash content, volatile matter, sulfur content and calorific value, and adjust the manual sampling parameters in real time according to changes in the sampling precision, so as to ensure that the final sampling precision meets the requirements.

[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0006] The present invention provides a coal manual sampling method based on near infrared spectroscopy, comprising the following steps:

[0007] Step 1: Model training: training a model for predicting moisture, calorific value, ash and volatile matter in unknown coal samples;

[0008] Step 2: Develop an initial sampling plan: determine the number of sub-samples, sub-sample weight, and expected precision, and calculate the predicted value of the sub-samples;

[0009] Step 3, calculate the initial precision: calculate and obtain the initial precision of the sampling in step 2;

[0010] Step 4: Dynamically adjust the sampling plan: Compare the initial precision with the expected precision and adjust the sampling plan until the expected precision is met to complete the sampling.

[0011] According to the above-mentioned coal manual sampling method based on near infrared spectroscopy, step 1 comprises:

[0012] Step 1.1, for a specific type of coal, take at least 530 coal samples, crush and grind them to 0.2 mm, use a portable near-infrared spectrometer to measure the near-infrared spectrum, and send these 530 groups of coal samples to the laboratory to measure moisture, ash, volatile matter, and calorific value;

[0013] Step 1.2, the obtained near infrared spectrum and the ash, volatile matter and calorific value of the corresponding coal sample are used as the training set S1, and the coal quality data set S1 is preprocessed by using the second-order derivative and SG convolution smoothing to obtain the data set S2;

[0014] Step 1.3, using the five-fold cross-validation algorithm, the data set S2 in step 1.2 is divided into five equal parts, of which four parts are used as training sets and validation sets in each fold, and the remaining part is used as a test set. In order to make the near-infrared spectral data suitable for the construction of the model, the near-infrared spectral data is padded, and the feature dimension of the near-infrared spectral data is padded from 125 to 128;

[0015] Step 1.4: The dataset S2 in step 1.3 is trained by the U-Net network model. The U-Net network model includes an encoder, a decoder, and a regression head. During the training, the encoder is used to extract the feature information in the input near-infrared spectrum, and then the decoder is used to gradually restore the feature size from 8 to the original size of 128. Finally, the regression head can be used to predict the values ​​of moisture, ash, volatile matter, and calorific value respectively.

[0016] Step 1.5, input the near-infrared spectrum and its corresponding label into the U-Net network model for training, and then use the test set samples collected under the same environmental conditions to test the model, output the predicted value of the model, and the predicted value is the detected value. The optimizer used for model training is the Adam optimizer, the loss function is the mean absolute error, the number of training iterations is 70, and the learning rate is set to 0.03;

[0017] Step 1.6: After the U-Net network model training is completed, the U-Net network model can be used to predict the moisture, calorific value, ash content, and volatile matter data in unknown coal samples.

[0018] According to the above-mentioned coal manual sampling method based on near infrared spectroscopy, step 2 comprises:

[0019] Step 2.1: At the sampling site, according to the requirements of GB / T 475-2008, the number and weight of sub-samples of the initial sampling plan, as well as the expected sampling precision to be achieved, shall be formulated;

[0020] Step 2.2: Take 20 sub-samples in succession according to the scheme in 2.1. For each sub-sample, take two samples at the same sampling location. One sample is bagged and sealed normally and kept for subsequent sample preparation. The other sample is crushed on site using a vehicle-mounted mortar crusher.

[0021] Step 2.3: Use a portable NI RS spectrometer to measure the crushed samples for 10 consecutive measurements to obtain 10 spectra. After the measurement is completed, the crushed samples are returned to the coal pile or coal flow, and then the obtained spectra are input into the mobile phone applet model to obtain the ash, volatile matter, calorific value and sulfur content of 10 groups of sub-samples. Finally, the average value of these 10 groups of values ​​is taken as the predicted value, that is, the predicted values ​​of ash, volatile matter, calorific value and sulfur content in the initial 20 sub-samples are obtained.

[0022] According to the above-mentioned coal manual sampling method based on near infrared spectroscopy, step 3 comprises:

[0023] Step 3.1, number the initial 20 sub-samples in step 2 in sequence, cross-group them, with even numbers as one group and odd numbers as another group, to obtain 10 pairs of quality analysis data;

[0024] Step 3.2: Select one or more quality parameters from ash content, volatile matter, calorific value and sulfur content, and calculate the initial precision of sampling according to the method in Appendix C.1.2.2 of GB / T475-2008.

[0025] According to the above-mentioned coal manual sampling method based on near infrared spectroscopy, step 4 comprises:

[0026] Step 4.1, compare the initial precision with the expected precision. If the initial precision does not meet the expected precision, increase the sub-sample weight by 1.2 times, continue to take two sub-samples, measure the NIRS of the newly obtained sub-samples, and obtain the predicted results through the model;

[0027] Step 4.2, cross-add the newly obtained prediction results to the data set and recalculate the sampling precision;

[0028] Step 4.3: If the expected precision is still not met, repeat steps 4.1 and 4.2 until the sampling precision requirement is met. However, when the sub-sample weight reaches twice that of the initial plan, if the calculated precision still does not meet the expectation, the sub-sample weight will not be increased, and sampling will continue according to this sub-sample weight. The precision will be iteratively calculated every time two sub-samples are added.

[0029] Step 4.4: If sampling precision is greater than expected precision, continue sampling. When two sub-samples are added, calculate the precision once. If the precision of a sampling is less than or equal to the expected precision, restore the sampling parameters set in the initial sampling plan.

[0030] 4.5. Repeat steps 4.1 to 4.4 until the sampling is completed.

[0031] According to the above-mentioned method for manual coal sampling based on near-infrared spectroscopy, the encoder includes 5 convolution modules, each of which is composed of two convolution layers containing the activation function ReLU and a maximum pooling layer for data sampling, wherein the last convolution module has no maximum pooling layer, and the decoder includes 4 convolution modules and a feature splicing part, each of which is composed of two convolution layers containing the activation function ReLU and a transposed convolution layer for upsampling, and the regression head is composed of a fully connected layer.

[0032] According to the above-mentioned coal manual sampling method based on near-infrared spectroscopy, the crushing specification of each sample crushed by the vehicle-mounted mortar crusher in step 2.2 is 0.2 mm.

[0033] Compared with the known prior art, the technical solution provided by the present invention has the following beneficial effects:

[0034] 1. By dynamically adjusting the sampling precision, it can be ensured that the sampling precision always meets the initial setting requirements, avoiding the situation where the final sampling precision does not meet the setting requirements due to large fluctuations in coal quality;

[0035] 2. By using the near infrared method, the quality parameters set by precision can be quickly tested at the sampling site, reducing the steps of sample preparation and laboratory analysis, greatly reducing the workload of precision verification, and greatly reducing the cost of precision verification. At the same time, the near infrared method can simultaneously measure multiple quality data such as calorific value, volatile matter, and moisture, and can simultaneously verify the sampling precision of multiple indicators, making the sampling plan more convincing;

[0036] 3. The accuracy of model prediction is improved by using the U-Net network model for training;

[0037] 4. For mixed or blended coal, or large batches of commercial coal, the quality of the entire batch of coal may fluctuate greatly. By adjusting the sampling parameter settings in real time according to the precise changes, appropriately increasing or decreasing the number and weight of the sampling portions, more accurate representative samples can be obtained, thereby obtaining more accurate data for the entire batch of coal;

[0038] In summary, the present invention can realize rapid detection of the quality of each subsample, and calculate the sampling precision in real time according to parameters such as ash content, volatile matter, sulfur content and calorific value. At the same time, it can also adjust the manual sampling parameters in real time according to the changes in sampling precision, so as to ensure that the final sampling precision meets the requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 It is a sampling flow chart of the present invention;

[0041] Figure 2 This is the U-Net network structure diagram in the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] The present invention will be further described below in conjunction with the embodiments.

[0044] Example: Take a certain type of anthracite produced in Ordos, Inner Mongolia as an example.

[0045] Reference Figure 1 and Figure 2 , a coal manual sampling method based on near infrared spectroscopy, comprising the following steps:

[0046] Step 1: Model training: Training a model for predicting moisture, calorific value, ash, and volatile matter in an unknown coal sample includes the following steps:

[0047] Step 1.1, dataset construction: In daily inspection work, 530 original coal samples were collected and crushed to 0.2 mm by a vehicle-mounted mortar crusher. Then, the near-infrared spectra of the crushed coal samples were measured by a near-infrared spectrometer, and the industrial parameters such as moisture, ash, volatile matter and calorific value of the crushed coal samples were determined by chemical methods. Finally, the near-infrared spectra of the coal samples and the coal quality parameters of the corresponding crushed coal samples were integrated to obtain the coal quality dataset S1;

[0048] The above-mentioned near-infrared spectrometer adopts the MicroNIR Pro near-infrared spectrometer of VIAVI, whose spectrum wavelength range is 900nm-1700nm, resolution is 6.24nm, and there are 125 wavelength points in total. The chemical method is the "Industrial Analysis Method of Coal" (GB / T 212-2008) and "Determination Method of Calorific Value of Coal" (GB / T 213-2008) in the national standard. Usually, qualified laboratories use this chemical method to measure the coal quality parameters of coal crushing samples;

[0049] Step 1.2, data preprocessing: In view of the fact that spectral data are easily affected by various factors such as random noise such as light source noise, instrument system errors, and changes in the measurement environment during the measurement process, it is necessary to preprocess the coal quality data set S1 to reduce the impact of noise and scattering on it. The second-order derivative can amplify the characteristic information of the near-infrared spectrum, but it will also amplify the noise. SG convolution smoothing selects a smoothing window with a certain width and uses the polynomial least squares method to fit all the data in the local sliding window, thereby retaining the useful features in the signal. The coal quality data set S1 is preprocessed using second-order derivative and SG convolution smoothing to obtain data set S2;

[0050] Step 1.3: Get model evaluation results:

[0051] By adopting the five-fold cross-validation algorithm, the data set S2 in step 1.2 is divided into five equal parts, of which four parts are used as training sets and validation sets in each fold, and the remaining part is used as a test set. The number of samples in the validation set is half of the number of samples in the test set, so as to adjust the hyperparameters of model training. The whole process is repeated five times, and each time a different subset is used as a test set. The remaining training sets and validation sets are used for training and validation. Finally, the average result of the five performance evaluations is used as the final performance indicator of the model, which helps to verify the performance of the model on different data subsets to obtain a more comprehensive model evaluation result.

[0052] In addition, in this process, in order to adapt the near-infrared spectral data to the construction of the model, the near-infrared spectral data is padded, and the characteristic dimension of the near-infrared spectral data can also be padded from 125 to 128;

[0053] Step 1.4: Model building:

[0054] like Figure 2As shown, the U-Net network model in this embodiment consists of three parts: the encoder on the left, the decoder in the middle, and the regression head on the right. The encoder on the left contains 5 convolution modules, each of which consists of two convolution layers containing the activation function ReLU and a maximum pooling layer for downsampling the data. The last convolution module has no maximum pooling layer. During the downsampling process, the feature dimension gradually decreases from 128 to 8;

[0055] Then, through the encoder, the model extracts the feature information from the input near-infrared spectrum. The decoder in the middle contains four convolution modules and a feature splicing part. Each convolution module consists of two convolution layers containing the activation function ReLU and one transposed convolution layer for upsampling.

[0056] In the above sampling process, the feature size is gradually restored from 8 to the original size of 128. Taking the third-layer decoder (input shape is 128×32) as an example, its feature concatenation process is to process and concatenate the output features of the fourth-layer decoder (output shape is 128×16, and the feature shape after the transposed convolution layer is 64×32) and the third-layer encoder (output shape is 64×32). This method helps the decoder integrate features from different feature sizes;

[0057] The regression head on the right is composed of fully connected layers, which are used to predict the values ​​of moisture, ash, volatile matter and calorific value respectively;

[0058] Step 1.5: Model training:

[0059] The near-infrared spectrum and its corresponding labels are input into the U-net model for training. Then the model is tested with the test set samples collected under the same environmental conditions. The predicted value of the model is output, and the predicted value is the detection value. The optimizer used for model training is the Adam optimizer, the loss function is the mean absolute error, the number of training iterations is 70, and the learning rate is set to 0.03.

[0060] Step 1.6, Experimental indicators:

[0061] After the model prediction is completed, the prediction results are analyzed through evaluation indicators, including root mean square error RMSE, mean absolute error MAE and correlation coefficient R. The value range of correlation coefficient R is between (0,1). The closer R is to 1 and the smaller the values ​​of MAE and RMSE are, the better the model performance is. The formula is as follows:

[0062]

[0063] Where m represents the number of samples;

[0064] y i andi ′ represents the measured and predicted values ​​of the first coal sample;

[0065] and Represents the mean of the measured and predicted values ​​for the first coal sample.

[0066] Step 1.7, experimental results:

[0067] Among the existing technologies, most of them use traditional machine learning algorithms such as random forest, support vector machine, partial least squares, etc. to achieve quantitative analysis of coal quality parameters;

[0068] To prove the effectiveness of the U-net model, the experiment compared three quantitative analysis models: Support Vector Regression (SVR), Partial Least Squares Regression (PLSR) and Random Forest (RF).

[0069] As shown in Table 1, the correlation coefficients of moisture, ash, volatile matter and calorific value are 0.8480, 0.9041, 0.7226 and 0.8045, respectively.

[0070] Table 1: Comparison of prediction results of different models

[0071]

[0072]

[0073] The model proposed in the present invention achieves the best results under the three evaluation indicators compared with mainstream traditional machine learning. In addition, the trained model can also be used as a precise model for on-site evaluation of manual sampling.

[0074] Step 2: Develop an initial sampling plan: Develop the number of sub-samples, sub-sample weights, and expected precision, and calculate the predicted values ​​of the sub-samples, including the following steps:

[0075] Step 2.1, at the sampling site, according to the requirements of GB / T 475-2008 commercial coal sampling method, take the assessment of particle size ≤50mm, mass 5000 tons, and the sampling unit of 70 tons of wagons transporting about 70 carriages as an example;

[0076] The number of sub-samples collected is 135 and the weight of the sub-samples is 3.0 kg. Two sub-samples are collected in each carriage, for a total of 140 sub-samples. The expected sampling precision (taking dry ash as an example, the precision is 1%) is:

[0077] Step 2.2: Take 20 sub-samples in succession according to the scheme in 2.1. For each sub-sample, take two samples at the same sampling location. One sample is bagged and sealed normally and kept for subsequent sample preparation. The other sample is crushed to 0.2 mm using a vehicle-mounted mortar crusher on site.

[0078] Step 2.3, use a portable NI RS spectrometer to measure the crushed sample, measure it continuously for 10 times, and obtain 10 spectra. After the measurement is completed, the crushed sample is returned to the coal pile or coal flow, and then the obtained spectrum is input into the mobile phone applet model to obtain the ash, volatile matter, calorific value and sulfur content of 10 groups of sub-samples. Finally, the average value of these 10 groups of values ​​is taken as the predicted value, that is, the predicted values ​​of ash, volatile matter, calorific value and sulfur content in the initial 20 sub-samples are obtained. Taking ash as an example, as shown in Table 2:

[0079] Table 2: Ash content determination results

[0080] Serial number 1 2 3 4 5 6 7 8 9 10 average value 1 4.45 4.92 4.50 5.72 4.54 6.84 6.39 4.49 5.87 5.07 5.28 2 6.94 5.64 6.80 5.59 4.44 4.85 4.91 5.56 5.04 6.29 5.61 3 4.79 5.23 6.54 6.75 6.90 5.16 4.56 6.21 6.18 4.00 5.63 4 6.78 5.54 5.62 4.73 6.05 4.24 6.33 6.94 4.93 6.63 5.78 5 4.54 4.86 5.27 5.54 5.51 4.17 5.87 4.68 4.71 4.79 4.99 6 5.02 6.43 4.88 5.73 5.78 6.54 6.30 6.74 6.58 5.49 5.95 7 6.47 6.20 4.82 6.64 6.74 5.42 5.73 5.75 6.92 4.90 5.96 8 4.43 4.49 5.35 5.38 4.00 6.95 6.14 5.19 6.00 6.65 5.46 9 5.37 4.97 5.86 6.87 4.93 4.69 6.08 5.04 5.00 4.93 5.37 10 4.20 4.92 4.03 4.97 6.09 4.62 6.27 6.63 5.59 5.42 5.27 11 6.39 4.34 4.17 4.95 5.89 5.70 5.50 6.25 5.71 6.83 5.57 12 6.06 6.13 4.90 5.81 4.29 6.98 4.96 6.56 5.13 6.11 5.69 13 4.86 4.78 5.98 5.60 6.58 6.86 6.98 5.96 5.40 6.10 5.91 14 5.92 4.11 4.13 4.12 6.64 6.44 4.09 5.41 5.62 5.76 5.22 15 5.07 4.05 5.23 5.25 6.45 6.84 6.28 4.32 4.94 4.62 5.31 16 5.53 5.93 6.33 6.72 6.40 5.86 4.72 5.98 4.88 6.62 5.90 17 5.69 4.37 4.89 4.84 6.57 4.86 6.13 4.68 5.27 4.46 5.18 18 6.17 4.63 6.94 5.45 6.24 6.21 4.49 4.69 5.06 4.94 5.48 19 4.67 5.85 4.36 5.52 4.25 4.45 4.33 5.61 5.80 6.73 5.16 20 6.96 5.22 4.83 5.01 4.61 6.09 6.88 5.01 5.35 6.86 5.68

[0081] Step 3, calculating the initial precision, calculating the initial precision of the sampling in step 2, including the following steps:

[0082] Step 3.1, number the initial 20 sub-samples in step 2 in sequence, cross-group them, with even numbers as one group and odd numbers as another group, to obtain 10 pairs of quality analysis data;

[0083] Step 3.2: Using ash as the quality parameter, calculate the initial precision of sampling according to the method in Appendix C.1.2.2 of GB / T475-2008. See Table 3:

[0084] Table 3: Initial precision of sampling

[0085]

[0086] Step 4: Dynamically adjust the sampling plan: Figure 1 As shown, the initial precision is compared with the expected precision and the sampling plan is adjusted until the expected precision is met to complete the sampling, including the following steps:

[0087] Step 4.1, compare the initial precision with the expected precision. If the initial precision does not meet the expected precision, increase the sub-sample weight by 1.2 times, continue to take two sub-samples, measure the NIRS of the newly obtained sub-samples, and obtain the predicted results through the model;

[0088] Step 4.2, cross-add the newly obtained prediction results to the data set and recalculate the sampling precision;

[0089] Step 4.3: If the expected precision is still not met, repeat steps 4.1 and 4.2 until the sampling precision requirement is met. However, when the sub-sample weight reaches twice that of the initial plan, if the calculated precision still does not meet the expectation, the sub-sample weight will not be increased, and sampling will continue according to this sub-sample weight. The precision will be iteratively calculated every time two sub-samples are added.

[0090] Step 4.4: If sampling precision is greater than expected precision, continue sampling. When two sub-samples are added, calculate the precision once. If the precision of a sampling is less than or equal to the expected precision, restore the sampling parameters set in the initial sampling plan.

[0091] Step 4.5: Repeat steps 4.1 to 4.4 until the sampling is completed. See Table 4:

[0092] Table 4: Dynamic adjustment results of sampling precision

[0093]

[0094]

[0095]

[0096]

[0097] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A coal manual sampling method based on near infrared spectroscopy, characterized in that: The following steps are involved: Step 1: Model training: training a model for predicting moisture, calorific value, ash and volatile matter in unknown coal samples; Step 2: Develop an initial sampling plan: determine the number of sub-samples, sub-sample weight, and expected precision, and calculate the predicted value of the sub-samples; Step 3, calculate the initial precision: calculate and obtain the initial precision of the sampling in step 2; Step 4: Dynamically adjust the sampling plan: Compare the initial precision with the expected precision and adjust the sampling plan until the expected precision is met to complete the sampling.

2. The method for artificial sampling of coal based on near infrared spectroscopy according to claim 1, characterized in that: The step 1 comprises: Step 1.1, for a specific type of coal, take at least 530 coal samples, crush and grind them to 0.2 mm, use a portable near-infrared spectrometer to measure the near-infrared spectrum, and send these 530 groups of coal samples to the laboratory to measure moisture, ash, volatile matter, and calorific value; Step 1.2, the obtained near infrared spectrum and the ash, volatile matter and calorific value of the corresponding coal sample are used as the training set S1, and the coal quality data set S1 is preprocessed by using the second-order derivative and SG convolution smoothing to obtain the data set S2; Step 1.3, using the five-fold cross-validation algorithm, the data set S2 in step 1.2 is divided into five equal parts, of which four parts are used as training sets and validation sets in each fold, and the remaining part is used as a test set. In order to make the near-infrared spectral data suitable for the construction of the model, the near-infrared spectral data is padded, and the feature dimension of the near-infrared spectral data is padded from 125 to 128; Step 1.4: The dataset S2 in step 1.3 is trained by the U-Net network model. The U-Net network model includes an encoder, a decoder, and a regression head. During the training, the encoder is used to extract the feature information in the input near-infrared spectrum, and then the decoder is used to gradually restore the feature size from 8 to the original size of 128. Finally, the regression head can be used to predict the values ​​of moisture, ash, volatile matter, and calorific value respectively. Step 1.5, input the near-infrared spectrum and its corresponding label into the U-Net network model for training, and then use the test set samples collected under the same environmental conditions to test the model, output the predicted value of the model, and the predicted value is the detected value. The optimizer used for model training is the Adam optimizer, the loss function is the mean absolute error, the number of training iterations is 70, and the learning rate is set to 0.03; Step 1.6: After the U-Net network model training is completed, the U-Net network model can be used to predict the moisture, calorific value, ash content, and volatile matter data in unknown coal samples.

3. The method for artificial sampling of coal based on near infrared spectroscopy according to claim 1, characterized in that: The step 2 comprises: Step 2.1: At the sampling site, according to the requirements of GB / T 475-2008, the number and weight of sub-samples of the initial sampling plan, as well as the expected sampling precision to be achieved, shall be formulated; Step 2.2: Take 20 sub-samples in succession according to the scheme in 2.

1. For each sub-sample, take two samples at the same sampling location. One sample is bagged and sealed normally and kept for subsequent sample preparation. The other sample is crushed on site using a vehicle-mounted mortar crusher. Step 2.3: Use a portable NIRS spectrometer to measure the crushed samples for 10 consecutive times to obtain 10 spectra. After the measurement is completed, return the crushed samples to the coal pile or coal flow, and then input the obtained spectra into the mobile phone applet model to obtain ash, volatile matter, calorific value and sulfur content of 10 groups of sub-samples. Finally, take the average value of these 10 groups of values ​​as the predicted value, that is, the predicted values ​​of ash, volatile matter, calorific value and sulfur content in the initial 20 sub-samples are obtained.

4. The method for artificial sampling of coal based on near infrared spectroscopy according to claim 3, characterized in that: The step 3 comprises: Step 3.1, number the initial 20 sub-samples in step 2 in sequence, cross-group them, with even numbers as one group and odd numbers as another group, to obtain 10 pairs of quality analysis data; Step 3.2: Select one or more quality parameters from ash content, volatile matter, calorific value and sulfur content, and calculate the initial precision of sampling according to the method in Appendix C.1.2.2 of GB / T475-2008.

5. The method for artificial sampling of coal based on near infrared spectroscopy according to claim 1, characterized in that: The step 4 comprises: Step 4.1, compare the initial precision with the expected precision. If the initial precision does not meet the expected precision, increase the sub-sample weight by 1.2 times, continue to take two sub-samples, measure the NIRS of the newly obtained sub-samples, and obtain the predicted results through the model; Step 4.2, cross-add the newly obtained prediction results to the data set and recalculate the sampling precision; Step 4.3: If the expected precision is still not met, repeat steps 4.1 and 4.2 until the sampling precision requirement is met. However, when the sub-sample weight reaches twice that of the initial plan, if the calculated precision still does not meet the expectation, the sub-sample weight will not be increased, and sampling will continue according to this sub-sample weight. The precision will be iteratively calculated every time two sub-samples are added. Step 4.4: If sampling precision is greater than expected precision, continue sampling. When two sub-samples are added, calculate the precision once. If the precision of a sampling is less than or equal to the expected precision, restore the sampling parameters set in the initial sampling plan. 4.

5. Repeat steps 4.1 to 4.4 until the sampling is completed.

6. The method for artificial sampling of coal based on near infrared spectroscopy according to claim 2, characterized in that: The encoder includes 5 convolution modules, each of which is composed of two convolution layers containing the activation function ReLU and a maximum pooling layer for downsampling the data, wherein the last convolution module has no maximum pooling layer, the decoder includes 4 convolution modules and a feature splicing part, each of which is composed of two convolution layers containing the activation function ReLU and a transposed convolution layer for upsampling, and the regression head is composed of a fully connected layer.

7. The method for artificial sampling of coal based on near infrared spectroscopy according to claim 3, characterized in that: In step 2.2, the crushing specification of each sample crushed by the vehicle-mounted mortar crusher is 0.2 mm.