[go: up one dir, main page]

CN102507677B - Drift rejection method of electronic nose based on multiple self-organizing neural networks - Google Patents

Drift rejection method of electronic nose based on multiple self-organizing neural networks Download PDF

Info

Publication number
CN102507677B
CN102507677B CN2011103405966A CN201110340596A CN102507677B CN 102507677 B CN102507677 B CN 102507677B CN 2011103405966 A CN2011103405966 A CN 2011103405966A CN 201110340596 A CN201110340596 A CN 201110340596A CN 102507677 B CN102507677 B CN 102507677B
Authority
CN
China
Prior art keywords
drift
electronic nose
self
compensation
array
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.)
Expired - Fee Related
Application number
CN2011103405966A
Other languages
Chinese (zh)
Other versions
CN102507677A (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.)
Chongqing University
Original Assignee
Chongqing University
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 Chongqing University filed Critical Chongqing University
Priority to CN2011103405966A priority Critical patent/CN102507677B/en
Publication of CN102507677A publication Critical patent/CN102507677A/en
Application granted granted Critical
Publication of CN102507677B publication Critical patent/CN102507677B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)
  • Investigating Or Analyzing Materials By The Use Of Fluid Adsorption Or Reactions (AREA)

Abstract

本发明提供了一种基于多重自组织神经网络的电子鼻漂移抑制方法,其通过样本缓存矩阵对各个自组织神经网络的神经元均值中心加以缓存并循环迭代更新,用以求取每次循环漂移抑制补偿的补偿增量阵列,在对漂移补偿训练所采用气体匹配的自组织神经网络中各神经元进行漂移补偿的同时,还利用补偿增量阵列对其它各个自组织神经网络的神经元中对于漂移补偿训练所采用气体敏感的特征电信号值都进行漂移抑制补偿,使得各自组织神经网络的神经元经过漂移补偿后都趋于接近气体传感器阵列检测其匹配气体的实际电信号输出阵列值,从而达到抑制漂移的目的,提高了电子鼻的漂移补偿执行效率,保证了电子鼻经漂移抑制补偿后依然保持良好的识别性能。

Figure 201110340596

The invention provides an electronic nose drift suppression method based on multiple self-organizing neural networks, which uses a sample cache matrix to cache the neuron mean center of each self-organizing neural network and update iteratively in order to obtain the drift of each cycle The compensation incremental array for suppression compensation, while performing drift compensation for each neuron in the self-organizing neural network with gas matching used in drift compensation training, also uses the compensation incremental array to compensate for the neurons in other self-organizing neural networks. The gas-sensitive characteristic electrical signal values used in drift compensation training are all subjected to drift suppression compensation, so that the neurons of the neural network of each organization tend to approach the actual electrical signal output array value of the gas sensor array to detect its matching gas after drift compensation, so that The purpose of suppressing drift is achieved, the execution efficiency of drift compensation of the electronic nose is improved, and the electronic nose is guaranteed to maintain good recognition performance after drift suppression compensation.

Figure 201110340596

Description

一种基于多重自组织神经网络的电子鼻漂移抑制方法A drift suppression method for electronic nose based on multiple self-organizing neural networks

技术领域 technical field

本发明属于电子鼻检测、训练技术领域,尤其涉及一种基于多重自组织神经网络的电子鼻漂移抑制方法。The invention belongs to the technical field of electronic nose detection and training, in particular to an electronic nose drift suppression method based on multiple self-organizing neural networks.

背景技术 Background technique

电子鼻是利用气体传感器阵列的响应图谱来识别气味的电子装置或系统,主要由气体传感器阵列、信号预处理单元和模式识别单元三部分组成。电子鼻的工作原理是:当某种气味呈现在一种活性材料制成的气体传感器面前,气体传感器能够将该气体的化学输入转换成电信号输出,采用多个气体传感器构成气体传感器阵列,该多个气体传感器对一种气味的响应便构成了气体传感器阵列对该气味的电信号输出阵列;为实现对气味的定性或定量分析,必须将气体传感器的电信号输出进行适当的预处理(消除噪声、特征提取、信号放大,归一化等)后,由模式识别单元采用合适的模式识别分析方法对其进行识别处理;理论上,每种气味对于气体传感器阵列而言都会有它对应的特征电信号阵列值,将不同气味对应的特征电信号阵列值作为电子鼻的神经元存储于模式识别单元中,进行气体检测时把气体传感器阵列的电信号输出阵列值与神经元进行对比匹配识别,便可区分不同的气体,同时还可利用气体传感器阵列对多种气体的交叉敏感性进行测量,通过适当的分析方法,实现混合气体分析。由于电子鼻检测具有时间短、成本低等优点,目前已在食品检测、疾病诊断、环境检测等领域得到了广泛研究和关注。The electronic nose is an electronic device or system that uses the response spectrum of a gas sensor array to identify odors. It mainly consists of three parts: a gas sensor array, a signal preprocessing unit, and a pattern recognition unit. The working principle of the electronic nose is: when a certain odor is presented in front of a gas sensor made of an active material, the gas sensor can convert the chemical input of the gas into an electrical signal output, and multiple gas sensors are used to form a gas sensor array. The response of multiple gas sensors to a smell constitutes the electrical signal output array of the gas sensor array to the smell; in order to realize the qualitative or quantitative analysis of the smell, the electrical signal output of the gas sensor must be properly preprocessed (eliminated Noise, feature extraction, signal amplification, normalization, etc.), the pattern recognition unit adopts an appropriate pattern recognition analysis method to identify and process it; in theory, each odor will have its corresponding characteristics for the gas sensor array Electrical signal array value, the characteristic electrical signal array value corresponding to different odors is stored in the pattern recognition unit as the neuron of the electronic nose, and the electrical signal output array value of the gas sensor array is compared and matched with the neuron when performing gas detection. Different gases can be distinguished, and at the same time, the gas sensor array can be used to measure the cross-sensitivity of multiple gases, and the mixed gas analysis can be realized through appropriate analysis methods. Due to the short time and low cost of electronic nose detection, it has been widely researched and paid attention to in the fields of food detection, disease diagnosis, and environmental detection.

电子鼻检测识别气体的神经元可以通过基准训练而建立获得,即利用电子鼻对其能够识别的多种气体样本进行先验检测,获得气体传感器阵列对该多种气体的特征电信号阵列值,将之作为该多种气体匹配的神经元加以存储,用以作为该多种气体的识别基准。然而,电子鼻气体传感器阵列感测同一种气体的电信号输出阵列值并非一成不变的,气体传感器阵列检测气体的电信号输出阵列值与该气体匹配的特征电信号阵列值(即神经元)之间发生了漂移往往正是影响电子鼻识别效果的一个重要因素。气体传感器阵列的检测值产生漂移的原因主要有两个:一是由于电子鼻工作环境的变化,例如:温度、湿度等,使得气体传感器阵列检测的电信号输出阵列值在相匹配的神经元值附近范围内波动漂移;另一个原因则是由于气体传感器老化等现象使自身物理化学性质发生改变,进而影响其电信号输出值的大小,导致气体传感器阵列的电信号输出阵列值与相匹配的神经元发生偏差,形成漂移。其中,前者引起的漂移属于一种暂态漂移,在本质上不影响电子鼻的识别精度。而由后者引起的漂移一般称之为长期漂移,其将伴随气体传感器的使用长期存在并累积,若不采取抑制措施将导致电子鼻的检测精度明显降低,因此抑制或降低气体传感器长期漂移的影响对于保证电子鼻的检测精度和效果而言显得尤为重要。The neuron for detecting and identifying gas by the electronic nose can be established and obtained through benchmark training, that is, the electronic nose is used to perform prior detection of various gas samples that can be identified, and the characteristic electrical signal array value of the gas sensor array for the various gases is obtained. It is stored as the neurons matching the multiple gases, and used as the identification reference for the multiple gases. However, the electrical signal output array value of the electronic nose gas sensor array sensing the same gas is not invariable. The occurrence of drift is often an important factor affecting the recognition effect of the electronic nose. There are two main reasons for the drift of the detection value of the gas sensor array: one is due to changes in the working environment of the electronic nose, such as temperature, humidity, etc., so that the electrical signal output array value detected by the gas sensor array is within the matching neuron value Another reason is that the physical and chemical properties of the gas sensor have changed due to aging and other phenomena, which in turn affects the size of its electrical signal output value, resulting in the electrical signal output array value of the gas sensor array matching the nerve sensor array value. The element deviates and forms a drift. Among them, the drift caused by the former belongs to a kind of transient drift, which does not affect the recognition accuracy of the electronic nose in essence. The drift caused by the latter is generally called long-term drift, which will exist and accumulate for a long time with the use of the gas sensor. If no suppression measures are taken, the detection accuracy of the electronic nose will be significantly reduced, so suppress or reduce the long-term drift of the gas sensor. The influence is particularly important to ensure the detection accuracy and effect of the electronic nose.

从目前的研究来看,主要通过纠正电子鼻中神经元的值来抑制电子鼻的长期漂移。现有的抑制电子鼻漂移的方法主要有两大类:一种是将电子鼻气体传感器阵列的电信号输出阵列值漂移视为一路独立信号,通过主成分分析、独立成分分析、正交分解等数学方法将其从传感器输出的电信号中剔除(参见文件“Bouwmans T,BafF E,Vachon B.Backgroundmodeling using mixture of Gaussians for foreground detection-a survey.Recent Patents onComputer Science,2008.1(3):219-237”以及文献“Piccardi M.Background subtractiontechniques:a review.In:Proceeding of the IEEE International Conference on Systems,Man andCybernetics.The Hague,Netherlands:IEEE 2004.3099-3104”等),这种方法理论上而言效果较好,但需要有完整的漂移先验信息作为剔除的依据,然而不同气体传感器其电信号输出阵列值漂移的规律性很难得以准确总结和掌握,因此要建立完整的漂移先验信息具有相当高的技术难度。另一种方法无需完整的漂移先验信息,主要采用单层自组织神经网络(SelfOrganizing Maps,简称SOM网络)进行漂移补偿训练的方式对含有漂移的气体传感器阵列的电信号输出进行补偿,即将所有神经元作为一个自组织神经网络,每个神经元即为一种气体相对于气体传感器阵列的特征电信号阵列值,并且针对每一种气体设置有多个神经元,该多个神经元在一定的取值区间内取不同值进而构成对相匹配气体的神经元识别区间,然后再次利用神经元所匹配的气体对电子鼻进行漂移补偿训练,在漂移补偿训练期间,若电子鼻气体传感器阵列感测得到的电信号输出阵列值与该气体匹配的神经元识别区间的中心值发生偏差,表明气体传感器阵列检测该气体的电信号输出阵列值发生了漂移,则根据漂移量的大小对气体匹配的神经元识别区间中的各个神经元进行漂移补偿,从而达到抑制检测值漂移的目的(参见文献“Kohonen T.The Self-organizing Maps[J]Proceedings ofthe IEEE,1990,78(9):1464-1480”),但由于单层自组织神经网络相当于将存储的所有神经元都罗列在一个神经网络平面中,经漂移补偿的神经元识别区间有可能与其它气体的神经元识别区间发生交叠,致使其它气体的神经元识别区间中被交叠的部分神经元的信息遗失,这不仅会漂移补偿效果,若因漂移补偿引起的不同神经元识别区间之间交叠严重甚至会导致整个自组织神经网络中神经元信息混乱,严重影响电子鼻的识别性能。From the current research, the long-term drift of the electronic nose is suppressed mainly by correcting the values of the neurons in the electronic nose. There are two main types of existing methods for suppressing electronic nose drift: one is to treat the drift of the electrical signal output array value of the electronic nose gas sensor array as an independent signal, and through principal component analysis, independent component analysis, orthogonal decomposition, etc. Mathematical methods remove it from the electrical signal output by the sensor (see the document "Bouwmans T, Baf F E, Vachon B. Background modeling using mixture of Gaussians for foreground detection-a survey. Recent Patents on Computer Science, 2008.1 (3): 219-237 " and the literature "Piccardi M. Background subtraction techniques: a review. In: Proceeding of the IEEE International Conference on Systems, Man and Cybernetics. The Hague, Netherlands: IEEE 2004.3099-3104", etc.), this method works better in theory , but it needs to have complete drift prior information as the basis for elimination. However, it is difficult to accurately summarize and grasp the regularity of the electrical signal output array value drift of different gas sensors. Therefore, it is very important to establish complete drift prior information. technical difficulty. Another method does not require complete drift prior information, and mainly uses a single-layer self-organizing neural network (SelfOrganizing Maps, referred to as SOM network) for drift compensation training to compensate the electrical signal output of the gas sensor array with drift, that is, all Neurons are used as a self-organizing neural network, each neuron is the characteristic electrical signal array value of a gas relative to the gas sensor array, and multiple neurons are set for each gas, and the multiple neurons are set at a certain Different values are taken within the range of values to form the neuron recognition interval for the matching gas, and then the electronic nose is again used to perform drift compensation training on the gas matched by the neurons. During the drift compensation training, if the electronic nose gas sensor array senses The measured electrical signal output array value deviates from the central value of the neuron identification interval matched by the gas, indicating that the gas sensor array detects that the electrical signal output array value of the gas has drifted. Each neuron in the neuron identification interval performs drift compensation, so as to achieve the purpose of suppressing the drift of the detection value (see the literature "Kohonen T. The Self-organizing Maps [J] Proceedings of the IEEE, 1990, 78 (9): 1464-1480 ”), but because the single-layer self-organizing neural network is equivalent to listing all the stored neurons in a neural network plane, the neuron recognition interval after drift compensation may overlap with the neuron recognition interval of other gases, As a result, the information of the overlapped part of neurons in the neuron recognition intervals of other gases is lost, which will not only affect the effect of drift compensation, but if the overlap between different neuron recognition intervals caused by drift compensation is serious, it may even cause the entire self-organizing nerve The neuron information in the network is chaotic, which seriously affects the recognition performance of the electronic nose.

近年来有学者提出使用多重自组织神经网络(Multiple Self Organizing Maps,简称MSOM)解决漂移问题,即将针对一种气体的多个神经元罗列在一个独立的自组织神经网络上,针对多种气体检测构建出多重自组织神经网络,因此每个自组织神经网络对应一种气体的神经元识别区间,从而对于一种气体的漂移补偿训练只会在气体相匹配的一个自组织神经网络上进行漂移补偿,其对单个自组织神经网络的漂移补偿处理的方式与SOM网络漂移补偿方法中对单个神经元识别区间的漂移补偿处理方式相同(参见文献“MarziaZuppa,Cosimo Distante,Pietro Siciliano,et al.Drift counteraction with multiple self-organisingmaps for an electronic nose[J]Sensors and Actuators B,2004,98:305-317”),这样漂移补偿就不会影响其它自组织神经网络的匹配于其它气体的神经元,避免了出现神经元因互扰出现信息遗失的情况;但这又使得一些长时间未进行漂移补偿训练的自组织神经网络上的神经元在漂移补偿训练期间几乎得不到任何漂移补偿,致使其漂移情况持续恶化,当再次进行气体检测时,未得以漂移补偿的自组织神经网络所匹配的气体检测识别准确率便会大幅降低,影响了电子鼻的识别性能。除非采用电子鼻所识别的所有种类气体分别对电子鼻进行漂移补偿训练,保证每种气体匹配的自组织神经网络均能够得以漂移补偿,才能克服上述情况的发生,但长期保持所有种类气体的漂移补偿训练是很难做到的,而且漂移补偿训练工作量大、操作麻烦,致使漂移抑制效果和电子鼻识别性能均难以得到保证。In recent years, some scholars have proposed to use multiple self-organizing neural network (Multiple Self Organizing Maps, referred to as MSOM) to solve the drift problem, that is, multiple neurons for one gas will be listed on an independent self-organizing neural network to detect multiple gases. Construct multiple self-organizing neural networks, so each self-organizing neural network corresponds to the neuron recognition interval of a gas, so that the drift compensation training for a gas will only perform drift compensation on a self-organizing neural network that matches the gas , the drift compensation processing method for a single self-organizing neural network is the same as the drift compensation processing method for a single neuron identification interval in the SOM network drift compensation method (see the literature "MarziaZuppa, Cosimo Distante, Pietro Siciliano, et al.Drift counteraction with multiple self-organizing maps for an electronic nose[J]Sensors and Actuators B, 2004, 98: 305-317"), so that the drift compensation will not affect the neurons of other self-organizing neural networks matching other gases, avoiding There is a situation where neurons lose information due to mutual interference; but this makes some neurons on the self-organizing neural network that have not been trained for drift compensation for a long time hardly receive any drift compensation during drift compensation training, resulting in their drift. As it continues to deteriorate, when gas detection is performed again, the accuracy of gas detection and recognition matched by the self-organizing neural network without drift compensation will be greatly reduced, which affects the recognition performance of the electronic nose. Unless all kinds of gases identified by the electronic nose are used to perform drift compensation training on the electronic nose separately, ensuring that the self-organizing neural network matched with each gas can be compensated for drift, in order to overcome the occurrence of the above situation, but keep the drift of all kinds of gases for a long time Compensation training is difficult to achieve, and drift compensation training has a large workload and troublesome operation, which makes it difficult to guarantee the drift suppression effect and electronic nose recognition performance.

发明内容 Contents of the invention

针对现有技术中存在的上述问题,本发明为了增强电子鼻对于长期漂移的整体漂移补偿能力而提出一种基于多重自组织神经网络的电子鼻漂移抑制方法,以提高电子鼻的漂移补偿执行效率,保证电子鼻经漂移抑制补偿后依然保持良好的识别性能。Aiming at the above-mentioned problems existing in the prior art, the present invention proposes an electronic nose drift suppression method based on multiple self-organizing neural networks in order to enhance the overall drift compensation capability of the electronic nose for long-term drift, so as to improve the drift compensation execution efficiency of the electronic nose , to ensure that the electronic nose still maintains good recognition performance after drift suppression compensation.

为实现上述目的,本发明采用了如下技术手段:To achieve the above object, the present invention adopts the following technical means:

一种基于多重自组织神经网络的电子鼻漂移抑制方法,包括如下步骤:A method for suppressing electronic nose drift based on multiple self-organizing neural networks, comprising the steps of:

A)初始化步骤,其具体为:A) initialization step, which is specifically:

a1)建立样本缓存矩阵 X ~ Rct ( t ) = { X 1 ( t ) , X 2 ( t ) , . . . , X K ( t ) } ; 其中,Xk(t)为包含i个元素的缓存阵列,k∈{1,2,…,K},K表示电子鼻的自组织神经网络的数量,i表示电子鼻气体传感器阵列中气体传感器的个数,t表示时刻;a1) Establish a sample cache matrix x ~ Rct ( t ) = { x 1 ( t ) , x 2 ( t ) , . . . , x K ( t ) } ; Among them, X k (t) is a cache array containing i elements, k ∈ {1, 2, ..., K}, K represents the number of self-organizing neural networks of the electronic nose, and i represents the gas sensor in the gas sensor array of the electronic nose The number of , t represents the time;

a2)初始化时刻t=0;a2) initialization time t=0;

a3)在当前时刻,样本缓存矩阵

Figure BDA0000104591570000032
中各个缓存阵列的取值为:a3) At the current moment, the sample cache matrix
Figure BDA0000104591570000032
The value of each cache array in is:

Xx kk (( tt )) == 11 Mm kk ΣΣ mm == 11 Mm kk WW mm kk (( tt )) ,, kk == 1,21,2 ,, .. .. .. ,, KK ;;

其中, W m k ( t ) = [ w m , 1 k ( t ) , w m , 2 k ( t ) , . . . , w m , i k ( t ) ] 表示在当前时刻电子鼻的第k个自组织神经网络中第m个神经元,

Figure BDA0000104591570000041
则分别表示所述神经元中的i个特征电信号值,Mk表示电子鼻的第k个自组织神经网络中神经元的数量;in, W m k ( t ) = [ w m , 1 k ( t ) , w m , 2 k ( t ) , . . . , w m , i k ( t ) ] Indicates the mth neuron in the kth self-organizing neural network of the electronic nose at the current moment,
Figure BDA0000104591570000041
respectively represent the neuron The i characteristic electrical signal values in , M k represents the number of neurons in the kth self-organizing neural network of the electronic nose;

B)漂移抑制补偿步骤;具体为:B) Drift suppression compensation step; specifically:

b1)时刻t自加1;b1) time t is incremented by 1;

b2)获取当前时刻电子鼻气体传感器阵列的电信号输出阵列Xts(t):b2) Obtain the electrical signal output array X ts (t) of the electronic nose gas sensor array at the current moment:

Xts(t)=[xts,1(t),xts,2(t),…,xts,i(t)]; Xts (t) = [ xts, 1 (t), xts, 2 (t), ..., xts , i (t)];

其中,xts,1(t),xts,2(t),…,xts,i(t)分别表示在当前时刻电子鼻气体传感器阵列中i个气体传感器的电信号输出值;Wherein, x ts, 1 (t), x ts, 2 (t), ..., x ts, i (t) respectively represent the electrical signal output values of i gas sensors in the electronic nose gas sensor array at the current moment;

b3)求取匹配获胜自组织神经网络序号k1st和匹配次获胜自组织神经网络序号k2ndb3) Calculate the self-organizing neural network serial number k 1st of the winning match and the self-organizing neural network serial number k 2nd of the winning match:

Figure BDA0000104591570000043
Figure BDA0000104591570000043

Figure BDA0000104591570000044
Figure BDA0000104591570000044

其中,

Figure BDA0000104591570000045
表示在此前一时刻(t-1)电子鼻的第k个自组织神经网络中第m个神经元;符号
Figure BDA0000104591570000046
表示取归一化值,
Figure BDA0000104591570000047
Figure BDA0000104591570000048
分别表示取所述电信号输出阵列Xts(t)的归一化值和取所述神经元
Figure BDA0000104591570000049
的归一化值;
Figure BDA00001045915700000410
表示取
Figure BDA00001045915700000411
Figure BDA00001045915700000412
的欧氏距离;
Figure BDA00001045915700000413
表示取
Figure BDA00001045915700000414
Figure BDA00001045915700000415
的欧氏距离在所有k∈{1,2,…,K}和m∈{1,2,…,Mk}情况中的最小值,表示取
Figure BDA00001045915700000417
Figure BDA00001045915700000418
的欧氏距离在所有k∈{1,2,…,K}和m∈{1,2,…,Mk}情况中仅大于
Figure BDA00001045915700000419
的次最小值;in,
Figure BDA0000104591570000045
Indicates the mth neuron in the kth self-organizing neural network of the electronic nose at the previous moment (t-1); symbol
Figure BDA0000104591570000046
Indicates the normalized value,
Figure BDA0000104591570000047
and
Figure BDA0000104591570000048
Respectively represent to take the normalized value of the electrical signal output array X ts (t) and take the neuron
Figure BDA0000104591570000049
normalized value of
Figure BDA00001045915700000410
Indicates to take
Figure BDA00001045915700000411
and
Figure BDA00001045915700000412
Euclidean distance;
Figure BDA00001045915700000413
Indicates to take
Figure BDA00001045915700000414
and
Figure BDA00001045915700000415
The minimum value of the Euclidean distance for all k ∈ {1, 2, ..., K} and m ∈ {1, 2, ..., M k } cases, Indicates to take
Figure BDA00001045915700000417
and
Figure BDA00001045915700000418
The Euclidean distance of is only greater than
Figure BDA00001045915700000419
the second minimum value of

b4)若k1st=k2nd,按照下式对电子鼻各个自组织神经网络中各个神经元进行漂移补偿:b4) If k 1st =k 2nd , perform drift compensation for each neuron in each self-organizing neural network of the electronic nose according to the following formula:

Figure BDA00001045915700000420
Figure BDA00001045915700000420

若k1st≠k2nd,则按照下式对电子鼻各个自组织神经网络中各个神经元进行漂移补偿:If k 1st ≠k 2nd , then perform drift compensation for each neuron in each self-organizing neural network of the electronic nose according to the following formula:

其中,

Figure BDA0000104591570000051
表示在当前时刻电子鼻的第k个自组织神经网络中第m个神经元;ΔW(t)表示当前时刻的补偿增量阵列,且
Figure BDA0000104591570000052
Xk1st(t-1)表示在此前一时刻(t-1)样本缓存矩阵中第k1st个缓存阵列,
Figure BDA0000104591570000054
表示取所述缓存阵列Xk1st(t-1)的归一化值;a为补偿比例系数,取值范围为0<a≤0.5;b为补偿增量系数,取值范围为0<b≤0.5;in,
Figure BDA0000104591570000051
Represents the mth neuron in the kth self-organizing neural network of the electronic nose at the current moment; ΔW(t) represents the compensation increment array at the current moment, and
Figure BDA0000104591570000052
X k1st (t-1) represents the sample buffer matrix at the previous moment (t-1) In the k 1st cache array,
Figure BDA0000104591570000054
Indicates that the normalized value of the cache array X k1st (t-1) is taken; a is the compensation proportional coefficient, the value range is 0<a≤0.5; b is the compensation increment coefficient, the value range is 0<b≤ 0.5;

b5)按照下式对样本缓存矩阵中各个缓存阵列的取值进行迭代更新:b5) According to the following formula, the sample cache matrix The value of each cache array in is updated iteratively:

Figure BDA0000104591570000056
Figure BDA0000104591570000056

其中,Xk(t)表示当前时刻样本缓存矩阵中的第k个缓存阵列;Xk(t-1)表示在此前一时刻(t-1)样本缓存矩阵

Figure BDA0000104591570000058
中的第k个缓存阵列,
Figure BDA0000104591570000059
表示取所述缓存阵列Xk(t-1)的归一化值;Among them, X k (t) represents the sample buffer matrix at the current moment The k-th cache array in ; X k (t-1) represents the sample cache matrix at the previous moment (t-1)
Figure BDA0000104591570000058
The kth cache array in ,
Figure BDA0000104591570000059
Represents taking the normalized value of the cache array X k (t-1);

C)循环执行步骤B),直至电子鼻终止漂移抑制工作。C) Step B) is executed cyclically until the electronic nose terminates the drift suppression work.

进一步,所述符号

Figure BDA00001045915700000510
表示取归一化值的具体运算公式如下:Further, the symbol
Figure BDA00001045915700000510
The specific calculation formula for taking the normalized value is as follows:

Figure BDA00001045915700000511
Figure BDA00001045915700000511

其中,F表示包含i个元素的任意阵列,f1,f2,…,fi分别表示所述阵列F包含的i个元素。Wherein, F represents any array containing i elements, and f 1 , f 2 , . . . , f i respectively represent i elements contained in the array F.

相比于现有技术,本发明具有如下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

1、本发明的电子鼻漂移抑制方法中,采用任意一种气体进行漂移补偿训练能够使得各个自组织神经网络的神经元中对该气体敏感的特征电信号值都得以漂移抑制补偿,因此只要采用能够使气体传感器阵列中所有气体传感器均得以敏感检测的一种或为数不多的几种气体进行漂移补偿训练,即可保证电子鼻中各个自组织神经网络的各个神经元均得以漂移补偿,增强了电子鼻对于长期漂移的整体漂移补偿能力,提高了电子鼻的漂移补偿执行效率。1. In the electronic nose drift suppression method of the present invention, using any kind of gas for drift compensation training can make the characteristic electrical signal values sensitive to the gas in the neurons of each self-organizing neural network be able to drift suppression and compensation, so as long as the gas is used One or a small number of gases that can make all the gas sensors in the gas sensor array can be sensitively detected can be trained for drift compensation, which can ensure that each neuron of each self-organizing neural network in the electronic nose can be drift-compensated and enhanced. The overall drift compensation capability of the electronic nose for long-term drift is improved, and the drift compensation execution efficiency of the electronic nose is improved.

2、在本发明的电子鼻漂移抑制方法中,通过样本缓存矩阵对各个自组织神经网络的神经元均值中心加以缓存并循环迭代更新,用以求取每次循环漂移抑制补偿的补偿增量阵列,在对漂移补偿训练所采用气体匹配的自组织神经网络中各神经元进行漂移补偿的同时,还利用补偿增量阵列对其它自组织神经网络中的神经元进行漂移补偿,样本缓存矩阵的循环迭代更新保证了补偿增量阵列总是取得适宜的值,使得各自组织神经网络的神经元经过漂移补偿后都趋于接近气体传感器阵列检测其匹配气体的实际电信号输出阵列值,从而达到抑制漂移的目的,保证了电子鼻经漂移抑制补偿后依然保持良好的识别性能。2. In the electronic nose drift suppression method of the present invention, the neuron mean center of each self-organizing neural network is cached and cyclically iteratively updated through the sample cache matrix to obtain the compensation increment array for each cycle drift suppression compensation , while performing drift compensation for each neuron in the self-organizing neural network with gas matching used in drift compensation training, the compensation increment array is also used to compensate for the drift of neurons in other self-organizing neural networks, and the cycle of the sample buffer matrix The iterative update ensures that the compensation incremental array always obtains an appropriate value, so that the neurons of the neural network of each organization tend to approach the actual electrical signal output array value of the gas sensor array to detect its matching gas after drift compensation, so as to achieve the suppression of drift The purpose is to ensure that the electronic nose still maintains good recognition performance after drift suppression compensation.

附图说明 Description of drawings

图1为本发明基于多重自组织神经网络的电子鼻漂移抑制方法的流程框图;Fig. 1 is the flowchart block diagram of the electronic nose drift suppression method based on multiple self-organizing neural networks of the present invention;

图2为自行搭建的电子鼻测试平台的结构示意图。Figure 2 is a schematic diagram of the structure of the self-built electronic nose test platform.

具体实施方式 Detailed ways

一、现有MSOM漂移补偿方法的局限性。1. Limitations of existing MSOM drift compensation methods.

根据MSOM漂移补偿方法的工作原理,假设电子鼻通过基准训练后,存储有K个自组织神经网络,分别用于匹配识别K类不同的气体;如果采用第k个自组织神经网络(k∈{1,2,…,K})匹配的气体样本连续Δt个时刻输入至电子鼻进行漂移补偿训练;在这Δt个时刻内,第k个自组织神经网络中的各个神经元能够有效获得漂移补偿,但是除第k个自组织神经网络以外的其它自组织神经网络中的神经元几乎不能获得漂移补偿的机会。如果在(Δt+1)时刻对电子鼻输入一个非第k个自组织神经网络匹配的新气体样本进行检测,由于经过此前Δt个时刻后,电子鼻气体传感器阵列对这种新气体样本的电信号输出阵列值有可能已经发生了漂移,而该新气体样本匹配的自组织神经网络又没有得到任何漂移补偿,因此无法保证电子鼻在(Δt+1)时刻对该新气体样本的识别准确性。According to the working principle of the MSOM drift compensation method, it is assumed that after the electronic nose passes the benchmark training, K self-organizing neural networks are stored, which are used to match and identify K different gases; if the k-th self-organizing neural network (k∈{ 1, 2,..., K}) matched gas samples are continuously input to the electronic nose for drift compensation training at Δt time; during this Δt time, each neuron in the kth self-organizing neural network can effectively obtain drift compensation , but the neurons in the self-organizing neural network other than the k-th self-organizing neural network can hardly obtain the chance of drift compensation. If a new gas sample that is not matched by the k-th self-organizing neural network is input to the electronic nose at (Δt+1) time, because after the previous Δt time, the electronic nose gas sensor array will detect the new gas sample. The value of the signal output array may have drifted, and the self-organizing neural network matching the new gas sample has not received any drift compensation, so the electronic nose cannot guarantee the accuracy of the identification of the new gas sample at (Δt+1) time .

二、本发明解决方案。Two, the solution of the present invention.

针对现有技术的上述现状和不足,本发明针对现有的多重自组织神经网络漂移补偿方法进行进一步的改进,提出一种基于多重自组织神经网络的电子鼻漂移抑制方法。本发明的电子鼻漂移抑制方法主要包含初始化和漂移抑制补偿两大步骤,并通过循环执行漂移抑制补偿步骤对补偿增量阵列进行循环迭代更新,以实现对电子鼻各个自组织神经网络中各个神经元进行循环迭代漂移补偿,使得各个自组织神经网络的神经元始终趋近于气体传感器阵列检测其匹配气体的实际电信号输出阵列值,从而达到抑制漂移的目的。In view of the above-mentioned current situation and shortcomings of the prior art, the present invention further improves the existing multiple self-organizing neural network drift compensation method, and proposes a method for suppressing electronic nose drift based on multiple self-organizing neural networks. The electronic nose drift suppression method of the present invention mainly includes two steps of initialization and drift suppression compensation, and the compensation increment array is cyclically and iteratively updated by performing the drift suppression compensation step in order to realize the self-organizing neural networks of the electronic nose. The unit performs cyclic iteration drift compensation, so that the neurons of each self-organizing neural network always approach the gas sensor array to detect the actual electrical signal output array value of its matching gas, so as to achieve the purpose of suppressing drift.

本发明基于多重自组织神经网络的电子鼻漂移抑制方法的流程图如图1所示,其具体步骤如下:The flow chart of the electronic nose drift suppression method based on multiple self-organizing neural networks of the present invention is shown in Figure 1, and its specific steps are as follows:

A)初始化步骤。A) Initialization step.

该步骤主要是为了建立样本缓存矩阵,用于对各个自组织神经网络的神经元均值中心加以缓存以作为循环迭代更新的数据源,同时初始化样本缓存矩阵以及时刻t的取值。需要说明的是,时刻t并不用于表示具体的时间值(如t秒、t分钟等),本发明方法中的时刻t是作为时刻区分标识使用,用以标示循环迭代过程中的不同时间点,实现循环迭代过程中前后数据的区分。This step is mainly to establish a sample cache matrix, which is used to cache the neuron mean center of each self-organizing neural network as a data source for loop iteration update, and at the same time initialize the sample cache matrix and the value of time t. It should be noted that the time t is not used to represent a specific time value (such as t seconds, t minutes, etc.), and the time t in the method of the present invention is used as a time distinguishing mark to mark different time points in the loop iteration process , to realize the distinction between before and after data in the loop iteration process.

初始化步骤的具体内容如下列步骤a1)~a3)所述:The specific content of the initialization step is as described in the following steps a1) to a3):

a1)建立样本缓存矩阵 X ~ Rct ( t ) = { X 1 ( t ) , X 2 ( t ) , . . . , X K ( t ) } ; 其中,Xk(t)为包含i个元素的缓存阵列,k∈{1,2,…,K},K表示电子鼻的自组织神经网络的数量,i表示电子鼻的气体传感器阵列中气体传感器的个数,t表示时刻。a1) Establish a sample cache matrix x ~ Rct ( t ) = { x 1 ( t ) , x 2 ( t ) , . . . , x K ( t ) } ; Among them, X k (t) is a cache array containing i elements, k ∈ {1, 2, ..., K}, K represents the number of self-organizing neural networks of the electronic nose, i represents the gas in the gas sensor array of the electronic nose The number of sensors, t represents the time.

a2)初始化时刻t=0;时刻t=0表示当前时刻为初始状态时刻,以区别于后续的循环迭代时刻。a2) Initialization time t=0; time t=0 indicates that the current time is the initial state time, so as to distinguish it from the subsequent loop iteration time.

a3)在当前时刻,样本缓存矩阵中各个缓存阵列的取值为:a3) At the current moment, the sample cache matrix The value of each cache array in is:

X k ( t ) = 1 M k &Sigma; m = 1 M k W m k ( t ) , k = 1,2 , . . . , K ; 式(1); x k ( t ) = 1 m k &Sigma; m = 1 m k W m k ( t ) , k = 1,2 , . . . , K ; Formula 1);

式(1)中, W m k ( t ) = [ w m , 1 k ( t ) , w m , 2 k ( t ) , . . . , w m , i k ( t ) ] 表示在当前时刻电子鼻的第k个自组织神经网络中第m个神经元,

Figure BDA0000104591570000075
则分别表示所述神经元
Figure BDA0000104591570000076
中的i个特征电信号值,也就是神经元
Figure BDA0000104591570000077
相匹配的气体分别对应于电子鼻气体传感器阵列中i个气体传感器的i个特征电信号值,Mk表示电子鼻的第k个自组织神经网络中神经元的数量。电子鼻各自组织神经网络中神经元的数量Mk的多少是根据需要而自定义设定的,不同自组织神经网络对应的Mk的值可以是不同的,因此可以认为Mk是k的函数,其函数关系由定义设定的任意第k个自组织神经网络中神经元的数量的而确定。In formula (1), W m k ( t ) = [ w m , 1 k ( t ) , w m , 2 k ( t ) , . . . , w m , i k ( t ) ] Indicates the mth neuron in the kth self-organizing neural network of the electronic nose at the current moment,
Figure BDA0000104591570000075
respectively represent the neuron
Figure BDA0000104591570000076
The i characteristic electrical signal values in , that is, the neuron
Figure BDA0000104591570000077
The matched gases correspond to i characteristic electrical signal values of i gas sensors in the electronic nose gas sensor array, and M k represents the number of neurons in the kth self-organizing neural network of the electronic nose. The number of neurons M k in each organization neural network of the electronic nose is customized according to the needs, and the value of M k corresponding to different self-organizing neural networks can be different, so it can be considered that M k is a function of k , and its functional relationship is determined by defining the number of neurons in any kth self-organizing neural network.

当前时刻为t=0,因此此时的样本缓存矩阵

Figure BDA0000104591570000078
中各个缓存阵列Xk(t)的取值即为初始状态时刻取值;缓存阵列Xk(t)的初始状态时刻取值为
Figure BDA0000104591570000079
即第k个自组织神经网络的神经元均值中心。在后续的循环迭代过程中则无需再依靠求取电子鼻各自组织神经网络的神经元均值中心确定样本缓存矩阵的取值,而是通过循环迭代更新而确定电子鼻各自组织神经网络新的神经元均值中心。The current moment is t=0, so the sample buffer matrix at this time
Figure BDA0000104591570000078
The value of each cache array X k (t) is the value of the initial state moment; the value of the initial state moment of the cache array X k (t) is
Figure BDA0000104591570000079
That is, the neuron mean center of the kth self-organizing neural network. In the subsequent cyclic iteration process, it is no longer necessary to determine the value of the sample cache matrix by calculating the mean center of the neurons of the respective tissue neural networks of the electronic nose, but to determine the new neurons of the respective tissue neural networks of the electronic nose through cyclic iterative updates. mean center.

B)漂移抑制补偿步骤。B) Drift suppression compensation step.

漂移抑制补偿步骤,是利用电子鼻在此前一时刻各自组织神经网络的神经元以及此前一时刻的样本缓存矩阵对当前时刻电子鼻各自组织神经网络的神经元进行漂移抑制补偿,并且对当前时刻的样本缓存矩阵进行迭代更新,以待此后一时刻循环迭代的漂移抑制补偿步骤调用。The drift suppression compensation step is to use the neurons of the electronic nose to organize the neural network at the previous moment and the sample buffer matrix at the previous moment to carry out drift suppression and compensation for the neurons of the electronic nose's respective neural network at the current moment, and to compensate the neurons of the neural network at the current moment. The sample cache matrix is iteratively updated, and is called by the drift suppression and compensation step of the loop iteration at a later moment.

漂移抑制补偿步骤的具体内容如下列步骤b1)~b5)所述:The specific content of the drift suppression compensation step is as described in the following steps b1) to b5):

b1)时刻t自加1,用于作为当前时刻的标识,以区分此前一时刻。b1) The time t is incremented by 1, which is used as an identifier of the current time to distinguish the previous time.

b2)获取当前时刻电子鼻气体传感器阵列的电信号输出阵列Xts(t):b2) Obtain the electrical signal output array X ts (t) of the electronic nose gas sensor array at the current moment:

Xts(t)=[xts,1(t),xts,2(t),…,xts,i(t)];    式(2);X ts (t) = [x ts, 1 (t), x ts, 2 (t), ..., x ts, i (t)]; formula (2);

式(2)中,xts,1(t),xts,2(t),…,xts,i(t)分别表示在当前时刻电子鼻气体传感器阵列中i个气体传感器的电信号输出值。In formula (2), x ts, 1 (t), x ts, 2 (t), ..., x ts, i (t) respectively represent the electrical signal output of i gas sensors in the electronic nose gas sensor array at the current moment value.

此时电子鼻气体传感器阵列的电信号输出阵列Xts(t),即相当于在当前时刻电子鼻的气体传感器阵列检测漂移补偿训练所用气体而得到的实际电信号输出阵列。该漂移补偿训练可以是单独通过漂移补偿训练实验而进行,也可以是在利用电子鼻进行气体检测的过程中同时进行;后者相当于将作为检测对象的气体同时作为漂移补偿训练气体样本使用,在电子鼻进行气体检测的同时即进行漂移抑制操作,在实际程序中可以通过多线程任务来分别执行气体检测操作和漂移抑制操作流程,互不干扰。该电信号输出阵列Xts(t)将作为当前时刻进行漂移抑制补偿的参考基准,通过后续步骤使得漂移补偿训练所采用气体匹配的自组织神经网络中的神经元经过漂移补偿后趋近于该电信号输出阵列Xts(t)。At this time, the electrical signal output array X ts (t) of the gas sensor array of the electronic nose is equivalent to the actual electrical signal output array obtained by detecting the gas used for drift compensation training by the gas sensor array of the electronic nose at the current moment. The drift compensation training can be carried out through the drift compensation training experiment alone, or it can be carried out simultaneously in the process of using the electronic nose for gas detection; the latter is equivalent to using the gas as the detection object as a drift compensation training gas sample at the same time, The drift suppression operation is performed while the electronic nose is performing gas detection. In the actual program, the gas detection operation and the drift suppression operation process can be executed separately through multi-threaded tasks without interfering with each other. The electrical signal output array X ts (t) will be used as a reference for drift suppression compensation at the current moment, and through subsequent steps, the neurons in the self-organizing neural network with gas matching used in drift compensation training will approach this value after drift compensation. The electrical signal output array X ts (t).

b3)求取匹配获胜自组织神经网络序号k1st和匹配次获胜自组织神经网络序号k2ndb3) Calculate the self-organizing neural network serial number k 1st of the winning match and the self-organizing neural network serial number k 2nd of the winning match:

Figure BDA0000104591570000082
Figure BDA0000104591570000082

式(3);Formula (3);

式(3)中,

Figure BDA0000104591570000083
表示在此前一时刻(t-1)电子鼻的第k个自组织神经网络中第m个神经元;符号表示取归一化值,
Figure BDA0000104591570000085
Figure BDA0000104591570000086
分别表示取所述电信号输出阵列Xts(t)的归一化值和取所述神经元
Figure BDA0000104591570000087
的归一化值;
Figure BDA0000104591570000088
表示取
Figure BDA0000104591570000089
Figure BDA00001045915700000810
的欧氏距离;
Figure BDA00001045915700000811
表示取
Figure BDA00001045915700000812
Figure BDA00001045915700000813
的欧氏距离在所有k∈{1,2,…,K}和m∈{1,2,…,Mk}情况中的最小值,
Figure BDA00001045915700000814
表示取
Figure BDA00001045915700000815
Figure BDA00001045915700000816
的欧氏距离在所有k∈{1,2,…,K}和m∈{1,2,…,Mk}情况中仅大于
Figure BDA00001045915700000817
的次最小值。In formula (3),
Figure BDA0000104591570000083
Indicates the mth neuron in the kth self-organizing neural network of the electronic nose at the previous moment (t-1); symbol Indicates the normalized value,
Figure BDA0000104591570000085
and
Figure BDA0000104591570000086
Respectively represent to take the normalized value of the electrical signal output array X ts (t) and take the neuron
Figure BDA0000104591570000087
normalized value of
Figure BDA0000104591570000088
Indicates to take
Figure BDA0000104591570000089
and
Figure BDA00001045915700000810
Euclidean distance;
Figure BDA00001045915700000811
Indicates to take
Figure BDA00001045915700000812
and
Figure BDA00001045915700000813
The minimum value of the Euclidean distance for all k ∈ {1, 2, ..., K} and m ∈ {1, 2, ..., M k } cases,
Figure BDA00001045915700000814
Indicates to take
Figure BDA00001045915700000815
and
Figure BDA00001045915700000816
The Euclidean distance of is only greater than
Figure BDA00001045915700000817
the second minimum value of .

如此求得的匹配获胜自组织神经网络序号k1st和匹配次获胜自组织神经网络序号k2nd,即相当于:在电子鼻各个自组织神经网络的各个神经元之中,将经过归一化后其欧氏距离与当前时刻电子鼻气体传感器阵列的电信号输出阵列Xts(t)最近的神经元所在的自组织神经网络认定为匹配获胜自组织神经网络,将其自组织神经网络序号作为k1st;将经过归一化后其欧氏距离与当前时刻电子鼻气体传感器阵列的电信号输出阵列Xts(t)次最近的神经元所在的自组织神经网络认定为匹配次获胜自组织神经网络,将其自组织神经网络序号作为k2nd。求取匹配获胜自组织神经网络序号k1st和匹配次获胜自组织神经网络序号k2nd的目的主要有两方面:一方面是将匹配获胜自组织神经网络序号k1st认定为当前时刻漂移补偿训练所采用气体相匹配的自组织神经网络序号,以便于针对漂移补偿训练所采用气体匹配的自组织神经网络和不匹配的自组织神经网络加以区分而分别进行不同的漂移补偿;另一方面在于通过比较k1st和k2nd的值获知电子鼻在当前时刻漂移的大小程度,若k1st=k2nd表明电子鼻在当前时刻检测漂移补偿训练所采用气体的漂移量尚处于自组织神经网络的识别范围内,若k1st≠k2nd则表明电子鼻在当前时刻检测漂移补偿训练所采用气体的漂移已达到自组织神经网络的识别范围边缘,从而便于在后续步骤中针对电子鼻不同的漂移大小程度采取不同的漂移补偿策略。The matching winning self-organizing neural network serial number k 1st and the matching winning self-organizing neural network serial number k 2nd obtained in this way are equivalent to: in each neuron of each self-organizing neural network of the electronic nose, after normalization The self-organizing neural network whose Euclidean distance is the closest to the electrical signal output array X ts (t) of the electronic nose gas sensor array at the current moment is identified as the matching winning self-organizing neural network, and its self-organizing neural network number is taken as k 1st ; after normalization, the self-organizing neural network where the nearest neuron is located in its Euclidean distance and the electrical signal output array X ts (t) times of the electronic nose gas sensor array at the current moment is identified as the matching times winning self-organizing neural network , and take its self-organizing neural network number as k 2nd . The purpose of obtaining the matching winning self-organizing neural network number k 1st and the matching winning self-organizing neural network number k 2nd mainly has two aspects: one is to identify the matching winning self-organizing neural network number k 1st as the drift compensation training center at the current moment The serial number of the self-organizing neural network matching the gas is used to distinguish the self-organizing neural network and the non-matching self-organizing neural network used in the drift compensation training to perform different drift compensation respectively; on the other hand, by comparing The values of k 1st and k 2nd can be used to know the degree of drift of the electronic nose at the current moment. If k 1st = k 2nd , it indicates that the drift of the gas used in the drift compensation training of the electronic nose at the current moment is still within the recognition range of the self-organizing neural network , if k 1st ≠ k 2nd , it indicates that the electronic nose detects the drift of the gas used in drift compensation training at the current moment and has reached the edge of the recognition range of the self-organizing neural network, so that it is convenient to take different measures for different drifts of the electronic nose in the subsequent steps. drift compensation strategy.

b4)若k1st=k2nd,按照式(4)对电子鼻各个自组织神经网络中各个神经元进行漂移补偿:b4) If k 1st =k 2nd , perform drift compensation for each neuron in each self-organizing neural network of the electronic nose according to formula (4):

式(4); Formula (4);

若k1st≠k2nd,则按照式(5)对电子鼻各个自组织神经网络中各个神经元进行漂移补偿:If k 1st ≠k 2nd , then perform drift compensation for each neuron in each self-organizing neural network of the electronic nose according to formula (5):

;式(5);;Formula (5);

式(4)和式(5)中,表示在当前时刻电子鼻的第k个自组织神经网络中第m个神经元;ΔW(t)表示当前时刻的补偿增量阵列,且

Figure BDA0000104591570000094
Xk1st(t-1)表示在此前一时刻(t-1)样本缓存矩阵
Figure BDA0000104591570000095
中第k1st个缓存阵列的值,即样本缓存矩阵
Figure BDA0000104591570000101
中第k个(取k=k1st)缓存阵列的值;
Figure BDA0000104591570000102
表示取所述缓存阵列Xk1st(t-1)的归一化值;a为补偿比例系数,取值范围为0<a≤0.5;b为补偿增量系数,取值范围为0<b≤0.5。In formula (4) and formula (5), Represents the mth neuron in the kth self-organizing neural network of the electronic nose at the current moment; ΔW(t) represents the compensation increment array at the current moment, and
Figure BDA0000104591570000094
X k1st (t-1) represents the sample buffer matrix at the previous moment (t-1)
Figure BDA0000104591570000095
The value of the k 1st cache array in , the sample cache matrix
Figure BDA0000104591570000101
The value of the kth (take k=k 1st ) cache array among them;
Figure BDA0000104591570000102
Indicates that the normalized value of the cache array X k1st (t-1) is taken; a is the compensation proportional coefficient, the value range is 0<a≤0.5; b is the compensation increment coefficient, the value range is 0<b≤ 0.5.

补偿比例系数a和补偿增量系数b的具体取值,需要根据实际情况中电子鼻的气体传感器所采用的活性材料对气体检测漂移的敏感程度而确定,对于不同的活性材料制成的气体传感器,其对应的补偿比例系数a和补偿增量系数b的具体取值不尽相同;在本发明方法中,补偿比例系数a和补偿增量系数b的取值范围均局限在前开后闭数值区间(0,0.5]之内,通常情况下a≠b(当然不排除有个别活性材料对应的补偿比例系数a和补偿增量系数b存在a=b的情况);活性材料对气体检测的漂移越敏感,则其对应的补偿比例系数a和补偿增量系数b的取值越大。The specific values of the compensation proportional coefficient a and the compensation increment coefficient b need to be determined according to the sensitivity of the active material used in the gas sensor of the electronic nose to the gas detection drift in the actual situation. For gas sensors made of different active materials , the specific values of the corresponding compensation proportional coefficient a and compensation increment coefficient b are different; Within the interval (0, 0.5], usually a≠b (of course, it does not rule out the case where a=b exists in the compensation proportional coefficient a and compensation increment coefficient b corresponding to individual active materials); the drift of the active material to gas detection The more sensitive it is, the larger the values of the corresponding compensation proportional coefficient a and compensation increment coefficient b are.

在上述漂移补偿过程中,可以看到,对于电子鼻的K个自组织神经网络而言:In the above drift compensation process, it can be seen that for the K self-organizing neural networks of the electronic nose:

①在当前时刻,与当前时刻漂移补偿训练所用气体相匹配的第k1st个自组织神经网络的各个神经元

Figure BDA0000104591570000103
(取k=k1st,若k1st=k2nd则k1st和k2nd表示同一个自组织神经网络),直接利用当前时刻气体传感器阵列对漂移补偿训练所采用气体检测得到的实际电信号输出阵列Xts(t)与该神经元在此前一时刻的值
Figure BDA0000104591570000104
(取k=k1st)之差进行a倍比例的漂移补偿,使得当前时刻的神经元
Figure BDA0000104591570000105
(取k=k1st)趋近于Xts(t)。①At the current moment, each neuron of the k 1st self-organizing neural network that matches the gas used for drift compensation training at the current moment
Figure BDA0000104591570000103
(take k=k 1st , if k 1st =k 2nd then k 1st and k 2nd represent the same self-organizing neural network), directly use the gas sensor array at the current moment to output the actual electrical signal output array obtained by the gas detection used in the drift compensation training X ts (t) and the value of the neuron at the previous moment
Figure BDA0000104591570000104
(take k=k 1st ) difference to perform a drift compensation in proportion to a times, so that the neuron at the current moment
Figure BDA0000104591570000105
(taking k=k 1st ) approaches X ts (t).

②对于k1st≠k2nd的情况,第k2nd个自组织神经网络就是与当前时刻漂移补偿训练所采用气体的敏感特征相关性最大的一个自组织神经网络,也就是说,电子鼻的气体传感器阵列对漂移补偿训练所采用气体的敏感特征以及对第k2nd个自组织神经网络所匹配的气体的敏感特征存在相当高的相关性,若电子鼻对当前时刻漂移补偿训练所采用气体的检测发生了漂移,则意味着电子鼻对第k2nd个自组织神经网络匹配的气体检测也相应地存在漂移情况;同时,k1st≠k2nd也就意味着电子鼻在当前时刻检测漂移补偿训练所采用气体的漂移程度较大,因此如果电子鼻在当前时刻检测第k2nd个自组织神经网络匹配的气体也必然存在较大的漂移量;综合这两方面因素考虑,因此需要对当前时刻第k2nd个自组织神经网络的各个神经元进行幅度较大的漂移补偿,以对其程度较大的漂移加以抑制。通过上述式(5)所述的漂移补偿过程可见,在当前时刻对第k2nd个自组织神经网络的各个神经元

Figure BDA0000104591570000106
(取k=k2nd)的漂移补偿为:②For the case of k 1st ≠ k 2nd , the k 2nd self-organizing neural network is the self-organizing neural network most correlated with the sensitive characteristics of the gas used for drift compensation training at the current moment, that is to say, the gas sensor of the electronic nose The array has a high correlation between the sensitive characteristics of the gas used in the drift compensation training and the sensitive characteristics of the gas matched by the k 2nd self-organizing neural network. If the detection of the gas used in the current drift compensation training by the electronic nose occurs If there is no drift, it means that the electronic nose also drifts correspondingly to the gas detection matched by the k 2nd self-organizing neural network; at the same time, k 1st ≠ k 2nd means that the electronic nose detects drift compensation training at the current moment. The degree of gas drift is relatively large, so if the electronic nose detects the gas matched by the k 2nd self-organizing neural network at the current moment, there must be a large amount of drift; considering these two factors, it is necessary to analyze the current k 2nd Each neuron of a self-organizing neural network performs large-scale drift compensation to suppress its large-scale drift. Through the drift compensation process described in the above formula (5), it can be seen that at the current moment, each neuron of the k 2nd self-organizing neural network
Figure BDA0000104591570000106
(taking k=k 2nd ) the drift compensation is:

Figure BDA0000104591570000107
取k=k2nd
Figure BDA0000104591570000107
Take k=k 2nd ;

式(6);Formula (6);

由于当前时刻补偿增量阵列ΔW(t)的大小是由当前时刻电子鼻气体传感器阵列的电信号输出阵列Xts(t)的归一化值与匹配获胜自组织神经网络序号k1st对应的此前一时刻(t-1)样本缓存矩阵

Figure BDA0000104591570000111
中第k1st个缓存阵列的归一化值之差而决定的,体现了当前时刻气体传感器阵列的对检测漂移补偿训练所采用气体的漂移程度,因此式(6)中采用了当前时刻的补偿增量阵列ΔW(t)进行b倍比例的漂移补偿;同时,又考虑到第k2nd个自组织神经网络的神经元
Figure BDA0000104591570000112
(取k=k2nd)与当前时刻漂移补偿训练所采用气体的敏感特征相关性,因此式(6)中采用了当前时刻电子鼻气体传感器阵列的电信号输出阵列Xts(t)对神经元(取k=k2nd)的漂移补偿进行了a倍比例的修正。Since the size of the compensation increment array ΔW(t) at the current moment is determined by the normalized value of the electrical signal output array X ts (t) of the electronic nose gas sensor array at the current moment and the matching winning self-organizing neural network serial number k 1st corresponding to the previous One-time (t-1) sample buffer matrix
Figure BDA0000104591570000111
It is determined by the difference of the normalized value of the k 1st cache array in the current moment, which reflects the drift degree of the gas sensor array used in the detection drift compensation training at the current moment. Therefore, the compensation at the current moment is used in formula (6) Incremental array ΔW(t) performs b-fold drift compensation; at the same time, taking into account the neuron of the k 2nd self-organizing neural network
Figure BDA0000104591570000112
(taking k=k 2nd ) is correlated with the sensitive characteristics of the gas used in drift compensation training at the current moment, so the electrical signal output array X ts (t) of the electronic nose gas sensor array at the current moment is used in the formula (6) to affect the neuron (taking k=k 2nd ) the drift compensation is corrected by a times ratio.

③对于上述两种情况之外的自组织神经网络的各个神经元

Figure BDA0000104591570000114
(取k=1,2,…,K且k≠k1st或k2nd),在当前时刻,为了使得神经元
Figure BDA0000104591570000115
(取k=1,2,…,K且k≠k1st或k2nd)中与对漂移补偿训练所采用气体比较敏感并且存在检测漂移的特征电信号值都得以较适量的漂移抑制补偿,因此利用当前时刻的补偿增量阵列ΔW(t)进行b倍比例的漂移补偿;如此补偿的原理在于,由于有:③ For each neuron of the self-organizing neural network other than the above two cases
Figure BDA0000104591570000114
(take k=1, 2, ..., K and k≠k 1st or k 2nd ), at the current moment, in order to make the neuron
Figure BDA0000104591570000115
(take k=1, 2,..., K and k≠k 1st or k 2nd ) and the characteristic electrical signal values that are more sensitive to the gas used in the drift compensation training and have detection drift can be compensated by a relatively appropriate amount of drift suppression, so Utilize the compensation incremental array ΔW(t) at the current moment to perform b-fold drift compensation; the principle of such compensation is that, due to:

Figure BDA0000104591570000116
Figure BDA0000104591570000116

其中,Δw1(t),Δw2(t),…,Δw2(t)分别为补偿增量阵列ΔW(t)的i个元素,且有:Among them, Δw 1 (t), Δw 2 (t), ..., Δw 2 (t) are the i elements of the compensation incremental array ΔW(t), and there are:

Xts(t)=[xts,1(t),xts,2(t),…,xts,i(t)],X ts (t) = [x ts, 1 (t), x ts, 2 (t), ..., x ts, i (t)],

Xx kk 11 stst (( tt -- 11 )) == [[ xx 11 kk 11 stst (( tt -- 11 )) ,, xx 22 kk 11 stst (( tt -- 11 )) ,, .. .. .. ,, xx ii kk 11 stst (( tt -- 11 )) ]] ;;

分别为缓存阵列Xk1st(t-1)的i个元素,它们的值分别等于此前一时刻(t-1)第k1st个自组织神经网络的神经元均值中心的i个特征电信号值;因此有: Be respectively the i elements of the buffer array X k1st (t-1), and their values are respectively equal to the i characteristic electrical signal values of the neuron mean value center of the k 1st self-organizing neural network at the previous moment (t-1); So there are:

Figure BDA0000104591570000119
Figure BDA0000104591570000119

Figure BDA00001045915700001110
Figure BDA00001045915700001110

Figure BDA00001045915700001111
Figure BDA00001045915700001111

式(7);Formula (7);

式(7)中,

Figure BDA00001045915700001112
分别表示xts,1(t),xts,2(t),…,xts,i(t)被归一化过后的值,
Figure BDA00001045915700001113
分别表示被归一化过后的值。如果气体传感器阵列中第p个气体传感器(p∈1,2,…,i)对于当前时刻漂移补偿训练所用气体的敏感度非常低,导致第p个气体传感器对应的
Figure BDA0000104591570000121
Figure BDA0000104591570000122
的值都逼近0,则从式(7)可以看到,
Figure BDA0000104591570000123
的值必将逼近0;如果气体传感器阵列中第q个气体传感器(q∈1,2,…,i)对于当前时刻漂移补偿训练所用气体的检测并未发生漂移,则有
Figure BDA0000104591570000124
因此的值也必将逼近0。所以,当前时刻的补偿增量阵列ΔW(t)的i个元素Δw1(t),Δw2(t),…,Δw2(t)之中,只有对于当前时刻漂移补偿训练所用气体较为敏感并且存在检测漂移的那些元素值不为零,因此利用当前时刻的补偿增量阵列ΔW(t)进行b倍比例的漂移补偿,能够使得当前时刻其它自组织神经网络的神经元
Figure BDA0000104591570000126
(取k=1,2,…,K且k≠k1st或k2nd)的i个特征电信号值中对于漂移补偿训练所采用气体比较敏感并且存在检测漂移的特征电信号值都得以较适量的漂移抑制补偿,让神经元
Figure BDA0000104591570000127
(取k=1,2,…,K且k≠k1st或k2nd)中得到漂移补偿的特征电信号值趋于接近气体传感器检测其匹配气体时的实际电信号输出值,从而让上述两种情况之外的自组织神经网络的各个神经元
Figure BDA0000104591570000128
(取k=1,2,…,K且k≠k1st或k2nd)也能取得相应的漂移抑制效果。In formula (7),
Figure BDA00001045915700001112
Represent x ts, 1 (t), x ts, 2 (t), ..., x ts, i (t) are normalized values,
Figure BDA00001045915700001113
Respectively Normalized value. If the pth gas sensor (p ∈ 1, 2, ..., i) in the gas sensor array has a very low sensitivity to the gas used for drift compensation training at the current moment, resulting in the pth gas sensor corresponding to
Figure BDA0000104591570000121
and
Figure BDA0000104591570000122
The values are all close to 0, then it can be seen from formula (7),
Figure BDA0000104591570000123
The value of must be close to 0; if the qth gas sensor (q∈1, 2, ..., i) in the gas sensor array does not drift in the detection of the gas used for drift compensation training at the current moment, then there is
Figure BDA0000104591570000124
therefore The value of will also be close to 0. Therefore, among the i elements Δw 1 (t), Δw 2 (t), ..., Δw 2 (t) of the compensation increment array ΔW(t) at the current moment, only the gas used for drift compensation training at the current moment is more sensitive And the value of those elements that detect drift is not zero, so using the compensation increment array ΔW(t) at the current moment to perform b-fold drift compensation can make the neurons of other self-organizing neural networks at the current moment
Figure BDA0000104591570000126
(take k=1, 2, ..., K and k≠k 1st or k 2nd ) among the i characteristic electric signal values, the characteristic electric signal values that are more sensitive to the gas used in the drift compensation training and have detection drift can be compared. compensation for drift inhibition, allowing neurons
Figure BDA0000104591570000127
(take k=1, 2, ..., K and k≠k 1st or k 2nd ) the characteristic electrical signal value obtained by drift compensation tends to be close to the actual electrical signal output value when the gas sensor detects its matching gas, so that the above two Each neuron of the self-organizing neural network other than this case
Figure BDA0000104591570000128
(k=1, 2, . . . , K and k≠k 1st or k 2nd ) can also achieve a corresponding drift suppression effect.

b5)按照下式对样本缓存矩阵

Figure BDA0000104591570000129
中各个缓存阵列的取值进行迭代更新:b5) According to the following formula, the sample cache matrix
Figure BDA0000104591570000129
The value of each cache array in is updated iteratively:

Figure BDA00001045915700001210
式(8);
Figure BDA00001045915700001210
Formula (8);

式(8)中,Xk(t)表示当前时刻样本缓存矩阵中的第k个缓存阵列;Xk(t-1)表示在此前一时刻(t-1)样本缓存矩阵中的第k个缓存阵列,

Figure BDA00001045915700001213
表示取所述缓存阵列Xk(t-1)的归一化值。In formula (8), X k (t) represents the sample buffer matrix at the current moment The k-th cache array in ; X k (t-1) represents the sample cache matrix at the previous moment (t-1) The kth cache array in ,
Figure BDA00001045915700001213
Indicates that the normalized value of the cache array X k (t-1) is taken.

式(8)相当于对样本缓存矩阵

Figure BDA00001045915700001214
中的各个缓存阵列都以当前时刻的补偿增量阵列ΔW(t)作为迭代增量进行迭代更新。至此,一次漂移补偿和迭代更新过程即得以完成。Equation (8) is equivalent to the sample cache matrix
Figure BDA00001045915700001214
Each cache array in is iteratively updated with the compensation increment array ΔW(t) at the current moment as the iteration increment. So far, a process of drift compensation and iterative update is completed.

C)循环执行步骤B),直至电子鼻终止漂移抑制工作。C) Step B) is executed cyclically until the electronic nose terminates the drift suppression work.

循环执行漂移抑制补偿步骤的间隔周期(或者说循环频率)可以根据实际的系统硬件情况和应用需求进行确定。如果系统硬件的处理性能非常好,则可以将系统时钟频率作为循环执行漂移抑制补偿步骤的循环频率;用户也可以根据实际应用情况,自定义设置循环执行漂移抑制补偿步骤的间隔周期,例如设置循环的间隔周期为0.5秒、10秒、5分钟、2小时……等等,或者设置执行一定次数的气体检测就循环执行一次漂移抑制补偿步骤;对于系统稳定性非常好、漂移情况不明显的电子鼻而言,甚至可以间隔数天循环执行一次漂移抑制补偿步骤。直至终止漂移抑制工作,则循环停止。The interval period (or cycle frequency) for cyclically executing the drift suppression and compensation step may be determined according to actual system hardware conditions and application requirements. If the processing performance of the system hardware is very good, the system clock frequency can be used as the cycle frequency for cyclic execution of the drift suppression compensation step; the user can also customize the interval period for the cyclic execution of the drift suppression compensation step according to the actual application situation, such as setting the cycle The interval period is 0.5 seconds, 10 seconds, 5 minutes, 2 hours, etc., or a certain number of gas detections is set to execute a drift suppression and compensation step in a cycle; for electronic devices with very good system stability and insignificant drift For noses, it is even possible to cycle through the drift suppression compensation steps several days apart. Until the drift suppression work is terminated, the cycle stops.

上述即为本发明基于多重自组织神经网络的电子鼻漂移抑制方法的具体步骤。The above are the specific steps of the electronic nose drift suppression method based on multiple self-organizing neural networks in the present invention.

值得特别注意的是,本发明方法漂移抑制补偿步骤的步骤b4)中通过式(4)或式(5)对电子鼻各个自组织神经网络各神经元的漂移补偿量,以及步骤b5)中通过式(8)对样本缓存矩阵各个缓存阵列的迭代更新增量,二者在数值上并不相等。这样处理的原因在于,如果在某时刻的漂移抑制补偿过程中出现些特殊因素,导致步骤b2)获取的电信号输出阵列Xts(t)出现偶然的检测误差,但由于步骤b4)中通过式(4)或式(5)对电子鼻各个自组织神经网络各神经元的漂移补偿量已经将Xts(t)或ΔW(t)进行了a倍或b倍比例的缩小,因此Xts(t)出现的偶然检测误差并不会完全、直接的体现在该时刻漂移补偿后的电子鼻各个自组织神经网络神经元之中;同时,步骤b5)中通过式(8)对样本缓存矩阵各个缓存阵列的迭代更新增量为ΔW(t),即使得Xts(t)出现的偶然检测误差直接体现在样本缓存矩阵

Figure BDA0000104591570000131
的各个缓存阵列之中,这样有利于在此后一时刻的漂移抑制补偿过程中,通过对此后一时刻补偿增量阵列ΔW(t+1)的更新,将Xts(t)出现的偶然检测误差再即时的补偿回来,从而避免了Xts(t)出现的偶然检测误差在循环执行漂移抑制补偿步骤的过程中长期存在或误差累积。本发明正是通过这一措施来增强基于多重自组织神经网络的电子鼻漂移抑制方法的鲁棒性能,同时,也正是因为本发明的电子鼻漂移抑制方法具有良好的鲁棒性能,才使得本发明方法能够应用到电子鼻的气体检测过程中,将作为检测对象的气体同时作为漂移补偿训练气体样本使用,在电子鼻进行气体检测的同时即进行漂移抑制操作,不必要担心电子鼻在检测过程中因偶然因素出现检测误差而导致该误差遗留在漂移抑制流程当中影响漂移抑制性能。It is worth noting that in the step b4) of the drift suppression compensation step of the method of the present invention, the drift compensation amount of each neuron in each self-organizing neural network of the electronic nose is calculated by formula (4) or formula (5), and in step b5) by Equation (8) is an iterative update increment for each cache array of the sample cache matrix, and the two are not equal in value. The reason for this treatment is that if some special factors appear in the drift suppression and compensation process at a certain moment, the electric signal output array X ts (t) obtained in step b2) has occasional detection errors, but due to the step b4) through the formula (4) or formula (5) has reduced X ts (t) or ΔW(t) by a or b times for the drift compensation of each neuron in each self-organizing neural network of the electronic nose, so X ts ( t) The occasional detection error that appears will not be completely and directly reflected in each self-organizing neural network neuron of the electronic nose after drift compensation at this moment; at the same time, in step b5) through the formula (8) for each sample buffer matrix The iterative update increment of the cache array is ΔW(t), that is, the occasional detection error in X ts (t) is directly reflected in the sample cache matrix
Figure BDA0000104591570000131
Among the various buffer arrays, it is beneficial to update the compensation increment array ΔW(t+1) at the next moment during the drift suppression compensation process at the next moment, and the accidental detection error that occurs in X ts (t) Then it is compensated back immediately, thereby avoiding the long-term existence or error accumulation of the occasional detection error in X ts (t) in the process of cyclic execution of the drift suppression compensation step. The present invention just enhances the robust performance of the electronic nose drift suppression method based on multiple self-organizing neural networks through this measure, and at the same time, it is precisely because the electronic nose drift suppression method of the present invention has good robust performance that it makes The method of the present invention can be applied to the gas detection process of the electronic nose, and the gas as the detection object is used as a drift compensation training gas sample at the same time, and the drift suppression operation is performed while the electronic nose is performing gas detection, and there is no need to worry about the electronic nose being detected. The detection error occurs due to accidental factors in the process, and the error is left in the drift suppression process and affects the drift suppression performance.

另一方面,在本发明方法步骤b4)对各个自组织神经网络中各个神经元的漂移补偿中以及步骤b5)对样本缓存矩阵

Figure BDA0000104591570000132
中各个缓存阵列的取值的迭代更新中都取了运算参数的归一化值,这是因为进行漂移抑制补偿过程中所采用的气体样本可能浓度各有不同,气体传感器阵列对于不同浓度的同种气体样本其检测电信号输出阵列值也会存在差异,而归一化能够消除气体样本浓度引起的检测差异,并且保留气体传感器阵列对气体样本的敏感体征,因此可以避免电子鼻在漂移抑制补偿过程中将气体样本浓度的不同将之误判为检测漂移而错误的进行漂移补偿,同时也相应地增强了电子鼻识别不同气体的抗干扰能力。取归一化值的具体运算方式有很多,不同的本领域技术人员在不同的应用场合,可以根据其技术习惯或实际情况的需要而采用不同的归一化算法。On the other hand, in step b4) of the method of the present invention, in the drift compensation of each neuron in each self-organizing neural network and in step b5) for the sample cache matrix
Figure BDA0000104591570000132
In the iterative update of the value of each buffer array in the method, the normalized value of the operation parameter is taken. This is because the gas samples used in the process of drift suppression and compensation may have different concentrations. There will also be differences in the detection electrical signal output array value of different gas samples, and normalization can eliminate the detection difference caused by the gas sample concentration, and retain the sensitive signs of the gas sensor array to the gas sample, so it can avoid the drift suppression compensation of the electronic nose. In the process, the difference in the concentration of the gas sample is misjudged as the detection drift and the drift compensation is wrongly performed. At the same time, the anti-interference ability of the electronic nose to identify different gases is correspondingly enhanced. There are many specific calculation methods for obtaining the normalized value, and different persons skilled in the art may use different normalization algorithms according to their technical habits or actual needs in different application occasions.

三、实验效果验证。3. Experimental effect verification.

下面结合附图和实施例对本发明的技术方案作进一步的说明。The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and embodiments.

为了验证本发明方法的实际效果,采用自行搭建的电子鼻测试平台进行试验。自行搭建的电子鼻测试平台如图2所示。实验所采用的电子鼻由气体传感器阵列4和计算机5构成;本次实验所采用的气体传感器阵列由四个金属氧化物气体传感器组成,分别为GSBT11、TGS2620、TGS2602和TGS2201,其中TGS2201内部集成了两个气体传感器,故相当于气体传感器阵列共包含有5个气体传感器(对应于本发明方法中,相当于取i=5);计算机充当电子鼻的信号预处理单元和模式识别单元两个部分,用于存储多重自组织神经网络的各个神经元,并执行数据采集和检测识别工作,本次试验中计算机所存储的多重自组织神经网络中共分为3个自组织神经网络(对应于本发明方法中,相当于取K=3),分别用于匹配洁净空气(作为基线数据的气体样本)、一氧化碳(CO)和甲醛(CH20)三类气体,计算机的数据采集模块采用12位串行AD芯片TLC2543,每次采集时间间隔设置约为1秒,采集到的数据通过串口传输到计算机中进行检测识别处理,检测识别处理软件采用MATLAB7.1。实验中,采用图2所示自行搭建的电子鼻测试平台,将被测的气体样本配制在气体采集袋1中,然后采用泵吸方式利用进气泵2将气体打入测试腔3中;电子鼻的气体传感器阵列4放置于测试腔3中,对气体进行检测,其信号输出阵列被计算机5采集并进行识别;最后,利用出气泵7排出测试腔3中的气体,并用阀门6对出气量加以控制。In order to verify the actual effect of the method of the present invention, a self-built electronic nose test platform is used for experiments. The self-built electronic nose test platform is shown in Figure 2. The electronic nose used in the experiment is composed of a gas sensor array 4 and a computer 5; the gas sensor array used in this experiment is composed of four metal oxide gas sensors, namely GSBT11, TGS2620, TGS2602 and TGS2201, of which TGS2201 integrates Two gas sensors, so it is equivalent to that the gas sensor array contains 5 gas sensors (corresponding to the method of the present invention, which is equivalent to getting i=5); the computer acts as two parts of the signal preprocessing unit and the pattern recognition unit of the electronic nose , used to store each neuron of multiple self-organizing neural networks, and perform data acquisition and detection and identification work. In this test, the multiple self-organizing neural networks stored by the computer are divided into 3 self-organizing neural networks (corresponding to the present invention) In the method, it is equivalent to taking K=3), which are respectively used to match clean air (gas sample as baseline data), carbon monoxide (CO) and formaldehyde (CH 2 0) three types of gases, and the data acquisition module of the computer adopts 12-bit string The AD chip TLC2543 is used, and the time interval of each acquisition is set to about 1 second. The collected data is transmitted to the computer through the serial port for detection and identification processing. The detection and identification processing software adopts MATLAB7.1. In the experiment, the self-built electronic nose test platform shown in Figure 2 was used to prepare the gas samples to be tested in the gas collection bag 1, and then pump the gas into the test chamber 3 with the intake pump 2; the electronic nose The gas sensor array 4 is placed in the test chamber 3 to detect the gas, and its signal output array is collected and identified by the computer 5; finally, the gas in the test chamber 3 is discharged by the gas outlet pump 7, and the gas output is adjusted by the valve 6. control.

本次实验中,采用上述自行搭建的电子鼻测试平台,在一个月的时间内分别利用现有MSOM漂移补偿训练方法和本发明方法各自进行了50次气体样本测试,该50次测试所针对的测试气体样本按顺序分别为:针对一氧化碳(CO)测试10次,针对甲醛(CH2O)测试15次,再针对一氧化碳(CO)测试25次;每次测试,先利用洁净空气采集基线数据50个,再利用测试气体样本采集测试数据100个,即每次测试共采集气体传感器矩阵的电信号输出阵列数据150个;每一个电信号输出阵列包含有5个电信号输出值,即电子鼻气体传感器阵列中5个气体传感器的电信号输出值。因此,本次实验中共测试获得电信号输出阵列数据7500个,第1~1500个为针对CO气体样本的电信号输出阵列数据(包含500个基线数据),第1501~3750个为针对CH2O气体样本的电信号输出阵列数据(包含750个基线数据),第3751~7500个为针对CO气体样本的电信号输出阵列数据(包含1250个基线数据)。在采用本发明方法的测试中,所取的补偿比例系数a=0.3,补偿增量系数b=0.2,所采用的归一化运算公式为:In this experiment, using the self-built electronic nose test platform mentioned above, the existing MSOM drift compensation training method and the method of the present invention were used to carry out 50 gas sample tests respectively within one month. The 50 tests were aimed at The test gas samples were tested in sequence: 10 times for carbon monoxide (CO), 15 times for formaldehyde (CH 2 O), and 25 times for carbon monoxide (CO). For each test, clean air was used to collect baseline data 50 times. 1, and then use the test gas sample to collect 100 test data, that is, each test collects 150 electrical signal output array data of the gas sensor matrix; each electrical signal output array contains 5 electrical signal output values, that is, the electronic nose gas The electrical signal output values of the 5 gas sensors in the sensor array. Therefore, a total of 7,500 electrical signal output array data were obtained in this experiment, the 1st to 1500th are electrical signal output array data for CO gas samples (including 500 baseline data), and the 1501st to 3750th are for CH 2 O The electrical signal output array data of the gas sample (including 750 baseline data), and the 3751st to 7500th are the electrical signal output array data (including 1250 baseline data) of the CO gas sample. In the test that adopts the inventive method, the compensation proportional coefficient a=0.3 of taking, the compensation increment coefficient b=0.2, the normalized computing formula that adopts is:

其中,符号

Figure BDA0000104591570000152
表示取归一化值;F表示包含i个元素的任意阵列,i表示电子鼻气体传感器阵列中气体传感器的个数;f1,f2,…,fi分别表示所述阵列F包含的i个元素。针对本次试验而言,所用电子鼻的多重自组织神经网络中共包含3个自组织神经网络,因此取i=3。Among them, the symbol
Figure BDA0000104591570000152
Indicates the normalized value; F represents any array containing i elements, and i represents the number of gas sensors in the electronic nose gas sensor array; f 1 , f 2 ,..., f i represent the i elements. For this experiment, the multiple self-organizing neural network of the electronic nose contains 3 self-organizing neural networks, so i=3 is taken.

最后,利用现有MSOM漂移补偿训练方法和本发明方法各进行上述50次气体样本测试分别获得的检测识别结果如表1所示:Finally, the detection and recognition results obtained by using the existing MSOM drift compensation training method and the method of the present invention to perform the above-mentioned 50 gas sample tests respectively are shown in Table 1:

表1Table 1

Figure BDA0000104591570000153
Figure BDA0000104591570000153

采用现有MSOM漂移补偿训练方法进行的50次测试中,对于第1~3750个测试数据(前面的10次针对CO气体样本的测试数据和15次针对CH2O气体样本的测试数据)的识别效果好,识别准确率均为100%,但从第3751个测试数据开始(即最后25次针对CO气体样本的测试数据),电子鼻仅能够正确识别基线数据,而对于CO气体样本的测试则全部识别错误,因此识别准确率仅为33%,相当于对CO气体样本的识别准确率为0%。其原因是在于,在针对CH2O气体样本进行测试的第1501~3750个测试数据期间,MSOM漂移补偿训练方法并没有对对CO气体样本所匹配的自组织神经网络中的神经元进行漂移补偿,然而气体传感器矩阵对于CO气体和CH2O气体的敏感特征相关性较大,在针对CH2O气体样本进行测试的期间所导致的气体传感器的老化也会相关地影响其对CO气体的检测,使得气体传感器阵列检测CO气体样本的电信号输出阵列值发生漂移,导致了最后25次针对CO气体样本测试的识别错误。这也应证了本发明对现有MSOM漂移补偿训练方法的局限性分析。Among the 50 tests carried out using the existing MSOM drift compensation training method, the identification of the first to 3750 test data (the previous 10 test data for CO gas samples and 15 test data for CH 2 O gas samples) The effect is good, and the recognition accuracy rate is 100%. However, starting from the 3751st test data (that is, the last 25 test data for CO gas samples), the electronic nose can only correctly identify the baseline data, while the test for CO gas samples does not All the identifications are wrong, so the identification accuracy rate is only 33%, which is equivalent to 0% identification accuracy rate for CO gas samples. The reason is that during the 1501st to 3750th test data period of the CH 2 O gas sample test, the MSOM drift compensation training method did not perform drift compensation for the neurons in the self-organizing neural network that matched the CO gas sample , however, the gas sensor matrix is highly correlated with the sensitive characteristics of CO gas and CH 2 O gas, and the aging of the gas sensor caused during the test for CH 2 O gas samples will also correlately affect its detection of CO gas , so that the electrical signal output array value of the gas sensor array detecting the CO gas sample drifted, resulting in the last 25 identification errors for the CO gas sample test. This also proves the limitation analysis of the present invention to the existing MSOM drift compensation training method.

而采用本发明方法进行的50次测试中,由于本发明方法具有针对敏感相关性神经元进行漂移补偿的特性,使得电子鼻经漂移抑制补偿后依然能够保持良好的识别性能,因此电子鼻在最后25次针对CO气体样本测试的识别率依然能够达到100%。通过上述对比可见,本发明基于多重自组织神经网络的电子鼻漂移抑制方法相比较于现有的MSOM漂移补偿训练方法而言,对电子鼻的漂移补偿执行效率和识别性能都有加大幅度的提高。In the 50 tests carried out by the method of the present invention, since the method of the present invention has the characteristics of drift compensation for sensitive correlation neurons, the electronic nose can still maintain good recognition performance after drift suppression compensation, so the electronic nose is at the end. The recognition rate of 25 CO gas sample tests can still reach 100%. It can be seen from the above comparison that, compared with the existing MSOM drift compensation training method, the electronic nose drift suppression method based on the multiple self-organizing neural network of the present invention has significantly increased the implementation efficiency and recognition performance of the drift compensation of the electronic nose. improve.

最后说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的宗旨和范围,其均应涵盖在本发明的权利要求范围当中。Finally, it is noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be carried out Modifications or equivalent replacements without departing from the spirit and scope of the technical solution of the present invention shall be covered by the claims of the present invention.

Claims (2)

1. An electronic nose drift suppression method based on a multiple self-organizing neural network is characterized by comprising the following steps:
A) an initialization step, which specifically comprises:
a1) establishing a sample cache matrix X ~ Rct ( t ) = { X 1 ( t ) , X 2 ( t ) , &CenterDot; &CenterDot; &CenterDot; , X K ( t ) } ; Wherein, Xk(t) is a cache array containing i elements, K belongs to {1,2, …, K }, K represents the number of the self-organizing neural networks of the electronic nose, i represents the number of the gas sensors in the gas sensor array of the electronic nose, and t represents the time;
a2) initialization time t = 0;
a3) at the current time, the sample buffer matrix
Figure FDA0000366026230000012
The values of each cache array in the cache memory are as follows:
X k ( t ) = 1 M k &Sigma; m = 1 M k W m k ( t ) , k = 1,2 , &CenterDot; &CenterDot; &CenterDot; , K ;
wherein,
Figure FDA0000366026230000014
represents the mth neuron in the kth self-organizing neural network of the electronic nose at the current moment,
Figure FDA0000366026230000015
then the neuron is represented
Figure FDA0000366026230000016
I characteristic electrical signal values of MkRepresenting the number of neurons in the kth self-organizing neural network of the electronic nose;
B) a drift suppression compensation step; the method specifically comprises the following steps:
b1) adding 1 at the time t;
b2) electric signal output array X for acquiring electronic nose gas sensor array at current momentts(t):
Xts(t)=[xts,1(t),xts,2(t),…,xts,i(t)];
Wherein x ists,1(t),xts,2(t),…,xts,i(t) represents the electrical signal output values of i gas sensors in the electronic nose gas sensor array at the current moment;
b3) calculating the matching winning self-organizing neural network sequence number k1stAnd matching the number k of the winning self-organizing neural network2nd
Figure FDA0000366026230000017
Wherein,
Figure FDA0000366026230000019
represents the mth neuron in the kth self-organizing neural network of the electronic nose at the previous time (t-1); symbol [ 2 ]]]Expressed as normalized value, [ [ X ]ts(t)]]And are and
Figure FDA00003660262300000110
respectively representing the output arrays X for taking the electric signalsts(t) normalizing value and taking said neuron
Figure FDA00003660262300000111
A normalized value of (d);
Figure FDA00003660262300000112
is represented by [ [ X ]ts(t)]]And
Figure FDA0000366026230000021
the Euclidean distance of;
Figure FDA0000366026230000022
express get
Figure FDA00003660262300000220
And
Figure FDA0000366026230000023
is in all K e {1,2, …, K } and M e {1,2, …, M ∈kThe minimum value of the cases (c) is,
Figure FDA0000366026230000024
express get
Figure FDA00003660262300000221
And
Figure FDA0000366026230000025
is in all K e {1,2, …, K } and M e {1,2, …, M ∈kIn the case of only more than
Figure FDA0000366026230000026
The secondary minimum of (d);
b4) if k is1st=k2ndAnd performing drift compensation on each neuron in each self-organizing neural network of the electronic nose according to the following formula:
Figure FDA0000366026230000027
if k is1st≠k2ndAnd then carrying out drift compensation on each neuron in each self-organizing neural network of the electronic nose according to the following formula:
Figure FDA0000366026230000028
wherein,
Figure FDA0000366026230000029
representing the mth neuron in the kth self-organizing neural network of the electronic nose at the current moment; Δ W (t) represents the compensation increment array at the current time, and &Delta;W ( t ) = [ [ X ts ( t ) ] ] - [ [ X k 1 st ( t - 1 ) ] ] ,
Figure FDA00003660262300000211
indicating the sample buffer matrix at the previous time (t-1)
Figure FDA00003660262300000212
Middle (k) th1stA plurality of cache memory arrays, each of which is provided with a cache memory array,
Figure FDA00003660262300000213
representing fetching of the cache array
Figure FDA00003660262300000214
A normalized value of (d); a is a compensation proportionality coefficient with a value range of 0<a is less than or equal to 0.5; b is a compensation increment coefficient with a value range of 0<b≤0.5;
b5) Buffering the samples with a matrix according to
Figure FDA00003660262300000215
And carrying out iterative update on the values of each cache array:
X k ( t ) = [ [ X ts ( t ) ] ] , k = k 1 st [ [ X k ( t - 1 ) ] ] + &Delta;W ( t ) , k &NotEqual; k 1 st ;
wherein, Xk(t) sample buffer matrix at current time
Figure FDA00003660262300000217
The kth cache array of (1); xk(t-1) represents the sample buffer matrix at the previous time instant (t-1)The kth cache array of [ [ X ]k(t-1)]]Representing fetching of the cache array XkA normalized value of (t-1);
C) and B) circularly executing the step B) until the electronic nose stops the drift suppression work.
2. The method for suppressing drift of an electronic nose based on multiple self-organizing neural networks as claimed in claim 1, wherein the symbol [ ] ] represents a specific operation formula taking a normalized value as follows:
[ [ F ] ] = F ( f 1 ) 2 + ( f 1 ) 2 + &CenterDot; &CenterDot; &CenterDot; + ( f i ) 2 ;
where F represents an arbitrary array containing i elements, and F1,f2,…,fiRepresenting the i elements that the array F contains.
CN2011103405966A 2011-11-01 2011-11-01 Drift rejection method of electronic nose based on multiple self-organizing neural networks Expired - Fee Related CN102507677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103405966A CN102507677B (en) 2011-11-01 2011-11-01 Drift rejection method of electronic nose based on multiple self-organizing neural networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103405966A CN102507677B (en) 2011-11-01 2011-11-01 Drift rejection method of electronic nose based on multiple self-organizing neural networks

Publications (2)

Publication Number Publication Date
CN102507677A CN102507677A (en) 2012-06-20
CN102507677B true CN102507677B (en) 2013-12-04

Family

ID=46219784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103405966A Expired - Fee Related CN102507677B (en) 2011-11-01 2011-11-01 Drift rejection method of electronic nose based on multiple self-organizing neural networks

Country Status (1)

Country Link
CN (1) CN102507677B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104833777A (en) * 2015-05-11 2015-08-12 重庆大学 On-line gas sensor drifting correction method based on internet of things and mobile robot
CN105891422B (en) * 2016-04-08 2017-08-25 重庆大学 The electronic nose Gas Distinguishing Method that the limit learns drift compensation is migrated based on source domain
CN106295708B (en) * 2016-08-19 2019-07-19 重庆大学 A Continuous Data Preprocessing Method Based on Fisher Classifier Group
CN111044683B (en) * 2019-12-25 2021-05-18 华中科技大学 A gas recognition method capable of innate recognition and acquired training and its application
CN117195076A (en) * 2023-09-18 2023-12-08 广东省农业科学院设施农业研究所 Tea classification method, system and storage medium based on electronic nose and temperature compensation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7129095B2 (en) * 2002-03-29 2006-10-31 Smiths Detection Inc. Method and system for using a weighted response
CN1381721A (en) * 2002-06-04 2002-11-27 复旦大学 Portable intelligent electronic nose and its preparing process

Also Published As

Publication number Publication date
CN102507677A (en) 2012-06-20

Similar Documents

Publication Publication Date Title
CN102507676B (en) On-line drift compensation method of electronic nose based on multiple self-organizing neural networks
CN102507677B (en) Drift rejection method of electronic nose based on multiple self-organizing neural networks
CN103488941B (en) Hardware Trojan horse detection method and system
CN110146642B (en) A method and device for odor analysis
CN104237456A (en) Concentration measurements with a mobile device
CN104792826A (en) System and method for detecting milk freshness based on electronic nose
CN105223240A (en) A kind of method utilizing detection by electronic nose crab freshness
CN106053551A (en) Multi-channel multi-type sensor capability test system
CN205898730U (en) Multichannel polytypic sensor capability test system
CN103892830A (en) Emotion detection method and system based on human skin resistance changes
CN114113471A (en) Method and system for detecting food freshness of artificial nose refrigerator based on machine learning
CN107132311A (en) A kind of fast gas recognizer extracted based on frequency domain character
CN108398533A (en) Electric nasus system and its air source discriminating in storage and localization method
CN117805317A (en) A multi-component gas detection method and device based on electronic nose system
CN104915563B (en) The chronic reference prediction method of fresh water based on metal quantitative structure activity relationship
CN109406588A (en) Soil nitrate-N multi-parameter detecting method and instrument based on ion selective electrode
Kanade et al. Development of an E-Nose using metal oxide semiconductor sensors for the classification of climacteric fruits
CN107121530B (en) The electronic nose response spectra feature extracting method that a kind of part and global characteristics combine
CN113948203A (en) Fast prediction method based on convolutional neural network
CN109239207A (en) Odor identification method, apparatus and electric nasus system based on electronic nose
S Subramani et al. Classification learning assisted biosensor data analysis for preemptive plant disease detection
US20230121903A1 (en) Device and analysis method for appreciating and identifying smells
CN109145403A (en) A kind of near infrared spectrum modeling method based on sample common recognition
Lu et al. Application of electronic nose technology in the detection of wheat quality
CN119479856B (en) A source apportionment method for per- and polyfluorinated compounds in surface water

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131204

Termination date: 20141101

EXPY Termination of patent right or utility model