[go: up one dir, main page]

CN105651952A - Method for improving quality detection precision of linseed oil - Google Patents

Method for improving quality detection precision of linseed oil Download PDF

Info

Publication number
CN105651952A
CN105651952A CN201610207797.1A CN201610207797A CN105651952A CN 105651952 A CN105651952 A CN 105651952A CN 201610207797 A CN201610207797 A CN 201610207797A CN 105651952 A CN105651952 A CN 105651952A
Authority
CN
China
Prior art keywords
linseed oil
gas
data
detection device
oil quality
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.)
Granted
Application number
CN201610207797.1A
Other languages
Chinese (zh)
Other versions
CN105651952B (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.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
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 Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN201610207797.1A priority Critical patent/CN105651952B/en
Publication of CN105651952A publication Critical patent/CN105651952A/en
Application granted granted Critical
Publication of CN105651952B publication Critical patent/CN105651952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/02Food
    • G01N33/03Edible oils or edible fats

Landscapes

  • Engineering & Computer Science (AREA)
  • Food Science & Technology (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Medicinal Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Or Analyzing Materials By The Use Of Fluid Adsorption Or Reactions (AREA)

Abstract

本发明公开了一种提高亚麻籽油品质检测精度的方法,包括以下步骤:(1)通过进气装置将待测亚麻籽油挥发为待测气体并将该待测气体输入至检测装置;(2)检测装置通过气体传感器阵列对待测气体进行采集获取传感器数据并将该传感器数据发送到识别系统;(3)识别系统将所采集的传感器数据与预先存储的模板数据进行识别匹配后得出亚麻籽油品质检测结果;其中,预先存储的模板数据通过特定训练算法进行处理。采用本发明的技术方案,通过采用多个气敏传感器来检测挥发的亚麻籽油气体,从而能够快速、准确的鉴定亚麻籽油的品质;同时通过对标准传感器数据进行特定算法处理,从而大大提高亚麻籽油品质检测的精度。

The invention discloses a method for improving the detection accuracy of linseed oil quality, comprising the following steps: (1) volatilizing the linseed oil to be tested into a gas to be tested through an air intake device and inputting the gas to be tested into a detection device; 2) The detection device collects the gas to be measured through the gas sensor array to obtain sensor data and sends the sensor data to the identification system; (3) The identification system identifies and matches the collected sensor data with the pre-stored template data to obtain the flax Seed oil quality inspection results; among them, the pre-stored template data is processed through a specific training algorithm. By adopting the technical solution of the present invention, by using multiple gas sensors to detect volatilized linseed oil gas, the quality of linseed oil can be quickly and accurately identified; at the same time, by performing specific algorithm processing on standard sensor data, thereby greatly improving Accuracy of linseed oil quality testing.

Description

一种提高亚麻籽油品质检测精度的方法A method for improving the detection accuracy of linseed oil quality

技术领域technical field

本发明属于油类电子检测技术领域,尤其涉及一种提高亚麻籽油品质检测精度的方法。The invention belongs to the technical field of oil electronic detection, and in particular relates to a method for improving the detection accuracy of linseed oil quality.

背景技术Background technique

亚麻籽油中含有大量的α-亚麻酸,食用冷榨亚麻籽油是补充亚麻酸的最有效方法。从健康饮食的角度考虑,亚麻籽油的功效与作用有很多。亚麻籽油有许多功用:使肌肤娇柔亮泽、减肥、改善女性经前综合症、提升抗压力、减轻过敏反应、减轻哮喘、改善关节炎、降低胆固醇、改善便秘、促进细胞健康、促进脑筋灵活等等。Flaxseed oil contains a large amount of α-linolenic acid, and eating cold-pressed flaxseed oil is the most effective way to supplement linolenic acid. From the perspective of healthy eating, flaxseed oil has many functions and functions. Flaxseed oil has many functions: make skin soft and bright, lose weight, improve women's premenstrual syndrome, improve anti-stress, reduce allergic reactions, relieve asthma, improve arthritis, lower cholesterol, improve constipation, promote cell health, and promote brain flexibility etc.

亚麻籽油香气物质种类和含量丰富,香气特征明显,不同亚麻品种和不同制备工艺的籽油香气品质明显不同。按照国家标准,亚麻籽油分为亚麻籽原油,压榨成品亚麻籽油和浸出成品亚麻籽油三类。压榨成品亚麻籽油又可分为一级和二级。浸出成品亚麻籽油又可分为一级、二级、三级和四级。The types and contents of aroma substances in linseed oil are rich, and the aroma characteristics are obvious. The aroma quality of seed oil of different flax varieties and different preparation processes is obviously different. According to national standards, linseed oil is divided into three categories: linseed crude oil, pressed linseed oil and leached linseed oil. Pressed linseed oil can be divided into primary and secondary. The leached finished linseed oil can be further divided into primary, secondary, tertiary and quaternary.

现在已经有很多的家庭都在开始食用亚麻籽油了,但是市场上的亚麻籽油品牌很多而且杂乱。在人们购买亚麻籽油时,亚麻籽油的品质就显得尤为重要。然而目前亚麻籽油的品质分类评定仍然主要是依靠感官评定的方法,鉴别结果也受到各方面因素的影响,包括鉴别者的年龄、经验、鉴别环境等。即便是经验丰富的鉴别师,也会有各种偶然因素的影响,对于一般的普通人来说鉴别能力更加难以预测;再加上如果需要对亚麻籽油进行大规模的分类,人工感官鉴别的方法就显得效率低下并且鉴别结果的可靠性得不到保障。Now many families are starting to consume flaxseed oil, but there are many brands of flaxseed oil on the market and they are messy. When people buy linseed oil, the quality of linseed oil is particularly important. However, the current quality classification and evaluation of linseed oil still mainly relies on the sensory evaluation method, and the identification results are also affected by various factors, including the age, experience, and identification environment of the examiner. Even an experienced appraiser will be affected by various accidental factors, and it is even more difficult to predict the identification ability of ordinary people; in addition, if a large-scale classification of linseed oil is required, the artificial sensory identification The method appears to be inefficient and the reliability of the identification result cannot be guaranteed.

现有技术在亚麻籽油质量的检测上,虽然手段多种多样,但均难以普遍应用于普通消费者。目前,最准确的亚麻籽油质量检测方法莫过于化学分析法,它能对亚麻籽油的成分进行定量定性的分析,直接通过成分的含量来判断样品中有害物质的含量以及是否纯度较高的高质量油,但是它的测试时间较长,所用仪器成本较高,往往只有在一些特殊的实验室中才能得以开展,难以在大众中推广。还有一些比较常用的检测方法如理化检测法,其主要是针对一些劣质油(如地沟油)中比正常的亚麻籽油有更高的酸值、碘值、更多的氧化产物、更多的金属离子等区别,运用色谱、比色等分析手段来判断亚麻籽油的质量,这种方法对二次利用的亚麻籽油检测有较高的准确率,检测时间也比较短,但是运用范围有很大的局限性。另外还有一些直接看外观、加普通试剂分离混合油的检测方法已经随着亚麻籽油掺假手法的高级化以及亚麻籽油压榨手法的不断改良而变得不再适用。Although the prior art has a variety of means in the detection of the quality of linseed oil, it is difficult to be generally applied to ordinary consumers. At present, the most accurate quality detection method of linseed oil is the chemical analysis method, which can quantitatively and qualitatively analyze the components of linseed oil, and directly judge the content of harmful substances in the sample and whether it is of high purity through the content of the components High-quality oil, but it takes a long time to test and the cost of the instruments used is high. It can only be carried out in some special laboratories, and it is difficult to promote it to the public. There are also some commonly used detection methods such as physical and chemical detection methods, which are mainly aimed at the higher acid value, iodine value, more oxidation products, and more in some inferior oils (such as waste oil) than normal linseed oil. The quality of linseed oil can be judged by analytical methods such as chromatography and colorimetry. This method has a high accuracy rate for the detection of secondary linseed oil, and the detection time is relatively short, but the scope of application There are significant limitations. In addition, there are some detection methods that directly look at the appearance and add common reagents to separate the mixed oil, which have become inapplicable with the advancement of linseed oil adulteration and the continuous improvement of linseed oil pressing techniques.

故,针对目前现有技术中存在的上述缺陷,实有必要进行研究,以提供一种方案,解决现有技术中存在的缺陷。Therefore, in view of the above-mentioned defects existing in the current prior art, it is necessary to conduct research to provide a solution to solve the defects existing in the prior art.

发明内容Contents of the invention

有鉴于此,确有必要提供一种提高亚麻籽油品质检测精度的方法,通过对标准传感器数据进行特定算法处理,从而大大提高亚麻籽油品质检测的精度。In view of this, it is indeed necessary to provide a method for improving the detection accuracy of linseed oil quality, by performing specific algorithm processing on standard sensor data, thereby greatly improving the detection accuracy of linseed oil quality.

为了克服现有技术存在的缺陷,本发明提供以下技术方案:In order to overcome the defects in the prior art, the present invention provides the following technical solutions:

一种提高亚麻籽油品质检测精度的方法,包括以下步骤:A method for improving the detection accuracy of linseed oil quality, comprising the following steps:

(1)通过进气装置将待测亚麻籽油挥发为待测气体并将该待测气体输入至检测装置;(1) volatilize the linseed oil to be tested into the gas to be tested through the air intake device and input the gas to be tested to the detection device;

(2)检测装置通过气体传感器阵列对待测气体进行采集获取传感器数据并将该传感器数据发送到识别系统;(2) The detection device collects the gas to be measured through the gas sensor array to obtain sensor data and sends the sensor data to the identification system;

(3)识别系统将所采集的传感器数据与预先存储的模板数据进行识别匹配后得出亚麻籽油品质检测结果;(3) The recognition system obtains the quality detection result of linseed oil after recognizing and matching the collected sensor data and the pre-stored template data;

其中,通过以下步骤获得所述预先存储的模板数据:Wherein, the pre-stored template data is obtained through the following steps:

S1:识别系统采集标准亚麻籽油的传感器数据,对部分稳定原始数据进行初始化和归一化处理,即并将上述公式变形为从而避免分母为零对;其中x为原始数据,y为规范化后的数据,xmax为原始数据中最大值,xmin为原始数据中最小值;S1: The recognition system collects sensor data of standard linseed oil, and initializes and normalizes part of the stable original data, namely and transform the above formula into In order to avoid the denominator being zero pairs; where x is the original data, y is the normalized data, x max is the maximum value in the original data, and x min is the minimum value in the original data;

S2:通过计算各节点的输入输出值并和目标输出进行误差计算;其中,计算隐含层输入值,采用s函数作为激活函数,公式为其中hi为隐含层的输入值,Wih为输入层到隐含层的权值,Xi为输入数据;得到隐含层的输入值后计算隐含层的输出值ho=f(hi),同理计算输出层的输入输出值;最后利用均方差公式求得误差e,其中,Y是目标输出值,yo是输出层的真实输出;S2: By calculating the input and output values of each node and calculating the error with the target output; among them, calculating the input value of the hidden layer, using the s function As an activation function, the formula is Among them, h i is the input value of the hidden layer, W ih is the weight value from the input layer to the hidden layer , and Xi is the input data; after obtaining the input value of the hidden layer, calculate the output value of the hidden layer h o =f( h i ), similarly calculate the input and output values of the output layer; finally use the mean square error formula Obtain the error e, where Y is the target output value, and y o is the real output of the output layer;

S3:不断更新权重直到误差在可接受范围内;其中,在更新权值时利用公式W=Wk-1+ΔW+a[Wk-1-Wk-2],更新的过程就是分别用误差对输入输出层各权值进行求导得到极值,具体包括:S3: Constantly update the weight until the error is within the acceptable range; wherein, when updating the weight, use the formula W=W k-1 +ΔW+a[W k-1 -W k-2 ], the updating process is to use The error is derived from the weights of the input and output layers to obtain extreme values, including:

误差对隐含层和输出层权值求导得到公式:The error is derived from the weights of the hidden layer and the output layer to obtain the formula:

∂∂ ee ∂∂ ww hh oo == ∂∂ ee ∂∂ ythe y ii oo ** ∂∂ ythe y ii oo ∂∂ ww hh oo == ∂∂ [[ 11 22 ** ΣΣ (( YY -- ythe y oo )) 22 ]] ∂∂ ythe y ii oo ** hh oo == [[ ff (( ythe y ii )) -- YY ]] ** ff (( ythe y ii )) ** hh oo ;;

以及误差对输入和隐含层权值求导得到公式:And the error is derived from the input and hidden layer weights to get the formula:

∂∂ ee ∂∂ ii hh == ∂∂ [[ 11 22 ** ΣΣ (( YY -- ythe y oo )) 22 ]] ∂∂ hh oo ** ∂∂ hh oo ∂∂ hh ii == ∂∂ [[ 11 22 ** ΣΣ [[ YY -- ff (( ythe y ii )) ]] 22 ]] ∂∂ hh oo ** ∂∂ ff (( hh ii )) ∂∂ hh ii == [[ ff (( ythe y ii )) -- YY ]] ** ∂∂ ff (( ythe y ii )) ∂∂ hh oo ** WW hh oo ** ∂∂ ff (( hh ii )) ;;

S4:最后把通过上述步骤S1至S3训练得到的权值和极值预先存储为模板数据。S4: Finally, the weights and extremums obtained through the above steps S1 to S3 are pre-stored as template data.

优选地,所述步骤(1)中进一步包括以下步骤:Preferably, the step (1) further includes the following steps:

将待测样品亚麻籽油放入密闭容器,并将该密闭容器放入恒温水浴箱中恒温水浴加热;Put the linseed oil of the sample to be tested into an airtight container, and put the airtight container into a constant temperature water bath for heating in a constant temperature water bath;

往密闭容器中通入流速稳定的惰性气体进行吹扫;Pass inert gas with stable flow rate into the airtight container for purging;

将待测气体输给检测装置。The gas to be tested is delivered to the detection device.

优选地,所述进气装置包括用于盛装亚麻籽油的密闭容器、进气管、第一导气管和恒温水浴箱,所述恒温水浴箱用于使所述密闭容器所盛装的亚麻籽油处于恒温状态;所述进气管一端伸入所述密闭容器并浸没在亚麻籽油中且其另一端通入纯净的惰性气体使亚麻籽油挥发;所述第一导气管一端伸入所述密闭容器空气中且其另一端与所述检测装置相连接将待测气体输送至所述检测装置中。Preferably, the air intake device includes an airtight container for holding linseed oil, an air inlet pipe, a first air guide pipe and a constant temperature water bath box, and the constant temperature water bath box is used to make the linseed oil contained in the airtight container be at Constant temperature state; one end of the air inlet pipe extends into the airtight container and is immersed in the linseed oil, and the other end is fed with pure inert gas to volatilize the linseed oil; one end of the first air guide pipe extends into the airtight container The other end is connected to the detection device to deliver the gas to be tested to the detection device.

优选地,所述检测装置包括气室本体、用于封闭所述气室本体的封闭盖以及设置在所述封闭盖上检测线路板,所述检测线路板包括气敏传感器阵列、信号处理模块、控制模块、存储模块和触摸显示模块;Preferably, the detection device includes a gas chamber body, a closing cover for closing the gas chamber body, and a detection circuit board arranged on the closure cover, and the detection circuit board includes a gas sensor array, a signal processing module, control module, storage module and touch display module;

所述封闭盖的中心位置设置有进气孔,所述检测线路板与该中心位置重合处也设置相应的进气孔,所述第一导气管接入所述进气孔中并伸入气室本体,所述第一导气管与所述进气孔形成卡合固定结构;The central position of the closure cover is provided with an air intake hole, and the corresponding air intake hole is also provided at the overlapping position of the detection circuit board and the central position, and the first air guide pipe is connected to the air intake hole and extends into the air intake hole. The chamber body, the first air guide tube and the air inlet hole form a fixed structure;

所述气敏传感器阵列中的多个气敏传感器以所述进气孔为中心等间距圆形排列在所述检测线路板上,用于检测待测气体中亚麻籽油的成分并感应产生相应的电信号,当所述封闭盖封闭所述气室本体时形成小型腔体,所述多个气敏传感器与所述腔体中的空气充分接触;A plurality of gas sensors in the gas sensor array are arranged on the detection circuit board at equal intervals with the air inlet as the center, and are used to detect the composition of linseed oil in the gas to be measured and induce corresponding When the closing cover closes the air chamber body, a small cavity is formed, and the plurality of gas sensors are fully in contact with the air in the cavity;

所述封闭盖上还设有透气孔,用于保持所述腔体内外的压力平衡,所述透气孔的孔径小于所述进气孔的孔径;The closure cover is also provided with an air vent for maintaining the pressure balance inside and outside the cavity, and the aperture of the air vent is smaller than the aperture of the air intake hole;

所述信号处理模块对所述的电信号进行信号处理并将处理后的信号发送给所述控制模块;The signal processing module performs signal processing on the electrical signal and sends the processed signal to the control module;

所述存储模块用于预先存储亚麻籽油模板数据;The storage module is used to store linseed oil template data in advance;

所述控制模块通过信号采样获得采样数据并与预先存储的模板数据进行匹配得出亚麻籽油品质检测结果信息;The control module obtains sampling data through signal sampling and matches with pre-stored template data to obtain linseed oil quality detection result information;

所述触摸显示模块用于设置系统参数以及显示亚麻籽油品质检测结果信息。The touch display module is used for setting system parameters and displaying information about the quality detection results of linseed oil.

优选地,所述气敏传感器阵列包括10个气敏传感器,所述10个气敏传感器以所述进气孔为中心等间距圆形排列在所述检测线路板上,所述10个气敏传感器型号分别为MQ138、MQ135、MQ-5、MQ136、TGS2602、TGS2611、TGS825、TGS822、TGS813、TGS826。Preferably, the gas sensor array includes 10 gas sensors, and the 10 gas sensors are arranged on the detection circuit board at equal intervals with the air inlet as the center, and the 10 gas sensors The sensor models are MQ138, MQ135, MQ-5, MQ136, TGS2602, TGS2611, TGS825, TGS822, TGS813, TGS826.

优选地,所述气室本体、封闭盖和检测线路板均为圆形,所述进气孔设置在所述封闭盖的圆心处,所述气敏传感器沿所述检测线路板外围圆周等间距排列;Preferably, the air chamber body, the closing cover and the detection circuit board are all circular, the air inlet hole is arranged at the center of the closure cover, and the gas sensors are equally spaced along the outer circumference of the detection circuit board arrangement;

以所述检测线路板为基面,所述气敏传感器的高度处于所述小型腔体的1/3至2/3之间。Taking the detection circuit board as the base surface, the height of the gas sensor is between 1/3 and 2/3 of the small cavity.

优选地,还包括调节待测气体的流量的步骤;所述检测装置还包括第一控制气阀,通过控制所述第一控制气阀调节待测气体的流量。Preferably, a step of adjusting the flow rate of the gas to be tested is also included; the detection device further includes a first control gas valve, and the flow rate of the gas to be tested is adjusted by controlling the first control gas valve.

优选地,还包括对所述检测装置进行清洗的步骤;Preferably, the step of cleaning the detection device is also included;

所述检测装置还包括清洗装置,所述清洗装置包括第二控制气阀和第二导气管,所述第二导气管一端接入所述检测装置,另一端置于空气中,通过控制所述第二控制气阀向所述检测装置输入空气从而清除所述检测装置中的待测气体。The detection device also includes a cleaning device. The cleaning device includes a second control air valve and a second air guide tube. One end of the second air guide tube is connected to the detection device, and the other end is placed in the air. By controlling the The second control air valve inputs air to the detection device to remove the gas to be tested in the detection device.

优选地,所述恒温水浴箱中恒温水浴温度区间为30-60℃。Preferably, the temperature range of the constant temperature water bath in the constant temperature water bath box is 30-60°C.

优选地,所述进气管中惰性气体的流速为30ml/min。Preferably, the flow rate of the inert gas in the inlet pipe is 30ml/min.

与现有技术相比较,由于本发明的技术方案采用多个气敏传感器检测挥发的亚麻籽油气体,从而能够快速、准确的鉴定亚麻籽油的品质;同时通过对标准传感器数据进行特定的算法处理,从而大大提高亚麻籽油品质检测的精度。Compared with the prior art, since the technical scheme of the present invention uses a plurality of gas sensors to detect the volatilized linseed oil gas, the quality of the linseed oil can be quickly and accurately identified; at the same time, the standard sensor data is processed by a specific algorithm Processing, thereby greatly improving the accuracy of quality detection of linseed oil.

附图说明Description of drawings

图1为本发明一种提高亚麻籽油品质检测精度的方法的系统原理框图;Fig. 1 is a system block diagram of a method for improving the quality detection accuracy of linseed oil of the present invention;

图2为实现本发明一种提高亚麻籽油品质检测精度的方法的系统架构图;Fig. 2 is a system architecture diagram for realizing a method for improving the quality detection accuracy of linseed oil of the present invention;

图3为实现本发明一种提高亚麻籽油品质检测精度的方法中识别系统的数据流程图;Fig. 3 realizes the data flow diagram of identification system in a kind of method for improving the quality detection accuracy of linseed oil of the present invention;

图4为实现本发明一种提高亚麻籽油品质检测精度的方法中检测装置的结构图;Fig. 4 is the structural diagram of detection device in the method for realizing a kind of improving linseed oil quality detection precision of the present invention;

图5为实现本发明一种提高亚麻籽油品质检测精度的方法另一种实施方式的系统架构图。Fig. 5 is a system architecture diagram of another embodiment of a method for improving the detection accuracy of linseed oil quality in the present invention.

如下结合说明书附图和具体实施例将进一步说明本发明。The present invention will be further described in conjunction with the accompanying drawings and specific embodiments as follows.

具体实施方式detailed description

以下将结合实施例对本发明作进一步说明。The present invention will be further described below in conjunction with embodiment.

现如今气敏传感器的使用越来越普遍,同一种气敏传感器可以对多种不同的气体产生不同的响应,通过模式识别和数据分析之后,就能对气体种类进行辨别,而且这些传感器的响应时间短,恢复也比较迅速,可以重复使用。Nowadays, the use of gas sensor is more and more common. The same gas sensor can produce different responses to many different gases. After pattern recognition and data analysis, the gas type can be identified, and the response of these sensors The time is short, the recovery is relatively fast, and it can be used repeatedly.

申请人在对现有技术进行深入研究的基础上,提出一种以气敏传感器阵列为核心,辅以模式识别和数据分析的亚麻籽油检测方法。亚麻籽油“香气”中含有各种不同的气体成分,不同种类的亚麻籽油挥发出来的气体成分或者量都有一定程度上的区别。根据这些特性,气敏传感器阵列就可以通过区分亚麻籽油的“香气”来判断亚麻籽油的品质。On the basis of in-depth research on the prior art, the applicant proposes a linseed oil detection method with a gas sensor array as the core and supplemented by pattern recognition and data analysis. The "aroma" of linseed oil contains various gas components, and the gas components or amounts volatilized by different types of linseed oil are different to a certain extent. According to these characteristics, the gas sensor array can judge the quality of linseed oil by distinguishing the "aroma" of linseed oil.

参见图1和图2,所示为本发明一种提高亚麻籽油品质检测精度的方法的实现系统框图,其包括用于将亚麻籽油挥发为气态的进气装置1以及用于检测亚麻籽油成分的检测装置2。Referring to Fig. 1 and Fig. 2, it is shown that a kind of realization system block diagram of the method for improving the quality detection accuracy of linseed oil of the present invention, it comprises the air inlet device 1 that is used to volatilize linseed oil into gaseous state and is used to detect linseed oil Oil component detection device 2.

其中,进气装置1进一步包括用于盛装亚麻籽油的密闭容器11、进气管12、第一导气管13和恒温水浴箱14,恒温水浴箱14用于使密闭容器所盛装的亚麻籽油处于恒温状态,从而有助于亚麻籽油挥发,大大增加吹扫气吹脱能力,在一种优选实施方式中,恒温水浴箱中恒温水浴温度区间为30-60℃,而50℃最为优选。Wherein, the air intake device 1 further includes an airtight container 11 for holding linseed oil, an air inlet pipe 12, a first air guide pipe 13 and a constant temperature water bath 14, and the constant temperature water bath 14 is used to make the linseed oil contained in the airtight container be at The state of constant temperature helps the volatilization of linseed oil and greatly increases the stripping ability of the purge gas. In a preferred embodiment, the temperature range of the constant temperature water bath in the constant temperature water bath box is 30-60°C, and 50°C is the most preferred.

进气管12一端伸入密闭容器11并浸没在样品亚麻籽油中且其另一端通入纯净的惰性气体使亚麻籽油挥发;惰性气体经过硅胶、分子筛和活性炭干燥净化后以一定流量连续通入进气管12并进入密闭容器11中所盛装的样品亚麻籽油,使样品亚麻籽油挥发出气味。One end of the air inlet pipe 12 extends into the airtight container 11 and is immersed in the sample linseed oil, and the other end is fed with pure inert gas to volatilize the linseed oil; the inert gas is continuously fed in at a certain flow rate after being dried and purified by silica gel, molecular sieve and activated carbon The air inlet pipe 12 enters the sample linseed oil contained in the airtight container 11, so that the sample linseed oil volatilizes its odor.

第一导气管13一端伸入密闭容器11空气中且其另一端与检测装置2相连接将待测气体输送至检测装置2中。由于进气管12连续有惰性气体通入,优选地,通入惰性气体流速为30ml/min,此时,密闭容器11的空气中充满了挥发的亚麻籽油从而形成了待测气体。One end of the first air guide tube 13 extends into the air of the airtight container 11 and the other end thereof is connected to the detection device 2 to deliver the gas to be tested to the detection device 2 . Since the inlet pipe 12 is continuously fed with inert gas, preferably, the flow rate of the inert gas is 30ml/min. At this time, the air in the airtight container 11 is full of volatilized linseed oil to form the gas to be tested.

检测装置2中设置的检测线路板23上通过通信模块236与识别系统3相连接,识别系统3为加载了特定算法程序的计算机,其运算性能和存储容量都极为优越,能够存储极为完善标准数据库,通过将所采集数据通过特定算法进行数据处理,大大提高了测量精度。The detection circuit board 23 set in the detection device 2 is connected to the identification system 3 through the communication module 236. The identification system 3 is a computer loaded with a specific algorithm program, its computing performance and storage capacity are extremely superior, and it can store a very complete standard database. , by processing the collected data through a specific algorithm, the measurement accuracy is greatly improved.

参见图3,所示为识别系统3中的数据处理流程图,首先判断是否处于训练模式,只有在非训练模式下,进入正常数据检测流程,否则进入数据训练流程。Referring to FIG. 3 , it shows the flow chart of data processing in the recognition system 3. First, it is judged whether it is in the training mode. Only in the non-training mode, it enters the normal data detection process, otherwise it enters the data training process.

数据检测流程主要包括以下步骤:The data detection process mainly includes the following steps:

(1)获取所采集的传感器数据;(1) Obtain the collected sensor data;

(2)读取已经训练好的模板数据;(2) Read the template data that has been trained;

(3)将采集数据与模板数据进行识别匹配;(3) Identify and match the collected data with the template data;

(4)得出亚麻籽油品质检测结果。(4) Get the quality testing results of linseed oil.

数据训练流程主要包括以下步骤:The data training process mainly includes the following steps:

S1:识别系统采集标准亚麻籽油的传感器数据,对部分稳定原始数据进行初始化和归一化处理,即并将上述公式变形为从而避免分母为零对;其中x为原始数据,y为规范化后的数据,xmax为原始数据中最大值,xmin为原始数据中最小值;S1: The recognition system collects sensor data of standard linseed oil, and initializes and normalizes part of the stable original data, namely and transform the above formula into In order to avoid the denominator being zero pairs; where x is the original data, y is the normalized data, x max is the maximum value in the original data, and x min is the minimum value in the original data;

S2:通过计算各节点的输入输出值并和目标输出进行误差计算;其中,计算隐含层输入值,采用s函数作为激活函数,公式为其中hi为隐含层的输入值,Wih为输入层到隐含层的权值,Xi为输入数据;得到隐含层的输入值后计算隐含层的输出值ho=f(hi),同理计算输出层的输入输出值;最后利用均方差公式求得误差e,其中,Y是目标输出值,yo是输出层的真实输出;S2: By calculating the input and output values of each node and calculating the error with the target output; among them, calculating the input value of the hidden layer, using the s function As an activation function, the formula is Among them, h i is the input value of the hidden layer, W ih is the weight value from the input layer to the hidden layer , and Xi is the input data; after obtaining the input value of the hidden layer, calculate the output value of the hidden layer h o =f( h i ), similarly calculate the input and output values of the output layer; finally use the mean square error formula Obtain the error e, where Y is the target output value, and y o is the real output of the output layer;

S3:不断更新权重直到误差在可接受范围内;其中,在更新权值时利用公式W=Wk-1+ΔW+a[Wk-1-Wk-2],更新的过程就是分别用误差对输入输出层各权值进行求导得到极值,具体包括:S3: Constantly update the weight until the error is within the acceptable range; wherein, when updating the weight, use the formula W=W k-1 +ΔW+a[W k-1 -W k-2 ], the updating process is to use The error is derived from the weights of the input and output layers to obtain extreme values, including:

误差对隐含层和输出层权值求导得到公式:The error is derived from the weights of the hidden layer and the output layer to obtain the formula:

∂∂ ee ∂∂ ww hh oo == ∂∂ ee ∂∂ ythe y ii oo ** ∂∂ ythe y ii oo ∂∂ ww hh oo == ∂∂ [[ 11 22 ** ΣΣ (( YY -- ythe y oo )) 22 ]] ∂∂ ythe y ii oo ** hh oo == [[ ff (( ythe y ii )) -- YY ]] ** ff (( ythe y ii )) ** hh oo ;;

以及误差对输入和隐含层权值求导得到公式:And the error is derived from the input and hidden layer weights to get the formula:

∂∂ ee ∂∂ ii hh == ∂∂ [[ 11 22 ** ΣΣ (( YY -- ythe y oo )) 22 ]] ∂∂ hh oo ** ∂∂ hh oo ∂∂ hh ii == ∂∂ [[ 11 22 ** ΣΣ [[ YY -- ff (( ythe y ii )) ]] 22 ]] ∂∂ hh oo ** ∂∂ ff (( hh ii )) ∂∂ hh ii == [[ ff (( ythe y ii )) -- YY ]] ** ∂∂ ff (( ythe y ii )) ∂∂ hh oo ** WW hh oo ** ∂∂ ff (( hh ii )) ;;

S4:最后把通过上述步骤S1至S3训练得到的权值和极值预先存储为模板数据。S4: Finally, pre-store the weights and extremums obtained through the above steps S1 to S3 as template data.

其中,获取所采集的传感器数据的步骤中进一步包括以下步骤:Wherein, the step of obtaining the collected sensor data further includes the following steps:

将待测样品亚麻籽油放入密闭容器11,并将该密闭容器11放入恒温水浴箱14中恒温水浴加热;The linseed oil of the sample to be tested is put into an airtight container 11, and the airtight container 11 is put into a constant temperature water bath box 14 for heating in a constant temperature water bath;

往密闭容器11中通入流速稳定的惰性气体进行吹扫;Pass into the inert gas with stable flow rate in the airtight container 11 to carry out purging;

将待测气体输给检测装置2;Transport the gas to be tested to the detection device 2;

检测装置2通过气体传感器阵列对待测气体进行采集获取传感器数据并将该传感器数据发送到识别系统3;The detection device 2 collects the gas to be measured through the gas sensor array to obtain sensor data and sends the sensor data to the identification system 3;

其中,通过以下步骤获得所述预先存储的模板数据:Wherein, the pre-stored template data is obtained through the following steps:

参见图4,所示为本发明中检测装置2的结构框图,检测装置2进一步包括气室本体21、用于封闭气室本体的封闭盖22以及设置在封闭盖上检测线路板23,检测线路板23包括气敏传感器阵列231、信号处理模块232、控制模块233、存储模块234和触摸显示模块235;Referring to Fig. 4, shown is the structural block diagram of detecting device 2 in the present invention, and detecting device 2 further comprises air chamber body 21, is used for sealing the sealing cover 22 of air chamber body and is arranged on the sealing cover detection circuit board 23, detection circuit The board 23 includes a gas sensor array 231, a signal processing module 232, a control module 233, a storage module 234 and a touch display module 235;

封闭盖22的中心位置设置有进气孔24,检测线路板23与该中心位置重合处也设置相应的进气孔24,第一导气管13接入进气孔24中并伸入气室本体21,第一导气管13与进气孔24形成卡合固定结构;The central position of the closing cover 22 is provided with an air intake hole 24, and the detection circuit board 23 is also provided with a corresponding air intake hole 24 at the coincident position of the central position. The first air guide pipe 13 is inserted into the air intake hole 24 and extends into the air chamber body 21. The first air guide tube 13 and the air intake hole 24 form an engaging and fixed structure;

气敏传感器阵列231中的多个气敏传感器以进气孔24为中心等间距圆形排列在检测线路板23上,用于检测待测气体中亚麻籽油的成分并感应产生相应的电信号,当封闭盖22封闭气室本体时形成小型腔体,多个气敏传感器与腔体中的空气充分接触;待测气体的浓度往往很小,当待测气体进入密闭气室时,如果没能与传感器阵列231充分接触,将会影响检测精度。因此,采用小型腔体设计,能够让待测气体立刻充满整个腔体空间,使其与传感器阵列231迅速而充分地接触。同时,由于多个气敏传感器以进气孔为中心等间距圆形排列在检测线路板上,各个气敏传感器与待测气体接触的时间与几率差不多保持完全一致,从而大大提高了检测精度。A plurality of gas sensors in the gas sensor array 231 are arranged on the detection circuit board 23 at equal intervals with the air inlet 24 as the center, and are used to detect the composition of linseed oil in the gas to be measured and induce corresponding electrical signals , when the sealing cover 22 seals the air chamber body, a small cavity is formed, and a plurality of gas sensors are in full contact with the air in the cavity; the concentration of the gas to be measured is often very small. Being in sufficient contact with the sensor array 231 will affect the detection accuracy. Therefore, by adopting a small cavity design, the gas to be measured can immediately fill the entire cavity space, so that it can quickly and fully contact with the sensor array 231 . At the same time, since multiple gas sensors are arranged on the detection circuit board at equal intervals with the air inlet as the center, the contact time and probability of each gas sensor with the gas to be measured are almost exactly the same, thereby greatly improving the detection accuracy.

在一种优选实施方式中,气室本体、封闭盖和检测线路板均为圆形,进气孔设置在封闭盖的圆心处,气敏传感器沿检测线路板外围圆周等间距排列,圆形设计和排布可以进一步节约空间形成更小的密闭气室,同时待测气体从中心圆孔输送进来能使气敏传感器和待测气体更为均匀的接触,进一步减少测量误差。In a preferred embodiment, the air chamber body, the sealing cover and the detection circuit board are all circular, the air inlet is arranged at the center of the closure cover, and the gas sensors are arranged at equal intervals along the outer circumference of the detection circuit board. And the arrangement can further save space and form a smaller airtight chamber. At the same time, the gas to be measured is sent in from the central hole, which can make the gas sensor and the gas to be measured contact more uniformly, further reducing the measurement error.

在一种优选实施方式中,以检测线路板23为基面,气敏传感器的高度处于小型腔体的1/3至2/3之间,待测气体可以迅速充满密闭气室并与气敏传感器充分接触。In a preferred embodiment, with the detection circuit board 23 as the base surface, the height of the gas sensor is between 1/3 and 2/3 of the small cavity, and the gas to be measured can quickly fill the airtight chamber and connect with the gas sensor. The sensor is fully engaged.

在封闭盖22上还设有透气孔25,用于保持腔体内外的压力平衡。密闭气室并非真正的密闭空间,否则随着待测气体的不断通入,密闭气室内的压力会不断增加,通过设置透气孔25,当密闭气室内的压力达到一定程度时,可以通过透气孔25排出待测气体,从而保持腔体内外的气压平衡。为了能够让密闭气室迅速充满待测气体而同时能够保持密闭气室内外压力平衡,透气孔25的孔径小于进气孔24的孔径,因为如果透气孔25的孔径太大,会使待测气体迅速排出密闭气室,影响测量精度。优选地,透气孔25的孔径一般为进气孔24的孔径的1/3至1/5之间。Vent holes 25 are also provided on the closure cover 22 for maintaining pressure balance inside and outside the cavity. The airtight chamber is not a real airtight space, otherwise the pressure in the airtight chamber will continue to increase with the continuous introduction of the gas to be measured. By setting the vent hole 25, when the pressure in the airtight chamber reaches a certain level, the pressure in the airtight chamber can 25 to discharge the gas to be measured, so as to maintain the air pressure balance inside and outside the cavity. In order to allow the airtight chamber to be filled with the gas to be measured quickly while maintaining the pressure balance inside and outside the airtight chamber, the aperture of the vent hole 25 is smaller than the aperture of the air inlet hole 24, because if the aperture of the vent hole 25 is too large, the gas to be measured will Quickly discharge the airtight chamber, affecting the measurement accuracy. Preferably, the diameter of the vent hole 25 is generally between 1/3 and 1/5 of the diameter of the air inlet hole 24 .

在检测线路板23中,信号处理模块232对的电信号进行信号处理并将处理后的信号发送给控制模块233;In the detection circuit board 23, the signal processing module 232 performs signal processing on the electrical signal and sends the processed signal to the control module 233;

存储模块234用于预先存储亚麻籽油模板数据;The storage module 234 is used to store the linseed oil template data in advance;

控制模块233通过信号采样获得采样数据并与预先存储的模板数据进行匹配得出亚麻籽油品质检测结果信息。The control module 233 obtains the sampling data through signal sampling and matches with the pre-stored template data to obtain the quality detection result information of linseed oil.

触摸显示模块235用于设置系统参数以及显示亚麻籽油品质检测结果信息。The touch display module 235 is used for setting system parameters and displaying information about the quality inspection results of linseed oil.

在一种优选实施方式中,控制模块采用型号为STM32F103x的单片机。STM32F103x的12位ADC是一种逐次逼近模拟数字转换器。它有18个通道,可测量16个外部和2个内部信号源。各通道的A/D转换可以单次、连续、扫描或间断模式执行。本发明采用了ADC1中10个通道作为信号通道,开启了连续转换模式和扫描模式,在DMA中开辟了10个内存空间作为数据存储,在每次转换完成后就从DMA中将数据读取出来进行操作。In a preferred embodiment, the control module adopts a single-chip microcomputer modeled as STM32F103x. The 12-bit ADC of the STM32F103x is a successive approximation analog-to-digital converter. It has 18 channels and can measure 16 external and 2 internal signal sources. A/D conversion of each channel can be performed in one-shot, continuous, scan or intermittent mode. The present invention uses 10 channels in ADC1 as signal channels, opens the continuous conversion mode and scanning mode, opens up 10 memory spaces in the DMA as data storage, and reads the data from the DMA after each conversion is completed to operate.

在一种优选实施方式中,存储模块使用的存储器为SD卡,通过STM32的SDIO接口对SD卡进行读写,将数据保存到SD卡中。初始化SD卡,将SDIO时钟SDIO_SCK与SD卡进行同步,对SD卡的操作往往是大数据量的吞吐,所以可以用DMA来提高效率。SDIO的所有命令及命令响应,都是通过SDIO-CMD引脚来传输的,而且命令只能由主控芯片发出。其余4个引脚为数据口,用于数据的读写。In a preferred embodiment, the memory used by the storage module is an SD card, and the SD card is read and written through the SDIO interface of the STM32, and the data is saved in the SD card. Initialize the SD card, and synchronize the SDIO clock SDIO_SCK with the SD card. The operation on the SD card is often a large amount of data throughput, so DMA can be used to improve efficiency. All SDIO commands and command responses are transmitted through the SDIO-CMD pin, and the commands can only be issued by the main control chip. The remaining 4 pins are data ports for reading and writing data.

在一种优选实施方式中,本发明所用到的显示屏为3.2寸TFT触摸彩屏,触摸屏的原理其实十分简单,就是触笔在接触触屏时会产生相应的电压,AD转换之后就会产生一个数据,通过对数据进行判断,然后产生指令,就能对系统进行控制。触摸屏控制芯片为ADS7853,是一个内置的12位模数转换、低导通电阻模拟开关的串行接口芯片,其参考VREF往往与STM32外设ADC相同。In a preferred embodiment, the display screen used in the present invention is a 3.2-inch TFT touch color screen. The principle of the touch screen is actually very simple, that is, the stylus will generate a corresponding voltage when it touches the touch screen, and a voltage will be generated after AD conversion. Data, by judging the data and then generating instructions, the system can be controlled. The touch screen control chip is ADS7853, which is a serial interface chip with built-in 12-bit analog-to-digital conversion and low on-resistance analog switch. Its reference VREF is often the same as the STM32 peripheral ADC.

亚麻籽油的挥发性物质主要由醛类、烯烃类、烷烃类、酮类、酯类化合物组成,不同品种、不同质量等级的亚麻籽油所含成分及含量均有不同,因此通过测定上述成分,便可以鉴定亚麻籽油的品质。针对上述特点,传感器阵列选用甲醛传感器MQ138、可燃气体传感器MQ-5、TGS2611、TGS813、硫化氢传感器MQ136、TGS825、酒精传感器TGS822、氨气传感器TGS826、空气质量传感器TGS2602,以及对氨气、硫化物、苯系蒸汽的灵敏度高的传感器MQ135。其中,传感器MQ138对对醛、醇、酮、芳族化合物具有很高的灵敏度;MQ135用于检测氨气、甲苯、氢气;MQ-5用于检测丁烷、丙烷、甲烷;MQ136用于检测硫化氢气体;TGS2602用于检测空气污染物;TGS2611用于检测甲烷、天然气;TGS825用于检测硫化氢气体;TGS822用于检测酒精、有机溶剂等;TGS813用于检测甲烷、乙烷、丙烷等可燃性气体;TGS826用于检测氨气。通过上述气敏传感器阵列的配置,从而能够准确检测各种亚麻籽油的品质。The volatile substances of linseed oil are mainly composed of aldehydes, olefins, alkanes, ketones, and esters. Different varieties and different quality grades of linseed oil contain different components and contents. Therefore, the determination of the above components , the quality of linseed oil can be identified. In view of the above characteristics, the sensor array uses formaldehyde sensor MQ138, combustible gas sensor MQ-5, TGS2611, TGS813, hydrogen sulfide sensor MQ136, TGS825, alcohol sensor TGS822, ammonia sensor TGS826, air quality sensor TGS2602, and ammonia, sulfide , MQ135 sensor with high sensitivity to benzene series vapor. Among them, the sensor MQ138 has high sensitivity to aldehydes, alcohols, ketones, and aromatic compounds; MQ135 is used to detect ammonia, toluene, and hydrogen; MQ-5 is used to detect butane, propane, and methane; MQ136 is used to detect sulfide Hydrogen gas; TGS2602 is used to detect air pollutants; TGS2611 is used to detect methane and natural gas; TGS825 is used to detect hydrogen sulfide gas; TGS822 is used to detect alcohol, organic solvents, etc.; TGS813 is used to detect methane, ethane, propane and other flammability Gas; TGS826 is used to detect ammonia. Through the configuration of the gas sensor array, the quality of various linseed oils can be accurately detected.

参见图5,所示为实现本发明一种提高亚麻籽油品质检测精度的方法另一种实施方式的系统架构图,检测装置2还包括第一控制气阀26,第一控制气阀26受控于控制模块233,用于调节第一导气管中所输入的待测气体的流量,能够结合流量信息校准检测结果,从而提高测量精度。Referring to Fig. 5, it shows a system architecture diagram of another embodiment of a method for improving the detection accuracy of linseed oil quality according to the present invention, the detection device 2 also includes a first control air valve 26, and the first control air valve 26 is controlled by Controlled by the control module 233, it is used to adjust the flow rate of the gas to be tested inputted into the first air duct, and can calibrate the detection result in combination with the flow rate information, thereby improving the measurement accuracy.

进一步的,检测装置2还包括清洗装置27,清洗装置27包括第二控制气阀28和第二导气管29,第二导气管29一端接入检测装置2,另一端置于空气中,第二控制气阀28受控于控制模块233,用于控制第二导气管向气室本体中输入空气从而清除腔体中的待测气体。对待测气体每次进行测量之前,对密闭气室进行清洗操作,从而能够提高每次测量结果的准确性。Further, the detection device 2 also includes a cleaning device 27. The cleaning device 27 includes a second control air valve 28 and a second air guide tube 29. One end of the second air guide tube 29 is connected to the detection device 2, and the other end is placed in the air. The control air valve 28 is controlled by the control module 233, and is used to control the second air guide tube to input air into the gas chamber body so as to remove the gas to be measured in the cavity. Before each measurement of the gas to be measured, the airtight gas chamber is cleaned, so that the accuracy of each measurement result can be improved.

通信模块236可以采用串口通信模块,USART双向通信至少需要两个引脚,RX接另一端的TX,TX接另一端的RX,STM32中有多个串口,本次系统设计中为了防止引脚的复用,用到了USART1和USART3。USART1用于与PC端的交互,包括上位机指令的传递以及下位数据的发送,接收上位机发送来的字符串,并判断字符串是否符合下位机的预设指令,如果符合,则根据指令进行控制,若不符合则等待下一次接收;而USART3则用与手机端的蓝牙串口通信,方便对单片机的PWM信号以及数据显示的控制,与触控模块的大致工作相同。串口波特率设为115200,开启收发中断。The communication module 236 can use a serial port communication module. USART two-way communication requires at least two pins, RX is connected to the TX on the other end, and TX is connected to the RX on the other end. There are multiple serial ports in the STM32. In this system design, in order to prevent the pins from For multiplexing, USART1 and USART3 are used. USART1 is used to interact with the PC side, including the transmission of upper computer instructions and lower data transmission, receiving the string sent by the upper computer, and judging whether the string meets the preset instructions of the lower computer, and if it does, control according to the instruction , if not, wait for the next reception; and USART3 communicates with the Bluetooth serial port on the mobile phone to facilitate the control of the PWM signal and data display of the microcontroller, which is roughly the same as the touch module. The serial port baud rate is set to 115200, and the sending and receiving interrupt is enabled.

以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. one kind is improved the method for linseed oil Quality Detection precision, it is characterised in that, comprise the following steps:
(1) by diffuser, this gas to be measured for gas to be measured and is inputed to detection device by linseed oil to be measured volatilization;
(2) detect device to carry out gas to be measured gathering by gas sensor array and obtain sensing data and this sensing data is sent to recognition system;
(3) sensing data gathered and the template data prestored are carried out drawing linseed oil Quality Detection result after identification is mated by recognition system;
Wherein, obtained by following step described in the template data that prestores:
S1: recognition system gathers the sensing data of standard linseed oil, partially stabilized raw data carries out initialize and normalized, namelyAnd above-mentioned formula is deformed intoThus avoid denominator to be zero right; Wherein x is raw data, and y is the data after standardization, xmaxFor maximum value in raw data, xminFor minimum value in raw data;
S2: by calculate each node input and output value and and target output carry out Error Calculation; Wherein, calculate hidden layer input value, adopt s functionAs activation function, formula isWherein hiFor the input value of hidden layer, WihFor input layer is to the weights of hidden layer, XiFor input data; The output value h of hidden layer is calculated after obtaining the input value of hidden layero=f (hi), the input and output value of output layer is calculated with reason; Finally utilize square root of the variance formulaTrying to achieve error e, wherein, Y is target output value, yoIt is the true output of output layer;
S3: constantly update weight until error is in tolerance interval; Wherein, formula W=W is utilized when upgrading weightsk-1+��W+a[Wk-1-Wk-2], the process of renewal is exactly ask to lead to each weights of input and output layer by error respectively to obtain extreme value, specifically comprises:
Hidden layer and output layer weights are asked to lead and are obtained formula by error:
∂ e ∂ w h o = ∂ e ∂ y i o * ∂ y i o ∂ w h o = ∂ [ 1 2 * Σ ( Y - y o ) 2 ] ∂ y i o * h o = [ f ( y i ) - Y ] * f ( y i ) * h o ;
And input and hidden layer weights asked to lead and obtain formula by error:
∂ e ∂ i h = ∂ [ 1 2 * Σ ( Y - y o ) 2 ] ∂ h o * ∂ h o ∂ h i = ∂ [ 1 2 * Σ [ Y - f ( y i ) ] 2 ] ∂ h o * ∂ f ( h i ) ∂ h i = [ f ( y i ) - Y ] * ∂ f ( y i ) ∂ h o * W h o * ∂ f ( h i ) ;
S4: finally being trained the weights obtained and extreme value to prestore as template data by above-mentioned steps S1 to S3.
2. the method for raising linseed oil Quality Detection precision according to claim 1, it is characterised in that, further comprising the steps in described step (1):
Testing sample linseed oil is put into encloses container, and this encloses container is put into constant water bath box water bath with thermostatic control heating;
In encloses container, lead to the rare gas element into flow speed stability carry out blowing sweeping;
Gas to be measured is defeated by detection device.
3. the method for raising linseed oil Quality Detection precision according to claim 1, it is characterized in that, described diffuser comprises the encloses container for splendid attire linseed oil, inlet pipe, the first airway and constant water bath box, and for making, the linseed oil of described encloses container institute splendid attire is in temperature constant state to described constant water bath box; Described inlet pipe one end is stretched into described encloses container and is immersed in linseed oil and its other end leads to and into pure rare gas element, linseed oil volatilized; Described first airway one end is stretched in described encloses container air and its other end is connected with described detection device is delivered to gas to be measured in described detection device.
4. the method for raising linseed oil Quality Detection precision according to claim 1, it is characterized in that, described detection device comprises air chamber body, covers detection line plate for closing the closed lid of described air chamber body and be arranged on described closing, and described detection line plate comprises gas sensor array, signal processing module, control module, memory module and touch display module;
The central position of described closed lid is provided with air inlet port, described detection line plate also arranges corresponding air inlet port to this central position overlapping position, described first airway accesses in described air inlet port and stretches into air chamber body, and described first airway and described air inlet port form engaging fixing structure;
Multiple gas sensors in described gas sensor array centered by described air inlet port etc. spacing circular arrangement on described detection line plate, for detecting the composition of linseed oil in gas to be measured and respond to the corresponding electrical signal of generation, forming small-sized cavity when described closed lid closes described air chamber body, described multiple gas sensor fully contacts with the air in described cavity;
Described closed covering also is provided with breather hole, and for keeping the pressure equilibrium inside and outside described cavity, the aperture of described breather hole is less than the aperture of described air inlet port;
Described electrical signal is carried out signal processing and the signal after process is sent to described control module by described signal processing module;
Described memory module is used for prestoring linseed oil template data;
Described control module is obtained sampling data by signal sampling and is carried out mating with the template data prestored and draws linseed oil Quality Detection result information;
Described touch display module is for setting system parameter and display linseed oil Quality Detection result information.
5. the method for raising linseed oil Quality Detection precision according to claim 4, it is characterized in that, described gas sensor array comprises 10 gas sensors, spacing circular arrangement is on described detection line plate centered by described air inlet port etc. for described 10 gas sensors, and described 10 gas sensor models are respectively MQ138, MQ135, MQ-5, MQ136, TGS2602, TGS2611, TGS825, TGS822, TGS813, TGS826.
6. the method for raising linseed oil Quality Detection precision according to claim 3, it is characterized in that, described air chamber body, closed lid and detection line plate are circle, described air inlet port is arranged on the circle centre position of described closed lid, and described gas sensor is along spacing arrangements such as described detection line plate peripheral circumferential;
Taking described detection line plate as base face, the height of described gas sensor is between the 1/3 to 2/3 of described small-sized cavity.
7. the method for raising linseed oil Quality Detection precision according to claim 2, it is characterised in that, also comprise the step of the flow regulating gas to be measured; Described detection device also comprises the first control air valve, regulates the flow of gas to be measured by controlling described first control air valve.
8. the method for raising linseed oil Quality Detection precision according to claim 1, it is characterised in that, also comprise the step that described detection device cleans;
Described detection device also comprises washing unit, described washing unit comprises the 2nd control air valve and the 2nd airway, described detection device is accessed in described 2nd airway one end, the other end is placed in air, to described detection device input air thus removes the gas to be measured in described detection device by controlling described 2nd control air valve.
9. the method for raising linseed oil Quality Detection precision according to claim 3, it is characterised in that, in described constant water bath box, water bath with thermostatic control temperature range is 30-60 DEG C.
10. the method for raising linseed oil Quality Detection precision according to claim 3, it is characterised in that, in described inlet pipe, the flow velocity of rare gas element is 30ml/min.
CN201610207797.1A 2016-04-04 2016-04-04 A kind of method for improving linseed oil Quality Detection precision Active CN105651952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610207797.1A CN105651952B (en) 2016-04-04 2016-04-04 A kind of method for improving linseed oil Quality Detection precision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610207797.1A CN105651952B (en) 2016-04-04 2016-04-04 A kind of method for improving linseed oil Quality Detection precision

Publications (2)

Publication Number Publication Date
CN105651952A true CN105651952A (en) 2016-06-08
CN105651952B CN105651952B (en) 2017-10-03

Family

ID=56496120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610207797.1A Active CN105651952B (en) 2016-04-04 2016-04-04 A kind of method for improving linseed oil Quality Detection precision

Country Status (1)

Country Link
CN (1) CN105651952B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108254497A (en) * 2017-12-22 2018-07-06 河南省日立信股份有限公司 The gas-monitoring meter locale method of calibration of cell phone application control
CN110780045A (en) * 2019-11-26 2020-02-11 甘肃裕泰隆生态农业有限公司 Method for detecting quality of linseed oil
CN110927351A (en) * 2019-12-04 2020-03-27 荣海生物科技有限公司 Method for detecting quality of linseed oil
CN111178436A (en) * 2019-12-30 2020-05-19 深圳信息职业技术学院 Data processing method, device, computer equipment and storage medium
CN112766187A (en) * 2021-01-25 2021-05-07 佛山科学技术学院 Rapeseed oil heating time prediction system and method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10267873A (en) * 1997-03-21 1998-10-09 Nippon Suisan Kaisha Ltd Quality control method of refined fish oil, its apparatus and refined fish oil with controlled quality
DE19947669A1 (en) * 1999-10-04 2001-05-10 Testo Gmbh & Co Process for determining the quality of fats and oils comprises determining the concentration of heavy volatile hydrocarbons using a gas sensor
CN101893591A (en) * 2010-06-24 2010-11-24 浙江大学 Electronic nose system for banana quality inspection
CN102507881A (en) * 2011-11-10 2012-06-20 北京盈胜泰科技术有限公司 Quality detecting system and detecting method for edible oil
CN102721794A (en) * 2012-06-26 2012-10-10 郑州炜盛电子科技有限公司 Fast detection method of illegal cooking oil
KR101204056B1 (en) * 2010-07-05 2012-11-22 고려대학교 산학협력단 Detecting device for the state of edible oil by using carbon nanotubes
US8640525B2 (en) * 2009-12-30 2014-02-04 Monsanto Technology Llc Methods and systems for differentiating soybeans
CN203745367U (en) * 2013-12-10 2014-07-30 六安职业技术学院 Intelligent pork freshness detector
CN104792826A (en) * 2015-03-23 2015-07-22 中国农业大学 System and method for detecting milk freshness based on electronic nose
CN204882528U (en) * 2015-07-17 2015-12-16 成都汉康信息产业有限公司 Edible oil quality detection device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10267873A (en) * 1997-03-21 1998-10-09 Nippon Suisan Kaisha Ltd Quality control method of refined fish oil, its apparatus and refined fish oil with controlled quality
DE19947669A1 (en) * 1999-10-04 2001-05-10 Testo Gmbh & Co Process for determining the quality of fats and oils comprises determining the concentration of heavy volatile hydrocarbons using a gas sensor
US8640525B2 (en) * 2009-12-30 2014-02-04 Monsanto Technology Llc Methods and systems for differentiating soybeans
CN101893591A (en) * 2010-06-24 2010-11-24 浙江大学 Electronic nose system for banana quality inspection
KR101204056B1 (en) * 2010-07-05 2012-11-22 고려대학교 산학협력단 Detecting device for the state of edible oil by using carbon nanotubes
CN102507881A (en) * 2011-11-10 2012-06-20 北京盈胜泰科技术有限公司 Quality detecting system and detecting method for edible oil
CN102721794A (en) * 2012-06-26 2012-10-10 郑州炜盛电子科技有限公司 Fast detection method of illegal cooking oil
CN203745367U (en) * 2013-12-10 2014-07-30 六安职业技术学院 Intelligent pork freshness detector
CN104792826A (en) * 2015-03-23 2015-07-22 中国农业大学 System and method for detecting milk freshness based on electronic nose
CN204882528U (en) * 2015-07-17 2015-12-16 成都汉康信息产业有限公司 Edible oil quality detection device

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
DIEGO L. GARCIäA-GONZAä LEZ等: "Virgin Olive Oil Quality Classification Combining Neural Network and MOS Sensors", 《J. AGRIC. FOOD CHEM.》 *
E.Z. PANAGOU等: "Table olives volatile fingerprints: Potential of an electronic nose for quality discrimination", 《SENSORS AND ACTUATORS B: CHEMICAL》 *
M CONCEPCIÓN CERRATO OLIVEROS等: "Electronic nose based on metal oxide semiconductor sensors as a fast alternative for the detection of adulteration of virgin olive oils", 《ANALYTICA CHIMICA ACTA》 *
MARIA S. COSIO等: "Geographical origin and authentication of extra virgin olive oils by an electronic nose in combination with artificial neural networks", 《ANALYTICA CHIMICA ACTA》 *
MIGUEL PERIS等: "A 21st century technique for food control: Electronic noses", 《ANALYTICA CHIMICA ACTA》 *
张檬达等: "电子鼻在粮油品质检测中的应用进展", 《粮食与食品工业》 *
邓平晔等: "电子鼻在高档消费品品质检测中的应用", 《现代科学仪器》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108254497A (en) * 2017-12-22 2018-07-06 河南省日立信股份有限公司 The gas-monitoring meter locale method of calibration of cell phone application control
CN110780045A (en) * 2019-11-26 2020-02-11 甘肃裕泰隆生态农业有限公司 Method for detecting quality of linseed oil
CN110927351A (en) * 2019-12-04 2020-03-27 荣海生物科技有限公司 Method for detecting quality of linseed oil
CN111178436A (en) * 2019-12-30 2020-05-19 深圳信息职业技术学院 Data processing method, device, computer equipment and storage medium
CN112766187A (en) * 2021-01-25 2021-05-07 佛山科学技术学院 Rapeseed oil heating time prediction system and method

Also Published As

Publication number Publication date
CN105651952B (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN105651952B (en) A kind of method for improving linseed oil Quality Detection precision
CN105866359B (en) A kind of edible oil quality detecting system
CN105891431B (en) A kind of linseed oil quality detecting method
Li et al. A novel headspace integrated E-nose and its application in discrimination of Chinese medical herbs
CN102590283B (en) Method for detecting the freshness of grass carp using electronic nose
CN108469455A (en) A kind of design and method of the portable electric nose system differentiated for strawberry freshness
CN102879432A (en) Method of using electronic nose for detecting freshness of tilapia
CN102879352A (en) Acquisition device for near-infrared transmitted spectrum of vinegar and method for identifying vinegar origin
CN209624543U (en) A kind of gas-detecting device
CN109298134A (en) An embedded electronic nose detection system and detection method
CN103412002A (en) Vinegar flavor analysis device and method
Zhang et al. Beer Taste Detection Based on Electronic Tongue.
CN107422669A (en) A kind of handheld electronic nose for the identification of online white wine
CN106560699A (en) Combined detection method used for identification of producing area of Wuyi rock tea
CN114577791A (en) A kind of detection method of tea quality grade
CN104535618A (en) White spirit recognition method based on electric nose technology
CN103424431A (en) Device and method for quickly detecting rice mildewing
CN105866190A (en) Electronic nose device for food detection and detection method
Qian et al. Enhancement of array optimization algorithm via information theory for a novel multisensor detection system
US20190145947A1 (en) Method and Device for Estimation of Alcohol Content in Fermentation or Distillation Vessels
JP2016001126A (en) Biogas detection apparatus, method, and program
CN103424517A (en) Device and method for detecting quality of yellow wine
Bhattacharyya et al. Electronic nose and electronic tongue
CN110887944A (en) A rapid detection device for tea oil quality
CN118347800B (en) Tobacco leaf baking stage detection method, medium and system based on gas sensor

Legal Events

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