[go: up one dir, main page]

CN114354654B - DW-KNN-based rapid non-destructive detection method for coal moisture content - Google Patents

DW-KNN-based rapid non-destructive detection method for coal moisture content Download PDF

Info

Publication number
CN114354654B
CN114354654B CN202210016888.2A CN202210016888A CN114354654B CN 114354654 B CN114354654 B CN 114354654B CN 202210016888 A CN202210016888 A CN 202210016888A CN 114354654 B CN114354654 B CN 114354654B
Authority
CN
China
Prior art keywords
coal
sample
microwave
moisture content
training
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210016888.2A
Other languages
Chinese (zh)
Other versions
CN114354654A (en
Inventor
田军
李明
邹亮
朱美强
朱龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China University of Mining and Technology CUMT
Original Assignee
China University of Mining and Technology CUMT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China University of Mining and Technology CUMT filed Critical China University of Mining and Technology CUMT
Priority to CN202210016888.2A priority Critical patent/CN114354654B/en
Publication of CN114354654A publication Critical patent/CN114354654A/en
Application granted granted Critical
Publication of CN114354654B publication Critical patent/CN114354654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Analysing Materials By The Use Of Radiation (AREA)

Abstract

本发明涉及一种基于DW‑KNN的煤炭水分含量快速无损检测方法。其包括如下步骤:步骤1、构建基于DW‑KNN的煤炭水分含量检测模型;构建基于DW‑KNN的煤炭水分含量检测模型时,制作的训练数据集包括煤炭训练样本的煤炭训练样本水分含量标签以及煤炭训练样本在所述煤炭训练样本水分含量标签下的煤炭训练样本微波S参数波谱信息;步骤2、提供待检测水分含量的煤炭标本,获取煤炭标本与煤炭训练样本微波S参数波谱信息相一致的煤炭标本微波S参数波谱信息,利用基于DW‑KNN的煤炭水分含量检测模型对获取的煤炭标本微波S参数波谱信息处理,以得到并输出所述煤炭标本的水分含量。本发明在无损情况下实现煤炭水分含量的检测,提高检测精度以及鲁棒性能。

Figure 202210016888

The invention relates to a DW‑KNN-based rapid nondestructive detection method for moisture content of coal. It comprises the following steps: Step 1, build the coal moisture content detection model based on DW-KNN; When building the coal moisture content detection model based on DW-KNN, the training data set that makes comprises the coal training sample moisture content label of coal training sample and The coal training sample microwave S parameter spectrum information of the coal training sample under the coal training sample moisture content label; Step 2, providing the coal sample with the moisture content to be detected, obtaining the coal sample consistent with the coal training sample microwave S parameter spectrum information The microwave S-parameter spectrum information of the coal sample is processed by using the coal moisture content detection model based on DW-KNN to process the microwave S-parameter spectrum information of the coal sample to obtain and output the moisture content of the coal sample. The invention realizes the detection of the moisture content of the coal under the condition of no damage, and improves the detection accuracy and robust performance.

Figure 202210016888

Description

基于DW-KNN的煤炭水分含量快速无损检测方法DW-KNN-based rapid non-destructive detection method for coal moisture content

技术领域technical field

本发明涉及一种煤炭水分含量快速无损检测方法,尤其是一种基于DW-KNN的煤炭水分含量快速无损检测方法。The invention relates to a rapid non-destructive detection method for moisture content of coal, in particular to a rapid non-destructive detection method for moisture content of coal based on DW-KNN.

背景技术Background technique

水分是衡量煤炭经济价值的四个基本指标(水分、灰分、挥发分、固定碳)之一。在煤炭炼焦和燃烧过程中,煤炭水分含量过高或过低都会造成煤炭利用效率降低、环境污染和能源浪费等问题,因此,快速、准确地检测煤炭水分含量具有重要意义。Moisture is one of the four basic indicators (moisture, ash, volatile matter, fixed carbon) to measure the economic value of coal. In the process of coal coking and combustion, too high or too low coal moisture content will cause problems such as reduced coal utilization efficiency, environmental pollution and energy waste. Therefore, it is of great significance to quickly and accurately detect coal moisture content.

煤炭水分含量的测量方法主要分为直接和间接测量法。直接测量的方法是标准重量法,俗称失重法,主要分为氮气干燥法和空气干燥法。标准重量法是一种实验室测量方法,可以获得较高的测量精度;但该方法耗时较长,需要破坏样品的原有性质。The measurement methods of coal moisture content are mainly divided into direct and indirect measurement methods. The method of direct measurement is the standard gravimetric method, commonly known as the weight loss method, which is mainly divided into nitrogen drying method and air drying method. The standard gravimetric method is a laboratory measurement method that can obtain high measurement accuracy; however, this method takes a long time and needs to destroy the original properties of the sample.

常规的间接测量方法主要有中子法、电导法、电容法、红外反射法、微波法等。中子法测定煤中氢的原理是以测定样品中氢的含量为基础的。然而,除了水,煤中还有许多化学杂质也含有氢。此外,仪器造价昂贵,使用放射性中子源存在风险。电导法和电容法受温度、密度、电解质含量等多种因素的影响,在没有补偿策略的情况下,精度较差。红外反射法对混合液体样品水分含量的检测具有良好的效果。对于固体的检测,只能检测小颗粒样品的表面水分(渗透深度在微米以内)。微波法具有安全、稳定、无损、非接触等优点,最常用的是自由空间传输测量方法。该方法通常只选取微波的单点频率或离散频段作为校准信号,这会导致与水分含量关联密切的信号丢失;且拟合方法简单,检测精度较低,鲁棒性不高。Conventional indirect measurement methods mainly include neutron method, conductivity method, capacitance method, infrared reflection method, microwave method and so on. The principle of the neutron method to determine hydrogen in coal is based on the determination of the hydrogen content in the sample. However, besides water, there are many chemical impurities in coal that also contain hydrogen. In addition, the equipment is expensive, and there are risks in using radioactive neutron sources. Conductometric and capacitive methods are affected by various factors such as temperature, density, and electrolyte content, and have poor accuracy without compensation strategies. The infrared reflectance method has a good effect on the detection of the water content of the mixed liquid sample. For the detection of solids, only the surface moisture of small particle samples can be detected (the penetration depth is within microns). The microwave method has the advantages of safety, stability, non-destructive, non-contact, etc., and the most commonly used method is the free space transmission measurement method. This method usually only selects the single-point frequency or discrete frequency band of the microwave as the calibration signal, which will lead to the loss of the signal closely related to the moisture content; and the fitting method is simple, the detection accuracy is low, and the robustness is not high.

发明内容Contents of the invention

本发明的目的是克服现有技术中存在的不足,提供一种基于DW-KNN的煤炭水分含量快速无损检测方法,其在无损情况下实现煤炭水分含量的检测,提高检测精度以及鲁棒性能。The purpose of the present invention is to overcome the deficiencies in the prior art and provide a DW-KNN-based rapid non-destructive detection method for coal moisture content, which can realize the detection of coal moisture content under non-destructive conditions, improve detection accuracy and robust performance.

按照本发明提供的技术方案,一种基于DW-KNN的煤炭水分含量快速无损检测方法,所述煤炭水分含量快速无损检测方法包括如下步骤:According to the technical solution provided by the present invention, a DW-KNN-based rapid nondestructive detection method for moisture content of coal, the rapid nondestructive detection method for moisture content of coal comprises the following steps:

步骤1、构建基于DW-KNN的煤炭水分含量检测模型,其中,构建基于DW-KNN的煤炭水分含量检测模型时,制作的训练数据集包括煤炭训练样本的煤炭训练样本水分含量标签以及煤炭训练样本在所述煤炭训练样本水分含量标签下的煤炭训练样本微波S参数波谱信息,利用所制作的训练数据集对DW-KNN模型训练,以构建得到基于DW-KNN的煤炭水分含量检测模型;Step 1. Construct a coal moisture content detection model based on DW-KNN, wherein, when constructing a coal moisture content detection model based on DW-KNN, the training data set produced includes the coal training sample moisture content label of the coal training sample and the coal training sample In the coal training sample microwave S parameter spectrum information under the coal training sample moisture content label, utilize the training data set made to DW-KNN model training, to construct the coal moisture content detection model based on DW-KNN;

步骤2、提供待检测水分含量的煤炭标本,获取所述煤炭标本与煤炭训练样本微波S参数波谱信息相一致的煤炭标本微波S参数波谱信息,利用上述基于DW-KNN的煤炭水分含量检测模型对获取的煤炭标本微波S参数波谱信息处理,以得到并输出所述煤炭标本的水分含量。Step 2, provide the coal sample with the moisture content to be detected, obtain the microwave S parameter spectrum information of the coal sample consistent with the microwave S parameter spectrum information of the coal training sample, and use the above-mentioned coal moisture content detection model based on DW-KNN to The obtained coal sample microwave S-parameter spectrum information is processed to obtain and output the moisture content of the coal sample.

步骤1中,制作训练数据集时,具体包括如下步骤:In step 1, when making the training data set, the following steps are specifically included:

步骤1.1、采集不同区域的原煤样本,并对采集的所有原煤样本均筛分处理,并将筛分后的原煤样本均匀地平铺在相应的承载器中,并对承载器内的原煤样本干燥,以得到不同区域下的实验煤炭样本;Step 1.1. Collect raw coal samples from different areas, and screen all the collected raw coal samples, spread the screened raw coal samples evenly in the corresponding carrier, and dry the raw coal samples in the carrier, To obtain experimental coal samples in different regions;

步骤1.2、对上述得到不同区域下的实验煤炭样本,均依次经过密封冷却、喷水搅拌、密封静置处理,以得到在预设煤炭训练样本水分含量标签下的煤炭训练样本;Step 1.2. For the above-mentioned experimental coal samples obtained in different regions, they are all sequentially processed by sealing and cooling, spraying water and stirring, and sealing and standing to obtain the coal training samples under the moisture content label of the preset coal training samples;

步骤1.3、对上述得到的煤炭训练样本进行微波测试,以得到相应区域的煤炭训练样本在所述煤炭训练样本水分含量标签下的煤炭样本微波S参数波谱信息。Step 1.3: Perform a microwave test on the coal training samples obtained above to obtain the coal sample microwave S-parameter spectrum information of the coal training samples in the corresponding area under the moisture content label of the coal training samples.

步骤1.2中,在喷水搅拌时,对任一实验煤炭样本,根据预设煤炭训练样本水分含量标签确定的喷水质量为:In step 1.2, when water is sprayed and stirred, for any experimental coal sample, the water spray quality determined according to the moisture content label of the preset coal training sample is:

Figure BDA0003460037250000021
Figure BDA0003460037250000021

其中,Madd是喷水的质量,Mc&m是实验煤炭样本与水混合的质量,MCbefore是实验煤炭样本的水分含量,MCafter是煤炭训练样本的煤炭样本水分含量标签。Among them, M add is the mass of water injection, M c&m is the mass of experimental coal sample mixed with water, MC before is the moisture content of experimental coal sample, and MC after is the coal sample moisture content label of coal training sample.

步骤1.3中,对煤炭训练样本微波测试时,对任一煤炭训练样本,采集获取在8.05GHz~12.01GHz频率下相应频点的波谱数据,以得到所述煤炭训练样本的煤炭样本微波S参数波谱信息,其中,一煤炭训练样本的所有的煤炭样本微波S参数波谱数据构成一条微波S参数波谱初始曲线。In step 1.3, during the microwave test of the coal training sample, for any coal training sample, collect and obtain the spectrum data of the corresponding frequency point at a frequency of 8.05GHz to 12.01GHz, so as to obtain the coal sample microwave S parameter spectrum of the coal training sample information, wherein all coal sample microwave S-parameter spectrum data of a coal training sample form an initial curve of microwave S-parameter spectrum.

对来自同一区域的所有煤炭训练样本的微波S参数波谱初始曲线进行预处理,以在预处理后得到煤炭训练样本在所述煤炭训练样本水分含量标签下的煤炭样本微波S参数波谱信息,其中,预处理包括如下步骤:The microwave S-parameter spectrum initial curves of all coal training samples from the same area are preprocessed to obtain the coal sample microwave S-parameter spectrum information of the coal training sample under the moisture content label of the coal training sample after preprocessing, wherein, Preprocessing includes the following steps:

步骤1.3.1、对任一微波S参数波谱初始曲线进行线性拟合,并计算微波S参数波谱初始曲线与所述微波S参数波谱初始曲线的线性拟合直线相应的波谱数据距离,得到波谱数据线性拟合距离矩阵D,Step 1.3.1, carry out linear fitting to any microwave S-parameter spectrum initial curve, and calculate the spectrum data distance corresponding to the linear fitting straight line between the microwave S-parameter spectrum initial curve and the microwave S-parameter spectrum initial curve, obtain the spectrum data A linear fit to the distance matrix D,

Figure BDA0003460037250000022
Figure BDA0003460037250000022

其中,A[m-1][i]为第m-1条微波S参数波谱初始曲线第i个频率点的波谱数据,A*[m-1][i]为第m-1条微波S参数波谱初始曲线相应的线性拟合直线第i个频率点的拟合波谱数据,n为测试得到每条微波S参数波谱初始曲线相应频率点的个数,m为微波S参数波谱初始曲线的条数;Among them, A[m-1][i] is the spectrum data of the i-th frequency point of the initial curve of the m-1 microwave S-parameter spectrum, and A*[m-1][i] is the m-1 microwave S The fitting spectrum data of the i-th frequency point of the linear fitting line corresponding to the initial curve of the parametric spectrum, n is the number of corresponding frequency points of each microwave S-parameter spectrum initial curve obtained by testing, and m is the bar of the microwave S-parameter spectrum initial curve number;

步骤1.3.2、对上述波谱数据线性拟合距离矩阵D内的波谱数据线性拟合距离与预设的距离阈值进行比较,剔除大于所述距离阈值的微波S参数波谱初始曲线,以得到当前区域相应的煤炭样本微波S参数波谱曲线;Step 1.3.2, compare the spectral data linear fitting distance in the spectral data linear fitting distance matrix D with the preset distance threshold, and eliminate the initial curve of the microwave S-parameter spectrum greater than the distance threshold to obtain the current area Corresponding coal sample microwave S-parameter spectrum curve;

所有区域的煤炭样本微波S参数波谱曲线构成训练数据集的煤炭训练样本微波S参数波谱信息。The microwave S-parameter spectrum curves of coal samples in all regions constitute the microwave S-parameter spectrum information of coal training samples in the training data set.

所述预设距离阈值为1.5×dis_m,其中,dis_m为当前原煤样本所在区域的波谱数据线性拟合距离排序后的距离中位数。The preset distance threshold is 1.5×dis_m, wherein dis_m is the median distance after sorting the spectral data linear fitting distance of the area where the current raw coal sample is located.

将制作的训练数据集按煤炭训练样本的采集区域划分,以得到多组训练数据子集;Divide the prepared training data set according to the collection area of coal training samples to obtain multiple sets of training data subsets;

将训练数据子集依照留一交叉验证法输入k近邻数时的DW-KNN模型,并分别计算在不同k近邻数时的评价指标的交叉验证均值,选取评价指标交叉验证均值最优时k近邻数,并根据所选择评价指标交叉验证均值最优时的k近邻数,构建得到基于DW-KNN的煤炭水分含量检测模型。Input the training data subset into the DW-KNN model with k-nearest neighbors according to the leave-one-out cross-validation method, and calculate the cross-validation mean value of the evaluation index at different k-nearest neighbor numbers, and select the k-nearest neighbor when the cross-validation mean value of the evaluation index is optimal Number, and according to the k-nearest neighbor number when the mean value of the selected evaluation index is cross-validated, the coal moisture content detection model based on DW-KNN is constructed.

基于DW-KNN的煤炭水分含量检测模型对煤炭标本微波S参数波谱信息处理得到煤炭标本的水分含量时,包括如下步骤:When the coal moisture content detection model based on DW-KNN processes the microwave S-parameter spectrum information of coal samples to obtain the moisture content of coal samples, the following steps are included:

步骤2.1、计算煤炭标本微波S参数波谱信息与第q个煤炭训练样本δq的欧氏距离

Figure BDA0003460037250000031
Step 2.1. Calculate the Euclidean distance between the microwave S-parameter spectrum information of the coal sample and the qth coal training sample δ q
Figure BDA0003460037250000031

Figure BDA0003460037250000032
Figure BDA0003460037250000032

其中,

Figure BDA0003460037250000033
为煤炭标本微波S参数波谱信息第p个频率点相应的波谱数据,δqp为第q个煤炭训练样本δq的煤炭训练样本微波S参数波谱信息第p个频率点相应的波谱数据;in,
Figure BDA0003460037250000033
is the spectral data corresponding to the pth frequency point of the coal sample microwave S-parameter spectral information, δ qp is the corresponding spectral data of the p-th frequency point of the coal training sample microwave S-parameter spectral information of the qth coal training sample δ q ;

步骤2.2、将计算得到的所有欧式距离

Figure BDA0003460037250000034
按升序排序,确定与前k个欧式距离分别对应的煤炭训练样本;Step 2.2, all the calculated Euclidean distances
Figure BDA0003460037250000034
Sort in ascending order to determine the coal training samples corresponding to the first k Euclidean distances;

步骤2.3、根据所选择确定的前k个欧式距离

Figure BDA0003460037250000035
以及相应的煤炭训练样本,计算得到并输出所述煤炭标本的水分含量为:Step 2.3, the first k Euclidean distances determined according to the selection
Figure BDA0003460037250000035
And the corresponding coal training sample, calculate and output the moisture content of the described coal sample as:

Figure BDA0003460037250000036
Figure BDA0003460037250000036

其中,

Figure BDA0003460037250000037
为煤炭标本的水分含量,ψ(δj)为确定前k个煤炭训练样本中第j个煤炭训练样本δj的煤炭训练样本水分含量标签,σj为确定前k个煤炭训练样本中第j个煤炭训练样本δj的距离权重,
Figure BDA0003460037250000038
为确定的前k个欧式距离内相应的第j个欧氏距离。in,
Figure BDA0003460037250000037
is the moisture content of the coal sample, ψ(δ j ) is the moisture content label of the jth coal training sample δ j in the first k coal training samples, and σ j is the jth coal training sample j in the first k coal training samples. The distance weight of coal training samples δ j ,
Figure BDA0003460037250000038
is the corresponding j-th Euclidean distance within the determined first k Euclidean distances.

步骤1.1中,采用13mm筛孔的筛子对原煤样本筛分处理,且对提供待检测水分含量的煤炭标本,也需要采用13mm筛孔的筛子对煤炭标本筛分,对筛分后的煤炭标本获取所述煤炭标本与煤炭训练样本微波S参数波谱信息相一致的煤炭标本微波S参数波谱信息。In step 1.1, use a sieve with 13mm sieve holes to sieve the raw coal sample, and for the coal samples to be tested for moisture content, you also need to use a 13mm sieve sieve to sieve the coal samples, and obtain the sieved coal samples The microwave S-parameter spectrum information of the coal sample is consistent with the microwave S-parameter spectrum information of the coal training sample.

还包括用于微波测试的微波测试系统,所述微波测试系统包括矢量网络分析仪以及两个与所述矢量网络分析仪适配的喇叭天线,在两个正对应放置的喇叭天线间放置用于收纳煤炭样本或煤炭标本的样本容器,所述矢量网络分析仪与测试主控制器电连接。It also includes a microwave test system for microwave testing, the microwave test system includes a vector network analyzer and two horn antennas adapted to the vector network analyzer, and is placed between the two horn antennas that are placed correspondingly. A sample container for accommodating coal samples or coal samples, and the vector network analyzer is electrically connected to the main testing controller.

本发明的优点:构建基于DW-KNN的煤炭水分含量检测模型,获取所述煤炭标本与煤炭训练样本微波S参数波谱信息相一致的煤炭标本微波S参数波谱信息,利用上述基于DW-KNN的煤炭水分含量检测模型对获取的煤炭标本微波S参数波谱信息处理,以得到并输出所述煤炭标本的水分含量,即在无损情况下实现煤炭水分含量的检测,提高检测精度以及鲁棒性能。Advantages of the present invention: build a coal moisture content detection model based on DW-KNN, obtain the coal sample microwave S parameter spectrum information consistent with the coal training sample microwave S parameter spectrum information, use the above-mentioned DW-KNN based coal The moisture content detection model processes the acquired microwave S-parameter spectrum information of the coal sample to obtain and output the moisture content of the coal sample, that is, to realize the detection of the coal moisture content without damage, and to improve the detection accuracy and robust performance.

附图说明Description of drawings

图1为本发明的流程图。Fig. 1 is a flowchart of the present invention.

图2为本发明微波测试系统的示意图。Fig. 2 is a schematic diagram of the microwave test system of the present invention.

附图标记说明:1-测试主控制器、2-矢量网络分析仪、3-喇叭天线以及4-样本容器。Explanation of reference numerals: 1—master test controller, 2—vector network analyzer, 3—horn antenna, and 4—sample container.

具体实施方式Detailed ways

下面结合具体附图和实施例对本发明作进一步说明。The present invention will be further described below in conjunction with specific drawings and embodiments.

如图1所示:为了在无损情况下实现煤炭水分含量的检测,提高检测精度以及鲁棒性能,本发明的煤炭水分含量快速无损检测方法包括如下步骤:As shown in Figure 1: in order to realize the detection of coal moisture content under the nondestructive situation, improve detection accuracy and robust performance, the coal moisture content rapid nondestructive detection method of the present invention comprises the following steps:

步骤1、构建基于DW-KNN的煤炭水分含量检测模型,其中,构建基于DW-KNN的煤炭水分含量检测模型时,制作的训练数据集包括煤炭训练样本的煤炭训练样本水分含量标签以及煤炭训练样本在所述煤炭训练样本水分含量标签下的煤炭训练样本微波S参数波谱信息,利用所制作的训练数据集对DW-KNN模型训练,以构建得到基于DW-KNN的煤炭水分含量检测模型;Step 1. Construct a coal moisture content detection model based on DW-KNN, wherein, when constructing a coal moisture content detection model based on DW-KNN, the training data set produced includes the coal training sample moisture content label of the coal training sample and the coal training sample In the coal training sample microwave S parameter spectrum information under the coal training sample moisture content label, utilize the training data set made to DW-KNN model training, to construct the coal moisture content detection model based on DW-KNN;

具体地,DW-KNN(Distance Weighted K-NearestNeighbor)模型是一种基于距离加权的k近邻算法,为现有常用的模型,DW-KNN的具体情况与现有相一致,为本技术领域人员所熟知。利用DW-KNN模型构建煤炭水分含量检测模型,即得到基于DW-KNN的煤炭水分含量检测模型。在利用DW-KNN模型构建基于DW-KNN的煤炭水分含量检测模型时,需要制作训练数据集,并利用所制作的训练数据集对DW-KNN模型训练,并在训练得到基于DW-KNN的煤炭水分含量检测模型。Specifically, the DW-KNN (Distance Weighted K-NearestNeighbor) model is a distance-weighted K-nearest neighbor algorithm, which is an existing commonly used model. familiar. The DW-KNN model is used to construct the coal moisture content detection model, that is, the coal moisture content detection model based on DW-KNN is obtained. When using the DW-KNN model to build a DW-KNN-based coal moisture content detection model, it is necessary to make a training data set, and use the prepared training data set to train the DW-KNN model, and obtain the coal moisture content based on DW-KNN during training. Moisture content detection model.

对于训练数据集,包括煤炭训练样本的煤炭训练样本水分含量标签以及煤炭训练样本在所述煤炭训练样本水分含量标签下的煤炭训练样本微波S参数波谱信息,一煤炭训练样本的煤炭训练样本水分含量标签即为所述煤炭训练样本的当前水分含量值。煤炭训练样本在所述煤炭训练样本水分含量标签下的煤炭训练样本微波S参数波谱信息,具体是指煤炭训练样本的煤炭训练样本微波S参数波谱信息与所述煤炭训练样本的煤炭训练样本水分含量标签呈一一对应。For the training data set, the coal training sample moisture content label of the coal training sample and the coal training sample microwave S parameter spectrum information of the coal training sample under the coal training sample moisture content label, the coal training sample moisture content of the coal training sample The label is the current moisture content value of the coal training sample. The coal training sample microwave S parameter spectrum information of the coal training sample under the coal training sample moisture content label specifically refers to the coal training sample microwave S parameter spectrum information of the coal training sample and the coal training sample moisture content of the coal training sample Labels are in one-to-one correspondence.

对于训练数据集的制作过程,以及构建到基于DW-KNN的煤炭水分含量检测模型的具体过程,通过下述表述进行具体说明。For the production process of the training data set and the specific process of constructing the coal moisture content detection model based on DW-KNN, the following expressions are used for specific description.

具体实施时,制作训练数据集时,具体包括如下步骤:During the specific implementation, when making the training data set, it specifically includes the following steps:

步骤1.1、采集不同区域的原煤样本,并对采集的所有原煤样本均筛分处理,并将筛分后的原煤样本均匀地平铺在相应的承载器中,并对承载器内的原煤样本干燥,以得到不同区域下的实验煤炭样本;Step 1.1. Collect raw coal samples from different areas, and screen all the collected raw coal samples, spread the screened raw coal samples evenly in the corresponding carrier, and dry the raw coal samples in the carrier, To obtain experimental coal samples in different regions;

本发明实施例中,原煤样本的区域,可以根据实际需要选择,此处不再赘述。一般地,原煤样本可以通过人工采集得到。将采集的来自不同区域的原煤样本分别经过13mm筛孔的筛子筛分处理后,在筛分后分别均匀地平铺在耐高温铝盘中;将铝盘放入鼓风干燥箱在108℃下干燥2小时,得到实验煤炭样本;即上述承载器可以采用耐高温铝盘,当然,承载器还可以采用其他的形式,具体可以根据需要选择,此处不再一一列举说明。In the embodiment of the present invention, the area of the raw coal sample can be selected according to actual needs, and will not be repeated here. Generally, raw coal samples can be collected manually. Raw coal samples collected from different regions are sieved through 13mm sieves, and then spread evenly on high-temperature resistant aluminum pans after sieving; put the aluminum pans into a blast drying oven to dry at 108°C After 2 hours, the experimental coal sample was obtained; that is, the above-mentioned carrier can be a high-temperature-resistant aluminum plate. Of course, the carrier can also use other forms, which can be selected according to needs, and will not be listed here.

具体实施时,取经过筛选后的原煤样本500±10g,均匀地平铺在耐高温铝盘中,原煤样本的厚度不超过其最大颗粒直径的2倍。During specific implementation, take 500±10g of the raw coal sample after screening, and evenly spread it on the high-temperature-resistant aluminum pan, and the thickness of the raw coal sample should not exceed 2 times the maximum particle diameter.

步骤1.2、对上述得到不同区域下的实验煤炭样本,均依次经过密封冷却、喷水搅拌、密封静置处理,以得到在预设煤炭训练样本水分含量标签下的煤炭训练样本;Step 1.2. For the above-mentioned experimental coal samples obtained in different regions, they are all sequentially processed by sealing and cooling, spraying water and stirring, and sealing and standing to obtain the coal training samples under the moisture content label of the preset coal training samples;

本发明实施例中,将实验煤炭样本从鼓风干燥箱取出后,立即装入带有密封盖的桶中进行密封冷却处理,同时,称取此时干燥煤炭样本的质量,以备后续计算所需;待煤炭样本冷却至常温后,打开密封盖并向煤炭样本喷洒一定量的水,同时缓慢搅拌煤炭样本以使煤与水充分混合;将煤炭样本再次密封,并置于室温环境中6小时以上,使水分在煤中充分扩散,最终得到煤炭训练样本。In the embodiment of the present invention, after the experimental coal sample is taken out from the blast drying oven, it is immediately put into a bucket with a sealed cover for sealing and cooling treatment. At the same time, the mass of the dry coal sample is weighed at this time for subsequent calculation. After the coal sample is cooled to normal temperature, open the sealing cover and spray a certain amount of water on the coal sample, and at the same time slowly stir the coal sample to fully mix the coal and water; seal the coal sample again and place it in room temperature for 6 hours Above, make the moisture fully diffuse in the coal, and finally get the coal training samples.

具体实施时,所有实验过程均是在室内常温环境下进行的;干燥煤炭样本的质量通过称取干燥煤炭和桶的总重减去桶的净重得到的;在执行向实验煤炭样本喷水并搅拌步骤时,尽量减少煤炭样本与空气的接触时间,并及时进行密封处理,防止空气中的水分对实验结果产生干扰;可采用本技术领域常用的技术手段执行实验煤炭样本喷水并搅拌步骤的过程,具体可以可根据实际需要选择。During specific implementation, all experimental processes were carried out at room temperature; the quality of the dry coal sample was obtained by weighing the total weight of the dry coal and the barrel minus the net weight of the barrel; During the procedure, minimize the contact time between the coal sample and the air, and seal it in time to prevent the moisture in the air from interfering with the experimental results; the technical means commonly used in this technical field can be used to perform the process of spraying and stirring the experimental coal sample , which can be selected according to actual needs.

本发明实施例中,在喷水搅拌时,对任一实验煤炭样本,根据预设煤炭训练样本水分含量标签确定的喷水质量为:In the embodiment of the present invention, when water is sprayed and stirred, for any experimental coal sample, the water spray quality determined according to the moisture content label of the preset coal training sample is:

Figure BDA0003460037250000051
Figure BDA0003460037250000051

其中,Madd是喷水的质量,Mc&m是实验煤炭样本与水混合的质量,MCbefore是实验煤炭样本的水分含量,MCafter是煤炭训练样本的煤炭样本水分含量标签。Among them, M add is the mass of water injection, M c&m is the mass of experimental coal sample mixed with water, MC before is the moisture content of experimental coal sample, and MC after is the coal sample moisture content label of coal training sample.

具体实施时,可以根据实际需求预设一煤炭训练样本水分含量标签,预设煤炭训练样本水分含量标签的可以根据原煤样本的情况合理设置,在设置煤炭训练样本水分含量标签后,即可确定喷水质量,从而最终能制备得到所需的煤炭训练样本以及所制作煤炭训练样本的煤炭训练样本水分含量标签。由于实际实验时,难以控制所喷水的质量,因此,喷水之后可通过前后质量差重新计算新的煤炭样本水分含量以进行误差校正。During specific implementation, a coal training sample moisture content label can be preset according to actual needs, and the preset coal training sample moisture content label can be reasonably set according to the situation of the raw coal sample. After setting the coal training sample moisture content label, it can be determined. Water quality, so that the required coal training samples and the coal training sample moisture content labels of the produced coal training samples can be prepared finally. Since it is difficult to control the quality of the sprayed water in the actual experiment, the moisture content of the new coal sample can be recalculated according to the quality difference before and after the water spraying to correct the error.

在喷水时,可以通过多次喷水操作最终达到预设煤炭训练样本水分含量标签。当通过多次喷水操作时,实验煤炭样本的水分含量MCbefore为上次喷水后的水分含量,如在密封冷却后,第一次喷水搅拌时,则实验煤炭样本的水分含量MCbefore为0或接近0的一个数值。第一次喷水后且在第二次喷水前,即可能得到相应的验煤炭样本的水分含量MCbefore,其余情况以此类推,此处不再赘述。When spraying water, the moisture content label of the preset coal training sample can be finally reached through multiple water spraying operations. When the water spraying operation is performed multiple times, the moisture content MC before of the experimental coal sample is the moisture content after the last water spraying. For example, after sealing and cooling, when the first water spraying is stirred, the moisture content MC before of the experimental coal sample is A value that is 0 or close to 0. After the first water spraying and before the second water spraying, it is possible to obtain the moisture content MC before of the corresponding coal inspection sample, and the rest of the cases can be deduced by analogy, which will not be repeated here.

步骤1.3、对上述得到的煤炭训练样本进行微波测试,以得到相应区域的煤炭训练样本在所述煤炭训练样本水分含量标签下的煤炭样本微波S参数波谱信息。Step 1.3: Perform a microwave test on the coal training samples obtained above to obtain the coal sample microwave S-parameter spectrum information of the coal training samples in the corresponding area under the moisture content label of the coal training samples.

具体地,还包括用于微波测试的微波测试系统,利用微波测试系统实现对煤炭训练样本的微波测试,图2中示出了微波测试系统的一种具体实施情况,具体地:所述微波测试系统包括矢量网络分析仪2以及两个与所述矢量网络分析仪2适配的喇叭天线3,在两个正对应放置的喇叭天线3间放置用于收纳煤炭样本或煤炭标本的样本容器4,所述矢量网络分析仪2与测试主控制器1电连接。Specifically, it also includes a microwave testing system for microwave testing, and utilizes the microwave testing system to realize the microwave testing of coal training samples. A specific implementation of the microwave testing system is shown in Figure 2, specifically: the microwave testing The system includes a vector network analyzer 2 and two horn antennas 3 adapted to the vector network analyzer 2, and a sample container 4 for accommodating coal samples or coal samples is placed between the two horn antennas 3 that are placed correspondingly, The vector network analyzer 2 is electrically connected to the test master controller 1 .

具体地,测试主控制器1可以采用现有常用的计算机,其主要用于操控矢量网络分析仪2收发微波信号并进行微波S参数波谱信息的可视化,测试主控制器1通过数据传输线与矢量网络分析仪2连接,所述矢量网络分析仪2可以采用现有常用便携式分析仪,矢量网络分析仪2的具体情况与现有相一致,为本技术领域人员所熟知,此处不再赘述。矢量网络分析仪2的两个信号端口分别通过同轴电缆线连接矩形的喇叭天线3,两个喇叭天线3口对口相对放置,并被安装在一架水平直线滑轨上,喇叭天线3的天线口间距10cm,喇叭天线3可采用现有常用的形式,喇叭天线3与矢量网络分析仪2的具体连接配合形式与现有相一致。Specifically, the main test controller 1 can use an existing commonly used computer, which is mainly used to control the vector network analyzer 2 to send and receive microwave signals and to visualize microwave S-parameter spectrum information. The main test controller 1 communicates with the vector network through a data transmission line. Analyzer 2 is connected, and described vector network analyzer 2 can adopt existing commonly used portable analyzer, and the specific situation of vector network analyzer 2 is consistent with existing, is well known to those skilled in the art, repeats no more here. The two signal ports of the vector network analyzer 2 are respectively connected to the rectangular horn antenna 3 through a coaxial cable. The two horn antennas 3 are placed opposite to each other and installed on a horizontal linear slide rail. The mouth spacing is 10cm, the horn antenna 3 can adopt the existing commonly used form, and the specific connection and cooperation form of the horn antenna 3 and the vector network analyzer 2 is consistent with the existing ones.

通过样本容器4能收纳煤炭样本,样本容器4放置于喇叭天线3中轴线中心区域,本发明实施例中,矢量网络分析仪2发射和接收的8.05-12.01GHz频率的微波信号共包含133个频率点,通过矢量网络分析仪2的133个频率点,可以得到133个波谱数据。喇叭天线3选择增益为20dB的EIA标准WR90波导型喇叭天线,样本容器4选择厚度为3mm的PMMA材料的矩形容器。Coal samples can be accommodated through the sample container 4, and the sample container 4 is placed in the center area of the central axis of the horn antenna 3. In the embodiment of the present invention, the microwave signals of 8.05-12.01 GHz frequency transmitted and received by the vector network analyzer 2 include 133 frequencies in total Points, through the 133 frequency points of the vector network analyzer 2, 133 spectrum data can be obtained. The horn antenna 3 chooses the EIA standard WR90 waveguide horn antenna with a gain of 20 dB, and the sample container 4 chooses a rectangular container made of PMMA material with a thickness of 3 mm.

具体实施时,对煤炭训练样本微波测试时,对任一煤炭训练样本,采集获取在8.05GHz~12.01GHz频率下相应频点的波谱数据,以得到所述煤炭训练样本的煤炭样本微波S参数波谱信息,其中,一煤炭训练样本的所有的煤炭训练样本微波S参数波谱数据构成一条微波S参数波谱初始曲线。During specific implementation, during the microwave test of the coal training sample, for any coal training sample, the spectrum data of the corresponding frequency point at the frequency of 8.05GHz to 12.01GHz is collected to obtain the coal sample microwave S-parameter spectrum of the coal training sample information, wherein all coal training sample microwave S-parameter spectrum data of a coal training sample constitute an initial microwave S-parameter spectrum data.

由上述说明可知,对任一煤炭训练样本,在133个频率点作用下,能得到133个波谱数据,即包含133个煤炭训练样本微波S参数波谱数据,因此,利用一煤炭训练样本的133个煤炭训练样本微波S参数波谱数据可构成一条微波S参数波谱初始曲线。具体实施时,一频率点下的波谱数据具体是指插入损耗参数S21,其中,插入损耗参数S21的具体情况与现有相一致,此处不再赘述。It can be known from the above description that for any coal training sample, under the action of 133 frequency points, 133 spectral data can be obtained, that is, microwave S-parameter spectral data of 133 coal training samples are included. Therefore, using 133 coal training samples The microwave S-parameter spectrum data of coal training samples can constitute an initial curve of microwave S-parameter spectrum. During specific implementation, the spectrum data at a frequency point specifically refers to the insertion loss parameter S21, wherein the specific situation of the insertion loss parameter S21 is consistent with the existing ones, and will not be repeated here.

具体实施时,对不同区域采集或不同煤炭训练样本水分含量标签下的煤炭训练样本,经过微波测试后,能够生成一条微波S参数波谱初始曲线,微波S参数波谱初始曲线总的数量可以根据实际需要选择确定。During specific implementation, for coal training samples collected in different regions or under the moisture content label of different coal training samples, after microwave testing, an initial microwave S-parameter spectrum curve can be generated. The total number of microwave S-parameter spectrum initial curves can be determined according to actual needs. Choose OK.

进一步地,对来自同一区域的所有煤炭训练样本的微波S参数波谱初始曲线进行预处理,以在预处理后得到煤炭训练样本在所述煤炭训练样本水分含量标签下的煤炭样本微波S参数波谱信息,其中,预处理包括如下步骤:Further, the microwave S-parameter spectrum initial curves of all coal training samples from the same area are preprocessed to obtain the coal sample microwave S-parameter spectrum information of the coal training sample under the moisture content label of the coal training sample after preprocessing , where the preprocessing includes the following steps:

步骤1.3.1、对任一微波S参数波谱初始曲线进行线性拟合,并计算微波S参数波谱初始曲线与所述微波S参数波谱初始曲线的线性拟合直线相应的波谱数据距离,得到波谱数据线性拟合距离矩阵D,Step 1.3.1, carry out linear fitting to any microwave S-parameter spectrum initial curve, and calculate the spectrum data distance corresponding to the linear fitting straight line between the microwave S-parameter spectrum initial curve and the microwave S-parameter spectrum initial curve, obtain the spectrum data A linear fit to the distance matrix D,

Figure BDA0003460037250000071
Figure BDA0003460037250000071

其中,A[m-1][i]为第m-1条微波S参数波谱初始曲线第i个频率点的波谱数据,A*[m-1][i]为第m-1条微波S参数波谱初始曲线相应的线性拟合直线第i个频率点的拟合波谱数据,n为测试得到每条微波S参数波谱初始曲线相应频率点的个数,m为微波S参数波谱初始曲线的条数;Among them, A[m-1][i] is the spectrum data of the i-th frequency point of the initial curve of the m-1 microwave S-parameter spectrum, and A*[m-1][i] is the m-1 microwave S The fitting spectrum data of the i-th frequency point of the linear fitting line corresponding to the initial curve of the parametric spectrum, n is the number of corresponding frequency points of each microwave S-parameter spectrum initial curve obtained by testing, and m is the bar of the microwave S-parameter spectrum initial curve number;

步骤1.3.2、对上述波谱数据线性拟合距离矩阵D内的波谱数据线性拟合距离与预设的距离阈值进行比较,剔除大于所述距离阈值的微波S参数波谱初始曲线,以得到当前区域相应的煤炭样本微波S参数波谱曲线;Step 1.3.2, compare the spectral data linear fitting distance in the spectral data linear fitting distance matrix D with the preset distance threshold, and eliminate the initial curve of the microwave S-parameter spectrum greater than the distance threshold to obtain the current area Corresponding coal sample microwave S-parameter spectrum curve;

所有区域的煤炭样本微波S参数波谱曲线构成训练数据集的煤炭训练样本微波S参数波谱信息。The microwave S-parameter spectrum curves of coal samples in all regions constitute the microwave S-parameter spectrum information of coal training samples in the training data set.

具体地,任一微波S参数波谱初始曲线,可采用本技术领域常用的技术手段实现线性拟合,具体线性拟合的方式等可以根据需要选择,此处不再赘述。在线性拟合后,能得到与一微波S参数波谱初始曲线正对应的线性拟合直线。由上述说明可知,每个频率点对应一波谱数据,因此,在得到线性拟合直线后,任一频率点可以确定微波S参数波谱初始曲线上的波谱数据以及线性拟合直线上相应的波谱数据,通过所有的微波S参数波谱初始曲线上的波谱数据以及线性拟合直线上相应的波谱数据,可以得到波谱数据线性拟合距离矩阵D。Specifically, any initial curve of the microwave S-parameter spectrum can be linearly fitted using commonly used technical means in this technical field, and the specific linear fitting method can be selected according to needs, and will not be repeated here. After the linear fitting, a linear fitting straight line corresponding to the initial curve of a microwave S-parameter spectrum can be obtained. It can be seen from the above description that each frequency point corresponds to a spectral data, therefore, after obtaining the linear fitting line, any frequency point can determine the spectral data on the initial curve of the microwave S-parameter spectrum and the corresponding spectral data on the linear fitting straight line , through all the spectral data on the initial curve of the microwave S-parameter spectrum and the corresponding spectral data on the linear fitting line, the linear fitting distance matrix D of the spectral data can be obtained.

本发明实施例中,根据上述说明可知,每条微波S参数波谱初始曲线上频率点的个数n为133,微波S参数波谱初始曲线的条数m具体可以根据实际需要选择,具体可以参考上述说明。In the embodiment of the present invention, according to the above description, it can be seen that the number n of frequency points on each initial microwave S-parameter spectrum curve is 133, and the number m of the initial microwave S-parameter spectrum curve can be selected according to actual needs. For details, refer to the above illustrate.

根据上述波谱数据线性拟合距离矩阵D,可以将任一煤炭训练样本相对应的波谱数据线性拟合距离与预设的距离阈值进行比较,在剔除大于所述距离阈值的微波S参数波谱初始曲线,以得到所需的煤炭样本微波S参数波谱信息。具体实施时,所述预设距离阈值为1.5×dis_m,其中,dis_m为当前原煤样本所在区域的波谱数据线性拟合距离排序后的距离中位数。According to the above spectral data linear fitting distance matrix D, the spectral data linear fitting distance corresponding to any coal training sample can be compared with the preset distance threshold, and the microwave S parameter spectral initial curve greater than the distance threshold can be eliminated , to obtain the required microwave S-parameter spectrum information of the coal sample. During specific implementation, the preset distance threshold is 1.5×dis_m, wherein dis_m is the median distance after sorting the spectral data linear fitting distances in the region where the current raw coal sample is located.

具体实施时,当原煤样本由多个采集区域对应时,每个区域的所有煤炭训练样本的微波S参数波谱初始曲线均需进行上述预处理,从而在预处理完成后,通过所有区域煤炭样本微波S参数波谱曲线构成煤炭样本微波S参数波谱信息,其中,煤炭样本微波S参数波谱信息,具体为若干条的煤炭样本微波S参数波谱曲线。In specific implementation, when the raw coal samples correspond to multiple collection areas, the initial curves of microwave S-parameter spectra of all coal training samples in each area need to be pre-processed, so that after the pre-processing is completed, the coal samples in all areas are microwaved The S-parameter spectrum curve constitutes the coal sample microwave S-parameter spectrum information, wherein the coal sample microwave S-parameter spectrum information is specifically a plurality of coal sample microwave S-parameter spectrum curves.

进一步地,将制作的训练数据集按煤炭训练样本的采集区域划分,以得到多组训练数据子集;Further, the training data set made is divided according to the collection area of the coal training samples to obtain multiple sets of training data subsets;

将训练数据子集依照留一交叉验证法输入k近邻数时的DW-KNN模型,并分别计算在不同k近邻数时的评价指标的交叉验证均值,选取评价指标交叉验证均值最优时k近邻数,并根据所选择评价指标交叉验证均值最优时的k近邻数,构建得到基于DW-KNN的煤炭水分含量检测模型。Input the training data subset into the DW-KNN model with k-nearest neighbors according to the leave-one-out cross-validation method, and calculate the cross-validation mean value of the evaluation index at different k-nearest neighbor numbers, and select the k-nearest neighbor when the cross-validation mean value of the evaluation index is optimal Number, and according to the k-nearest neighbor number when the mean value of the selected evaluation index is cross-validated, the coal moisture content detection model based on DW-KNN is constructed.

本发明实施例中,由于原煤样本采集不同的区域,通过上述步骤制作训练数据集后,训练数据集按煤炭训练样本的采集区域划分,以得到多组训练数据子集。所述留一交叉验证法,具体为:拿出任一组按煤炭训练样本的采集区域划分的训练数据子集作为留一交叉验证测试数据集,其余组作为留一交叉验证训练数据集,留一交叉验证法的具体实施方式以及过程与现有相一致,为本技术领域人员所熟知,此处不再赘述。In the embodiment of the present invention, since the raw coal samples are collected in different areas, after the training data set is produced through the above steps, the training data set is divided according to the collection area of the coal training samples to obtain multiple sets of training data subsets. The leave-one-out cross-validation method is specifically: take out any group of training data subsets divided by the collection area of the coal training samples as the leave-one-out cross-validation test data set, and the remaining groups as the leave-one-out cross-validation training data set, and leave The specific implementation and process of a cross-validation method are consistent with the existing ones and are well known to those skilled in the art, and will not be repeated here.

将训练数据子集按照本技术领域常用的留一交叉验证法输入k近邻数时的DW-KNN模型,分别计算在不同k近邻数时的评价指标的交叉验证均值,所述评价指标包括决定系数R2、平均绝对误差(MAE:Mean Absolute Error)和均方根误差(Root Mean Squared Error,RMSE),具体地,k近邻数由较小开始,逐渐增大,分别计算并记录在不同k近邻数时评价指标的交叉验证均值;当评价指标不再有较大变化时,停止运算,选取评价指标交叉验证均值最优时的k近邻数作为模型的最佳选择,得到基于DW-KNN的煤炭水分含量检测模型。具体实施时,评价指标交叉验证均值最优时,一般地,决定系数R2的取值最大,即可根据决定系数R2的取值情况确定是否为评价指标交叉验证均值最优时;当然,也可以采用技术手段确定评价指标交叉验证均值最优,具体确定评价指标交叉验证均值最优的方式以及过程为本技术领域人员所熟知。The training data subset is input into the DW-KNN model when the number of k nearest neighbors is according to the leave-one-out cross-validation method commonly used in the art, and the cross-validation mean value of the evaluation index when different k nearest neighbors are calculated respectively, and the evaluation index includes the coefficient of determination R 2 , mean absolute error (MAE: Mean Absolute Error) and root mean square error (Root Mean Squared Error, RMSE), specifically, the number of k-nearest neighbors starts from small and gradually increases, respectively calculated and recorded in different k-nearest neighbors When the cross-validation mean value of the evaluation index is counted; when the evaluation index no longer has a large change, the operation is stopped, and the k-nearest neighbor number when the cross-validation mean value of the evaluation index is optimal is selected as the best choice of the model, and the coal based on DW-KNN is obtained. Moisture content detection model. During specific implementation, when the average value of the evaluation index cross-validation is optimal, generally, the value of the determination coefficient R2 is the largest, and it can be determined according to the value situation of the determination coefficient R2 whether it is when the average value of the evaluation index cross-validation is optimal; of course, It is also possible to use technical means to determine the optimal cross-validation mean value of the evaluation index, and the specific method and process for determining the optimal cross-validation average value of the evaluation index index are well known to those skilled in the art.

本发明实施例中,k近邻数由3开始,每次递增1,直到评价指标不再有较大变化时,停止运算,具体过程与现有相一致,为本技术领域人员所熟知。In the embodiment of the present invention, the number of k-nearest neighbors starts from 3, and is incremented by 1 each time until the evaluation index no longer changes significantly, and the calculation is stopped. The specific process is consistent with the existing ones and is well known to those skilled in the art.

步骤2、提供待检测水分含量的煤炭标本,获取所述煤炭标本与煤炭训练样本微波S参数波谱信息相一致的煤炭标本微波S参数波谱信息,利用上述基于DW-KNN的煤炭水分含量检测模型对获取的煤炭标本微波S参数波谱信息处理,以得到并输出所述煤炭标本的水分含量。Step 2, provide the coal sample with the moisture content to be detected, obtain the microwave S parameter spectrum information of the coal sample consistent with the microwave S parameter spectrum information of the coal training sample, and use the above-mentioned coal moisture content detection model based on DW-KNN to The obtained coal sample microwave S-parameter spectrum information is processed to obtain and output the moisture content of the coal sample.

具体实施时,获取所述煤炭标本与煤炭训练样本微波S参数波谱信息相一致的煤炭标本微波S参数波谱信息,具体是指对提供待检测水分含量的煤炭标本,需要采用13mm筛孔的筛子对煤炭标本筛分,对筛分后的煤炭标本获取所述煤炭标本与煤炭训练样本微波S参数波谱信息相一致的煤炭标本微波S参数波谱信息;而煤炭标本微波S参数波谱信息与煤炭训练样本微波S参数波谱信息相一致,即是指煤炭标本微波S参数波谱信息、煤炭训练样本微波S参数波谱信息均在相同频率点下测试得到相应的波谱数据,当上述测试得到每条微波S参数波谱初始曲线相应频率点的个数n为133时,煤炭标本微波S参数波谱信息、煤炭训练样本微波S参数波谱信息均包括133个频率点对应的波谱数据。During specific implementation, the microwave S parameter spectrum information of the coal sample that is consistent with the microwave S parameter spectrum information of the coal training sample is obtained, specifically referring to the coal sample that provides the moisture content to be detected, it is necessary to use a sieve with a 13mm sieve hole to The coal sample is screened, and the coal sample microwave S parameter spectral information of the coal sample is consistent with the coal training sample microwave S parameter spectral information for the coal sample after screening; and the coal sample microwave S parameter spectral information is consistent with the coal training sample microwave The S-parameter spectrum information is consistent, which means that the microwave S-parameter spectrum information of the coal sample and the microwave S-parameter spectrum information of the coal training sample are all tested at the same frequency point to obtain the corresponding spectrum data. When the number n of corresponding frequency points on the curve is 133, the microwave S-parameter spectrum information of the coal sample and the microwave S-parameter spectrum information of the coal training sample both include spectrum data corresponding to 133 frequency points.

基于DW-KNN的煤炭水分含量检测模型对煤炭标本微波S参数波谱信息处理得到煤炭标本的水分含量时,包括如下步骤:When the coal moisture content detection model based on DW-KNN processes the microwave S-parameter spectrum information of coal samples to obtain the moisture content of coal samples, the following steps are included:

步骤2.1、计算煤炭标本微波S参数波谱信息与第q个煤炭训练样本δq的欧氏距离

Figure BDA0003460037250000091
Step 2.1. Calculate the Euclidean distance between the microwave S-parameter spectrum information of the coal sample and the qth coal training sample δ q
Figure BDA0003460037250000091

Figure BDA0003460037250000092
Figure BDA0003460037250000092

其中,

Figure BDA0003460037250000093
为煤炭标本微波S参数波谱信息第p个频率点相应的波谱数据,δqp为第q个煤炭训练样本δq的煤炭训练样本微波S参数波谱信息第p个频率点相应的波谱数据;in,
Figure BDA0003460037250000093
is the spectral data corresponding to the pth frequency point of the coal sample microwave S-parameter spectral information, δ qp is the corresponding spectral data of the p-th frequency point of the coal training sample microwave S-parameter spectral information of the qth coal training sample δ q ;

具体地,煤炭样本微波S参数波谱信息所包含煤炭样本微波S参数波谱曲线的总数量为Q时,则q的取值范围为1~Q。Specifically, when the total number of coal sample microwave S-parameter spectrum curves contained in the coal sample microwave S-parameter spectrum information is Q, the value range of q is 1-Q.

步骤2.2、将计算得到的所有欧式距离

Figure BDA0003460037250000094
按升序排序,确定与前k个欧式距离分别对应的煤炭训练样本;Step 2.2, all the calculated Euclidean distances
Figure BDA0003460037250000094
Sort in ascending order to determine the coal training samples corresponding to the first k Euclidean distances;

具体地,通过步骤1,能确定Q个欧式距离

Figure BDA0003460037250000095
对所述欧式距离
Figure BDA0003460037250000096
按升序排序后,根据上述确定的k近邻数,则选取前k个欧式距离以及与前k个欧式距离相对应的煤炭训练样本,在确定前k个煤炭训练样本后,能确定每个煤炭训练样本的煤炭训练样本水分含量标签以及煤炭训练样本在所述煤炭训练样本水分含量标签下的煤炭训练样本微波S参数波谱信息。Specifically, through step 1, Q Euclidean distances can be determined
Figure BDA0003460037250000095
For the Euclidean distance
Figure BDA0003460037250000096
After sorting in ascending order, according to the number of k neighbors determined above, select the first k Euclidean distances and the coal training samples corresponding to the first k Euclidean distances. After determining the first k coal training samples, each coal training sample can be determined The coal training sample moisture content label of the sample and the coal training sample microwave S-parameter spectrum information of the coal training sample under the coal training sample moisture content label.

步骤2.3、根据所选择确定的前k个欧式距离

Figure BDA0003460037250000101
以及相应的煤炭训练样本,计算得到并输出所述煤炭标本的水分含量为:Step 2.3, the first k Euclidean distances determined according to the selection
Figure BDA0003460037250000101
And the corresponding coal training sample, calculate and output the moisture content of the described coal sample as:

Figure BDA0003460037250000102
Figure BDA0003460037250000102

其中,

Figure BDA0003460037250000103
为煤炭标本的水分含量,ψ(δj)为确定前k个煤炭训练样本中第j个煤炭训练样本δj的煤炭训练样本水分含量标签,σj为确定前k个煤炭训练样本中第j个煤炭训练样本δj的距离权重,
Figure BDA0003460037250000104
为确定的前k个欧式距离内相应的第j个欧氏距离。in,
Figure BDA0003460037250000103
is the moisture content of the coal sample, ψ(δ j ) is the moisture content label of the jth coal training sample δ j in the first k coal training samples, and σ j is the jth coal training sample j in the first k coal training samples. The distance weight of coal training samples δ j ,
Figure BDA0003460037250000104
is the corresponding j-th Euclidean distance within the determined first k Euclidean distances.

本发明实施例中,通过对煤炭标本微波S参数波谱信息进行上述处理后,即可得到述煤炭标本的水分含量。In the embodiment of the present invention, the moisture content of the coal sample can be obtained by performing the above processing on the microwave S-parameter spectrum information of the coal sample.

Claims (5)

1. A DW-KNN-based coal moisture content rapid nondestructive testing method is characterized by comprising the following steps:
step 1, constructing a DW-KNN-based coal moisture content detection model, wherein when the DW-KNN-based coal moisture content detection model is constructed, a manufactured training data set comprises a coal training sample moisture content label of a coal training sample and coal training sample microwave S parameter spectrum information of the coal training sample under the coal training sample moisture content label, and the manufactured training data set is used for training the DW-KNN model to construct and obtain the DW-KNN-based coal moisture content detection model;
step 2, providing a coal sample to be detected for moisture content, acquiring coal sample microwave S parameter spectrum information of which the coal sample is consistent with coal training sample microwave S parameter spectrum information, and processing the acquired coal sample microwave S parameter spectrum information by using the DW-KNN-based coal moisture content detection model to obtain and output the moisture content of the coal sample;
in step 1, when a training data set is manufactured, the method specifically comprises the following steps:
step 1.1, collecting raw coal samples in different areas, screening all the collected raw coal samples, uniformly and flatly paving the screened raw coal samples in corresponding carriers, and drying the raw coal samples in the carriers to obtain experimental coal samples in different areas;
step 1.2, carrying out sealing cooling, water spraying stirring and sealing standing treatment on the obtained experimental coal samples in different areas in sequence to obtain coal training samples under a preset coal training sample moisture content label;
step 1.3, performing microwave testing on the obtained coal training samples to obtain coal sample microwave S parameter spectrum information of the coal training samples in corresponding areas under the coal training sample moisture content label;
in the step 1.3, when the coal training samples are subjected to microwave testing, spectrum data of corresponding frequency points under the frequency of 8.05 GHz-12.01 GHz are acquired and obtained for any coal training sample to obtain coal sample microwave S parameter spectrum information of the coal training sample, wherein all coal sample microwave S parameter spectrum data of one coal training sample form a microwave S parameter spectrum initial curve;
preprocessing microwave S parameter spectrum initial curves of all coal training samples from the same area to obtain coal sample microwave S parameter spectrum information of the coal training samples under a coal training sample moisture content label after preprocessing, wherein the preprocessing comprises the following steps:
step 1.3.1, performing linear fitting on any microwave S parameter spectrum initial curve, calculating the corresponding spectrum data distance between the microwave S parameter spectrum initial curve and the linear fitting straight line of the microwave S parameter spectrum initial curve to obtain a spectrum data linear fitting distance matrix D,
Figure FDA0004059692210000021
wherein, A [ m-1] [ i ] is the spectral data of the ith frequency point of the m-1 th microwave S parameter spectrum initial curve, A [ m-1] [ i ] is the fitted spectral data of the ith frequency point of a linear fitted straight line corresponding to the m-1 th microwave S parameter spectrum initial curve, n is the number of the frequency points corresponding to each microwave S parameter spectrum initial curve obtained by testing, and m is the number of the microwave S parameter spectrum initial curves;
step 1.3.2, comparing the linear fitting distance of the spectrum data in the linear fitting distance matrix D of the spectrum data with a preset distance threshold, and eliminating a microwave S parameter spectrum initial curve which is greater than the distance threshold to obtain a coal sample microwave S parameter spectrum curve corresponding to the current region;
the microwave S parameter spectrum curves of the coal samples in all the areas form the microwave S parameter spectrum information of the coal training samples of the training data set;
dividing the manufactured training data set according to the acquisition region of the coal training sample to obtain a plurality of groups of training data subsets;
inputting a training data subset into a DW-KNN model when k neighbors exist according to a leave-one-out cross validation method, respectively calculating cross validation mean values of evaluation indexes when the k neighbors exist at different numbers, selecting the k neighbors when the cross validation mean value of the evaluation indexes is optimal, and constructing and obtaining a DW-KNN-based coal moisture content detection model according to the k neighbors when the selected evaluation index cross validation mean value is optimal;
when the DW-KNN-based coal moisture content detection model processes microwave S parameter spectrum information of a coal specimen to obtain the moisture content of the coal specimen, the DW-KNN-based coal moisture content detection method comprises the following steps:
step 2.1, calculating microwave S parameter spectrum information of the coal sample and a qth coal training sample delta q Euclidean distance of
Figure FDA0004059692210000022
Figure FDA0004059692210000023
Wherein,
Figure FDA0004059692210000024
spectral data corresponding to the p-th frequency point of the microwave S parameter spectral information of the coal sample delta qp For the qth coal training sample δ q Spectrum data corresponding to the p-th frequency point of the microwave S parameter spectrum information of the coal training sample;
step 2.2, all the Euclidean distances obtained by calculation
Figure FDA0004059692210000025
Sequencing in an ascending order, and determining coal training samples respectively corresponding to the first k Euclidean distances;
step 2.3, according to the first k Euclidean distances determined by selection
Figure FDA0004059692210000026
And corresponding coal training samples, and calculating and outputting the moisture content of the coal specimen as follows:
Figure FDA0004059692210000031
wherein,
Figure FDA0004059692210000032
moisture content of coal specimen, psi (delta) j ) To determine the jth coal training sample delta in the first k coal training samples j Coal training sample moisture content tag, σ j To determine the jth coal training sample delta in the first k coal training samples j The weight of the distance of (a) is,
Figure FDA0004059692210000033
is the corresponding j-th Euclidean distance in the determined first k Euclidean distances.
2. The DW-KNN-based coal moisture content rapid nondestructive testing method as claimed in claim 1, wherein in step 1.2, during water spraying and stirring, the water spraying quality determined according to the moisture content label of the preset coal training sample for any experimental coal sample is as follows:
Figure FDA0004059692210000034
wherein M is add Is the mass of the water spray, M c&m Is the mass of the mixture of the experimental coal sample and water, MC before Is the moisture content, MC, of the experimental coal sample after Is a coal sample moisture content label of a coal training sample.
3. The DW-KNN-based coal moisture content rapid nondestructive testing method according to claim 1, wherein the preset distance threshold is 1.5 x dis _ m, wherein dis _ m is a distance median after linear fitting distance sorting of spectral data of a region where the current raw coal sample is located.
4. The DW-KNN-based coal moisture content rapid nondestructive testing method as claimed in claim 1, wherein in step 1.1, a 13mm sieve is used for sieving the raw coal sample, and for the coal sample providing the moisture content to be detected, a 13mm sieve is also used for sieving the coal sample, and for the sieved coal sample, the coal sample microwave S parameter spectrum information of the coal sample is obtained, wherein the coal sample is consistent with the coal training sample microwave S parameter spectrum information.
5. The DW-KNN-based coal moisture content rapid nondestructive testing method according to claim 1 or 3, characterized by further comprising a microwave testing system for microwave testing, wherein the microwave testing system comprises a vector network analyzer (2) and two horn antennas (3) matched with the vector network analyzer (2), a sample container (4) for containing a coal sample or a coal sample is arranged between the two horn antennas (3) which are arranged in a positive correspondence manner, and the vector network analyzer (2) is electrically connected with the testing main controller (1).
CN202210016888.2A 2022-01-07 2022-01-07 DW-KNN-based rapid non-destructive detection method for coal moisture content Active CN114354654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210016888.2A CN114354654B (en) 2022-01-07 2022-01-07 DW-KNN-based rapid non-destructive detection method for coal moisture content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210016888.2A CN114354654B (en) 2022-01-07 2022-01-07 DW-KNN-based rapid non-destructive detection method for coal moisture content

Publications (2)

Publication Number Publication Date
CN114354654A CN114354654A (en) 2022-04-15
CN114354654B true CN114354654B (en) 2023-03-21

Family

ID=81107026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210016888.2A Active CN114354654B (en) 2022-01-07 2022-01-07 DW-KNN-based rapid non-destructive detection method for coal moisture content

Country Status (1)

Country Link
CN (1) CN114354654B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115575417B (en) * 2022-08-03 2023-10-31 华能应城热电有限责任公司 Coal moisture detection method and device
CN116070929B (en) * 2022-10-12 2023-10-03 华院计算技术(上海)股份有限公司 Self-adaptive local dynamic coke quality prediction method and system
CN116844658B (en) * 2023-07-13 2024-01-23 中国矿业大学 Rapid measurement method and system for coal moisture content based on convolutional neural network
CN117723514B (en) * 2024-02-07 2024-05-17 山西品东智能控制有限公司 Multi-index coal quality analyzer based on sodium light source and intelligent algorithm and detection method
CN118010763B (en) * 2024-02-28 2024-09-27 四川聚元药业集团有限公司 Microwave moisture rapid detection method for radix paeoniae alba decoction pieces

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112881306A (en) * 2021-01-15 2021-06-01 吉林大学 Hyperspectral image-based method for rapidly detecting ash content of coal
WO2021243848A1 (en) * 2020-06-03 2021-12-09 枣庄学院 Anomaly detection method for wireless sensor network

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01282464A (en) * 1988-05-10 1989-11-14 Chubu Electric Power Co Inc Moisture measuring device
US6137294A (en) * 1999-01-21 2000-10-24 Usx Corporation Prediction of bulk density of particulates with a correlation based on moisture content
CA2424214C (en) * 2000-10-11 2009-10-06 New Zealand Forest Research Institute Limited Microwave moisture sensing via waveguide with slot array
CN104515749B (en) * 2014-10-24 2017-11-03 中华人民共和国黄埔出入境检验检疫局 The quick determination method of water in coal sample
CN204374103U (en) * 2015-01-20 2015-06-03 西安阿尔特测控技术有限公司 The online Coal ' moisture measuring system of microwave method
CN105277531B (en) * 2015-09-25 2018-04-10 清华大学 A kind of coal characteristic measuring method based on stepping
CN105842113A (en) * 2016-06-15 2016-08-10 安徽有果信息技术服务有限公司 On-line detection method of content of water in coal
CN107764796B (en) * 2017-09-19 2019-07-26 华中科技大学 A method for detecting moisture and volatile matter in raw coal by using baseline drift
CN110308166B (en) * 2019-07-05 2020-06-05 中国矿业大学 Experimental device and method for measuring moisture content and distribution in coal rock by utilizing X-ray
CN110879234B (en) * 2019-12-27 2020-12-25 中国矿业大学 Method for rapidly detecting total moisture of coal based on low-field nuclear magnetic resonance
CN111753877B (en) * 2020-05-19 2024-03-05 海克斯康制造智能技术(青岛)有限公司 Product quality detection method based on deep neural network migration learning
CN111754028A (en) * 2020-06-08 2020-10-09 吉林大学 A system and method for detecting coal ash and moisture content based on hyperspectral

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021243848A1 (en) * 2020-06-03 2021-12-09 枣庄学院 Anomaly detection method for wireless sensor network
CN112881306A (en) * 2021-01-15 2021-06-01 吉林大学 Hyperspectral image-based method for rapidly detecting ash content of coal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张军.基于Isomap-BP的寒地老年住宅热舒适度模型.2019,(第03期),全文. *

Also Published As

Publication number Publication date
CN114354654A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN114354654B (en) DW-KNN-based rapid non-destructive detection method for coal moisture content
CN101806730B (en) Vinegar residue organic matrix moisture content detection method
CN109669023A (en) A kind of soil attribute prediction technique based on Multi-sensor Fusion
CN103822935A (en) Fast analyzer for nondestructive measuring heavy metal cadmium in foods and analyzing method
US20230048665A1 (en) Two-stage frequency selection method and device for microwave frequency sweep data
CN114518339A (en) Method for establishing near-infrared prediction model of wet-based fermented soybean meal and application
CN113742919A (en) A method and system for predicting soil heavy metal pollution degree based on high and low frequency soil dielectric constant
CN112798622B (en) Device and method for detecting moisture content of wood based on microwave transmission principle
CN107192635A (en) The method and system of nondestructive measurement density of wood
CN103487398B (en) A kind of analytical method of lysine fermentation liquor
Zhang et al. Measurement of the moisture content in woodchips through capacitive sensing and data driven modelling
CN107991265A (en) A kind of wheat flour Rubus biflorus Buch quick determination method based on information fusion
CN107064240A (en) A kind of on-line monitoring system based on dielectric property dynamic change
CN1979131A (en) Method for detecting hydrgenated tail-oil paraffin composition using near-infrared spectrum
CN112651173B (en) A non-destructive testing method and generalizable system for agricultural product quality based on cross-domain spectral information
CN109507292A (en) A kind of method for extracting signal
CN118690498A (en) A method, medium and system for determining the gas production law in oil under complex working conditions
Rahman et al. MoistNet: Machine vision-based deep learning models for wood chip moisture content measurement
CN107238557A (en) A kind of method of utilization near infrared spectroscopy quick detection calcium carbonate particle diameter distribution
CN115619022A (en) Coke quality prediction method based on support vector machine and application thereof
CN100451615C (en) Method for detecting hydrogenated tail-oil cyclanes and arene composition using near infrared spectrum
CN111898314A (en) Lake water parameter testing method, device, electronic equipment and storage medium
Zhonghao et al. Research on Monitoring of Tunnel Cable Insulation Layer Based on Terahertz Wave Clustering Analysis
Öztürk A new approximation to classify the liquids measured in microwave frequency range
CN108680586A (en) A kind of new grain mixes old detection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant