CN115062656B - Tea polyphenol content prediction method and device based on electronic nose signal space domain - Google Patents

Tea polyphenol content prediction method and device based on electronic nose signal space domain Download PDF

Info

Publication number
CN115062656B
CN115062656B CN202210658122.4A CN202210658122A CN115062656B CN 115062656 B CN115062656 B CN 115062656B CN 202210658122 A CN202210658122 A CN 202210658122A CN 115062656 B CN115062656 B CN 115062656B
Authority
CN
China
Prior art keywords
electronic nose
tea
nose signal
tea sample
signal
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
CN202210658122.4A
Other languages
Chinese (zh)
Other versions
CN115062656A (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.)
Anhui Agricultural University AHAU
Original Assignee
Anhui Agricultural University AHAU
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 Anhui Agricultural University AHAU filed Critical Anhui Agricultural University AHAU
Priority to CN202210658122.4A priority Critical patent/CN115062656B/en
Publication of CN115062656A publication Critical patent/CN115062656A/en
Application granted granted Critical
Publication of CN115062656B publication Critical patent/CN115062656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/774Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Molecular Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a tea polyphenol content prediction method and device based on an electronic nose signal space domain, wherein the method comprises the following steps: 1. acquiring an electronic nose signal of a tea sample and measuring the content of tea polyphenol; 2. extracting response values of the tea sample electronic nose signals in a stable state as tea sample electronic nose signal characteristics; 3. based on the tea polyphenol content of the tea sample, optimizing the signal characteristics of the electronic nose of the tea sample by utilizing the maximum information coefficient to obtain a corresponding optimized electronic nose signal of the tea sample; 4. converting the tea sample preferential electronic nose signal into a spatial domain image by a code conversion method; 5. and training and testing the spatial domain image based on the convolutional neural grid CNN to obtain a prediction result of the tea polyphenol content. The invention can convert the one-dimensional time sequence of the electronic nose signal into a two-dimensional image, and can excavate the spatial domain characteristics of the electronic nose signal, and simultaneously, the CNN network can be utilized to realize timely and accurate prediction of the tea polyphenol content.

Description

一种基于电子鼻信号空间域的茶多酚含量预测方法和装置A method and device for predicting tea polyphenol content based on electronic nose signal space domain

技术领域technical field

本发明涉及无损检测和图像处理领域,具体而言,涉及一种基于电子鼻信号空间域的茶多酚含量预测方法和装置。The invention relates to the fields of non-destructive testing and image processing, in particular to a method and device for predicting tea polyphenol content based on electronic nose signal space domain.

背景技术Background technique

目前存在很多茶多酚含量的检测方法,传统的化学检测方法破坏性大、操作复杂且费时费力,而电子鼻作为一种气味传感器,能够模拟人体嗅觉,具备客观性强、响应时间短、检测速度快、准确度高等优点,且不需要复杂的预处理过程和传统化学方法的破坏性。电子鼻信号分析逐渐成为估测茶多酚含量的重要技术手段,对电子鼻信号进行有效的特征提取,可以提高预测的精度和效率,目前对于电子鼻信号的特征提取主要表现在时域和频域特征两个方面。时域特征主要提取信号变化的瞬时值、平均值、面积值等特征值,可以表示信号的瞬时特征以及总体响应趋势等,通过傅里叶变换或小波变换将原始时域信号变换到频域后可以提取频域特征,能够表示传感器信号的主流特征和整体水平。但是这些方法忽略了电子鼻信号变化的细节,丢失了原始信号时间采样点之间的关联信息,损失了一定的预测精度。At present, there are many detection methods for tea polyphenols content. The traditional chemical detection methods are destructive, complicated and time-consuming. As an odor sensor, the electronic nose can simulate the human sense of smell, which has strong objectivity, short response time, and easy detection. It has the advantages of fast speed and high accuracy, and does not require complex pretreatment processes and destructive traditional chemical methods. Electronic nose signal analysis has gradually become an important technical means to estimate the content of tea polyphenols. Effective feature extraction of electronic nose signals can improve the accuracy and efficiency of prediction. At present, the feature extraction of electronic nose signals is mainly performed in the time domain and frequency domain. There are two aspects of domain characteristics. The time-domain feature mainly extracts the characteristic values such as the instantaneous value, average value, and area value of the signal change, which can represent the instantaneous characteristics of the signal and the overall response trend, etc. After transforming the original time-domain signal into the frequency domain through Fourier transform or wavelet transform Frequency domain features can be extracted, which can represent the mainstream features and overall level of sensor signals. However, these methods ignore the details of the electronic nose signal changes, lose the correlation information between the original signal time sampling points, and lose a certain prediction accuracy.

发明内容Contents of the invention

本发明是为了解决上述现有技术存在的不足之处,提出一种基于电子鼻信号空间域的茶多酚含量预测方法和装置,以期能充分利用深度学习在图像领域的优势,并能挖掘电子鼻信号潜在的空间域特征,从而能够有效提高茶多酚含量的预测精度。In order to solve the shortcomings of the above-mentioned prior art, the present invention proposes a method and device for predicting tea polyphenol content based on the electronic nose signal space domain, in order to fully utilize the advantages of deep learning in the image field, and to mine the electronic nose signal space domain. The potential spatial domain characteristics of nasal signal can effectively improve the prediction accuracy of tea polyphenol content.

为了达到上述目的,本发明所采用的技术方案为:In order to achieve the above object, the technical scheme adopted in the present invention is:

本发明一种基于电子鼻信号空间域的茶多酚含量预测方法的特点包括:The characteristics of a method for predicting the content of tea polyphenols based on the electronic nose signal space domain of the present invention include:

步骤1、获取茶叶样本的电子鼻信号并测量茶多酚含量,其中,所述电子鼻信号包括m个传感器阵列,每个传感器阵列包括多个采样点,每个采样点对应电子鼻信号的一个响应值;Step 1. Obtain the electronic nose signal of the tea sample and measure the content of tea polyphenols, wherein the electronic nose signal includes m sensor arrays, each sensor array includes a plurality of sampling points, and each sampling point corresponds to one of the electronic nose signals Response;

步骤2、根据茶叶样本电子鼻信号的响应趋势,提取所述茶叶样本电子鼻信号在平稳状态下的响应值,从而得到m个电子鼻信号特征;Step 2, according to the response trend of the tea sample electronic nose signal, extract the response value of the tea sample electronic nose signal in a steady state, thereby obtaining m electronic nose signal features;

步骤3、基于茶叶样本的茶多酚含量,利用最大信息系数对m个电子鼻信号特征进行优选,得到H个优选特征所对应的优选电子鼻信号;Step 3. Based on the tea polyphenol content of the tea samples, the m electronic nose signal features are optimized by using the maximum information coefficient, and the optimal electronic nose signals corresponding to the H optimal features are obtained;

步骤4、通过编码转换方法将所述茶叶样本优选电子鼻信号转化为空间域图像;Step 4, converting the preferred electronic nose signal of the tea sample into a spatial domain image by a code conversion method;

步骤5、将电子鼻信号编码后构建的茶叶样本电子鼻信号的空间域图像划分为训练集空间域图像和测试集空间域图像;Step 5, dividing the space domain image of the tea sample electronic nose signal constructed after the electronic nose signal encoding into a training set space domain image and a test set space domain image;

步骤6、基于CNN模型对所述茶叶样本电子鼻信号的训练集空间域图像进行训练,得到训练后的茶多酚含量预测模型;Step 6, training the spatial domain images of the training set of the electronic nose signal of the tea samples based on the CNN model to obtain a trained tea polyphenol content prediction model;

步骤7、利用所述训练后的茶多酚含量预测模型,对待预测茶叶样本的测试集空间域图像进行处理,并输出茶多酚含量的预测结果。Step 7: Using the trained tea polyphenol content prediction model, process the test set spatial domain image of the tea samples to be predicted, and output the prediction result of tea polyphenol content.

本发明所述的一种基于电子鼻信号空间域的茶多酚含量预测方法的特点也在于,所述步骤3包括:A method for predicting tea polyphenols content based on electronic nose signal space domain according to the present invention is also characterized in that said step 3 includes:

步骤3.1、将茶叶样本每个电子鼻信号特征分别与所述茶叶样本的茶多酚含量构成对应的二维数据集;Step 3.1, forming a two-dimensional data set corresponding to each electronic nose signal feature of the tea sample and the tea polyphenol content of the tea sample;

步骤3.2、将任意一个二维数据集构成的散点图划分成不同行数、列数的网格,从而得到不同划分形式的网格;Step 3.2, divide the scatter diagram formed by any two-dimensional data set into grids with different numbers of rows and columns, so as to obtain grids with different division forms;

步骤3.3、分别计算每种划分形式的网格对应的互信息值,并对各个互信息值进行归一化处理;Step 3.3, respectively calculate the mutual information value corresponding to the grid of each division form, and perform normalization processing on each mutual information value;

步骤3.4、将归一化后的最大互信息值作为相应二维数据集的最大信息系数值;Step 3.4, taking the normalized maximum mutual information value as the maximum information coefficient value of the corresponding two-dimensional data set;

步骤3.5、对m个二维数据集的最大信息系数进行降序排序,并选择前H个最大信息系数所对应的电子鼻信号特征作为H个优选特征。Step 3.5: Sort the largest information coefficients of the m two-dimensional data sets in descending order, and select the electronic nose signal features corresponding to the first H largest information coefficients as H preferred features.

所述步骤4,包括:The step 4 includes:

步骤4.1、对优选后的茶叶样本电子鼻信号进行归一化处理,得到归一化后的茶叶样本优选电子鼻信号;Step 4.1, performing normalization processing on the optimized tea sample electronic nose signal to obtain the normalized tea sample optimal electronic nose signal;

步骤4.2、利用反三角函数公式,将笛卡尔坐标系下归一化后的茶叶样本优选电子鼻信号转化到极坐标系下,从而得到极坐标下每个茶叶样本优选电子鼻信号对应的半径和角度;其中,半径表示时间戳,角度表示茶叶样本优选电子鼻信号的响应值;Step 4.2, using the inverse trigonometric function formula to convert the normalized optimal electronic nose signal of the tea sample in the Cartesian coordinate system to the polar coordinate system, so as to obtain the radius sum corresponding to the optimal electronic nose signal of each tea sample in polar coordinates Angle; wherein, the radius represents the timestamp, and the angle represents the response value of the tea sample preferred electronic nose signal;

步骤4.3、将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的余弦值构成对应优选电子鼻信号的格拉姆和角场矩阵;Step 4.3: Add the angle value of each optimal electronic nose signal of the tea sample in the polar coordinate system to the angle values of other sampling points respectively, and then take the cosine value of the addition result to form the corresponding optimal electronic nose signal Gram and corner field matrices;

步骤4.4、将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的正弦值构成对应优选电子鼻信号的格拉姆差角场矩阵;Step 4.4: Add the angle value of each optimal electronic nose signal of the tea sample in the polar coordinate system to the angle values of other sampling points respectively, and then take the sine value of the addition result to form the corresponding optimal electronic nose signal Gram difference angle field matrix;

步骤4.5、将茶叶样本每个优选电子鼻信号的格拉姆和角场矩阵及其格拉姆差角场矩阵分别进行加权平均运算,得到对应茶叶样本优选电子鼻信号的加权平均融合矩阵;Step 4.5, performing a weighted average operation on the Gram sum angle field matrix and the Gram difference angle field matrix of each preferred electronic nose signal of the tea sample, respectively, to obtain the weighted average fusion matrix of the preferred electronic nose signal corresponding to the tea sample;

步骤4.6、将茶叶样本每个优选电子鼻信号得到的加权平均融合矩阵作为图像的一个通道,从而得到空间域图像。In step 4.6, the weighted average fusion matrix obtained from each optimal electronic nose signal of the tea sample is used as a channel of the image to obtain a spatial domain image.

所述步骤6包括:Said step 6 comprises:

步骤6.1、利用卷积核对所述训练集空间域图像进行卷积运算,得到训练集空间域图像的训练集特征图;Step 6.1, using a convolution kernel to perform a convolution operation on the training set spatial domain image to obtain a training set feature map of the training set spatial domain image;

步骤6.2、利用池化层对所述训练集特征图进行下采样操作,得到降维后的茶叶样本电子鼻信号的训练集空间域特征;Step 6.2, using the pooling layer to perform a down-sampling operation on the feature map of the training set to obtain the spatial domain features of the training set of the electronic nose signal of the tea sample after dimensionality reduction;

步骤6.3、利用全连接层将所述降维后的茶叶样本电子鼻信号的训练集空间域特征进行整合,得到茶叶样本的茶多酚含量的预测值;Step 6.3, using the fully connected layer to integrate the spatial domain features of the training set of the electronic nose signal of the tea sample after the dimensionality reduction, to obtain the predicted value of the tea polyphenol content of the tea sample;

步骤6.4、利用梯度下降法对所述CNN模型进行训练,并计算均方误差MSE损失函数,用于更新模型参数,当损失函数收敛时停止训练,从而得到训练后的茶多酚含量预测模型;Step 6.4, using the gradient descent method to train the CNN model, and calculating the mean square error (MSE) loss function for updating the model parameters, and stopping the training when the loss function converges, so as to obtain the trained tea polyphenol content prediction model;

本发明一种基于电子鼻信号空间域的茶多酚含量预测装置的特点在于,包括:获取单元、特征提取单元、优选单元、空间域图像生成单元、训练单元、预测单元,其中,A tea polyphenol content prediction device based on the electronic nose signal space domain of the present invention is characterized in that it includes: an acquisition unit, a feature extraction unit, an optimization unit, a space domain image generation unit, a training unit, and a prediction unit, wherein,

所述获取单元,用于获取茶叶样本的电子鼻信号并测量茶多酚含量,其中,所述电子鼻信号包括多个传感器阵列,每个传感器阵列包括多个采样点,每个采样点都有一个响应值;The acquisition unit is used to acquire the electronic nose signal of the tea sample and measure the content of tea polyphenols, wherein the electronic nose signal includes a plurality of sensor arrays, each sensor array includes a plurality of sampling points, and each sampling point has a response value;

所述特征提取单元,用于根据茶叶样本电子鼻信号的响应趋势,提取茶叶样本每个电子鼻信号平稳状态时的响应值并作为茶叶样本电子鼻信号特征;The feature extraction unit is used to extract the response value of each electronic nose signal of the tea sample in a steady state according to the response trend of the tea sample electronic nose signal and use it as the tea sample electronic nose signal feature;

所述优选单元,用于基于茶叶样本的茶多酚含量,利用最大信息系数对茶叶样本电子鼻信号特征进行优选,得到优选特征所对应的茶叶样本优选电子鼻信号;The optimization unit is used to optimize the characteristics of the electronic nose signal of the tea sample by using the maximum information coefficient based on the tea polyphenol content of the tea sample, and obtain the optimal electronic nose signal of the tea sample corresponding to the optimal feature;

所述空间域图像生成单元,用于将茶叶样本优选电子鼻信号编码为空间域图像;The spatial domain image generation unit is used to encode tea samples, preferably electronic nose signals, into spatial domain images;

所述训练单元,基于CNN模型对所述茶叶样本电子鼻信号的空间域图像进行训练,得到训练后的茶多酚含量预测模型;The training unit trains the spatial domain image of the electronic nose signal of the tea sample based on the CNN model to obtain a trained tea polyphenol content prediction model;

所述预测单元,是利用所述茶多酚含量预测模型对待预测的茶叶样本的空间域图像进行处理,并输出茶多酚含量的预测结果。The prediction unit uses the tea polyphenol content prediction model to process the spatial domain image of the tea sample to be predicted, and outputs the prediction result of the tea polyphenol content.

本发明所述的茶多酚含量预测装置的特点在于,所述空间域图像生成单元包括以下过程:The tea polyphenol content prediction device of the present invention is characterized in that the spatial domain image generation unit includes the following processes:

对优选后的茶叶样本电子鼻信号进行归一化处理,得到归一化后的茶叶样本优选电子鼻信号;Performing normalization processing on the optimized tea sample electronic nose signal to obtain the normalized tea sample optimal electronic nose signal;

利用反三角函数公式,将笛卡尔坐标系下归一化后的茶叶样本优选电子鼻信号转化到极坐标系下,从而得到极坐标下每个茶叶样本优选电子鼻信号对应的半径和角度;其中,半径表示时间戳,角度表示茶叶样本优选电子鼻信号的响应值;Using the inverse trigonometric function formula, the normalized tea sample optimal electronic nose signal in the Cartesian coordinate system is transformed into the polar coordinate system, so as to obtain the radius and angle corresponding to the optimal electronic nose signal for each tea sample in polar coordinates; where , the radius represents the time stamp, and the angle represents the response value of the preferred electronic nose signal of the tea sample;

将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的余弦值构成对应优选电子鼻信号的格拉姆和角场矩阵;Add the angle value of each optimal electronic nose signal of the tea sample in the polar coordinate system to the angle values of other sampling points respectively, and then take the cosine value of the addition result to form the Gram sum of the corresponding optimal electronic nose signal corner field matrix;

将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的正弦值构成对应优选电子鼻信号的格拉姆差角场矩阵;Add the angle value of each optimal electronic nose signal of tea samples in the polar coordinate system to the angle values of other sampling points respectively, and then take the sine value of the addition result to form the Gram difference of the corresponding optimal electronic nose signal corner field matrix;

将茶叶样本每个优选电子鼻信号的格拉姆和角场矩阵及其格拉姆差角场矩阵分别进行加权平均运算,得到对应茶叶样本优选电子鼻信号的加权平均融合矩阵;Carrying out the weighted average calculation of the Gram sum angle field matrix and the Gram difference angle field matrix of each preferred electronic nose signal of the tea sample respectively, to obtain the weighted average fusion matrix of the preferred electronic nose signal corresponding to the tea sample;

将茶叶样本每个优选电子鼻信号得到的加权平均融合矩阵作为图像的一个通道,从而得到空间域图像。The weighted average fusion matrix obtained from each optimal electronic nose signal of the tea sample is used as a channel of the image to obtain a spatial domain image.

与现有技术相比,本发明的有益效果在于:Compared with prior art, the beneficial effect of the present invention is:

1、本发明将电子鼻信号的一维序列编码为二维图像,构建了基于空间域特征的茶多酚含量深度学习预测模型,充分利用了深度学习在图像领域的优势,挖掘了电子鼻信号潜在的空间域特征,从而提升了茶多酚含量的预测精度;1. The present invention encodes the one-dimensional sequence of the electronic nose signal into a two-dimensional image, constructs a deep learning prediction model of tea polyphenol content based on spatial domain features, fully utilizes the advantages of deep learning in the image field, and mines the electronic nose signal Potential spatial domain features, thereby improving the prediction accuracy of tea polyphenol content;

2、本发明采用电子鼻技术采集茶叶的香味,通过构建模型直接对茶多酚含量进行预测,不会损坏茶叶样本,极大的提升了预测效率且具有实时性;2. The present invention adopts electronic nose technology to collect the aroma of tea leaves, and directly predicts the content of tea polyphenols by building a model without damaging the tea samples, which greatly improves the prediction efficiency and has real-time performance;

3、本发明对格拉姆和角场矩阵和格拉姆差角场矩阵进行加权平均运算,结合了两种矩阵的互补信息,不仅可以减少或抑制空间域特征的重复信息,也能在最大限度的利用电子鼻信号的空间域特征。3. The present invention performs a weighted average operation on the Gram sum angle field matrix and the Gram difference angle field matrix, and combines the complementary information of the two matrices, which can not only reduce or suppress the repeated information of the spatial domain features, but also maximize the Exploiting Spatial Domain Features of Electronic Nose Signals.

附图说明Description of drawings

图1为本发明一种基于电子鼻信号空间域的茶多酚含量预测方法的流程图;Fig. 1 is a flow chart of a method for predicting tea polyphenols content based on electronic nose signal space domain of the present invention;

图2为本发明的基于电子鼻信号的编码转换图像;Fig. 2 is the transcoding image based on electronic nose signal of the present invention;

图3为本发明一种基于电子鼻信号空间域的茶多酚含量预测装置的示意图。Fig. 3 is a schematic diagram of a device for predicting tea polyphenol content based on the electronic nose signal space domain of the present invention.

具体实施方式Detailed ways

本实施例中,参照图1,一种基于电子鼻信号空间域的茶多酚含量预测方法是按如下步骤进行:In the present embodiment, referring to Fig. 1, a method for predicting the content of tea polyphenols based on the signal space domain of the electronic nose is carried out as follows:

步骤1、获取茶叶样本的电子鼻信号并测量茶多酚含量,其中,电子鼻信号包括多个传感器阵列,每个传感器阵列包括多个采样点,每个采样点都有一个响应值;Step 1. Obtain the electronic nose signal of the tea sample and measure the content of tea polyphenols, wherein the electronic nose signal includes multiple sensor arrays, each sensor array includes multiple sampling points, and each sampling point has a response value;

在本实施例中,采用PEN3型便携式电子鼻,电子鼻共包括十个传感器,每种传感器对应的敏感化合物不同,获取猴魁、黄山毛峰、六安瓜片三个品种的绿茶样本,共90个绿茶样本,每个茶叶样本取5g放入100mL玻璃烧杯中进行密封放置30min,采样间隔时间1s,传感器进行清洗时间100s,传感器的返回时间10s,以及采样时间75s。In this example, the PEN3 type portable electronic nose is used, and the electronic nose includes ten sensors in total. Each sensor corresponds to a different sensitive compound. Three varieties of green tea samples, Houkui, Huangshan Maofeng, and Liuan Guapian, are obtained, totaling 90 For each green tea sample, 5g of each tea sample is put into a 100mL glass beaker and sealed for 30min, the sampling interval is 1s, the cleaning time of the sensor is 100s, the return time of the sensor is 10s, and the sampling time is 75s.

步骤2、根据茶叶样本电子鼻信号的响应趋势,提取茶叶样本电子鼻信号在平稳状态下的响应值,从而得到m个电子鼻信号特征;Step 2, according to the response trend of the electronic nose signal of the tea sample, extract the response value of the electronic nose signal of the tea sample in a steady state, thereby obtaining m electronic nose signal features;

步骤3、基于茶叶样本的茶多酚含量,利用最大信息系数对m个电子鼻信号特征进行优选,得到H个优选特征所对应的优选电子鼻信号;Step 3. Based on the tea polyphenol content of the tea samples, the m electronic nose signal features are optimized by using the maximum information coefficient, and the optimal electronic nose signals corresponding to the H optimal features are obtained;

步骤3.1、将茶叶样本每个电子鼻信号特征分别与茶叶样本的茶多酚含量构成对应的二维数据集;Step 3.1, forming a two-dimensional data set corresponding to each electronic nose signal feature of the tea sample and the tea polyphenol content of the tea sample;

步骤3.2、将二维数据集构成的散点图划分成不同行数、列数的网格,从而得到不同划分形式的网格;Step 3.2, divide the scatter diagram formed by the two-dimensional data set into grids with different numbers of rows and columns, so as to obtain grids with different division forms;

步骤3.3、分别计算每种划分形式的网格对应的互信息值,并对各个互信息值进行归一化处理;Step 3.3, respectively calculate the mutual information value corresponding to the grid of each division form, and perform normalization processing on each mutual information value;

步骤3.4、将归一化后的最大互信息值作为相应二维数据集的最大信息系数值;Step 3.4, taking the normalized maximum mutual information value as the maximum information coefficient value of the corresponding two-dimensional data set;

步骤3.5、对二维数据集的最大信息系数进行降序排序,并选择前H个最大信息系数所对应的电子鼻信号特征,从而选择前H个电子鼻信号。Step 3.5: Sort the maximum information coefficients of the two-dimensional data set in descending order, and select the electronic nose signal features corresponding to the top H largest information coefficients, thereby selecting the top H electronic nose signals.

在本实施例中,从10个电子鼻信号中优选了3个电子鼻信号。设每个电子鼻信号时域特征的所有样本点组成的向量为a,茶多酚含量所有样本点组成的向量为b,两者之间的互信息I(a,b)的计算公式如式(1)所示:In this embodiment, 3 electronic nose signals are optimized out of 10 electronic nose signals. Assuming that the vector composed of all sample points of the time domain characteristics of each electronic nose signal is a, the vector composed of all sample points of tea polyphenol content is b, and the calculation formula of the mutual information I(a,b) between the two is as follows: (1) as shown:

式(1)中,p(a)表示时域特征a的概率密度,p(b)表示茶多酚含量b的概率密度,p(a,b)表示时域特征a和茶多酚含量b联合概率密度函数,计算非常困难,因此MIC通过离散方法实现其计算。假设D(a,b)为时域特征a和茶多酚含量b构成的二维数据集,将二维空间在X,Y方向分别划分成x个区段和y个区段形成x×y的网格G,设基于不同划分形式的网格G的集合为Ω,则定义:In formula (1), p(a) represents the probability density of time domain feature a, p(b) represents the probability density of tea polyphenol content b, and p(a,b) represents time domain feature a and tea polyphenol content b The joint probability density function is very difficult to calculate, so MIC realizes its calculation through discrete methods. Assuming that D(a,b) is a two-dimensional data set composed of time-domain feature a and tea polyphenol content b, the two-dimensional space is divided into x segments and y segments in the X and Y directions respectively to form x×y The grid G of , let the set of grid G based on different division forms be Ω, then define:

式(2)中,D|G表示数据集D在划分网格G上的分布。I*(D,x,y)表示x行y列划分网格的互信息。In formula (2), D|G represents the distribution of data set D on grid G. I * (D,x,y) represents the mutual information of the grid divided by x rows and y columns.

将不同划分方式下数据集D的最大规范化组成特征矩阵M(D),如式(3)所示:The feature matrix M(D) is composed of the maximum normalization of the data set D under different division methods, as shown in formula (3):

式(3)中,min{x,y}表示最小的x行y列划分网格,M(D)x,y表示x行y列划分网格的归一化互信息值。In formula (3), min{x,y} represents the smallest x-row-y-column grid, and M(D) x,y denotes the normalized mutual information value of the x-row-y-column grid.

在网格划分数上限值内求解特征矩阵的最大值,得到最大信息系数,如式(4)所示:Solve the maximum value of the characteristic matrix within the upper limit of the number of grid divisions to obtain the maximum information coefficient, as shown in formula (4):

式(4)和式(5)中,B(n)为网格划分数上限值,MIC(D)表示不行划分形式网格的最大归一化互信息值。In formulas (4) and (5), B(n) is the upper limit of the grid division number, and MIC(D) represents the maximum normalized mutual information value of the form grid that cannot be divided.

步骤4、通过编码转换方法将茶叶样本优选电子鼻信号转化为空间域图像;Step 4, converting the preferred electronic nose signal of the tea sample into a spatial domain image by a code conversion method;

步骤4.1、对优选后的茶叶样本电子鼻信号进行归一化处理,得到归一化后的茶叶样本优选电子鼻信号;Step 4.1, performing normalization processing on the optimized tea sample electronic nose signal to obtain the normalized tea sample optimal electronic nose signal;

步骤4.2、利用反三角函数公式,将笛卡尔坐标系下归一化后的茶叶样本优选电子鼻信号转化到极坐标系下,从而得到极坐标下每个茶叶样本优选电子鼻信号对应的半径和角度;其中,半径表示时间戳,角度表示茶叶样本优选电子鼻信号的响应值;Step 4.2, using the inverse trigonometric function formula to convert the normalized optimal electronic nose signal of the tea sample in the Cartesian coordinate system to the polar coordinate system, so as to obtain the radius sum corresponding to the optimal electronic nose signal of each tea sample in polar coordinates Angle; wherein, the radius represents the timestamp, and the angle represents the response value of the tea sample preferred electronic nose signal;

步骤4.3、将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的余弦值构成对应优选电子鼻信号的格拉姆和角场矩阵;Step 4.3: Add the angle value of each optimal electronic nose signal of the tea sample in the polar coordinate system to the angle values of other sampling points respectively, and then take the cosine value of the addition result to form the corresponding optimal electronic nose signal Gram and corner field matrices;

步骤4.4、将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的正弦值构成对应优选电子鼻信号的格拉姆差角场矩阵;Step 4.4: Add the angle value of each optimal electronic nose signal of the tea sample in the polar coordinate system to the angle values of other sampling points respectively, and then take the sine value of the addition result to form the corresponding optimal electronic nose signal Gram difference angle field matrix;

步骤4.5、将茶叶样本每个优选电子鼻信号的格拉姆和角场矩阵及其格拉姆差角场矩阵分别进行加权平均运算,得到对应茶叶样本优选电子鼻信号的加权平均融合矩阵;Step 4.5, performing a weighted average operation on the Gram sum angle field matrix and the Gram difference angle field matrix of each preferred electronic nose signal of the tea sample, respectively, to obtain the weighted average fusion matrix of the preferred electronic nose signal corresponding to the tea sample;

步骤4.6、将茶叶样本每个优选电子鼻信号得到的加权平均融合矩阵作为图像的一个通道,从而得到空间域图像。In step 4.6, the weighted average fusion matrix obtained from each optimal electronic nose signal of the tea sample is used as a channel of the image to obtain a spatial domain image.

在本发明实例中,对于电子鼻信号的一维时间序列X={x1,x2,···,xi,···,xn},使电子鼻信号的每个采样点信号等比例映射到[-1,1]区间,如式(5)和式(6)所示:In the example of the present invention, for the one-dimensional time series X={x 1 ,x 2 ,···, xi ,···,x n } of the electronic nose signal, each sampling point signal of the electronic nose signal is equal to The ratio is mapped to the [-1,1] interval, as shown in equations (5) and (6):

X′=[x′1,x′2,···,x′i,···,x′n],-1≤xi′≤1 (6)X′=[x′ 1 ,x′ 2 ,···,x′ i ,···,x′ n ],-1≤xi ≤1 (6)

式(5)和式(6)中,xi为第i个采样点的响应值,xi′为归一化后第i个的响应值,n为总共的采样点个数,X′为归一化后的时间序列。In formulas (5) and (6), x i is the response value of the i-th sampling point, x i ' is the response value of the i-th sampling point after normalization, n is the total number of sampling points, and X' is Normalized time series.

将得到的新的电子鼻信号时间序列映射到极坐标系下,利用反三角函数获得每个序列点对应的角度,此时极坐标下的序列值范围为[0,π],如式(7)、式(8)所示:Map the obtained new electronic nose signal time series to the polar coordinate system, and use the inverse trigonometric function to obtain the angle corresponding to each sequence point. At this time, the sequence value range under the polar coordinates is [0, π], as shown in formula (7 ), Formula (8) shows:

x″i=arccos(x′i),-1≤x′i≤1 (7)x″ i = arccos(x′ i ),-1≤x′ i ≤1 (7)

X″=[x″1,x″2,···,x″n],0≤x″1≤π (8)X″=[x″ 1 ,x″ 2 ,...,x″ n ], 0≤x″ 1 ≤π (8)

式(7)、式(8)中,x″i为电子鼻信号第i个的响应值转化到极坐标下的角度值,X″为电子鼻时间序列转化到极坐标下的新序列。In formula (7) and formula (8), x″ i is the angle value of the i-th response value of the electronic nose signal converted to polar coordinates, and X″ is the new sequence of electronic nose time series converted to polar coordinates.

将极坐标系下的时间序列进行相加后取余弦值进行汇总,得到格拉姆和角场矩阵GASF,如式(9)所示:Add the time series in the polar coordinate system and then take the cosine value and summarize them to obtain the Gram sum angle field matrix GASF, as shown in formula (9):

将极坐标系下的时间序列进行相加后取正弦值进行汇总,得到格拉姆差角场矩阵GADF,如式(10)所示;Add the time series in the polar coordinate system and then take the sine value for summary to obtain the Gram difference angle field matrix GADF, as shown in formula (10);

对两种矩阵进行加权平均求和,得到目标矩阵Fusion,如式(11)所示;Perform weighted average summation on the two matrices to obtain the target matrix Fusion, as shown in formula (11);

将茶叶样本每个电子鼻信号的时间序列得到的加权平均融合矩阵作为图像通道,得到空间域图像。将茶叶样本电子鼻信号编码为二维图像,这种变换能够保持电子鼻信号的时间依赖性,二维图像的纹理信息与颜色分布信息可以反映一维信号潜在的空间域信息,同时,利用CNN模型,实现了提高茶多酚预测含量的准确度和效率的技术效果,图2为电子鼻信号的编码图像。The weighted average fusion matrix obtained from the time series of each electronic nose signal of the tea sample is used as the image channel to obtain the spatial domain image. The electronic nose signal of the tea sample is encoded into a two-dimensional image. This transformation can maintain the time dependence of the electronic nose signal. The texture information and color distribution information of the two-dimensional image can reflect the potential spatial domain information of the one-dimensional signal. At the same time, using CNN The model achieves the technical effect of improving the accuracy and efficiency of tea polyphenols prediction content. Figure 2 is the encoded image of the electronic nose signal.

步骤5、将电子鼻信号编码后构建的茶叶样本电子鼻信号空间域图像划分为训练集空间域图像和测试集空间域图像;Step 5, dividing the tea sample electronic nose signal space domain image constructed after electronic nose signal encoding into a training set space domain image and a test set space domain image;

步骤6、基于CNN模型对茶叶样本电子鼻信号训练集空间域图像进行训练,得到训练后的茶多酚含量预测模型;Step 6. Based on the CNN model, the spatial domain images of the tea sample electronic nose signal training set are trained to obtain a trained tea polyphenol content prediction model;

步骤6.1、利用卷积核对训练集空间域图像进行卷积运算,得到训练集空间域图像的训练集特征图;Step 6.1, using the convolution kernel to perform convolution operation on the training set spatial domain image to obtain the training set feature map of the training set spatial domain image;

步骤6.2、利用池化层对训练集特征图进行下采样操作,得到降维后的茶叶样本电子鼻信号训练集空间域特征;Step 6.2, using the pooling layer to perform down-sampling operation on the feature map of the training set to obtain the spatial domain features of the tea sample electronic nose signal training set after dimensionality reduction;

步骤6.3、利用全连接层将降维后的茶叶样本电子鼻信号训练集空间域特征进行整合,得到茶叶样本的茶多酚含量的预测值;Step 6.3, using the fully connected layer to integrate the spatial domain features of the tea sample electronic nose signal training set after dimensionality reduction, to obtain the predicted value of the tea polyphenol content of the tea sample;

步骤6.4、利用梯度下降法对CNN模型进行训练,并计算均方误差MSE损失函数,用于更新模型参数,当损失函数收敛时停止训练,从而得到训练后的茶多酚含量预测模型;Step 6.4, use the gradient descent method to train the CNN model, and calculate the mean square error MSE loss function, which is used to update the model parameters, and stop the training when the loss function converges, so as to obtain the tea polyphenol content prediction model after training;

在本发明实例中,所采用的CNN网络,第一个卷积层有128个过滤器,大小为3×3,stride为1,然后是3×3的平均池化层,第二个卷积层有64个过滤器,大小为3×3,stride为1,然后是3×3的平均池化层,第二个卷积层有32个过滤器,大小为3×3,stride为1,然后是3×3的平均池化层,每个卷积层使用的激活函数为relu,每个池化层后采用dropout防止过拟合,最后通过全连接层输出茶多酚含量的预测值。模型所设置的批尺寸(Batch_size)为24,训练次数(epochs)为200,所采用的优化器为Adam,使用的损失函数为mse。In the example of the present invention, the CNN network used has 128 filters in the first convolutional layer with a size of 3×3 and a stride of 1, followed by a 3×3 average pooling layer, and the second convolutional layer layer with 64 filters of size 3×3 and stride of 1, followed by a 3×3 average pooling layer, the second convolutional layer has 32 filters of size 3×3 and stride of 1, Then there is a 3×3 average pooling layer. The activation function used in each convolutional layer is relu. After each pooling layer, dropout is used to prevent overfitting. Finally, the predicted value of tea polyphenols content is output through the fully connected layer. The batch size (Batch_size) set by the model is 24, the number of training (epochs) is 200, the optimizer used is Adam, and the loss function used is mse.

步骤7、利用训练后的茶多酚含量预测模型,对待预测的茶叶样本的测试集空间域图像进行处理,并输出茶多酚含量的预测结果。Step 7: Using the trained tea polyphenol content prediction model, process the test set spatial domain images of tea samples to be predicted, and output the prediction result of tea polyphenol content.

参照图3,本实施例中,一种基于电子鼻信号空间域的茶多酚含量预测装置,包括:获取单元、特征提取单元、优选单元、空间域图像生成单元、训练单元、预测单元,其中,With reference to Fig. 3, in the present embodiment, a kind of tea polyphenols content prediction device based on electronic nose signal space domain, comprises: acquisition unit, feature extraction unit, optimization unit, space domain image generation unit, training unit, prediction unit, wherein ,

获取单元,用于获取茶叶样本的电子鼻信号并测量茶多酚含量,其中,电子鼻信号包括多个传感器阵列,每个传感器阵列包括多个采样点,每个采样点都有一个响应值;The acquisition unit is used to acquire the electronic nose signal of the tea sample and measure the content of tea polyphenols, wherein the electronic nose signal includes a plurality of sensor arrays, each sensor array includes a plurality of sampling points, and each sampling point has a response value;

特征提取单元,用于根据茶叶样本电子鼻信号的响应趋势,提取茶叶样本每个电子鼻信号平稳状态时的响应值并作为茶叶样本电子鼻信号特征;The feature extraction unit is used to extract the response value of each electronic nose signal of the tea sample in a steady state according to the response trend of the tea sample electronic nose signal and use it as the tea sample electronic nose signal feature;

优选单元,用于基于茶叶样本的茶多酚含量,利用最大信息系数对茶叶样本电子鼻信号特征进行优选,得到优选特征所对应的茶叶样本优选电子鼻信号;The optimization unit is used to optimize the characteristics of the electronic nose signal of the tea sample by using the maximum information coefficient based on the tea polyphenol content of the tea sample, and obtain the optimal electronic nose signal of the tea sample corresponding to the optimal feature;

空间域图像生成单元,是通过编码转换方法将茶叶样本优选电子鼻信号编码为空间域图像;具体的说,空间域图像生成单元是先对优选后的茶叶样本电子鼻信号进行归一化处理,得到归一化后的茶叶样本优选电子鼻信号;其次,利用反三角函数公式,将笛卡尔坐标系下归一化后的茶叶样本优选电子鼻信号转化到极坐标系下,从而得到极坐标下每个茶叶样本优选电子鼻信号对应的半径和角度;其中,半径表示时间戳,角度表示茶叶样本优选电子鼻信号的响应值;接着,将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的余弦值构成对应优选电子鼻信号的格拉姆和角场矩阵;然后将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的正弦值构成对应优选电子鼻信号的格拉姆差角场矩阵;再将茶叶样本每个优选电子鼻信号的格拉姆和角场矩阵及其格拉姆差角场矩阵分别进行加权平均运算,得到对应茶叶样本优选电子鼻信号的加权平均融合矩阵;最终将茶叶样本每个优选电子鼻信号得到的加权平均融合矩阵作为图像的一个通道,从而得到空间域图像。The spatial domain image generation unit is to encode the preferred electronic nose signal of the tea sample into a spatial domain image through a code conversion method; specifically, the spatial domain image generation unit first performs normalization processing on the optimized tea sample electronic nose signal, The optimal electronic nose signal of the normalized tea sample is obtained; secondly, using the inverse trigonometric function formula, the normalized optimal electronic nose signal of the tea sample in the Cartesian coordinate system is transformed into the polar coordinate system, thereby obtaining the polar coordinate The radius and angle corresponding to the preferred electronic nose signal of each tea sample; wherein, the radius represents the time stamp, and the angle represents the response value of the preferred electronic nose signal of the tea sample; then, each preferred electronic nose signal of the tea sample in the polar coordinate system is After the angle values of each sampling point are added to the angle values of other sampling points, the cosine value of the addition result is taken to form the Gram and angle field matrix corresponding to the optimal electronic nose signal; After the angle value of the electronic nose signal at each sampling point is added to the angle value of other sampling points, the sine value of the addition result is taken to form the Gram difference angle field matrix corresponding to the optimal electronic nose signal; The Gram sum angle field matrix and the Gram difference angle field matrix of the optimal electronic nose signal are respectively weighted and averaged to obtain the weighted average fusion matrix of the optimal electronic nose signal corresponding to the tea sample; finally, each optimal electronic nose signal of the tea sample is obtained The weighted average fusion matrix of is used as a channel of the image to obtain a spatial domain image.

训练单元,是基于空间域图像对CNN模型进行训练,得到训练后的茶多酚含量预测模型;The training unit is to train the CNN model based on the spatial domain image, and obtain the tea polyphenol content prediction model after training;

预测单元,是利用茶多酚含量预测模型对待预测的茶叶样本的空间域图像进行处理,并输出茶多酚含量的预测结果。The prediction unit processes the spatial domain image of the tea sample to be predicted by using the tea polyphenol content prediction model, and outputs the prediction result of the tea polyphenol content.

该系统充分利用了深度学习在图像领域的优势,不仅保持电子鼻信号的时间依赖性,还挖掘了电子鼻信号潜在的空间域特征,从而提升了茶多酚含量的预测精度。The system makes full use of the advantages of deep learning in the image field. It not only maintains the time dependence of the electronic nose signal, but also mines the potential spatial domain characteristics of the electronic nose signal, thereby improving the prediction accuracy of tea polyphenols content.

Claims (4)

1.一种基于电子鼻信号空间域的茶多酚含量预测方法,其特征包括:1. A method for predicting tea polyphenols content based on electronic nose signal space domain, its characteristics include: 步骤1、获取茶叶样本的电子鼻信号并测量茶多酚含量,其中,所述电子鼻信号包括m个传感器阵列,每个传感器阵列包括多个采样点,每个采样点对应电子鼻信号的一个响应值;Step 1. Obtain the electronic nose signal of the tea sample and measure the content of tea polyphenols, wherein the electronic nose signal includes m sensor arrays, each sensor array includes a plurality of sampling points, and each sampling point corresponds to one of the electronic nose signals Response; 步骤2、根据茶叶样本电子鼻信号的响应趋势,提取所述茶叶样本电子鼻信号在平稳状态下的响应值,从而得到m个电子鼻信号特征;Step 2, according to the response trend of the tea sample electronic nose signal, extract the response value of the tea sample electronic nose signal in a steady state, thereby obtaining m electronic nose signal features; 步骤3、基于茶叶样本的茶多酚含量,利用最大信息系数对m个电子鼻信号特征进行优选,得到H个优选特征所对应的优选电子鼻信号;Step 3. Based on the tea polyphenol content of the tea samples, the m electronic nose signal features are optimized by using the maximum information coefficient, and the optimal electronic nose signals corresponding to the H optimal features are obtained; 步骤4、通过编码转换方法将所述茶叶样本优选电子鼻信号转化为空间域图像;Step 4, converting the preferred electronic nose signal of the tea sample into a spatial domain image by a code conversion method; 步骤4.1、对优选后的茶叶样本电子鼻信号进行归一化处理,得到归一化后的茶叶样本优选电子鼻信号;Step 4.1, performing normalization processing on the optimized tea sample electronic nose signal to obtain the normalized tea sample optimal electronic nose signal; 步骤4.2、利用反三角函数公式,将笛卡尔坐标系下归一化后的茶叶样本优选电子鼻信号转化到极坐标系下,从而得到极坐标下每个茶叶样本优选电子鼻信号对应的半径和角度;其中,半径表示时间戳,角度表示茶叶样本优选电子鼻信号的响应值;Step 4.2, using the inverse trigonometric function formula to convert the normalized optimal electronic nose signal of the tea sample in the Cartesian coordinate system to the polar coordinate system, so as to obtain the radius sum corresponding to the optimal electronic nose signal of each tea sample in polar coordinates Angle; wherein, the radius represents the timestamp, and the angle represents the response value of the tea sample preferred electronic nose signal; 步骤4.3、将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的余弦值构成对应优选电子鼻信号的格拉姆和角场矩阵;Step 4.3: Add the angle value of each optimal electronic nose signal of the tea sample in the polar coordinate system to the angle values of other sampling points respectively, and then take the cosine value of the addition result to form the corresponding optimal electronic nose signal Gram and corner field matrices; 步骤4.4、将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的正弦值构成对应优选电子鼻信号的格拉姆差角场矩阵;Step 4.4: Add the angle value of each optimal electronic nose signal of the tea sample in the polar coordinate system to the angle values of other sampling points respectively, and then take the sine value of the addition result to form the corresponding optimal electronic nose signal Gram difference angle field matrix; 步骤4.5、将茶叶样本每个优选电子鼻信号的格拉姆和角场矩阵及其格拉姆差角场矩阵分别进行加权平均运算,得到对应茶叶样本优选电子鼻信号的加权平均融合矩阵;Step 4.5, performing a weighted average operation on the Gram sum angle field matrix and the Gram difference angle field matrix of each preferred electronic nose signal of the tea sample, respectively, to obtain the weighted average fusion matrix of the preferred electronic nose signal corresponding to the tea sample; 步骤4.6、将茶叶样本每个优选电子鼻信号得到的加权平均融合矩阵作为图像的一个通道,从而得到空间域图像;Step 4.6, using the weighted average fusion matrix obtained from each optimal electronic nose signal of the tea sample as a channel of the image, thereby obtaining a spatial domain image; 步骤5、将电子鼻信号编码后构建的茶叶样本电子鼻信号的空间域图像划分为训练集空间域图像和测试集空间域图像;Step 5, dividing the space domain image of the tea sample electronic nose signal constructed after the electronic nose signal encoding into a training set space domain image and a test set space domain image; 步骤6、基于CNN模型对所述茶叶样本电子鼻信号的训练集空间域图像进行训练,得到训练后的茶多酚含量预测模型;Step 6, training the spatial domain images of the training set of the electronic nose signal of the tea samples based on the CNN model to obtain a trained tea polyphenol content prediction model; 步骤7、利用所述训练后的茶多酚含量预测模型,对待预测茶叶样本的测试集空间域图像进行处理,并输出茶多酚含量的预测结果。Step 7: Using the trained tea polyphenol content prediction model, process the test set spatial domain image of the tea samples to be predicted, and output the prediction result of tea polyphenol content. 2.根据权利要求1所述的一种基于电子鼻信号空间域的茶多酚含量预测方法,其特征在于,所述步骤3包括:2. a kind of tea polyphenols content prediction method based on electronic nose signal space domain according to claim 1, is characterized in that, described step 3 comprises: 步骤3.1、将茶叶样本每个电子鼻信号特征分别与所述茶叶样本的茶多酚含量构成对应的二维数据集;Step 3.1, forming a two-dimensional data set corresponding to each electronic nose signal feature of the tea sample and the tea polyphenol content of the tea sample; 步骤3.2、将任意一个二维数据集构成的散点图划分成不同行数、列数的网格,从而得到不同划分形式的网格;Step 3.2, divide the scatter diagram formed by any two-dimensional data set into grids with different numbers of rows and columns, so as to obtain grids with different division forms; 步骤3.3、分别计算每种划分形式的网格对应的互信息值,并对各个互信息值进行归一化处理;Step 3.3, respectively calculate the mutual information value corresponding to the grid of each division form, and perform normalization processing on each mutual information value; 步骤3.4、将归一化后的最大互信息值作为相应二维数据集的最大信息系数值;Step 3.4, taking the normalized maximum mutual information value as the maximum information coefficient value of the corresponding two-dimensional data set; 步骤3.5、对m个二维数据集的最大信息系数进行降序排序,并选择前H个最大信息系数所对应的电子鼻信号特征作为H个优选特征。Step 3.5: Sort the largest information coefficients of the m two-dimensional data sets in descending order, and select the electronic nose signal features corresponding to the first H largest information coefficients as H preferred features. 3.根据权利要求1所述的一种基于电子鼻信号空间域的茶多酚含量预测方法,其特征在于,所述步骤6包括:3. a kind of tea polyphenols content prediction method based on electronic nose signal space domain according to claim 1, is characterized in that, described step 6 comprises: 步骤6.1、利用卷积核对所述训练集空间域图像进行卷积运算,得到训练集空间域图像的训练集特征图;Step 6.1, using a convolution kernel to perform a convolution operation on the training set spatial domain image to obtain a training set feature map of the training set spatial domain image; 步骤6.2、利用池化层对所述训练集特征图进行下采样操作,得到降维后的茶叶样本电子鼻信号的训练集空间域特征;Step 6.2, using the pooling layer to perform a down-sampling operation on the feature map of the training set to obtain the spatial domain features of the training set of the electronic nose signal of the tea sample after dimensionality reduction; 步骤6.3、利用全连接层将所述降维后的茶叶样本电子鼻信号的训练集空间域特征进行整合,得到茶叶样本的茶多酚含量的预测值;Step 6.3, using the fully connected layer to integrate the spatial domain features of the training set of the electronic nose signal of the tea sample after the dimensionality reduction, to obtain the predicted value of the tea polyphenol content of the tea sample; 步骤6.4、利用梯度下降法对所述CNN模型进行训练,并计算均方误差MSE损失函数,用于更新模型参数,当损失函数收敛时停止训练,从而得到训练后的茶多酚含量预测模型。Step 6.4: Use the gradient descent method to train the CNN model, and calculate the mean square error (MSE) loss function for updating model parameters, and stop training when the loss function converges, thereby obtaining a trained tea polyphenol content prediction model. 4.一种基于电子鼻信号空间域的茶多酚含量预测装置,其特征在于,包括:获取单元、特征提取单元、优选单元、空间域图像生成单元、训练单元、预测单元,其中,4. A tea polyphenol content prediction device based on electronic nose signal space domain, it is characterized in that, comprising: acquisition unit, feature extraction unit, optimization unit, space domain image generation unit, training unit, prediction unit, wherein, 所述获取单元,用于获取茶叶样本的电子鼻信号并测量茶多酚含量,其中,所述电子鼻信号包括多个传感器阵列,每个传感器阵列包括多个采样点,每个采样点都有一个响应值;The acquisition unit is used to acquire the electronic nose signal of the tea sample and measure the content of tea polyphenols, wherein the electronic nose signal includes a plurality of sensor arrays, each sensor array includes a plurality of sampling points, and each sampling point has a response value; 所述特征提取单元,用于根据茶叶样本电子鼻信号的响应趋势,提取茶叶样本每个电子鼻信号平稳状态时的响应值并作为茶叶样本电子鼻信号特征;The feature extraction unit is used to extract the response value of each electronic nose signal of the tea sample in a steady state according to the response trend of the tea sample electronic nose signal and use it as the tea sample electronic nose signal feature; 所述优选单元,用于基于茶叶样本的茶多酚含量,利用最大信息系数对茶叶样本电子鼻信号特征进行优选,得到优选特征所对应的茶叶样本优选电子鼻信号;The optimization unit is used to optimize the characteristics of the electronic nose signal of the tea sample by using the maximum information coefficient based on the tea polyphenol content of the tea sample, and obtain the optimal electronic nose signal of the tea sample corresponding to the optimal feature; 所述空间域图像生成单元,用于将茶叶样本优选电子鼻信号编码为空间域图像;The spatial domain image generation unit is used to encode tea samples, preferably electronic nose signals, into spatial domain images; 所述空间域图像生成单元包括以下过程:The spatial domain image generation unit includes the following processes: 对优选后的茶叶样本电子鼻信号进行归一化处理,得到归一化后的茶叶样本优选电子鼻信号;Performing normalization processing on the optimized tea sample electronic nose signal to obtain the normalized tea sample optimal electronic nose signal; 利用反三角函数公式,将笛卡尔坐标系下归一化后的茶叶样本优选电子鼻信号转化到极坐标系下,从而得到极坐标下每个茶叶样本优选电子鼻信号对应的半径和角度;其中,半径表示时间戳,角度表示茶叶样本优选电子鼻信号的响应值;Using the inverse trigonometric function formula, the normalized tea sample optimal electronic nose signal in the Cartesian coordinate system is transformed into the polar coordinate system, so as to obtain the radius and angle corresponding to the optimal electronic nose signal for each tea sample in polar coordinates; where , the radius represents the time stamp, and the angle represents the response value of the preferred electronic nose signal of the tea sample; 将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的余弦值构成对应优选电子鼻信号的格拉姆和角场矩阵;Add the angle value of each optimal electronic nose signal of the tea sample in the polar coordinate system to the angle values of other sampling points respectively, and then take the cosine value of the addition result to form the Gram sum of the corresponding optimal electronic nose signal corner field matrix; 将极坐标系下茶叶样本每个优选电子鼻信号在每个采样点的角度值分别与其他采样点的角度值相加后,再取加法结果的正弦值构成对应优选电子鼻信号的格拉姆差角场矩阵;Add the angle value of each optimal electronic nose signal of tea samples in the polar coordinate system to the angle values of other sampling points respectively, and then take the sine value of the addition result to form the Gram difference of the corresponding optimal electronic nose signal corner field matrix; 将茶叶样本每个优选电子鼻信号的格拉姆和角场矩阵及其格拉姆差角场矩阵分别进行加权平均运算,得到对应茶叶样本优选电子鼻信号的加权平均融合矩阵;Carrying out the weighted average calculation of the Gram sum angle field matrix and the Gram difference angle field matrix of each preferred electronic nose signal of the tea sample respectively, to obtain the weighted average fusion matrix of the preferred electronic nose signal corresponding to the tea sample; 将茶叶样本每个优选电子鼻信号得到的加权平均融合矩阵作为图像的一个通道,从而得到空间域图像;The weighted average fusion matrix obtained by each optimal electronic nose signal of the tea sample is used as a channel of the image to obtain a spatial domain image; 所述训练单元,基于CNN模型对所述茶叶样本电子鼻信号的空间域图像进行训练,得到训练后的茶多酚含量预测模型;The training unit trains the spatial domain image of the electronic nose signal of the tea sample based on the CNN model to obtain a trained tea polyphenol content prediction model; 所述预测单元,是利用所述茶多酚含量预测模型对待预测的茶叶样本的空间域图像进行处理,并输出茶多酚含量的预测结果。The prediction unit uses the tea polyphenol content prediction model to process the spatial domain image of the tea sample to be predicted, and outputs the prediction result of the tea polyphenol content.
CN202210658122.4A 2022-06-10 2022-06-10 Tea polyphenol content prediction method and device based on electronic nose signal space domain Active CN115062656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210658122.4A CN115062656B (en) 2022-06-10 2022-06-10 Tea polyphenol content prediction method and device based on electronic nose signal space domain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210658122.4A CN115062656B (en) 2022-06-10 2022-06-10 Tea polyphenol content prediction method and device based on electronic nose signal space domain

Publications (2)

Publication Number Publication Date
CN115062656A CN115062656A (en) 2022-09-16
CN115062656B true CN115062656B (en) 2023-08-11

Family

ID=83199596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210658122.4A Active CN115062656B (en) 2022-06-10 2022-06-10 Tea polyphenol content prediction method and device based on electronic nose signal space domain

Country Status (1)

Country Link
CN (1) CN115062656B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694375A (en) * 2018-03-30 2018-10-23 天津大学 A kind of image conversion white wine recognition methods can be used for polyelectron nose platform
CN110133049A (en) * 2019-04-10 2019-08-16 浙江大学 Fast non-destructive detection method of tea grade based on electronic nose and machine vision
CN110378229A (en) * 2019-06-19 2019-10-25 浙江大学 A kind of electronic nose data characteristics selection method based on filter-wrapper frame
CN112370015A (en) * 2020-10-30 2021-02-19 复旦大学 Physiological signal quality evaluation method based on gram angular field
CN113158980A (en) * 2021-05-17 2021-07-23 四川农业大学 Tea leaf classification method based on hyperspectral image and deep learning
CN114048769A (en) * 2021-11-08 2022-02-15 太原科技大学 Multi-source and multi-domain information entropy fusion and model self-optimization method for bearing fault diagnosis
EP3997457A1 (en) * 2019-07-12 2022-05-18 Commissariat à l'énergie atomique et aux énergies alternatives Detection system for an electronic nose allowing a physicochemical classification of odors and electronic nose comprising such a system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8767117B2 (en) * 2010-06-09 2014-07-01 Fujifilm Corporation Imaging device and method to correct the focus detection pixels using peripheral standard pixels and correcting defective peripheral standard pixels as well if found

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694375A (en) * 2018-03-30 2018-10-23 天津大学 A kind of image conversion white wine recognition methods can be used for polyelectron nose platform
CN110133049A (en) * 2019-04-10 2019-08-16 浙江大学 Fast non-destructive detection method of tea grade based on electronic nose and machine vision
CN110378229A (en) * 2019-06-19 2019-10-25 浙江大学 A kind of electronic nose data characteristics selection method based on filter-wrapper frame
EP3997457A1 (en) * 2019-07-12 2022-05-18 Commissariat à l'énergie atomique et aux énergies alternatives Detection system for an electronic nose allowing a physicochemical classification of odors and electronic nose comprising such a system
CN112370015A (en) * 2020-10-30 2021-02-19 复旦大学 Physiological signal quality evaluation method based on gram angular field
CN113158980A (en) * 2021-05-17 2021-07-23 四川农业大学 Tea leaf classification method based on hyperspectral image and deep learning
CN114048769A (en) * 2021-11-08 2022-02-15 太原科技大学 Multi-source and multi-domain information entropy fusion and model self-optimization method for bearing fault diagnosis

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于光谱-空间特征的黄茶多酚含量估算模型;杨宝华等;《光谱学与光谱分析》;第41卷(第3期);第936-942页 *

Also Published As

Publication number Publication date
CN115062656A (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN109523013B (en) Estimation method of air particulate pollution degree based on shallow convolutional neural network
CN109165660A (en) A kind of obvious object detection method based on convolutional neural networks
CN105243154B (en) Remote sensing image retrieval method based on notable point feature and sparse own coding and system
CN114092832A (en) High-resolution remote sensing image classification method based on parallel hybrid convolutional network
CN112946784B (en) A Deep Learning-Based Short-Term Forecast Method for SuperDARN Radar Convective Maps
CN103268607B (en) A kind of common object detection method under weak supervision condition
CN113536925B (en) Crowd counting method based on attention guiding mechanism
CN109635726B (en) Landslide identification method based on combination of symmetric deep network and multi-scale pooling
CN110287455A (en) A Deep Learning Inversion Method for PM2.5 Combining Remote Sensing Data and Social Perception Data
CN114898212B (en) Method for extracting multi-feature change information of high-resolution remote sensing image
CN115205647A (en) A plant image segmentation method based on attention mechanism and multi-scale feature fusion
CN107169090A (en) A kind of special object search method of utilization content rings around information extraction characterization image
CN115311502A (en) A small sample scene classification method for remote sensing images based on multi-scale dual-stream architecture
CN112001293A (en) Remote sensing image ground object classification method combining multi-scale information and coding and decoding network
CN118090211A (en) A fault diagnosis method for elevator traction machine bearing based on time-frequency feature fusion
CN102567715A (en) Human body action hierarchical identification method based on pyroelectric infrared detection
CN116504253A (en) Bird voice recognition method and system based on frequency dynamic convolution model
CN112990336B (en) Deep three-dimensional point cloud classification network construction method based on competitive attention fusion
CN115062656B (en) Tea polyphenol content prediction method and device based on electronic nose signal space domain
CN116312860B (en) Agricultural product soluble solid matter prediction method based on supervised transfer learning
CN108038440A (en) A kind of Hyperspectral Remote Sensing Imagery Classification method based on overlapping pool
CN117351212A (en) A point cloud segmentation method in water conservancy environment based on bidirectional multi-scale attention
CN116543298A (en) Building Extraction Method of Remote Sensing Image Based on Fractal Geometric Features and Edge Supervision
CN115375668A (en) Infrared Single Frame Small Target Detection Method Based on Attention Mechanism
CN114972552A (en) A Graph Data Compression Method Based on Two-dimensional Graph Fractional Fourier Transform

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