[go: up one dir, main page]

CN117517299B - H2S colorimetric/electrical sensor and deep learning colorimetric/electrical dual sensing system - Google Patents

H2S colorimetric/electrical sensor and deep learning colorimetric/electrical dual sensing system Download PDF

Info

Publication number
CN117517299B
CN117517299B CN202311380798.2A CN202311380798A CN117517299B CN 117517299 B CN117517299 B CN 117517299B CN 202311380798 A CN202311380798 A CN 202311380798A CN 117517299 B CN117517299 B CN 117517299B
Authority
CN
China
Prior art keywords
colorimetric
color
electrical
color change
sensing system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311380798.2A
Other languages
Chinese (zh)
Other versions
CN117517299A (en
Inventor
张冬至
陈雅婧
张昊
唐明聪
刘希臣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Petroleum and Chemical Corp
China University of Petroleum East China
Sinopec Safety Engineering Research Institute Co Ltd
Original Assignee
China Petroleum and Chemical Corp
China University of Petroleum East China
Sinopec Safety Engineering Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Petroleum and Chemical Corp, China University of Petroleum East China, Sinopec Safety Engineering Research Institute Co Ltd filed Critical China Petroleum and Chemical Corp
Priority to CN202311380798.2A priority Critical patent/CN117517299B/en
Publication of CN117517299A publication Critical patent/CN117517299A/en
Application granted granted Critical
Publication of CN117517299B publication Critical patent/CN117517299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • DTEXTILES; PAPER
    • D01NATURAL OR MAN-MADE THREADS OR FIBRES; SPINNING
    • D01DMECHANICAL METHODS OR APPARATUS IN THE MANUFACTURE OF ARTIFICIAL FILAMENTS, THREADS, FIBRES, BRISTLES OR RIBBONS
    • D01D5/00Formation of filaments, threads, or the like
    • D01D5/0007Electro-spinning
    • D01D5/0015Electro-spinning characterised by the initial state of the material
    • D01D5/003Electro-spinning characterised by the initial state of the material the material being a polymer solution or dispersion
    • DTEXTILES; PAPER
    • D01NATURAL OR MAN-MADE THREADS OR FIBRES; SPINNING
    • D01DMECHANICAL METHODS OR APPARATUS IN THE MANUFACTURE OF ARTIFICIAL FILAMENTS, THREADS, FIBRES, BRISTLES OR RIBBONS
    • D01D5/00Formation of filaments, threads, or the like
    • D01D5/0007Electro-spinning
    • D01D5/0061Electro-spinning characterised by the electro-spinning apparatus
    • D01D5/0076Electro-spinning characterised by the electro-spinning apparatus characterised by the collecting device, e.g. drum, wheel, endless belt, plate or grid
    • D01D5/0084Coating by electro-spinning, i.e. the electro-spun fibres are not removed from the collecting device but remain integral with it, e.g. coating of prostheses
    • DTEXTILES; PAPER
    • D01NATURAL OR MAN-MADE THREADS OR FIBRES; SPINNING
    • D01FCHEMICAL FEATURES IN THE MANUFACTURE OF ARTIFICIAL FILAMENTS, THREADS, FIBRES, BRISTLES OR RIBBONS; APPARATUS SPECIALLY ADAPTED FOR THE MANUFACTURE OF CARBON FILAMENTS
    • D01F1/00General methods for the manufacture of artificial filaments or the like
    • D01F1/02Addition of substances to the spinning solution or to the melt
    • D01F1/10Other agents for modifying properties
    • DTEXTILES; PAPER
    • D01NATURAL OR MAN-MADE THREADS OR FIBRES; SPINNING
    • D01FCHEMICAL FEATURES IN THE MANUFACTURE OF ARTIFICIAL FILAMENTS, THREADS, FIBRES, BRISTLES OR RIBBONS; APPARATUS SPECIALLY ADAPTED FOR THE MANUFACTURE OF CARBON FILAMENTS
    • D01F6/00Monocomponent artificial filaments or the like of synthetic polymers; Manufacture thereof
    • D01F6/44Monocomponent artificial filaments or the like of synthetic polymers; Manufacture thereof from mixtures of polymers obtained by reactions only involving carbon-to-carbon unsaturated bonds as major constituent with other polymers or low-molecular-weight compounds
    • D01F6/50Monocomponent artificial filaments or the like of synthetic polymers; Manufacture thereof from mixtures of polymers obtained by reactions only involving carbon-to-carbon unsaturated bonds as major constituent with other polymers or low-molecular-weight compounds of polyalcohols, polyacetals or polyketals
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/75Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated
    • G01N21/77Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated by observing the effect on a chemical indicator
    • G01N21/78Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated by observing the effect on a chemical indicator producing a change of colour
    • G01N21/783Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated by observing the effect on a chemical indicator producing a change of colour for analysing gases

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Textile Engineering (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • General Chemical & Material Sciences (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Plasma & Fusion (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Dispersion Chemistry (AREA)
  • Manufacturing & Machinery (AREA)
  • Investigating Or Analysing Materials By The Use Of Chemical Reactions (AREA)

Abstract

The invention particularly relates to an H 2 S colorimetric/electrical sensor and a deep learning colorimetric/electrical dual-sensing system, which are synthesized by combining an H 2 S sensitive nanofiber membrane with a PET flexible interdigital electrode, and can simultaneously have two response characteristics of colorimetric and resistance change. The deep learning colorimetric/electrical dual-sensing system which visually displays visual response and simultaneously records resistance response is combined with the color-changing monitoring platform and the resistance response module, the effect of 'instant shooting instant measuring' is achieved, the gas concentration is rapidly and accurately detected, the detection advantages of strong applicability, wide application range, visualization and high precision can be achieved through a dual-sensing response complementary mechanism, the detection of the concentration H 2 S in a large range can be achieved, the resolution is high, the response time is short, the selectivity is high, the low detection limit of 0.1ppm is provided, the stability is good, and the concentration detection accuracy can reach 99.8%.

Description

H2S比色/电学传感器及深度学习比色/电学双传感系统H2S colorimetric/electrical sensor and deep learning colorimetric/electrical dual sensing system

技术领域Technical Field

本发明属于气敏传感器技术领域,具体涉及一种H2S比色/电学传感器及深度学习比色/电学双传感系统。The present invention belongs to the technical field of gas sensors, and in particular relates to a H 2 S colorimetric/electrical sensor and a deep learning colorimetric/electrical dual sensing system.

背景技术Background Art

硫化氢(H2S)是一种无色、易燃且有毒的气体,具有臭鸡蛋味。在低浓度(15至50ppm)下长时间接触H2S会刺激粘膜并引起头痛,头晕和恶心,高浓度(>200ppm)H2S可导致窒息、昏迷或意识丧失。因此,研究出能够对硫化氢气体具有响应且灵敏度高的监测系统至关重要。Hydrogen sulfide ( H2S ) is a colorless, flammable and toxic gas with a rotten egg smell. Prolonged exposure to H2S at low concentrations (15 to 50ppm) can irritate mucous membranes and cause headaches, dizziness and nausea, while high concentrations (>200ppm) can cause suffocation, coma or loss of consciousness. Therefore, it is critical to develop a monitoring system that can respond to hydrogen sulfide gas with high sensitivity.

比色气体传感器是一种通过颜色变化产生可视化传感信号进而识别待测气体的传感器件,具有功耗低、检测限低、体积小、操作便捷以及可提供视觉响应的优势。目前常用的比色传感器是基于薄膜、凝胶、纳米纤维、织物等构建的,以检测各种有害气体,例如氨、光气、硫化氢和挥发性有机化合物等。Colorimetric gas sensors are sensors that generate visual sensing signals through color changes to identify the gas to be tested. They have the advantages of low power consumption, low detection limit, small size, convenient operation, and visual response. Currently, commonly used colorimetric sensors are based on thin films, gels, nanofibers, fabrics, etc. to detect various harmful gases, such as ammonia, phosgene, hydrogen sulfide, and volatile organic compounds.

CN109856122A公开了一种比色型硫化氢传感器,利用绿色合成的结冷胶-银纳米溶液和琼脂溶液合成固态凝胶,对硫化氢气体具有高灵敏度的响应,与硫化氢进行反应时,颜色由黄色逐渐变为无色。但目前的H2S比色气体传感器颜色变化需要依赖大型仪器进行观察,若仅靠肉眼识别难以捕捉颜色变化产生的信息,使得检测精度低。因此,目前的比色气体传感器仅完成了部分的检测工作,未形成一个完整的H2S监测系统,难以突破某些环境的使用限制,尤其是在强光干扰及黑暗无光的环境下,比色传感功能受限。电学传感在不同光环境下拥有较好的稳定性以及选择性,将比色传感与电学传感相结合,能够解决极端光环境下检测工作难进行的问题。同时,结合深度学习的双传感系统能够规避检测过程中高功耗仪器的依赖,实现超低能耗(即无需大型分光仪、色差仪等)、高精度的比色-电学双功能一体化传感系统,进而形成完整的气体传感体系。CN109856122A discloses a colorimetric hydrogen sulfide sensor, which uses green synthetic gellan gum-silver nano-solution and agar solution to synthesize solid gel, has a high sensitivity response to hydrogen sulfide gas, and when reacting with hydrogen sulfide, the color gradually changes from yellow to colorless. However, the color change of the current H2S colorimetric gas sensor needs to rely on large instruments for observation. If it is only recognized by the naked eye, it is difficult to capture the information generated by the color change, resulting in low detection accuracy. Therefore, the current colorimetric gas sensor has only completed part of the detection work, and has not formed a complete H2S monitoring system. It is difficult to break through the use restrictions of certain environments, especially in strong light interference and dark and lightless environments, the colorimetric sensing function is limited. Electrical sensing has good stability and selectivity in different light environments. Combining colorimetric sensing with electrical sensing can solve the problem of difficult detection work in extreme light environments. At the same time, the dual sensing system combined with deep learning can avoid the reliance on high-power instruments during the detection process, realize an ultra-low energy consumption (i.e. no need for large spectrometers, colorimeters, etc.), high-precision colorimetric-electrical dual-function integrated sensing system, and thus form a complete gas sensing system.

发明内容Summary of the invention

针对现有技术的不足,本发明提供了一种H2S比色/电学传感器及深度学习比色/电学双传感系统。本发明以H2S敏感纳米纤维膜结合PET柔性叉指电极合成H2S比色/电学传感器,结合变色监控平台以及电阻响应模块得到能够直观展现视觉响应的深度学习比色/电学双传感系统,达到“即拍即测”、快速、精准检测气体浓度的效果,实现真正的可视化、超低功耗、高精度的检测优势。In view of the shortcomings of the prior art, the present invention provides an H 2 S colorimetric/electrical sensor and a deep learning colorimetric/electrical dual sensing system. The present invention synthesizes an H 2 S colorimetric/electrical sensor by combining an H 2 S sensitive nanofiber membrane with a PET flexible interdigital electrode, and combines a color change monitoring platform and a resistance response module to obtain a deep learning colorimetric/electrical dual sensing system that can intuitively display visual responses, achieving the effect of "shooting and measuring", rapid and accurate detection of gas concentration, and realizing the advantages of true visualization, ultra-low power consumption, and high precision detection.

为了实现上述目的,本发明第一方面提供一种H2S比色/电学传感器,包括H2S敏感纳米纤维膜和PET柔性叉指电极,所述H2S敏感纳米纤维膜通过静电纺丝工艺固定在所述PET柔性叉指电极上,所述H2S敏感纳米纤维膜为Pb(CH3CO2)2/PVA纳米纤维。将H2S敏感纳米纤维膜结合PET柔性叉指电极,使得传感器能够依据其比色-电阻的双响应特性提高其适用性和应用广泛性。In order to achieve the above-mentioned object, the first aspect of the present invention provides a H 2 S colorimetric/electrical sensor, comprising a H 2 S sensitive nanofiber membrane and a PET flexible interdigital electrode, wherein the H 2 S sensitive nanofiber membrane is fixed on the PET flexible interdigital electrode by an electrospinning process, and the H 2 S sensitive nanofiber membrane is Pb(CH 3 CO 2 ) 2 /PVA nanofiber. The H 2 S sensitive nanofiber membrane is combined with the PET flexible interdigital electrode, so that the sensor can improve its applicability and wide application according to its colorimetric-resistance dual response characteristics.

进一步地,所述H2S敏感纳米纤维膜为纳米纤维交错形成的致密网状结构,所述纳米纤维直径为250-400nm,所述H2S敏感纳米纤维膜厚度为0.5-0.7mm。Furthermore, the H 2 S sensitive nanofiber membrane is a dense network structure formed by interlaced nanofibers, the diameter of the nanofibers is 250-400 nm, and the thickness of the H 2 S sensitive nanofiber membrane is 0.5-0.7 mm.

具体的,纳米纤维膜的硫化氢传感灵敏性与其微观结构密切相关,大的比表面积和纤维交错形成的孔隙结构是纳米纤维膜对气体敏感的关键影响因素,更小的纤维尺寸会产生更多的孔隙结构,使得反应能够更快速、更充分,进而提高器件的灵敏度。并且,纤维膜具有一定的厚度,能够保证变色过程中不受PET柔性叉指电极本身颜色的干扰,并且在此厚度下,H2S的气敏传感性能最佳。Specifically, the hydrogen sulfide sensing sensitivity of the nanofiber membrane is closely related to its microstructure. The large specific surface area and the pore structure formed by the interlaced fibers are the key factors affecting the gas sensitivity of the nanofiber membrane. Smaller fiber sizes will produce more pore structures, making the reaction faster and more complete, thereby improving the sensitivity of the device. In addition, the fiber membrane has a certain thickness, which can ensure that the color change process is not interfered by the color of the PET flexible interdigital electrode itself, and at this thickness, the gas sensing performance of H 2 S is optimal.

本发明第二方面提供一种制备H2S比色/电学传感器的方法,包括以下步骤:The second aspect of the present invention provides a method for preparing a H 2 S colorimetric/electrical sensor, comprising the following steps:

(1)将三水合乙酸铅、NaF以及十二烷基硫酸钠溶于去离子水中获得乙酸铅溶液;(1) dissolving lead acetate trihydrate, NaF and sodium dodecyl sulfate in deionized water to obtain a lead acetate solution;

(2)将聚乙烯醇缓慢加入乙酸铅溶液中,经水浴加热搅拌获得静电纺丝溶液;(2) slowly adding polyvinyl alcohol into the lead acetate solution, and heating and stirring in a water bath to obtain an electrospinning solution;

(3)通过静电纺丝工艺将所述静电纺丝溶液以H2S敏感纳米纤维膜的形式固定在PET柔性叉指电极上获得所述H2S比色/电学传感器。(3) The electrospinning solution is fixed on a PET flexible interdigital electrode in the form of a H 2 S sensitive nanofiber membrane through an electrospinning process to obtain the H 2 S colorimetric/electrical sensor.

进一步地,所述三水合乙酸铅:NaF:十二烷基硫酸钠:聚乙烯醇的质量比为(0.8-1.2)g:(25-35)mg:(10-20)mg:(2.2-2.6)g,所述步骤(2)中加热搅拌温度为80-90℃,时间为8-10h。Furthermore, the mass ratio of lead acetate trihydrate: NaF: sodium dodecyl sulfate: polyvinyl alcohol is (0.8-1.2) g: (25-35) mg: (10-20) mg: (2.2-2.6) g, and the heating and stirring temperature in step (2) is 80-90° C. and the time is 8-10 h.

进一步地,所述步骤(3)中静电纺丝过程为:使用20、22或24号金属针头,在针头处施加20±1.5kV静电压,微量注射泵的推进速度为1±0.2mL/h,接收器距离针头10±0.5cm。纺丝过程中环境湿度为35%±5%,温度为25±2℃;纺丝时间为8~10h。调整传感器的制备工艺及参数可以改变纳米纤维的各种表面微观形态,如网状、多孔和开放结构,而纳米纤维膜的微观形态影响传感器的气敏性能。Furthermore, the electrospinning process in step (3) is as follows: using a 20, 22 or 24 gauge metal needle, applying 20±1.5 kV static voltage at the needle, the propulsion speed of the microinjection pump is 1±0.2 mL/h, and the receiver is 10±0.5 cm away from the needle. During the spinning process, the ambient humidity is 35%±5%, the temperature is 25±2°C, and the spinning time is 8~10 h. Adjusting the preparation process and parameters of the sensor can change various surface micromorphologies of nanofibers, such as mesh, porous and open structures, and the micromorphology of the nanofiber membrane affects the gas-sensitive performance of the sensor.

本发明第三方面提供一个深度学习比色/电学双传感系统,包括气室、H2S比色/电学传感器、电阻响应模块、变色监控平台、分析模块以及终端;A third aspect of the present invention provides a deep learning colorimetric/electrical dual sensing system, comprising a gas chamber, a H 2 S colorimetric/electrical sensor, a resistance response module, a color change monitoring platform, an analysis module, and a terminal;

所述H2S比色/电学传感器为前述提供的H2S比色/电学传感器,位于气室内部,用于实时检测H2S气体获得气体浓度信号,并将气体浓度信号转换为颜色变化信号以及电阻变化信号;The H 2 S colorimetric/electrical sensor is the aforementioned H 2 S colorimetric/electrical sensor, located inside the gas chamber, and used to detect H 2 S gas in real time to obtain a gas concentration signal, and convert the gas concentration signal into a color change signal and a resistance change signal;

所述电阻响应模块与所述H2S比色/电学传感器连接,用于实时采集、存储、显示传感器输出的电阻变化信号;The resistance response module is connected to the H 2 S colorimetric/electrical sensor and is used for real-time acquisition, storage and display of the resistance change signal output by the sensor;

所述变色监控平台用于实时采集、存储、显示传感器输出的颜色变化信号;The color change monitoring platform is used to collect, store and display the color change signals output by the sensor in real time;

所述分析模块装载于所述终端上,用于分析处理变色监控平台采集到的颜色变化信号,并基于分析处理结果输出H2S浓度;所述终端用于显示H2S浓度检测结果。The analysis module is loaded on the terminal, and is used to analyze and process the color change signal collected by the color change monitoring platform, and output the H 2 S concentration based on the analysis and processing result; the terminal is used to display the H 2 S concentration detection result.

进一步地,所述变色监控平台包括补光单元、采集单元、存储单元以及显示单元,所述补光单元为LED补光灯,所述采集单元为集成的摄像头模组,用于实时采集传感器输出的颜色变化信号,所述存储单元用于存储采集到的颜色变化信号,所述显示单元用于显示颜色变化信号。具体实施方式为,所述变色监控平台利用集成的摄像头模组捕获传感器在H2S环境下的变色图像,在统一光源下拍摄变色样本,样本规格控制一致,然后利用Python自带的Tkinter库设计的用户图形界面,实时返回拍摄视图,且能手动或者自动拍摄变色图像,存储在本地数据库中。Furthermore, the color change monitoring platform includes a fill light unit, a collection unit, a storage unit and a display unit, wherein the fill light unit is an LED fill light, the collection unit is an integrated camera module, which is used to collect the color change signal output by the sensor in real time, the storage unit is used to store the collected color change signal, and the display unit is used to display the color change signal. The specific implementation method is that the color change monitoring platform uses an integrated camera module to capture the color change image of the sensor in the H2S environment, shoots the color change sample under a uniform light source, and controls the sample specifications to be consistent, and then uses the user graphical interface designed by the Tkinter library provided by Python to return the shooting view in real time, and can manually or automatically shoot the color change image and store it in a local database.

进一步地,所述分析模块利用颜色分割算法对变色监控平台采集到的颜色变化信号分割,通过引入色差公式计算颜色变化信号的色差值ΔE,基于多层感知机算法设计的H2S浓度预测模型经测算给出H2S浓度。具体实施过程中,引入颜色分割算法将颜色变化信号即颜色响应结果进一步分割,肉眼可见的反应出传感器区域颜色变化的程度,引入CIE色差公式,在不外接色差仪的情况下,将颜色响应结果数字化,同时通过多层感知机预测模型,快速的给出所测量的H2S气体浓度。Furthermore, the analysis module uses a color segmentation algorithm to segment the color change signal collected by the color change monitoring platform, and calculates the color difference value ΔE of the color change signal by introducing a color difference formula. The H 2 S concentration prediction model designed based on the multi-layer perceptron algorithm gives the H 2 S concentration after measurement. In the specific implementation process, the color segmentation algorithm is introduced to further segment the color change signal, that is, the color response result, and the degree of color change in the sensor area is visible to the naked eye. The CIE color difference formula is introduced to digitize the color response result without an external colorimeter, and the measured H 2 S gas concentration is quickly given through the multi-layer perceptron prediction model.

进一步地,所述深度学习比色/电学双传感系统利用电阻响应模块,形成比色-电学双功能一体化传感系统,可以同时检测H2S比色/电学传感器的电阻响应值变化进而检测H2S气体,在强光干扰及黑暗无光的特殊环境下能够避免检测工作停摆。Furthermore, the deep learning colorimetric/electrical dual sensing system utilizes a resistance response module to form a colorimetric-electrical dual-function integrated sensing system, which can simultaneously detect the resistance response value change of the H2S colorimetric/electrical sensor and then detect H2S gas, and can avoid the detection work from being stopped in special environments of strong light interference and darkness.

进一步地,所述深度学习比色/电学双传感系统的检测范围为0-100ppm,检测限和分辨率为0.1ppm,比色响应时间小于4s,并且在180天保持性能稳定且强光干扰、黑暗无光场景下也能正常工作。Furthermore, the deep learning colorimetric/electrical dual sensing system has a detection range of 0-100ppm, a detection limit and resolution of 0.1ppm, a colorimetric response time of less than 4s, and maintains stable performance for 180 days and can work normally even in strong light interference and dark scenes.

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

(1)本发明以H2S敏感纳米纤维膜结合PET柔性叉指电极合成H2S比色/电学传感器,结合变色监控平台以及分析模块得到能够直观展现视觉响应的深度学习比色/电学双传感系统,达到“即拍即测”,快速、精准检测气体浓度的效果,实现真正的可视化、超低功耗、高精度的检测优势;并且还增加了电阻响应模块作为深度学习比色/电学双传感系统的响应补偿,以保证深度学习比色/电学双传感系统的完备性。(1) The present invention synthesizes an H2S colorimetric/electrical sensor by combining an H2S sensitive nanofiber membrane with a PET flexible interdigital electrode, and obtains a deep learning colorimetric/electrical dual sensing system that can intuitively display visual responses by combining a color change monitoring platform and an analysis module, thereby achieving the effect of "shoot and measure" and rapid and accurate detection of gas concentration, and realizing the advantages of true visualization, ultra-low power consumption, and high-precision detection; and a resistance response module is added as a response compensation of the deep learning colorimetric/electrical dual sensing system to ensure the completeness of the deep learning colorimetric/electrical dual sensing system.

(2)本发明的深度学习比色/电学双传感系统能够实现大范围浓度H2S的检测,检测限低,响应时间短,具有较高的选择性且具有0.1ppm的分辨率,并且稳定性好、浓度检测准确率最高可达99.8%。(2) The deep learning colorimetric/electrical dual sensing system of the present invention can detect a wide range of H 2 S concentrations, has a low detection limit, a short response time, high selectivity, a resolution of 0.1 ppm, good stability, and a concentration detection accuracy of up to 99.8%.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1a为本发明深度学习比色/电学双传感系统的制作工艺流程;图1b为本发明深度学习比色/电学双传感系统的浓度检测流程;FIG1a is a manufacturing process flow of the deep learning colorimetric/electrical dual sensing system of the present invention; FIG1b is a concentration detection process flow of the deep learning colorimetric/electrical dual sensing system of the present invention;

图2a为H2S敏感纳米纤维膜在1000倍率下的SEM图;图2b为H2S敏感纳米纤维膜在10000倍率下的SEM图;图2c为H2S敏感纳米纤维膜在相对湿度为50%的环境中放置一周后的SEM图;FIG2a is a SEM image of the H 2 S sensitive nanofiber membrane at a magnification of 1000; FIG2b is a SEM image of the H 2 S sensitive nanofiber membrane at a magnification of 10000; FIG2c is a SEM image of the H 2 S sensitive nanofiber membrane after being placed in an environment with a relative humidity of 50% for one week;

图3为本发明深度学习比色/电学双传感系统的浓度检测结果示意图;FIG3 is a schematic diagram of concentration detection results of the deep learning colorimetric/electrical dual sensing system of the present invention;

图4a为基于欧式距离分割算法处理图像显示结果;图4b为基于曼哈顿多通道距离分割算法处理图像显示结果;图4c为基于曼哈顿单通道距离分割算法处理图像显示结果;FIG4a is a display result of an image processed based on the Euclidean distance segmentation algorithm; FIG4b is a display result of an image processed based on the Manhattan multi-channel distance segmentation algorithm; FIG4c is a display result of an image processed based on the Manhattan single-channel distance segmentation algorithm;

图5为H2S比色/电学传感器分别在LED、自然光以及夜晚微光下于不同H2S浓度环境下的颜色变化结果;FIG5 shows the color change results of the H 2 S colorimetric/electrical sensor under different H 2 S concentration environments under LED, natural light and dim light at night;

图6为H2S比色/电学传感器在不同H2S浓度环境下的色差ΔE变化曲线;FIG6 is a color difference ΔE variation curve of the H 2 S colorimetric/electrical sensor under different H 2 S concentration environments;

图7a为基于3层感知机算法设计的H2S浓度预测模型的训练过程;图7b为基于曼哈顿多通道距离颜色分割算法的冷模型与暖模型的气体浓度预测结果;图7c为冷模型的测试准确率;图7d为暖模型的测试准确率;图7e为冷模型与暖模型的损失对比曲线;Figure 7a shows the training process of the H 2 S concentration prediction model designed based on the 3-layer perceptron algorithm; Figure 7b shows the gas concentration prediction results of the cold model and the warm model based on the Manhattan multi-channel distance color segmentation algorithm; Figure 7c shows the test accuracy of the cold model; Figure 7d shows the test accuracy of the warm model; Figure 7e shows the loss comparison curve of the cold model and the warm model;

图8a为H2S比色/电学传感器于NH3、SO2、NO2、H2以及H2S气体环境下的色差ΔE变化结果;图8b为H2S比色/电学传感器于两种混合气体环境下的色差ΔE变化结果;图8c为H2S比色/电学传感器在180天内的色差ΔE变化结果;FIG8a shows the color difference ΔE change results of the H 2 S colorimetric/electrical sensor in NH 3 , SO 2 , NO 2 , H 2 and H 2 S gas environments; FIG8b shows the color difference ΔE change results of the H 2 S colorimetric/electrical sensor in two mixed gas environments; FIG8c shows the color difference ΔE change results of the H 2 S colorimetric/electrical sensor within 180 days;

图9a为H2S比色/电学传感器在不同浓度H2S环境下的电阻响应结果;图9b为H2S比色/电学传感器于NH3、SO2、NO2、H2以及H2S气体环境下的电阻响应结果;图9c为H2S比色/电学传感器在180天内的电阻变化结果;图9d为H2S比色/电学传感器的电阻响应及色差ΔE响应结果比较图;FIG9a is the resistance response result of the H 2 S colorimetric/electrical sensor in different H 2 S concentration environments; FIG9b is the resistance response result of the H 2 S colorimetric/electrical sensor in NH 3 , SO 2 , NO 2 , H 2 and H 2 S gas environments; FIG9c is the resistance change result of the H 2 S colorimetric/electrical sensor within 180 days; FIG9d is a comparison diagram of the resistance response and color difference ΔE response results of the H 2 S colorimetric/electrical sensor;

图10a为H2S比色/电学传感器在0-5ppm H2S环境下的色差ΔE变化结果,图10b为图10a 于0.1-0.5ppm H2S环境下的色差ΔE变化结果的放大示意图;图10c为H2S比色/电学传感器在50.1-50.9ppm H2S环境下的色差ΔE变化差异性示意图;图10d为H2S比色/电学传感器在0-5ppm H2S环境下的电阻变化结果,图10e为图10d 于0.1-0.5ppm H2S环境下的电阻变化结果的放大示意图;图10f为H2S比色/电学传感器在50.1-50.9ppm H2S环境下的电阻变化差异性示意图。Figure 10a is the color difference ΔE change result of the H 2 S colorimetric/electrical sensor in a 0-5ppm H 2 S environment, and Figure 10b is an enlarged schematic diagram of the color difference ΔE change result of Figure 10a in a 0.1-0.5ppm H 2 S environment; Figure 10c is a schematic diagram of the difference in color difference ΔE change of the H 2 S colorimetric/electrical sensor in a 50.1-50.9ppm H 2 S environment; Figure 10d is the resistance change result of the H 2 S colorimetric/electrical sensor in a 0-5ppm H 2 S environment, and Figure 10e is an enlarged schematic diagram of the resistance change result of Figure 10d in a 0.1-0.5ppm H 2 S environment; Figure 10f is a schematic diagram of the resistance change difference of the H 2 S colorimetric/electrical sensor in a 50.1-50.9ppm H 2 S environment.

具体实施方式DETAILED DESCRIPTION

以下结合实例对本发明的原理和特征进行描述,所举实例只用于解释本发明,并非用于限定本发明的范围。图1a为本发明深度学习比色/电学双传感系统的制作工艺流程;图1b为本发明深度学习比色/电学双传感系统的浓度检测流程。The principles and features of the present invention are described below with reference to examples. The examples are only used to explain the present invention and are not used to limit the scope of the present invention. Figure 1a is a manufacturing process flow of the deep learning colorimetric/electrical dual sensing system of the present invention; Figure 1b is a concentration detection process flow of the deep learning colorimetric/electrical dual sensing system of the present invention.

实施例1Example 1

一种H2S比色/电学传感器,包括H2S敏感纳米纤维膜和PET柔性叉指电极,所述H2S敏感纳米纤维膜厚度为0.6mm。A H 2 S colorimetric/electrical sensor comprises a H 2 S sensitive nanofiber membrane and a PET flexible interdigital electrode, wherein the thickness of the H 2 S sensitive nanofiber membrane is 0.6 mm.

制备方法包括以下步骤:The preparation method comprises the following steps:

S1 将1g (CH3COO)2Pb·3H2O、30mg NaF,15mg十二烷基硫酸钠(SDS)加入20mL的去离子水中,27℃下磁力搅拌1.5h获得清澈的乙酸铅溶液;S1 Add 1 g (CH 3 COO) 2 Pb·3H 2 O, 30 mg NaF, and 15 mg sodium dodecyl sulfate (SDS) into 20 mL of deionized water and stir magnetically at 27 °C for 1.5 h to obtain a clear lead acetate solution;

S2 将2.4g聚乙烯醇(PVA)缓慢加入乙酸铅溶液中,85oC下水浴搅拌9h,搅拌结束后取出室温静置30分钟,制得静电纺丝液;S2 Slowly add 2.4g polyvinyl alcohol (PVA) into the lead acetate solution, stir in a water bath at 85 ° C for 9h, take out and let stand at room temperature for 30 minutes after stirring to obtain the electrospinning solution;

S3 将所得静电纺丝液吸入一次性注射器中,使用22号金属针头进行静电纺丝:在针头处施加20kV静电压,微量注射泵的推进速度为1mL/h,接收器距离针头10cm,纺丝过程中环境湿度为35%,温度为25oC,纺丝9h,以H2S敏感纳米纤维膜的形式通过静电纺丝工艺固定在PET柔性叉指电极上,获得所述H2S比色/电学传感器。S3 The obtained electrospinning liquid is sucked into a disposable syringe and electrospinning is performed using a 22-gauge metal needle: a 20 kV static voltage is applied to the needle, the propulsion speed of the microinjection pump is 1 mL/h, the receiver is 10 cm away from the needle, the ambient humidity during the spinning process is 35%, the temperature is 25 o C, and the spinning time is 9 hours. The H 2 S sensitive nanofiber membrane is fixed on the PET flexible interdigital electrode through an electrospinning process to obtain the H 2 S colorimetric/electrical sensor.

图2为H2S敏感纳米纤维膜的SEM图,从图2a可以看到,纳米纤维均随机分布,且纤维交错形成致密的网状结构,从图2b可以得到,纳米纤维的直径为250-400nm。由于原料中添加(CH3COO)2Pb·3H2O,增加了纺丝液中的离子浓度,溶液电导率增加,溶液射流在电场中的不稳定性增加,使亚纳米纤维从主纤维分裂,从而在静电纺丝中形成蛛网状的结构,而更小的纤维尺寸会产生更多的孔隙结构,使得反应能够更快速、更充分,提高了器件的灵敏度。此外,为了验证H2S敏感纳米纤维膜的稳定性,将H2S敏感纳米纤维膜放置在大气环境中(相对湿度50%)1周,由图2c可以看出,纳米纤维上未析出(CH3COO)2Pb颗粒,表明H2S敏感纳米纤维膜具有较好的稳定性。Figure 2 is a SEM image of the H 2 S sensitive nanofiber membrane. As can be seen from Figure 2a, the nanofibers are randomly distributed and the fibers are interlaced to form a dense network structure. As can be seen from Figure 2b, the diameter of the nanofibers is 250-400nm. Since (CH 3 COO) 2 Pb·3H 2 O is added to the raw material, the ion concentration in the spinning solution is increased, the solution conductivity is increased, and the instability of the solution jet in the electric field is increased, so that the sub-nanofibers are split from the main fibers, thereby forming a spider web structure in the electrospinning process. The smaller fiber size will produce more pore structures, making the reaction faster and more complete, thereby improving the sensitivity of the device. In addition, in order to verify the stability of the H 2 S sensitive nanofiber membrane, the H 2 S sensitive nanofiber membrane was placed in an atmospheric environment (relative humidity 50%) for 1 week. As can be seen from Figure 2c, no (CH 3 COO) 2 Pb particles were precipitated on the nanofibers, indicating that the H 2 S sensitive nanofiber membrane has good stability.

实施例2Example 2

一种H2S比色/电学传感器,包括H2S敏感纳米纤维膜和PET柔性叉指电极,所述H2S敏感纳米纤维膜为纳米纤维交错形成的致密网状结构,膜厚度为0.5mm。A H 2 S colorimetric/electrical sensor comprises a H 2 S sensitive nanofiber membrane and a PET flexible interdigital electrode. The H 2 S sensitive nanofiber membrane is a dense mesh structure formed by interlacing nanofibers, and the membrane thickness is 0.5 mm.

制备方法包括以下步骤:The preparation method comprises the following steps:

S1 将0.8g (CH3COO)2Pb·3H2O、25mg NaF、10mg SDS加入20mL的去离子水中,25℃下磁力搅拌1.5 h获得清澈的乙酸铅溶液;S1 0.8 g (CH 3 COO) 2 Pb·3H 2 O, 25 mg NaF, and 10 mg SDS were added to 20 mL of deionized water and stirred magnetically at 25 °C for 1.5 h to obtain a clear lead acetate solution;

S2 将2.2g PVA缓慢加入乙酸铅溶液中,80oC下水浴搅拌8h,搅拌结束后取出室温静置25min,制得静电纺丝液;S2 Slowly add 2.2g PVA into the lead acetate solution, stir in a water bath at 80 ° C for 8h, take out and let stand at room temperature for 25min after stirring to obtain the electrospinning solution;

S3 将所得静电纺丝液吸入一次性注射器中,使用20号金属针头进行静电纺丝:在针头处施加18.5kV静电压,微量注射泵的推进速度为0.8mL/h,接收器距离针头9.5cm,纺丝过程中环境湿度为30%,温度为23oC,纺丝8h,以H2S敏感纳米纤维膜的形式通过静电纺丝工艺固定在PET柔性叉指电极上,获得所述H2S比色/电学传感器。S3 The obtained electrospinning liquid is sucked into a disposable syringe and electrospinning is performed using a 20-gauge metal needle: an electrostatic voltage of 18.5 kV is applied to the needle, the propulsion speed of the microinjection pump is 0.8 mL/h, the receiver is 9.5 cm away from the needle, the ambient humidity during the spinning process is 30%, the temperature is 23 o C, and the spinning is performed for 8 hours. The H 2 S sensitive nanofiber membrane is fixed on the PET flexible interdigital electrode through an electrospinning process to obtain the H 2 S colorimetric/electrical sensor.

实施例3Example 3

一种H2S比色/电学传感器,包括H2S敏感纳米纤维膜和PET柔性叉指电极,所述H2S敏感纳米纤维膜为纳米纤维交错形成的致密网状结构,膜厚度为0.7mm。A H 2 S colorimetric/electrical sensor comprises a H 2 S sensitive nanofiber membrane and a PET flexible interdigital electrode. The H 2 S sensitive nanofiber membrane is a dense mesh structure formed by interlacing nanofibers, and the membrane thickness is 0.7 mm.

制备方法包括以下步骤:The preparation method comprises the following steps:

S1 将1.2g (CH3COO)2Pb·3H2O、35mg NaF、20mg SDS加入20mL的去离子水中,25℃下磁力搅拌2h获得清澈的乙酸铅溶液;S1 1.2 g (CH 3 COO) 2 Pb·3H 2 O, 35 mg NaF, and 20 mg SDS were added to 20 mL of deionized water and stirred magnetically at 25 °C for 2 h to obtain a clear lead acetate solution;

S2将2.6g PVA缓慢加入乙酸铅溶液中,90oC下水浴搅拌10h,搅拌结束后取出室温静置35min,制得静电纺丝液;S2: 2.6 g PVA was slowly added into the lead acetate solution, and stirred in a water bath at 90 ° C for 10 h. After the stirring was completed, the solution was taken out and allowed to stand at room temperature for 35 min to obtain an electrospinning solution.

S3 将所得静电纺丝液吸入一次性注射器中,使用24号金属针头进行静电纺丝:在针头处施加21.5kV静电压,微量注射泵的推进速度为1.2mL/h,接收器距离针头10.5cm,纺丝过程中环境湿度为40%,温度为27oC,纺丝10h,以H2S敏感纳米纤维膜的形式通过静电纺丝工艺固定在PET柔性叉指电极上,获得所述H2S比色/电学传感器。S3 The obtained electrospinning liquid is sucked into a disposable syringe and electrospinning is performed using a 24-gauge metal needle: a static voltage of 21.5 kV is applied to the needle, the propulsion speed of the microinjection pump is 1.2 mL/h, the receiver is 10.5 cm away from the needle, the ambient humidity during the spinning process is 40%, the temperature is 27 o C, the spinning is 10 hours, and the H 2 S sensitive nanofiber membrane is fixed on the PET flexible interdigital electrode through the electrospinning process to obtain the H 2 S colorimetric/electrical sensor.

深度学习比色/电学双传感系统Deep learning colorimetric/electrical dual sensing system

以实施例1中的比色/电学传感器搭建深度学习比色/电学双传感系统,主要包括气室、H2S比色/电学传感器、变色监控平台、分析模块以及终端。H2S比色/电学传感器位于气室内部,用于实时检测H2S气体获得气体浓度信号,并将气体浓度信号转换为颜色变化信号以及电阻变化信号;变色监控平台用于实时采集、存储、显示传感器输出的颜色变化信号;分析模块装载于终端上,用于分析处理变色监控平台采集到的颜色变化信号,并基于分析处理结果输出H2S浓度;终端用于显示H2S浓度检测结果,图3为本发明深度学习比色/电学双传感系统的浓度检测结果示意图。A deep learning colorimetric/electrical dual sensing system is constructed using the colorimetric/electrical sensor in Example 1, which mainly includes a gas chamber, an H 2 S colorimetric/electrical sensor, a color change monitoring platform, an analysis module, and a terminal. The H 2 S colorimetric/electrical sensor is located inside the gas chamber, and is used to detect H 2 S gas in real time to obtain a gas concentration signal, and convert the gas concentration signal into a color change signal and a resistance change signal; the color change monitoring platform is used to collect, store, and display the color change signal output by the sensor in real time; the analysis module is loaded on the terminal, and is used to analyze and process the color change signal collected by the color change monitoring platform, and output the H 2 S concentration based on the analysis and processing results; the terminal is used to display the H 2 S concentration detection result. FIG3 is a schematic diagram of the concentration detection result of the deep learning colorimetric/electrical dual sensing system of the present invention.

深度学习比色/电学双传感系统还包括电阻响应模块,与H2S比色/电学传感器连接,用于实时采集、存储、显示H2S比色/电学传感器输出的电阻变化信号进而检测H2S气体。The deep learning colorimetric/electrical dual sensing system also includes a resistance response module, which is connected to the H 2 S colorimetric/electrical sensor and is used to collect, store, and display the resistance change signal output by the H 2 S colorimetric/electrical sensor in real time to detect H 2 S gas.

变色监控平台包括补光单元、采集单元、存储单元以及显示单元,补光单元为LED补光灯,采集单元为集成的摄像头模组,用于实时采集传感器输出的颜色变化信号,存储单元用于存储采集的颜色变化信号,显示单元用于显示颜色变化信号。具体的,变色监控平台利用集成的摄像头模组捕获传感器在H2S环境下的变色图像,摄像头与变色样本保持15cm的距离,在统一光源下拍摄变色样本,样本规格控制一致均为2cm×2cm,然后利用Python自带的Tkinter库设计的用户图形界面,可以实时返回拍摄视图,且能手动或者自动拍摄变色图像,存储在本地数据库中,便于后期算法调用处理数据。The color change monitoring platform includes a fill light unit, a collection unit, a storage unit and a display unit. The fill light unit is an LED fill light, the collection unit is an integrated camera module, which is used to collect the color change signal output by the sensor in real time, the storage unit is used to store the collected color change signal, and the display unit is used to display the color change signal. Specifically, the color change monitoring platform uses an integrated camera module to capture the color change image of the sensor in the H2S environment. The camera is kept at a distance of 15cm from the color change sample, and the color change sample is photographed under a uniform light source. The sample specifications are controlled to be consistent at 2cm×2cm. Then, the user graphical interface designed using the Tkinter library that comes with Python can return the shooting view in real time, and can manually or automatically shoot the color change image and store it in the local database, which is convenient for the later algorithm to call and process the data.

具体操作过程中,将H2S比色/电学传感器置于在气室,依次通入浓度定量递增的H2S气体,通过变色监控平台界面实时观察传感器的变色情况,并拍摄不同浓度下的传感器变色结果,将这些变色样本统一存储在本地数据库中,它们都具有与H2S气体浓度对应的标签,即当前已知气体浓度。对于没有标签的变色样本图像,需要立即辨别这个样本所处环境下的H2S气体浓度,为了实现“即拍即得”的测量效果,将色彩表达转换成直观精准的气体浓度数据告知用户,需要利用分析模块实现快速的气体浓度测算。In the specific operation process, the H 2 S colorimetric/electrical sensor is placed in the gas chamber, and H 2 S gas with quantitative increasing concentration is introduced in sequence. The color change of the sensor is observed in real time through the color change monitoring platform interface, and the color change results of the sensor at different concentrations are photographed. These color change samples are uniformly stored in the local database, and they all have labels corresponding to the H 2 S gas concentration, that is, the current known gas concentration. For the color change sample images without labels, it is necessary to immediately identify the H 2 S gas concentration in the environment where the sample is located. In order to achieve the "shoot and get" measurement effect, the color expression is converted into intuitive and accurate gas concentration data to inform the user, and the analysis module is required to achieve rapid gas concentration measurement.

分析模块利用基于欧式距离或曼哈顿距离(单通道或多通道)的颜色分割算法对变色监控平台采集到的颜色变化信号分割,通过引入色差公式如CIE 1976、CIE 1995或CIEDE2000计算颜色变化信号的色差值ΔE,基于多层感知机算法设计的H2S浓度预测模型经测算给出H2S浓度。其中,色差值ΔE可以分辨不同气体浓度环境下比色/电学传感器的色度变化程度,颜色分割算法以冷色色集或暖色色集模型处理颜色变化信号即变色样本图像。The analysis module uses a color segmentation algorithm based on Euclidean distance or Manhattan distance (single channel or multi-channel) to segment the color change signal collected by the color change monitoring platform, and calculates the color difference value ΔE of the color change signal by introducing a color difference formula such as CIE 1976, CIE 1995 or CIEDE2000. The H 2 S concentration prediction model designed based on the multi-layer perceptron algorithm gives the H 2 S concentration after measurement. Among them, the color difference value ΔE can distinguish the degree of chromaticity change of the colorimetric/electrical sensor under different gas concentration environments, and the color segmentation algorithm processes the color change signal, i.e., the color change sample image, with a cold color set or warm color set model.

具体实施方式中,调用变色监控平台的本地数据库,划分200个已变色的图像作为后期预测模型的训练集,50个变色图像作为验证模型精度的测试集。利用基于欧氏距离、曼哈顿距离的颜色分割算法对样本图像预处理,像素均值计算可以得到变色图像的(R,G,B)均值向量,将样本RGB值转变为色差仪适用的L*a*b*颜色空间,可以通过CIE色差公式,计算图像的色差值ΔE,以分辨不同气体浓度环境下比色/电学传感器的色度变化,白色到深棕色的颜色变化可以证明H2S的存在。基于多层感知机算法设计的H2S浓度预测模型,能够快速给出最终测算结果,最终可以实现高精度、低成本、跨平台适用的H2S检测,真正实现“即拍即得”的测量效果。In a specific implementation, the local database of the color change monitoring platform is called, and 200 images that have changed color are divided as the training set of the later prediction model, and 50 color change images are used as the test set to verify the accuracy of the model. The sample image is preprocessed using the color segmentation algorithm based on Euclidean distance and Manhattan distance. The pixel mean calculation can obtain the (R, G, B) mean vector of the color change image, and the sample RGB value is converted into the L*a*b* color space applicable to the colorimeter. The color difference value ΔE of the image can be calculated by the CIE color difference formula to distinguish the chromaticity change of the colorimetric/electrical sensor under different gas concentration environments. The color change from white to dark brown can prove the presence of H 2 S. The H 2 S concentration prediction model designed based on the multi-layer perceptron algorithm can quickly give the final measurement result, and finally can achieve high-precision, low-cost, cross-platform applicable H 2 S detection, and truly achieve the measurement effect of "shoot and get".

实验过程中收集的变色样本需要经过图像预处理才可以用于训练模型。需要将一张变色样本图处理为一个(R,G,B)向量,并且这个向量要作为该变色样本对应的气体浓度值的“指针”,用作输入来训练浓度预测模型。变色样本图像计算均值时,是分割图片的每个像素且对单个像素(Ri,Gi,Bi)值进行判断,分别循环累加计算每个像素的(Ri,Gi,Bi)值,从而得出变色样本的像素均值向量(R,G,B)。具体由下述公式计算得到:The color-changing samples collected during the experiment need to undergo image preprocessing before they can be used to train the model. A color-changing sample image needs to be processed into a (R, G, B) vector, and this vector is used as a "pointer" to the gas concentration value corresponding to the color-changing sample and used as input to train the concentration prediction model. When calculating the mean of the color-changing sample image, each pixel of the image is segmented and the value of a single pixel (R i , G i , B i ) is judged. The (R i , G i , B i ) value of each pixel is calculated cyclically and accumulated, respectively, to obtain the pixel mean vector (R, G, B) of the color-changing sample. It is specifically calculated using the following formula:

颜色分割算法是图像预处理的重要步骤,基于RGB空间对彩色图像进行像素点分类,即给变色样本图像进行区域提取,再根据给定的彩色样点集,为分割区域指定平均颜色,这样能够清楚的分辨出样本图像上各区域的反应程度。为了实现有效的颜色分割,引入相似性度量,欧式距离、曼哈顿单通道距离以及曼哈顿多通道距离计算方式依次如下:The color segmentation algorithm is an important step in image preprocessing. It classifies the pixels of the color image based on the RGB space, that is, extracts the region of the color-changing sample image, and then assigns the average color to the segmented region based on the given color sample set, so that the reaction degree of each region on the sample image can be clearly distinguished. In order to achieve effective color segmentation, the similarity metric is introduced. The calculation methods of Euclidean distance, Manhattan single-channel distance and Manhattan multi-channel distance are as follows:

D(z,α)=ǁz-αǁ=[(zRR)2+(zGG)2+(zBB)2],D(z,α)≤D0 D(z,α)=ǁz-αǁ=[(z RR ) 2 +(z GG ) 2 +(z BB ) 2 ], D(z,α)≤D 0

DMR(ZRR)=ǀZRRǀD MR (Z RR )=ǀZ RR ǀ

DM(z,α)=ǁz-αǁL1=ǀzRRǀ+ǀzGGǀ+ǀzBBǀ,DM≤ηǁσ‖L1D M (z,α)=ǁz-αǁ L1 =ǀz RR ǀ+ǀz GG ǀ+ǀz BB ǀ, D M ≤ηǁσ‖L1

其中,Z为当前分割像素点的(Ri,Gi,Bi)值,α为分割颜色区域的颜色平均(R,G,B),下标注为RGB分量,D0为分割阈值,ǁσ‖L1为三通道各自的标准差向量,η为标准差系数,通常为1.25。Among them, Z is the (R i , G i , B i ) value of the current segmented pixel, α is the color average (R, G, B) of the segmented color area, the subscript is RGB component, D 0 is the segmentation threshold, ǁσ‖L1 is the standard deviation vector of each of the three channels, and η is the standard deviation coefficient, usually 1.25.

在颜色分割处理图像时,不同颜色样点集的选择对分割的最终效果有比较明显的影响,将会呈现不同的色块分割结果,且差异较大。以20ppm H2S环境下的变色样本图像为例,用基于欧氏距离的分割算法处理图像(分割阈值为1500),给定彩色样点集依次分别为黑白色集、暖色色集、冷色色集,如图4a;用基于曼哈顿距离的分割算法处理图像(ǁσ‖L1取1.25),给定彩色样点集依次分别为黑白色集、暖色色集、冷色色集,如图4b。明显看出,基于曼哈顿算法的颜色分割更加灵敏,像素分类更加精细,同时基于曼哈顿单通道的颜色分割(给定单通道灰度色集,单通道单一色集)如图4c,能看出“Blue”颜色对应部分对变色样本图像分割效果更好,由于变色样本色彩本身偏向较黑的色调(白色逐渐过渡到黑棕色),则在彩色样点集选择中,冷色样点呈现的效果更好。When processing images by color segmentation, the selection of different color sample sets has a significant impact on the final segmentation effect, and different color block segmentation results will be presented, and the difference is large. Taking the discolored sample image under 20ppm H2S environment as an example, the image is processed by the segmentation algorithm based on Euclidean distance (the segmentation threshold is 1500), and the given color sample sets are black and white set, warm color set, and cold color set, as shown in Figure 4a; the image is processed by the segmentation algorithm based on Manhattan distance (ǁσ‖L1 is taken as 1.25), and the given color sample sets are black and white set, warm color set, and cold color set, as shown in Figure 4b. It is obvious that the color segmentation based on the Manhattan algorithm is more sensitive and the pixel classification is more refined. At the same time, the color segmentation based on Manhattan single channel (given a single channel grayscale color set, a single channel single color set) is shown in Figure 4c. It can be seen that the "Blue" color corresponding part has a better segmentation effect on the discolored sample image. Since the color of the discolored sample itself tends to be darker (white gradually transitions to black and brown), the cold color sample points have a better effect in the selection of color sample sets.

为适应各种复杂环境、精确识别出H2S气体,以人眼的角度平衡数字与颜色的感知一致性并证明比色/电学传感器的单一选择性,本发明引入CIE色差计算公式(CIE 1976、CIE 1995或CIE DE2000),添加了色差计算的功能,目的是替代比色实验中较大功耗的色差仪的工作,从而减少检测工序,实时计算观测样本的变色程度。In order to adapt to various complex environments, accurately identify H2S gas, balance the perceptual consistency of numbers and colors from the perspective of the human eye, and prove the single selectivity of colorimetric/electrical sensors, the present invention introduces the CIE color difference calculation formula (CIE 1976, CIE 1995 or CIE DE2000), and adds the function of color difference calculation, the purpose of which is to replace the work of the colorimeter with large power consumption in the colorimetric experiment, thereby reducing the detection process and calculating the color change degree of the observed sample in real time.

为了灵活且快速的衡量比色/电学传感器在一定H2S气体浓度下的变色程度,将其置于配有变色监控平台的气室内,并通过摄像头实时监控传感器的变色情况。定义比色/电学传感器的初始颜色为标准色,每经过一秒采集一次传感器变色的图像作为样本色。为了尽可能的保证系统在不同光照环境下的检测效果,摄像头分别在LED补光灯、自然光、夜晚微光的H2S环境下捕获传感器变色的图像,如图5,然后将图像数据上传至智能终端。以Python为开发语言,在Spyder的编译环境下,计算图像的RGB像素均值,并调用提前写好的RGB值转换L*a*b*色彩空间表达函数,其核心计算公式(1)(2)(3)展示如下。因为RGB颜色空间不能直接转换为L*a*b*颜色空间,所以需要借助XYZ颜色空间,把RGB颜色空间转换到XYZ颜色空间,之后再把XYZ颜色空间转换到L*a*b*颜色空间,获得所有图像颜色的Lab数值表达,最后调用CIE DE2000色差计算公式的函数,得到传感器的色差ΔE变化曲线如图6所示。In order to flexibly and quickly measure the color change degree of the colorimetric/electrical sensor under a certain H 2 S gas concentration, it is placed in a gas chamber equipped with a color change monitoring platform, and the color change of the sensor is monitored in real time through a camera. The initial color of the colorimetric/electrical sensor is defined as the standard color, and an image of the sensor color change is collected once every second as the sample color. In order to ensure the detection effect of the system under different lighting environments as much as possible, the camera captures the image of the sensor color change under the H 2 S environment of LED fill light, natural light, and dim light at night, as shown in Figure 5, and then uploads the image data to the smart terminal. Using Python as the development language, in the Spyder compilation environment, the RGB pixel mean of the image is calculated, and the RGB value conversion L*a*b* color space expression function written in advance is called. Its core calculation formula (1)(2)(3) is shown below. Because the RGB color space cannot be directly converted to the L*a*b* color space, it is necessary to use the XYZ color space to convert the RGB color space to the XYZ color space, and then convert the XYZ color space to the L*a*b* color space to obtain the Lab numerical expression of all image colors. Finally, the function of the CIE DE2000 color difference calculation formula is called to obtain the color difference ΔE change curve of the sensor as shown in Figure 6.

(1) (1)

(2) (2)

(3) (3)

经过图像预处理完成图像数据与数字数据的转换,数据清洗过后,获得可以用于训练气体浓度预测模型的数据集合。后续使用多层感知机算法(Multi-Layer FeedForward Neural Networks)来预测未知浓度的H2S气体,其在处理多维非线性数据表现出较好的稳定性,且能够快速给出预测结果。如图7a表示了基于3层感知机算法设计的H2S浓度预测模型的训练过程。训练过程中选择Adam优化器,其功能实现简单,计算高效,对内存需求少,且参数的更新不受梯度的伸缩变换影响。After image preprocessing, the conversion between image data and digital data is completed. After data cleaning, a data set that can be used to train the gas concentration prediction model is obtained. Subsequently, the multi-layer perceptron algorithm (Multi-Layer FeedForward Neural Networks) is used to predict the unknown concentration of H 2 S gas. It shows good stability in processing multi-dimensional nonlinear data and can quickly give prediction results. Figure 7a shows the training process of the H 2 S concentration prediction model designed based on the 3-layer perceptron algorithm. The Adam optimizer is selected during the training process. Its function is simple to implement, computationally efficient, requires less memory, and the parameter update is not affected by the scaling transformation of the gradient.

R = (R1,R2......R200)T,G = (G1,G2......G200)T,B = (B1,B2……B200)T为200个训练样本的RGB均值的向量,将其作为三层感知机输入层的输入,X1 ,X2 ,X3是输入层的3个神经元模型,从输入层到第一个隐藏层,是一个多元线性回归过程,设定输入层到第一层隐藏层的初始权重为W1,W2,W3,此时第一层隐藏层的神经元的输入由式(4)计算可得到;第一层隐藏层到第二层隐藏层是个非线性回归过程,由于其计算的稳定性,并且避免了随机梯度下降优化计算时出现梯度消失的情况,选择ReLU函数(Rectified Linear Unit)为激活函数。结合激活函数,能够得出第一层隐藏层神经元的输出,如式(5)计算可得,以及第二层隐藏层神经元的输入,可由式(6)计算得到。其中m = (100,50,20) 分别是三个隐藏层的维度,v1 ,v2 ……vm为每一层隐藏层到下一层的权重值。多次反复计算可得输出层输出气体浓度预测结果,简称Y-p。R = (R 1 ,R 2 ......R 200 ) T ,G = (G 1 ,G 2 ......G 200 ) T ,B = (B 1 ,B 2 ......B 200 ) T is the vector of the RGB mean values of 200 training samples, which is used as the input of the input layer of the three-layer perceptron. X 1 ,X 2 ,X 3 are the three neuron models of the input layer. From the input layer to the first hidden layer, it is a multivariate linear regression process. The initial weights from the input layer to the first hidden layer are set to W 1 ,W 2 ,W 3 . At this time, the input of the neurons in the first hidden layer can be calculated by formula (4). The process from the first hidden layer to the second hidden layer is a nonlinear regression process. Due to its calculation stability and avoiding the gradient vanishing during the stochastic gradient descent optimization calculation, the ReLU function (Rectified Linear Unit) is selected as the activation function. Combined with the activation function, the output of the first hidden layer neurons can be obtained, as calculated by formula (5), and the input of the second hidden layer neurons can be calculated by formula (6). Where m = (100, 50, 20) are the dimensions of the three hidden layers, v 1 , v 2 ... v m are the weight values of each hidden layer to the next layer. Repeated calculations can obtain the output gas concentration prediction result of the output layer, referred to as Yp.

(4) (4)

(5) (5)

(6) (6)

经过训练的模型需要进一步进行测试,决定是否能够投入未知浓度的H2S气体环境进行工作。基于曼哈顿多通道距离颜色分割算法(其中三通道各自的标准差σ向量设定为1.25),选定冷暖色集处理变色样本图像,冷暖色集处理的图像数据分别用于训练两个原始模型,并将训练后的两个模型命名为冷模型与暖模型。设定一个测试集输入训练好的模型,模型立即给出了气体浓度预测结果,如图7b,可以直观的发现,冷模型的浓度预测曲线展现出更好的拟合度,而热模型的浓度预测曲线相对于对中心线相对偏移较大。为评估气体预测模型的预测精度,决定系数R2被引入作为评价模型优劣程度指标。R2的值在[0,1]之间波动,R2越高,说明预测的气体浓度值越接近真实值,模型预测精度高,性能更加优越。图7c以及7d分别展现了冷模型以及暖模型的测试准确率,热模型的准确率相对较低,准确率仅能达到82.3%,而冷模型的准确率最高可达99.8%,明显高于冷模型,呈现出优异的H2S气体浓度预测能力。模型训练过程中,预测结果Y-p与已知数据Y,作为(y-pi,yi)输入,用以计算模型的损失。定义损失函数每迭代500次计算一次损失,如式(7),即计算均方误差MSE (MeanSquared Error)。两个模型的损失对比曲线如图7e,可以明显看出冷模型损失较少,且能够更快地达到损失最小值0.00012。The trained model needs to be further tested to determine whether it can be put into operation in an unknown H 2 S gas environment. Based on the Manhattan multi-channel distance color segmentation algorithm (where the standard deviation σ vector of each of the three channels is set to 1.25), the cold and warm color sets are selected to process the discolored sample images. The image data processed by the cold and warm color sets are used to train two original models respectively, and the two trained models are named cold model and warm model. A test set is set to input the trained model, and the model immediately gives the gas concentration prediction result. As shown in Figure 7b, it can be intuitively found that the concentration prediction curve of the cold model shows a better fit, while the concentration prediction curve of the hot model has a larger relative deviation from the center line. In order to evaluate the prediction accuracy of the gas prediction model, the determination coefficient R 2 is introduced as an indicator to evaluate the quality of the model. The value of R 2 fluctuates between [0,1]. The higher the R 2 , the closer the predicted gas concentration value is to the true value, the higher the model prediction accuracy is, and the better the performance is. Figures 7c and 7d show the test accuracy of the cold model and the warm model respectively. The accuracy of the hot model is relatively low, only reaching 82.3%, while the accuracy of the cold model can reach up to 99.8%, which is significantly higher than the cold model, showing excellent H 2 S gas concentration prediction ability. During the model training process, the predicted result Yp and the known data Y are used as (yp i , y i ) inputs to calculate the model loss. The loss function is defined to calculate the loss once every 500 iterations, as shown in formula (7), that is, to calculate the mean square error MSE (MeanSquared Error). The loss comparison curves of the two models are shown in Figure 7e. It can be clearly seen that the cold model has less loss and can reach the minimum loss value of 0.00012 faster.

(7) (7)

由此,本发明的深度学习比色/电学双传感系统能实现H2S短时间安全检测,结合实时的变色监控平台以及分析模块,能持续观测样本的变色程度、精准判断H2S气体浓度。Therefore, the deep learning colorimetric/electrical dual sensing system of the present invention can realize the short-time safe detection of H 2 S, and combined with the real-time color change monitoring platform and analysis module, it can continuously observe the color change degree of the sample and accurately determine the H 2 S gas concentration.

尽管前述变色监控平台能够持续观测变色过程,灵活记录传感器颜色变化,且分析模块对于传感器的颜色变化能极为快速的给出气体浓度预测结果。但作为一个独立的气体传感系统,在面对可能出现的系统检测故障(比如变色监控平台损坏、或者受非常强烈的光干扰影响)时,必须要提供一种气体检测的“第二方案”,作为一种响应补偿以保证H2S气敏传感系统的完备性。因此,本发明的深度学习比色/电学双传感系统还包括电阻响应模块,与H2S比色/电学传感器连接,用于实时采集、存储、显示H2S比色/电学传感器输出的电阻响应值变化信号进而检测H2S气体。PET柔性叉指电极通过锡焊引出导线,即可同步进行电阻测试。Although the aforementioned color change monitoring platform can continuously observe the color change process, flexibly record the color change of the sensor, and the analysis module can quickly give the gas concentration prediction result for the color change of the sensor. However, as an independent gas sensing system, when facing possible system detection failures (such as damage to the color change monitoring platform, or being affected by very strong light interference), it is necessary to provide a "second solution" for gas detection as a response compensation to ensure the completeness of the H2S gas sensitive sensing system. Therefore, the deep learning colorimetric/electrical dual sensing system of the present invention also includes a resistance response module, which is connected to the H2S colorimetric/electrical sensor, and is used to collect, store, and display the resistance response value change signal output by the H2S colorimetric/electrical sensor in real time to detect H2S gas. The PET flexible interdigital electrode leads out the wires by soldering, and the resistance test can be carried out synchronously.

深度学习比色/电学双传感系统性能测试Deep learning colorimetric/electrical dual sensing system performance test

为了验证传感器颜色响应的单一选择性,将比色/电学传感器分别置于气室内,向气室里分别通入NH3、SO2、NO2、H2、H2S五种工业现场可能存在的气体,控制气体浓度为100ppm,并且利用变色监控平台在相同浓度、不同气体种类的条件下进行观测。可以清楚看到处于H2S气体环境的比色/电学传感器出现了明显的色差变化,但是在NH3、SO2、NO2、H2气体环境下的传感器颜色几乎没有变化,并且利用分析模块计算出来的色差结果也佐证了这个观点(如图8a),证明了比色/电学传感器对H2S气体具有不同于其他气体的变色敏感性。同时,将H2S与NH3、SO2、NO2、H2这4种气体分别两两共存(气体浓度均为100ppm),模拟复杂气体环境干扰下传感器的变色差异,绘制如图8b,明显看出非H2S气体对传感器变色结果的影响几乎为零,体现出复杂气体环境下,比色纳米纤维气敏传感器对H2S气体的高选择性。同时,对传感器的长期稳定性进行测试,前三个月每五天测试并记录一次20ppm下传感器的颜色响应,后三个月每个月测量一次,结果表明在180天内传感器变色性能保持稳定,如图8c。In order to verify the single selectivity of the sensor color response, the colorimetric/electrical sensor was placed in a gas chamber, and five gases that may exist in industrial sites, NH 3 , SO 2 , NO 2 , H 2 , and H 2 S, were introduced into the gas chamber. The gas concentration was controlled to 100ppm, and the color change monitoring platform was used to observe under the conditions of the same concentration and different gas types. It can be clearly seen that the colorimetric/electrical sensor in the H 2 S gas environment has obvious color difference changes, but the sensor color in the NH 3 , SO 2 , NO 2 , and H 2 gas environments has almost no change, and the color difference results calculated by the analysis module also support this view (as shown in Figure 8a), proving that the colorimetric/electrical sensor has a different color change sensitivity to H 2 S gas than other gases. At the same time, H 2 S and NH 3 , SO 2 , NO 2 , H 2 coexisted in pairs (gas concentration was 100ppm) to simulate the color change difference of the sensor under the interference of complex gas environment, as shown in Figure 8b. It is obvious that the influence of non-H 2 S gas on the color change result of the sensor is almost zero, reflecting the high selectivity of the colorimetric nanofiber gas sensor to H 2 S gas in a complex gas environment. At the same time, the long-term stability of the sensor was tested. The color response of the sensor at 20ppm was tested and recorded every five days in the first three months, and measured once a month in the next three months. The results showed that the color change performance of the sensor remained stable within 180 days, as shown in Figure 8c.

图9a展示了实施例1中的比色/电学传感器在递增的H2S气体浓度环境下的电阻变化,可以看到随着H2S气体浓度从0ppm到100ppm的阶段性上升,比色/电学传感器电阻呈现阶段性的下降,这是因为H2S气体与H2S敏感纳米纤维膜发生反应,出现PbS大颗粒沉淀,原本的纳米纤维空隙撕裂扩大,膜结构变得松散,而金属硫化物具有良好的导电性,使得材料阻值下降。并且根据图9a可以得到,控制传感器在每个阶段(即不同H2S浓度环境下)的电阻观测时间在30s内时,此时电阻的变化已经稳定,除去电阻值保持稳定的那段时间,传感器的电阻响应时间在10-15s内。为了分析该传感器的选择性,体现传感器对不同气体的电阻响应差异性,将其暴露在1000ppm的NH3、SO2、NO2、H2气体和100ppm的H2S气体环境下,结果如图9b所示。比色/电学传感器对H2S气体的响应值显著高于其他气体。对传感器的电阻响应长期稳定性(H2S浓度为20ppm)进行测试,结果表明在180天内传感器电阻性能保持稳定,如图9c。通过实验观察,该传感器的颜色响应明显更灵活,通过图9d可以明显看到,当颜色变化趋近稳定时,电阻值仍在下降,这意味着颜色响应速度更快(响应时间小于4s),且测量更加迅速,能量消耗更低。所以在H2S气体测量过程中,主要以颜色响应结果为主,电阻响应结果仅作为比色/电学双传感系统的自动联锁结果。FIG9a shows the resistance change of the colorimetric/electrical sensor in Example 1 under the environment of increasing H 2 S gas concentration. It can be seen that as the H 2 S gas concentration increases from 0 ppm to 100 ppm, the resistance of the colorimetric/electrical sensor decreases in stages. This is because the H 2 S gas reacts with the H 2 S sensitive nanofiber membrane, and large PbS particles are precipitated. The original nanofiber gaps are torn and expanded, and the membrane structure becomes loose. The metal sulfide has good conductivity, which reduces the material resistance. And according to FIG9a, it can be obtained that when the resistance observation time of the control sensor in each stage (i.e., under different H 2 S concentration environments) is within 30s, the change of resistance is stable at this time. Excluding the period when the resistance value remains stable, the resistance response time of the sensor is within 10-15s. In order to analyze the selectivity of the sensor and reflect the difference in the resistance response of the sensor to different gases, it is exposed to 1000ppm NH 3 , SO 2 , NO 2 , H 2 gas and 100ppm H 2 S gas environment, and the results are shown in FIG9b. The response value of the colorimetric/electrical sensor to H 2 S gas is significantly higher than that of other gases. The long-term stability of the sensor's resistance response (H 2 S concentration is 20ppm) was tested, and the results showed that the sensor's resistance performance remained stable within 180 days, as shown in Figure 9c. Through experimental observation, the color response of the sensor is significantly more flexible. It can be clearly seen from Figure 9d that when the color change approaches stability, the resistance value is still decreasing, which means that the color response speed is faster (response time is less than 4s), and the measurement is faster and the energy consumption is lower. Therefore, in the H 2 S gas measurement process, the color response result is mainly based on the color response result, and the resistance response result is only used as the automatic interlocking result of the colorimetric/electrical dual sensing system.

图10a与图10d展示了较低H2S气体浓度下的颜色响应和电阻响应差异性。通过放大图10b与图10e可得,传感系统的检测限可至0.1ppm。图10c与图10f展示了较高H2S气体浓度下的颜色响应与电阻响应差异性。显然,传感系统能够敏感的检测到细微的浓度差异,其分辨率可达0.1ppm。Figures 10a and 10d show the differences in color response and resistance response at lower H 2 S gas concentrations. By enlarging Figures 10b and 10e, it can be seen that the detection limit of the sensing system can be as low as 0.1ppm. Figures 10c and 10f show the differences in color response and resistance response at higher H 2 S gas concentrations. Obviously, the sensing system can sensitively detect subtle concentration differences with a resolution of up to 0.1ppm.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1.深度学习比色/电学双传感系统,其特征在于,包括气室、H2S比色/电学传感器、电阻响应模块、变色监控平台、分析模块以及终端;1. A deep learning colorimetric/electrical dual sensing system, characterized in that it includes a gas chamber, a H 2 S colorimetric/electrical sensor, a resistance response module, a color change monitoring platform, an analysis module, and a terminal; 所述H2S比色/电学传感器包括H2S敏感纳米纤维膜和PET柔性叉指电极,所述H2S敏感纳米纤维膜通过静电纺丝工艺固定在PET柔性叉指电极上,所述敏感纳米纤维膜为Pb(CH3CO2)2/PVA纳米纤维;所述H2S敏感纳米纤维膜为纳米纤维交错形成的致密网状结构,所述纳米纤维直径为250-400nm,所述H2S敏感纳米纤维膜厚度为0.5-0.7mm,所述H2S比色/电学传感器位于气室内部,用于实时检测H2S气体获得气体浓度信号,并将气体浓度信号转换为颜色变化信号以及电阻变化信号;The H 2 S colorimetric/electrical sensor comprises an H 2 S sensitive nanofiber membrane and a PET flexible interdigital electrode. The H 2 S sensitive nanofiber membrane is fixed on the PET flexible interdigital electrode by an electrostatic spinning process. The sensitive nanofiber membrane is Pb(CH 3 CO 2 ) 2 /PVA nanofiber. The H 2 S sensitive nanofiber membrane is a dense mesh structure formed by interlacing nanofibers. The diameter of the nanofibers is 250-400nm. The thickness of the H 2 S sensitive nanofiber membrane is 0.5-0.7mm. The H 2 S colorimetric/electrical sensor is located inside the gas chamber and is used for real-time detection of H 2 S gas to obtain a gas concentration signal, and convert the gas concentration signal into a color change signal and a resistance change signal. 所述电阻响应模块与所述H2S比色/电学传感器连接,用于实时采集、存储、显示传感器输出的电阻变化信号;The resistance response module is connected to the H 2 S colorimetric/electrical sensor and is used for real-time acquisition, storage and display of the resistance change signal output by the sensor; 所述变色监控平台用于实时采集、存储、显示传感器输出的颜色变化信号;The color change monitoring platform is used to collect, store and display the color change signals output by the sensor in real time; 所述分析模块装载于所述终端上,分析处理变色监控平台采集到的颜色变化信号,并基于分析处理结果输出H2S浓度;所述分析模块利用颜色分割算法对变色监控平台采集到的颜色变化信号分割,通过引入CIE色差公式计算颜色变化信号的色差值 ΔE,基于多层感知机算法预测模型给出H2S浓度;The analysis module is loaded on the terminal, analyzes and processes the color change signal collected by the color change monitoring platform, and outputs the H 2 S concentration based on the analysis and processing result; the analysis module uses the color segmentation algorithm to segment the color change signal collected by the color change monitoring platform, calculates the color difference value ΔE of the color change signal by introducing the CIE color difference formula, and gives the H 2 S concentration based on the multi-layer perceptron algorithm prediction model; 分析模块利用基于欧式距离或曼哈顿距离的颜色分割算法对变色监控平台采集到的颜色变化信号分割,通过引入色差公式CIE 1976、CIE 1995或CIE DE2000计算颜色变化信号的色差值ΔE,基于多层感知机算法设计的H2S浓度预测模型经测算给出H2S浓度;所述多层感知机算法为3层感知机算法;The analysis module uses a color segmentation algorithm based on Euclidean distance or Manhattan distance to segment the color change signal collected by the color change monitoring platform, and calculates the color difference value ΔE of the color change signal by introducing the color difference formula CIE 1976, CIE 1995 or CIE DE2000. The H 2 S concentration prediction model designed based on the multi-layer perceptron algorithm gives the H 2 S concentration through measurement; the multi-layer perceptron algorithm is a 3-layer perceptron algorithm; 颜色分割算法,基于RGB空间对彩色图像进行像素点分类,即给变色样本图像进行区域提取,再根据给定的彩色样点集,为分割区域指定平均颜色;为了实现有效的颜色分割,引入相似性度量,欧式距离、曼哈顿单通道距离以及曼哈顿多通道距离计算方式依次如下:The color segmentation algorithm classifies the pixels of the color image based on the RGB space, that is, extracts the region of the color-changing sample image, and then specifies the average color for the segmented region according to the given color sample set; in order to achieve effective color segmentation, the similarity metric is introduced, and the calculation methods of Euclidean distance, Manhattan single-channel distance and Manhattan multi-channel distance are as follows: ; 其中,Z为当前分割像素点的(Ri,Gi,Bi)值,α为分割颜色区域的颜色平均(R,G,B),下标注为RGB分量,D0为分割阈值,为三通道各自的标准差向量,η为标准差系数,通常为1.25;Where Z is the (R i , G i , B i ) value of the current segmented pixel, α is the color average (R, G, B) of the segmented color area, the subscript is RGB component, D 0 is the segmentation threshold, is the standard deviation vector of each of the three channels, η is the standard deviation coefficient, usually 1.25; 利用基于欧氏距离、曼哈顿距离的颜色分割算法对样本图像预处理,像素均值计算可以得到变色图像的(R,G,B)均值向量,将样本RGB值转变为色差仪适用的颜色空间,通过CIE色差公式,计算图像的色差值ΔE,以分辨不同气体浓度环境下比色/电学传感器的色度变化,白色到深棕色的颜色变化可以证明H2S的存在;The sample image is preprocessed using the color segmentation algorithm based on Euclidean distance and Manhattan distance. The pixel mean calculation can obtain the (R, G, B) mean vector of the color-changing image, and convert the sample RGB value into a colorimeter suitable for use. Color space, using the CIE color difference formula, calculate the color difference value ΔE of the image to distinguish the chromaticity change of the colorimetric/electrical sensor under different gas concentration environments. The color change from white to dark brown can prove the presence of H 2 S; 变色样本图像计算均值时,是分割图片的每个像素且对单个像素(Ri,Gi,Bi)值进行判断,分别循环累加计算每个像素的(Ri,Gi,Bi)值,从而得出变色样本的像素均值向量(R,G,B),具体由下述公式计算得到:When calculating the mean of the color-changing sample image, each pixel of the image is segmented and the value of a single pixel (R i , G i , B i ) is judged. The value of each pixel (R i , G i , B i ) is calculated cyclically and accumulated, thereby obtaining the pixel mean vector (R, G, B) of the color-changing sample, which is calculated by the following formula: ; 所述终端用于显示H2S浓度检测结果。The terminal is used to display the H 2 S concentration detection result. 2.根据权利要求1所述的深度学习比色/电学双传感系统,其特征在于,所述H2S比色/电学传感器制备方法包括以下步骤:2. The deep learning colorimetric/electrical dual sensing system according to claim 1, wherein the H 2 S colorimetric/electrical sensor preparation method comprises the following steps: (1)将三水合乙酸铅、NaF以及十二烷基硫酸钠溶于去离子水中获得乙酸铅溶液;(1) dissolving lead acetate trihydrate, NaF and sodium dodecyl sulfate in deionized water to obtain a lead acetate solution; (2)将聚乙烯醇缓慢加入乙酸铅溶液中,经水浴加热搅拌获得静电纺丝溶液;(2) slowly adding polyvinyl alcohol into the lead acetate solution, and heating and stirring in a water bath to obtain an electrospinning solution; (3)通过静电纺丝工艺将所述静电纺丝溶液以H2S敏感纳米纤维膜的形式固定在PET柔性叉指电极上获得所述H2S比色/电学传感器。(3) The electrospinning solution is fixed on a PET flexible interdigital electrode in the form of a H 2 S sensitive nanofiber membrane through an electrospinning process to obtain the H 2 S colorimetric/electrical sensor. 3. 根据权利要求2所述的深度学习比色/电学双传感系统,其特征在于,所述三水合乙酸铅:NaF:十二烷基硫酸钠:聚乙烯醇的质量比为(0 .8-1.2) g:(25-35) mg:(10-20) mg:(2.2-2.6) g,所述步骤(2)中加热搅拌温度为80-90℃,时间为8-10h。3. The deep learning colorimetric/electrical dual sensing system according to claim 2 is characterized in that the mass ratio of lead acetate trihydrate: NaF: sodium dodecyl sulfate: polyvinyl alcohol is (0.8-1.2) g: (25-35) mg: (10-20) mg: (2.2-2.6) g, and the heating and stirring temperature in step (2) is 80-90°C and the time is 8-10h. 4.根据权利要求2所述的深度学习比色/电学双传感系统,其特征在于,所述步骤(3)中静电纺丝过程为:使用20、22或24号金属针头,在针头处施加20±1.5kV静电压,微量注射泵的推进速度为1±0.2mL/h,接收器距离针头10±0.5cm;纺丝过程中环境湿度为35%±5%,温度为25±2℃;纺丝时间为8~10h。4. The deep learning colorimetric/electrical dual sensing system according to claim 2 is characterized in that the electrospinning process in step (3) is as follows: using a 20, 22 or 24 gauge metal needle, applying a static voltage of 20±1.5 kV at the needle, the propulsion speed of the microinjection pump is 1±0.2 mL/h, and the receiver is 10±0.5 cm away from the needle; the ambient humidity during the spinning process is 35%±5%, the temperature is 25±2°C; and the spinning time is 8~10 h. 5.根据权利要求1所述的深度学习比色/电学双传感系统,其特征在于,所述变色监控平台包括补光单元、采集单元、存储单元以及显示单元,所述补光单元为LED补光灯,所述采集单元为集成的摄像头模组,用于实时采集传感器输出的颜色变化信号,所述存储单元用于存储采集到的颜色变化信号,所述显示单元用于显示颜色变化信号。5. The deep learning colorimetric/electrical dual sensing system according to claim 1 is characterized in that the color change monitoring platform includes a fill light unit, a collection unit, a storage unit and a display unit, the fill light unit is an LED fill light, the collection unit is an integrated camera module, which is used to collect the color change signal output by the sensor in real time, the storage unit is used to store the collected color change signal, and the display unit is used to display the color change signal. 6.根据权利要求1所述的深度学习比色/电学双传感系统,其特征在于,所述深度学习比色/电学双传感系统利用电阻响应模块,形成比色-电学双功能一体化传感系统,可以同时检测H2S比色/电学传感器的电阻响应值变化进而检测H2S气体,在强光干扰及黑暗无光的环境下能够避免检测工作停摆。6. The deep learning colorimetric/electrical dual sensing system according to claim 1 is characterized in that the deep learning colorimetric/electrical dual sensing system uses a resistance response module to form a colorimetric-electrical dual-function integrated sensing system, which can simultaneously detect the resistance response value change of the H2S colorimetric/electrical sensor and then detect H2S gas, and can avoid the detection work being stopped in strong light interference and dark environment. 7.根据权利要求1所述的深度学习比色/电学双传感系统,其特征在于,所述深度学习比色/电学双传感系统的检测范围为0-100ppm,检测限和分辨率为0.1ppm,比色响应时间小于4s,并且在180天内保持性能稳定,且强光干扰、黑暗无光场景下也能正常工作。7. The deep learning colorimetric/electrical dual sensing system according to claim 1 is characterized in that the detection range of the deep learning colorimetric/electrical dual sensing system is 0-100ppm, the detection limit and resolution are 0.1ppm, the colorimetric response time is less than 4s, and the performance remains stable within 180 days, and it can work normally even in strong light interference and dark scenes.
CN202311380798.2A 2023-10-24 2023-10-24 H2S colorimetric/electrical sensor and deep learning colorimetric/electrical dual sensing system Active CN117517299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311380798.2A CN117517299B (en) 2023-10-24 2023-10-24 H2S colorimetric/electrical sensor and deep learning colorimetric/electrical dual sensing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311380798.2A CN117517299B (en) 2023-10-24 2023-10-24 H2S colorimetric/electrical sensor and deep learning colorimetric/electrical dual sensing system

Publications (2)

Publication Number Publication Date
CN117517299A CN117517299A (en) 2024-02-06
CN117517299B true CN117517299B (en) 2024-08-16

Family

ID=89750398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311380798.2A Active CN117517299B (en) 2023-10-24 2023-10-24 H2S colorimetric/electrical sensor and deep learning colorimetric/electrical dual sensing system

Country Status (1)

Country Link
CN (1) CN117517299B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1545572A (en) * 1977-01-28 1979-05-10 Neotronics Ltd Apparatus for sensing toxic gases
KR20170072708A (en) * 2015-12-17 2017-06-27 한국과학기술원 Textile colorimetric sensors and member with dye anchored one dimensional polymer nanofibers for decting hydrogen sulfide gas and manufacturing method thereof
KR20210127374A (en) * 2020-04-14 2021-10-22 한국전력공사 Gas sensors and member using one-dimensional nanofibers sensitized, and manufacturing method thereof

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3032150A1 (en) * 1980-08-26 1982-04-01 Hellige Gmbh, 7800 Freiburg METHOD AND MEASURING DEVICE FOR COLORIMETRICALLY DETERMINING THE CONCENTRATION OF A CHEMICAL SUBSTANCE, IN PARTICULAR THE PARTIAL PRESSURE OF A GAS SOLVED IN BLOOD
US7025138B2 (en) * 2000-12-08 2006-04-11 Schlumberger Technology Corporation Method and apparatus for hydrogen sulfide monitoring
US11175234B2 (en) * 2010-09-07 2021-11-16 Nextteq Llc System for visual and electronic reading of colorimetric tubes
KR101633554B1 (en) * 2014-09-17 2016-06-27 한국과학기술원 Gas sensor and member using metal oxide semiconductor nanofibers including nanoparticle catalyst functionalized by bifunctional nano-catalyst included within apoferritin, and manufacturing method thereof
KR101761057B1 (en) * 2016-03-11 2017-07-25 한국과학기술원 Colorimetric sensors and member with one dimensioanl polymer nanofibers with fine dye particles obtained by high temperature stirring and quenching for decting hydrogen sulfide gas and manufacturing method thereof
US10969341B2 (en) * 2017-11-28 2021-04-06 International Business Machines Corporation Colorimetric detection of airborne sulfur
US20230183774A1 (en) * 2021-12-10 2023-06-15 Georgia Tech Research Corporation Colorimetric assay for high throughput, facile and rapid antimicrobial susceptibilities testing
CN116574503B (en) * 2023-05-16 2025-06-10 青岛农业大学 Ratio fluorescence sensor, preparation method and application thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1545572A (en) * 1977-01-28 1979-05-10 Neotronics Ltd Apparatus for sensing toxic gases
KR20170072708A (en) * 2015-12-17 2017-06-27 한국과학기술원 Textile colorimetric sensors and member with dye anchored one dimensional polymer nanofibers for decting hydrogen sulfide gas and manufacturing method thereof
KR20210127374A (en) * 2020-04-14 2021-10-22 한국전력공사 Gas sensors and member using one-dimensional nanofibers sensitized, and manufacturing method thereof

Also Published As

Publication number Publication date
CN117517299A (en) 2024-02-06

Similar Documents

Publication Publication Date Title
CN103969428B (en) portable electronic device with breath analyzer
CN102265707B (en) Method for controlling light-emitting device in terminal equipment, apparatus thereof and terminal equipment
CN106991679A (en) One kind quantifies recognition methods based on cloud platform urine test paper physical signs
US20250037312A1 (en) Method and system for performing point-to-point white reference correction on hyperspectral image
CN111487304B (en) Apparatus and method for monitoring gas concentration and sensor
CN101118217A (en) Vieri experiment indicator paper colors identification device
CN116468332A (en) Crystal resonator production quality judging system
CN111380610A (en) Ambient light detection method and apparatus, electronic device, and storage medium
CN117517299B (en) H2S colorimetric/electrical sensor and deep learning colorimetric/electrical dual sensing system
CN114527116A (en) Ambient light correction array type colorimetric analysis system and method based on intelligent equipment
CN118840022B (en) Sealing member quality intelligent evaluation system based on big data
CN113988664B (en) LCD display screen material screening guidance system
CN113624457A (en) Thin film uniformity detection system based on optical diffraction
JPH06109545A (en) Color tone inspecting method
CN113624458A (en) Thin film uniformity inspection system based on two-channel full projection light
CN114739914B (en) An intelligent humidity detection system based on optical fiber sensor
Liu et al. A consistency method of discharge detection results at solar‐blind ultraviolet based on a radiation transmission model
CN107862317A (en) The visible images RGB recognition methods of transmission facility corona under a kind of daylight environment
CN215865741U (en) Film uniformity detection system based on optical diffraction
CN118464809A (en) PH detection method
JP2011196985A (en) Method of measuring environment
CN115032157A (en) Cloud platform-based identification method for mobile phone photography to detect secretions
CN111474215B (en) Semiconductor-solid electrolyte type dual-mode sensor and application thereof in gas identification
CN109738411B (en) A kind of bionic array sensor and its application based on quantum dot fluorescence quenching
CN222336549U (en) Tobacco color value detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20240723

Address after: 100728 No. 22 North Main Street, Chaoyang District, Beijing, Chaoyangmen

Applicant after: CHINA PETROLEUM & CHEMICAL Corp.

Country or region after: China

Applicant after: CHINA University OF PETROLEUM (EAST CHINA)

Applicant after: Sinopec Safety Engineering Research Institute Co.,Ltd.

Address before: 266580 No. 66 Changjiang West Road, Huangdao District, Qingdao, Shandong.

Applicant before: CHINA University OF PETROLEUM (EAST CHINA)

Country or region before: China

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant