CN118242564B - An intelligent adaptive natural gas odorant concentration control system and control method - Google Patents

An intelligent adaptive natural gas odorant concentration control system and control method Download PDF

Info

Publication number
CN118242564B
CN118242564B CN202410666434.9A CN202410666434A CN118242564B CN 118242564 B CN118242564 B CN 118242564B CN 202410666434 A CN202410666434 A CN 202410666434A CN 118242564 B CN118242564 B CN 118242564B
Authority
CN
China
Prior art keywords
odorant
real
data
odorizing agent
time
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
CN202410666434.9A
Other languages
Chinese (zh)
Other versions
CN118242564A (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.)
Pulily Tianjin Gas Equipment Co ltd
Binzhou Polytechnic
Original Assignee
Pulily Tianjin Gas Equipment Co ltd
Binzhou Polytechnic
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 Pulily Tianjin Gas Equipment Co ltd, Binzhou Polytechnic filed Critical Pulily Tianjin Gas Equipment Co ltd
Priority to CN202410666434.9A priority Critical patent/CN118242564B/en
Publication of CN118242564A publication Critical patent/CN118242564A/en
Application granted granted Critical
Publication of CN118242564B publication Critical patent/CN118242564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F17STORING OR DISTRIBUTING GASES OR LIQUIDS
    • F17DPIPE-LINE SYSTEMS; PIPE-LINES
    • F17D3/00Arrangements for supervising or controlling working operations
    • F17D3/12Arrangements for supervising or controlling working operations for injecting a composition into the line
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F17STORING OR DISTRIBUTING GASES OR LIQUIDS
    • F17DPIPE-LINE SYSTEMS; PIPE-LINES
    • F17D1/00Pipe-line systems
    • F17D1/02Pipe-line systems for gases or vapours
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M3/00Investigating fluid-tightness of structures
    • G01M3/02Investigating fluid-tightness of structures by using fluid or vacuum
    • G01M3/04Investigating fluid-tightness of structures by using fluid or vacuum by detecting the presence of fluid at the leakage point
    • G01M3/20Investigating fluid-tightness of structures by using fluid or vacuum by detecting the presence of fluid at the leakage point using special tracer materials, e.g. dye, fluorescent material, radioactive material
    • G01M3/22Investigating fluid-tightness of structures by using fluid or vacuum by detecting the presence of fluid at the leakage point using special tracer materials, e.g. dye, fluorescent material, radioactive material for pipes, cables or tubes; for pipe joints or seals; for valves; for welds; for containers, e.g. radiators
    • G01M3/222Investigating fluid-tightness of structures by using fluid or vacuum by detecting the presence of fluid at the leakage point using special tracer materials, e.g. dye, fluorescent material, radioactive material for pipes, cables or tubes; for pipe joints or seals; for valves; for welds; for containers, e.g. radiators for tubes
    • 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/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N21/35Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
    • G01N21/3504Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light for analysing gases, e.g. multi-gas analysis
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N27/00Investigating or analysing materials by the use of electric, electrochemical, or magnetic means
    • G01N27/02Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance
    • G01N27/04Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance by investigating resistance
    • G01N27/06Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance by investigating resistance of a liquid
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N27/00Investigating or analysing materials by the use of electric, electrochemical, or magnetic means
    • G01N27/62Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating the ionisation of gases, e.g. aerosols; by investigating electric discharges, e.g. emission of cathode
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N30/00Investigating or analysing materials by separation into components using adsorption, absorption or similar phenomena or using ion-exchange, e.g. chromatography or field flow fractionation
    • G01N30/02Column chromatography
    • 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/0004Gaseous mixtures, e.g. polluted air
    • 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/22Fuels; Explosives
    • G01N33/225Gaseous fuels, e.g. natural gas
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N9/00Investigating density or specific gravity of materials; Analysing materials by determining density or specific gravity
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • G06N3/0442Recurrent networks, e.g. Hopfield networks characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/06Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
    • G06N3/061Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using biological neurons, e.g. biological neurons connected to an integrated circuit
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • 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/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N21/35Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
    • G01N2021/3595Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light using FTIR

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Pathology (AREA)
  • Biochemistry (AREA)
  • Immunology (AREA)
  • Analytical Chemistry (AREA)
  • General Engineering & Computer Science (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Neurology (AREA)
  • Electrochemistry (AREA)
  • Food Science & Technology (AREA)
  • Medicinal Chemistry (AREA)
  • Mechanical Engineering (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Combustion & Propulsion (AREA)
  • General Chemical & Material Sciences (AREA)
  • Oil, Petroleum & Natural Gas (AREA)
  • Feedback Control In General (AREA)

Abstract

本发明提供一种智能自适应天然气加臭剂浓度控制系统和控制方法,属于天然气加臭剂浓度监控领域,该系统包括气体流量传感器、加臭剂注入泵、加臭剂浓度监测装置、环境参数传感器、加臭剂特性传感器和控制器。控制器包括数据处理模块、加臭剂注入策略确定模块和控制模块。数据处理模块接收并处理包括实时气体流量检测数据、实时加臭剂浓度检测数据、实时环境参数和实时加臭剂特性参数在内的实时数据;加臭剂注入策略确定模块基于深度学习的神经网络模型,结合实时数据,输出最优的加臭剂注入策略;控制模块根据最优的加臭剂注入策略,控制加臭剂注入泵的多个参数。本发明通过智能化和自适应的控制,实现了加臭剂注入过程的精确控制和优化。

The present invention provides an intelligent adaptive natural gas odorant concentration control system and control method, belonging to the field of natural gas odorant concentration monitoring, the system includes a gas flow sensor, an odorant injection pump, an odorant concentration monitoring device, an environmental parameter sensor, an odorant characteristic sensor and a controller. The controller includes a data processing module, an odorant injection strategy determination module and a control module. The data processing module receives and processes real-time data including real-time gas flow detection data, real-time odorant concentration detection data, real-time environmental parameters and real-time odorant characteristic parameters; the odorant injection strategy determination module outputs the optimal odorant injection strategy based on a deep learning neural network model combined with real-time data; the control module controls multiple parameters of the odorant injection pump according to the optimal odorant injection strategy. The present invention realizes precise control and optimization of the odorant injection process through intelligent and adaptive control.

Description

一种智能自适应天然气加臭剂浓度控制系统和控制方法An intelligent adaptive natural gas odorant concentration control system and control method

技术领域Technical Field

本发明涉及天然气加臭剂浓度监测和控制领域,尤其涉及一种智能自适应天然气加臭剂浓度控制系统和控制方法。The present invention relates to the field of natural gas odorant concentration monitoring and control, and in particular to an intelligent self-adaptive natural gas odorant concentration control system and a control method.

背景技术Background technique

天然气是一种无色无味的气体,为了确保其在泄漏时能够被及时发现,通常在天然气中添加加臭剂,使其具有明显的气味。然而,传统的加臭剂注入系统通常依赖于固定的注入量或简单的控制算法,难以适应天然气流量和环境条件的变化,导致加臭剂浓度不稳定,影响天然气的安全性和使用效果。Natural gas is a colorless and odorless gas. In order to ensure that it can be detected in time when it leaks, odorants are usually added to natural gas to give it a distinct smell. However, traditional odorant injection systems usually rely on fixed injection volumes or simple control algorithms, which are difficult to adapt to changes in natural gas flow and environmental conditions, resulting in unstable odorant concentrations, affecting the safety and use of natural gas.

此外,传统系统缺乏智能化和自适应能力,无法根据实时数据动态调整加臭剂的注入策略,导致加臭剂的浪费和运行成本的增加。此外,传统系统在面对复杂的环境条件和多变的天然气流量时,难以保证加臭剂的均匀分布和浓度的稳定性,进一步影响了天然气的使用安全和用户体验。In addition, the traditional system lacks intelligence and adaptive capabilities, and cannot dynamically adjust the injection strategy of the odorant according to real-time data, resulting in waste of odorants and increased operating costs. In addition, when faced with complex environmental conditions and variable natural gas flow, the traditional system is difficult to ensure the uniform distribution and concentration stability of the odorant, further affecting the safety of natural gas use and user experience.

因此,亟需一种智能自适应天然气加臭剂浓度控制系统,以实现对加臭剂注入过程的精确控制和优化。Therefore, there is an urgent need for an intelligent adaptive natural gas odorant concentration control system to achieve precise control and optimization of the odorant injection process.

发明内容Summary of the invention

有鉴于此,本发明实施例提供一种智能自适应天然气加臭剂浓度控制系统和控制方法,以解决上述技术问题。In view of this, an embodiment of the present invention provides an intelligent adaptive natural gas odorant concentration control system and control method to solve the above technical problems.

为实现上述目的,第一方面,提供一种智能自适应天然气加臭剂浓度控制系统,其包括:气体流量传感器、加臭剂注入泵、加臭剂浓度监测装置、环境参数传感器、加臭剂特性传感器和控制器;To achieve the above-mentioned object, in a first aspect, an intelligent adaptive natural gas odorant concentration control system is provided, which comprises: a gas flow sensor, an odorant injection pump, an odorant concentration monitoring device, an environmental parameter sensor, an odorant characteristic sensor and a controller;

所述气体流量传感器,用于获取天然气管道中的实时气体流量检测数据;The gas flow sensor is used to obtain real-time gas flow detection data in the natural gas pipeline;

所述加臭剂浓度监测装置,用于获取天然气中的实时加臭剂浓度检测数据;The odorant concentration monitoring device is used to obtain real-time odorant concentration detection data in natural gas;

所述环境参数传感器,安装在天然气管道周围,并与所述控制器电连接,用于获取包括环境温度、环境湿度和大气压力在内的实时环境参数;The environmental parameter sensor is installed around the natural gas pipeline and is electrically connected to the controller to obtain real-time environmental parameters including ambient temperature, ambient humidity and atmospheric pressure;

所述加臭剂特性传感器,用于实时检测天然气中的实时加臭剂特性参数;The odorant characteristic sensor is used to detect the real-time odorant characteristic parameters in the natural gas in real time;

所述加臭剂注入泵与加臭剂储罐连接,用于在所述控制器的控制下将所述加臭剂储罐中的加臭剂注入天然气管道中;The odorant injection pump is connected to the odorant storage tank and is used to inject the odorant in the odorant storage tank into the natural gas pipeline under the control of the controller;

所述控制器包括:The controller comprises:

数据处理模块,用于接收并处理包括所述实时气体流量检测数据、实时加臭剂浓度检测数据、实时环境参数和实时加臭剂特性参数在内的实时数据;A data processing module, for receiving and processing real-time data including the real-time gas flow detection data, real-time odorant concentration detection data, real-time environmental parameters and real-time odorant characteristic parameters;

加臭剂注入策略确定模块,用于基于深度学习的神经网络模型,结合所述实时数据,输出最优的加臭剂注入策略;An odorant injection strategy determination module, which is used to output an optimal odorant injection strategy based on a deep learning neural network model in combination with the real-time data;

控制模块,用于根据所述最优的加臭剂注入策略,控制所述加臭剂注入泵的多个参数,所述多个参数包括注入速率、注入时长、注入频率和注入量分布。A control module is used to control multiple parameters of the odorant injection pump according to the optimal odorant injection strategy, wherein the multiple parameters include injection rate, injection duration, injection frequency and injection amount distribution.

在一些可能的实施方式中,所述加臭剂浓度监测装置包括:In some possible implementations, the odorant concentration monitoring device comprises:

加臭剂分析模块,用于检测天然气中的不同种类的加臭剂分别对应的浓度,获得实时加臭剂浓度检测数据;Odorant analysis module, used to detect the concentrations of different types of odorants in natural gas and obtain real-time odorant concentration detection data;

温度补偿模块,用于根据实时获取的环境温度数据对所述实时加臭剂浓度检测数据进行温度补偿,获得温度补偿后的加臭剂浓度检测数据;A temperature compensation module, used to perform temperature compensation on the real-time odorant concentration detection data according to the ambient temperature data acquired in real time, so as to obtain the odorant concentration detection data after temperature compensation;

环境湿度补偿模块,用于根据实时获取的环境湿度数据对所述温度补偿后的加臭剂浓度检测数据进行湿度补偿,获得湿度补偿后的加臭剂浓度检测数据;An environmental humidity compensation module, used to perform humidity compensation on the temperature-compensated odorant concentration detection data according to the environmental humidity data acquired in real time, so as to obtain humidity-compensated odorant concentration detection data;

大气压力补偿模块,用于根据实时获取的大气压力数据对所述湿度补偿后的加臭剂浓度检测数据进行压力补偿,获得压力补偿后的加臭剂浓度检测数据。The atmospheric pressure compensation module is used to perform pressure compensation on the humidity-compensated odorant concentration detection data according to the atmospheric pressure data obtained in real time, so as to obtain the pressure-compensated odorant concentration detection data.

在一些可能的实施方式中,所述温度补偿模块采用以下温度补偿算法:In some possible implementations, the temperature compensation module adopts the following temperature compensation algorithm:

Ctemp_comp=Craw+ktemp×(T-Tref);其中,Ctemp_comp是温度补偿后的加臭剂浓度检测数据,Craw是初步检测的实时加臭剂浓度检测数据,ktemp是温度补偿系数,T是当前实时获取的环境温度数据,Tref是参考环境温度数据; Ctemp_comp = Craw + ktemp ×( T-Tref ); where Ctemp_comp is the odorant concentration detection data after temperature compensation, Craw is the real-time odorant concentration detection data of the preliminary detection, ktemp is the temperature compensation coefficient, T is the current real-time ambient temperature data, and Tref is the reference ambient temperature data;

所述环境湿度补偿模块采用以下温度补偿算法:The ambient humidity compensation module adopts the following temperature compensation algorithm:

Chum_comp=Ctemp_comp +k hum1×H+k hum2×H 2;其中,Chum_comp是湿度补偿后的加臭剂浓度检测数据,Ctemp_comp是温度补偿后的加臭剂浓度检测数据,k hum1k hum2是湿度补偿系数,H是当前实时获取的环境湿度数据; Chum_comp = Ctemp_comp + k hum1 × H + k hum2 × H2 ; wherein Chum_comp is the odorant concentration detection data after humidity compensation, Ctemp_comp is the odorant concentration detection data after temperature compensation, k hum1 and k hum2 are humidity compensation coefficients, and H is the current real-time acquired environmental humidity data;

所述大气压力补偿模块采用以下压力补偿算法:The atmospheric pressure compensation module adopts the following pressure compensation algorithm:

Cpress_comp=Chum_comp +kpress×(P-Pref);其中,Cpress_comp是压力补偿后的加臭剂浓度检测数据,Chum_comp是湿度补偿后的加臭剂浓度检测数据,kpress是压力补偿系数,P是当前实时获取的大气压力数据,Pref是参考大气压力数据。 Cpress_comp = Chum_comp + kpress ×( P-Pref ); wherein , Cpress_comp is the odorant concentration detection data after pressure compensation, Chum_comp is the odorant concentration detection data after humidity compensation, kpress is the pressure compensation coefficient, P is the current real-time atmospheric pressure data, and Pref is the reference atmospheric pressure data.

在一些可能的实施方式中,所述加臭剂特性传感器包括:In some possible implementations, the odorant characteristic sensor includes:

密度传感器,用于检测加臭剂的密度;A density sensor for detecting the density of the odorant;

气味强度传感器,用于检测加臭剂所散发的气味强度;an odor intensity sensor for detecting the intensity of an odor emitted by the odorant;

挥发性传感器,用于检测加臭剂在天然气中的挥发性特性;Volatility sensors, used to detect the volatility characteristics of odorants in natural gas;

表面吸附分析仪,用于测量加臭剂在不同材料表面的吸附特性;Surface adsorption analyzer, used to measure the adsorption characteristics of odorants on the surfaces of different materials;

电导率传感器,用于检测加臭剂的电导率。Conductivity sensor, used to detect the conductivity of the odorant.

在一些可能的实施方式中,所述密度传感器安装在天然气管道上,通过电缆或无线通信方式与控制器电连接,将检测到的密度数据传输至控制器;In some possible implementations, the density sensor is installed on the natural gas pipeline, electrically connected to the controller via a cable or wireless communication, and transmits the detected density data to the controller;

所述气味强度传感器安装在天然气管道上,通过电缆或无线通信方式与控制器电连接,将检测到的气味强度数据传输至控制器;The odor intensity sensor is installed on the natural gas pipeline, electrically connected to the controller via a cable or wireless communication, and transmits the detected odor intensity data to the controller;

所述挥发性传感器安装在天然气管道上,通过电缆或无线通信方式与控制器电连接,将检测到的挥发性数据传输至控制器;The volatility sensor is installed on the natural gas pipeline, electrically connected to the controller via a cable or wireless communication, and transmits the detected volatility data to the controller;

所述表面吸附分析仪安装在天然气管道上,通过电缆或无线通信方式与控制器电连接,将检测到的吸附数据传输至控制器;The surface adsorption analyzer is installed on the natural gas pipeline, electrically connected to the controller via a cable or wireless communication, and transmits the detected adsorption data to the controller;

所述电导率传感器安装在天然气管道上,通过电缆或无线通信方式与控制器电连接,将检测到的电导率数据传输至控制器。The conductivity sensor is installed on the natural gas pipeline, and is electrically connected to the controller via a cable or wireless communication to transmit the detected conductivity data to the controller.

在一些可能的实施方式中,所述挥发性传感器包括气相色谱仪、质谱仪或者傅里叶变换红外光谱仪,用于检测加臭剂的挥发性有机化合物;In some possible embodiments, the volatility sensor includes a gas chromatograph, a mass spectrometer, or a Fourier transform infrared spectrometer for detecting volatile organic compounds of the odorant;

所述气味强度传感器包括电子鼻,所述电子鼻由多个化学传感器组成,每个化学传感器对不同的气味成分敏感;The odor intensity sensor comprises an electronic nose, wherein the electronic nose is composed of a plurality of chemical sensors, each chemical sensor being sensitive to a different odor component;

所述表面吸附分析仪通过测量加臭剂分子在固体表面上的吸附量和吸附速率来评估其吸附特性。The surface adsorption analyzer evaluates the adsorption characteristics of odorant molecules on the solid surface by measuring the adsorption amount and adsorption rate.

在一些可能的实施方式中,所述基于深度学习的神经网络模型包括:In some possible implementations, the deep learning-based neural network model includes:

输入层,用于接收标准化后的历史数据,包括气体流量检测数据、加臭剂浓度检测数据、环境参数和加臭剂特性参数;The input layer is used to receive standardized historical data, including gas flow detection data, odorant concentration detection data, environmental parameters and odorant characteristic parameters;

多个隐藏层,每个隐藏层包括多个神经元,所述神经元采用线性整流函数作为激活函数,用于提取和处理输入的历史数据的特征;A plurality of hidden layers, each of which includes a plurality of neurons, wherein the neurons use a linear rectification function as an activation function to extract and process features of input historical data;

输出层,用于根据所述历史数据的特征,输出最优的加臭剂注入策略,所述输出层的输出包括注入速率、注入时长、注入频率和注入量分布。The output layer is used to output the optimal odorant injection strategy according to the characteristics of the historical data, and the output of the output layer includes injection rate, injection duration, injection frequency and injection amount distribution.

在一些可能的实施方式中,所述隐藏层使用多层感知器结构时,每个隐藏层包括多个神经元,所有神经元之间是全连接的,每个神经元接收前一层所有神经元的输出,并通过激活函数进行非线性变换;In some possible implementations, when the hidden layer uses a multilayer perceptron structure, each hidden layer includes multiple neurons, all neurons are fully connected, and each neuron receives the output of all neurons in the previous layer and performs nonlinear transformation through an activation function;

所述隐藏层使用卷积神经网络结构时,每个隐藏层包括多个卷积核,每个卷积核在输入数据上滑动,进行局部连接和权重共享,提取局部特征;When the hidden layer uses a convolutional neural network structure, each hidden layer includes multiple convolution kernels, each convolution kernel slides on the input data, performs local connection and weight sharing, and extracts local features;

所述隐藏层使用长短期记忆网络LSTM结构时,每个隐藏层包括多个LSTM单元,每个LSTM单元通过输入门、遗忘门和输出门控制信息的流动,捕捉序列数据中的长短期依赖关系。When the hidden layer uses a long short-term memory network LSTM structure, each hidden layer includes multiple LSTM units, each LSTM unit controls the flow of information through an input gate, a forget gate and an output gate to capture long-term and short-term dependencies in sequence data.

在一些可能的实施方式中,所述控制器还包括:预测警报模块,用于根据所述实时气体流量检测数据和所述实时加臭剂浓度检测数据,计算天然气管道中加臭剂的消耗速率,并根据计算出的加臭剂消耗速率,预测所述加臭剂储罐的剩余量,当所述剩余量低于预设阈值时,触发加臭剂补充警报。In some possible embodiments, the controller further includes: a prediction alarm module, for calculating the consumption rate of the odorant in the natural gas pipeline based on the real-time gas flow detection data and the real-time odorant concentration detection data, and predicting the remaining amount of the odorant storage tank based on the calculated odorant consumption rate, and triggering an odorant replenishment alarm when the remaining amount is lower than a preset threshold.

第二方面,本发明提供一种根据如上所述的任意一种智能自适应天然气加臭剂浓度控制系统的控制方法,所述控制方法包括:In a second aspect, the present invention provides a control method according to any one of the intelligent adaptive natural gas odorant concentration control systems as described above, the control method comprising:

S1:获取天然气管道中的实时气体流量检测数据;S1: Obtain real-time gas flow detection data in the natural gas pipeline;

S2:获取天然气中的实时加臭剂浓度检测数据;S2: Obtain real-time odorant concentration detection data in natural gas;

S3:获取包括环境温度、环境湿度和大气压力在内的实时环境参数;S3: Acquire real-time environmental parameters including ambient temperature, ambient humidity and atmospheric pressure;

S4:获取检测天然气中的实时加臭剂特性参数;S4: Acquire the real-time odorant characteristic parameters in the detected natural gas;

S5:接收并处理包括所述实时气体流量检测数据、实时加臭剂浓度检测数据、实时环境参数和实时加臭剂特性参数在内的实时数据;S5: receiving and processing real-time data including the real-time gas flow detection data, real-time odorant concentration detection data, real-time environmental parameters and real-time odorant characteristic parameters;

S6:基于深度学习的神经网络模型,结合所述实时数据,输出最优的加臭剂注入策略;S6: Based on the deep learning neural network model, combined with the real-time data, output the optimal odorant injection strategy;

S7:根据所述最优的加臭剂注入策略,控制加臭剂注入泵的多个参数,所述多个参数包括注入速率、注入时长、注入频率和注入量分布,将加臭剂注入天然气管道中。。S7: According to the optimal odorant injection strategy, multiple parameters of the odorant injection pump are controlled, the multiple parameters including injection rate, injection duration, injection frequency and injection amount distribution, and the odorant is injected into the natural gas pipeline.

上述技术方案具有如下有益技术效果:The above technical solution has the following beneficial technical effects:

通过气体流量传感器、加臭剂浓度监测装置、环境参数传感器和加臭剂特性传感器的协同工作,系统能够实时获取高精度的检测数据,确保数据的准确性和可靠性。Through the coordinated work of gas flow sensors, odorant concentration monitoring devices, environmental parameter sensors and odorant characteristic sensors, the system can obtain high-precision detection data in real time to ensure the accuracy and reliability of the data.

基于深度学习的神经网络模型,系统能够结合实时数据和历史数据,输出最优的加臭剂注入策略,实现智能化控制。该策略能够动态调整注入速率、注入时长、注入频率和注入量分布,以适应不同的运行条件和环境变化。Based on the deep learning neural network model, the system can combine real-time data and historical data to output the optimal odorant injection strategy and realize intelligent control. The strategy can dynamically adjust the injection rate, injection duration, injection frequency and injection volume distribution to adapt to different operating conditions and environmental changes.

系统能够根据实时数据和预测结果,动态调整加臭剂注入策略,具有较强的自适应能力。无论是在高流量还是低流量条件下,系统都能保持加臭剂浓度的稳定性和均匀性。The system can dynamically adjust the odorant injection strategy based on real-time data and prediction results, and has strong adaptive capabilities. Whether under high or low flow conditions, the system can maintain the stability and uniformity of the odorant concentration.

通过优化加臭剂注入策略,系统能够有效减少加臭剂的浪费,提高能源利用效率,降低运行成本。By optimizing the odorant injection strategy, the system can effectively reduce odorant waste, improve energy efficiency and reduce operating costs.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

附图用于更好地理解本发明,不构成对本发明的不当限定。其中:The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

图1是本发明实施例的一种智能自适应天然气加臭剂浓度控制系统的逻辑结构框图;FIG1 is a logical structure block diagram of an intelligent adaptive natural gas odorant concentration control system according to an embodiment of the present invention;

图2是本发明实施例的加臭剂浓度监测装置的逻辑结构框图;2 is a logical structure diagram of an odorant concentration monitoring device according to an embodiment of the present invention;

图3是本发明实施例的加臭剂特性传感器的逻辑结构框图;3 is a logical structure diagram of the odorant characteristic sensor according to an embodiment of the present invention;

图4是本发明实施例的预测警报模块的逻辑结构框图;FIG4 is a logical structure block diagram of a prediction alarm module according to an embodiment of the present invention;

图5是本发明实施例的一种智能自适应天然气加臭剂浓度控制方法的流程图;FIG5 is a flow chart of an intelligent adaptive natural gas odorant concentration control method according to an embodiment of the present invention;

图6是本发明实施例的一种电子设备的逻辑结构框图。FIG. 6 is a block diagram of a logical structure of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的示范性实施例做出说明,其中包括本发明实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本发明的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

实施例一Embodiment 1

如图1所示,本实施例提供了一种智能自适应天然气加臭剂浓度控制系统,包括气体流量传感器、加臭剂注入泵、加臭剂浓度监测装置、环境参数传感器、加臭剂特性传感器和控制器。As shown in FIG1 , this embodiment provides an intelligent adaptive natural gas odorant concentration control system, including a gas flow sensor, an odorant injection pump, an odorant concentration monitoring device, an environmental parameter sensor, an odorant characteristic sensor, and a controller.

气体流量传感器,安装在天然气管道上,用于获取天然气管道中的实时气体流量检测数据。例如,使用超声波流量计,可以实现高精度的流量检测。Gas flow sensors are installed on natural gas pipelines to obtain real-time gas flow detection data in natural gas pipelines. For example, using ultrasonic flow meters, high-precision flow detection can be achieved.

加臭剂浓度监测装置,安装在天然气管道上,用于获取天然气中的实时加臭剂浓度检测数据。例如,使用电化学传感器,可以检测不同种类的加臭剂分别对应的浓度。The odorant concentration monitoring device is installed on the natural gas pipeline to obtain real-time odorant concentration detection data in the natural gas. For example, using an electrochemical sensor, the concentrations corresponding to different types of odorants can be detected.

环境参数传感器,安装在天然气管道周围,并与控制器电连接,用于获取包括环境温度、环境湿度和大气压力在内的实时环境参数。例如,使用集成温度、湿度和压力传感器模块,可以同时获取多种环境参数。Environmental parameter sensors are installed around the natural gas pipeline and electrically connected to the controller to obtain real-time environmental parameters including ambient temperature, ambient humidity and atmospheric pressure. For example, using an integrated temperature, humidity and pressure sensor module, multiple environmental parameters can be obtained simultaneously.

加臭剂特性传感器,用于实时检测天然气中的实时加臭剂特性参数。例如,使用密度传感器、折光率传感器、电导率传感器,可以全面检测加臭剂的特性。Odorant characteristic sensors are used to detect the real-time odorant characteristic parameters in natural gas in real time. For example, using density sensors, refractive index sensors, and conductivity sensors, the characteristics of odorants can be fully detected.

密度传感器,用于检测加臭剂的密度。密度是加臭剂质量和体积的关系指标,影响注入量的准确性。通过实时检测密度,可以根据密度变化调整注入策略,确保加臭剂的精确注入。Density sensor is used to detect the density of odorant. Density is the relationship between the mass and volume of odorant, which affects the accuracy of injection amount. By detecting density in real time, the injection strategy can be adjusted according to density changes to ensure accurate injection of odorant.

折光率传感器,用于检测加臭剂的折光率。折光率是加臭剂纯度和质量的指标,影响其有效性。通过实时检测折光率,可以评估加臭剂的纯度,确保其质量一致性。Refractive index sensor, used to detect the refractive index of odorants. Refractive index is an indicator of the purity and quality of odorants, affecting their effectiveness. By detecting the refractive index in real time, the purity of the odorant can be evaluated to ensure its quality consistency.

电导率传感器,用于检测加臭剂的电导率。电导率是加臭剂离子浓度和化学性质的指标,影响其化学稳定性。通过实时检测电导率,可以评估加臭剂的离子浓度,确保其化学性质稳定。Conductivity sensor, used to detect the conductivity of odorant. Conductivity is an indicator of the ion concentration and chemical properties of the odorant, affecting its chemical stability. By detecting conductivity in real time, the ion concentration of the odorant can be evaluated to ensure its chemical properties are stable.

加臭剂注入泵,与加臭剂储罐连接,用于在控制器的控制下将加臭剂储罐中的加臭剂注入天然气管道中。例如,使用精密计量泵,可以精确控制加臭剂的注入量。The odorant injection pump is connected to the odorant storage tank and is used to inject the odorant in the odorant storage tank into the natural gas pipeline under the control of the controller. For example, using a precision metering pump, the injection amount of the odorant can be accurately controlled.

控制器,包括数据处理模块、加臭剂注入策略确定模块和控制模块。数据处理模块用于接收并处理包括实时气体流量检测数据、实时加臭剂浓度检测数据、实时环境参数和实时加臭剂特性参数在内的实时数据。加臭剂注入策略确定模块用于基于深度学习的神经网络模型,结合作为输入的实时数据,输出最优的加臭剂注入策略。控制模块用于根据所述最优的加臭剂注入策略,控制加臭剂注入泵的多个参数,多个参数包括注入速率、注入时长、注入频率和注入量分布。注入量分布是指在一定时间段内,加臭剂注入泵将加臭剂注入天然气管道中的具体方式和模式。它包括每次注入量以及注入的均匀性等方面。具体地,均匀性是指加臭剂在天然气管道中的分布是否均匀。例如,是否在整个管道长度上均匀分布,还是集中在某些特定区域。The controller includes a data processing module, an odorant injection strategy determination module and a control module. The data processing module is used to receive and process real-time data including real-time gas flow detection data, real-time odorant concentration detection data, real-time environmental parameters and real-time odorant characteristic parameters. The odorant injection strategy determination module is used to output the optimal odorant injection strategy based on a deep learning neural network model combined with the real-time data as input. The control module is used to control multiple parameters of the odorant injection pump according to the optimal odorant injection strategy, and the multiple parameters include injection rate, injection duration, injection frequency and injection amount distribution. Injection amount distribution refers to the specific way and mode in which the odorant injection pump injects odorant into the natural gas pipeline within a certain period of time. It includes aspects such as the amount of each injection and the uniformity of the injection. Specifically, uniformity refers to whether the odorant is evenly distributed in the natural gas pipeline. For example, whether it is evenly distributed over the entire length of the pipeline or concentrated in certain specific areas.

在一些实施例中,测定加臭剂在天然气管道中的均匀分布可以通过以下几种方法:In some embodiments, the uniform distribution of the odorant in the natural gas pipeline can be determined by the following methods:

多点采样分析:在天然气管道的不同位置安装多个加臭剂浓度监测装置,实时检测各个位置的加臭剂浓度。通过比较不同位置的加臭剂浓度数据,评估加臭剂在管道中的分布均匀性。Multi-point sampling analysis: Install multiple odorant concentration monitoring devices at different locations of the natural gas pipeline to detect the odorant concentration at each location in real time. By comparing the odorant concentration data at different locations, the uniformity of odorant distribution in the pipeline can be evaluated.

气体色谱分析:采集天然气管道中不同位置的气体样品,使用气相色谱仪分析样品中的加臭剂浓度。通过分析结果,评估加臭剂在管道中的分布均匀性。Gas chromatography analysis: Collect gas samples from different locations in the natural gas pipeline and use a gas chromatograph to analyze the odorant concentration in the samples. The analysis results are used to evaluate the uniformity of the odorant distribution in the pipeline.

光谱分析:使用光谱分析技术(例如傅里叶变换红外光谱仪FTIR)检测天然气管道中不同位置的加臭剂浓度。通过光谱数据,评估加臭剂在管道中的分布均匀性。Spectral analysis: Use spectral analysis techniques (such as Fourier transform infrared spectrometer FTIR) to detect the concentration of odorant at different locations in the natural gas pipeline. The spectral data can be used to evaluate the uniformity of the odorant distribution in the pipeline.

流体动力学模拟:使用计算流体动力学(Computational Fluid Dynamics,CFD)模拟天然气和加臭剂在管道中的流动情况。通过模拟结果,评估加臭剂在管道中的分布均匀性。Fluid dynamics simulation: Computational Fluid Dynamics (CFD) is used to simulate the flow of natural gas and odorant in the pipeline. The simulation results are used to evaluate the uniformity of the odorant distribution in the pipeline.

均匀分布的加臭剂能够确保在天然气泄漏时,任何位置的泄漏都能被及时检测到,提高天然气的安全性。如果加臭剂分布不均匀,某些区域的加臭剂浓度可能过低,导致泄漏时无法及时被检测到,增加安全隐患。通过实时监测加臭剂的分布均匀性,可以动态调整加臭剂的注入策略,确保加臭剂在管道中的均匀分布。例如,在检测到某些区域的加臭剂浓度较低时,可以增加该区域的加臭剂注入量,确保整体的均匀分布。Evenly distributed odorants can ensure that leaks at any location can be detected in time when natural gas leaks, thereby improving the safety of natural gas. If the odorant is unevenly distributed, the odorant concentration in some areas may be too low, resulting in the failure to detect leaks in time, increasing safety hazards. By real-time monitoring of the uniformity of odorant distribution, the odorant injection strategy can be dynamically adjusted to ensure uniform distribution of odorants in the pipeline. For example, when it is detected that the odorant concentration in some areas is low, the odorant injection amount in that area can be increased to ensure overall uniform distribution.

该智能自适应天然气加臭剂浓度控制系统通过实时数据采集和处理、基于深度学习的智能决策、动态调整注入策略、预测和预警功能以及自学习和优化,体现了其智能自适应的特点。系统能够根据实时数据和历史数据,动态调整加臭剂的注入策略,确保加臭剂在天然气管道中的均匀分布,提高天然气的安全性和使用效果。The intelligent adaptive natural gas odorant concentration control system embodies its intelligent adaptive characteristics through real-time data collection and processing, intelligent decision-making based on deep learning, dynamic adjustment of injection strategy, prediction and early warning functions, and self-learning and optimization. The system can dynamically adjust the odorant injection strategy based on real-time data and historical data to ensure the uniform distribution of odorants in the natural gas pipeline and improve the safety and use effect of natural gas.

该智能自适应天然气加臭剂浓度控制系统的工作方法包括如下步骤:The working method of the intelligent adaptive natural gas odorant concentration control system includes the following steps:

S11:数据采集。气体流量传感器实时获取天然气管道中的气体流量检测数据,并将数据传输至控制器。加臭剂浓度监测装置实时获取天然气中的加臭剂浓度检测数据,并将数据传输至控制器。环境参数传感器实时获取环境温度、环境湿度和大气压力等环境参数,并将数据传输至控制器。加臭剂特性传感器实时检测加臭剂的特性参数,并将数据传输至控制器。S11: Data acquisition. The gas flow sensor acquires the gas flow detection data in the natural gas pipeline in real time and transmits the data to the controller. The odorant concentration monitoring device acquires the odorant concentration detection data in the natural gas in real time and transmits the data to the controller. The environmental parameter sensor acquires environmental parameters such as ambient temperature, ambient humidity and atmospheric pressure in real time and transmits the data to the controller. The odorant characteristic sensor detects the characteristic parameters of the odorant in real time and transmits the data to the controller.

S12:数据处理。数据处理模块接收并处理上述实时数据,进行数据清洗和预处理,确保数据的准确性和一致性。S12: Data processing: The data processing module receives and processes the above real-time data, performs data cleaning and preprocessing, and ensures the accuracy and consistency of the data.

S13:策略计算。加臭剂注入策略确定模块基于深度学习的神经网络模型,结合处理后的实时数据,输出最优的加臭剂注入策略。例如,神经网络模型可以根据历史数据和实时数据进行训练和优化,以提高策略的准确性和鲁棒性。该神经网络模型的输出层则输出最优的加臭剂注入策略,包括注入速率、注入时长、注入频率和注入量分布。S13: Strategy calculation. The odorant injection strategy determination module outputs the optimal odorant injection strategy based on the deep learning neural network model and the processed real-time data. For example, the neural network model can be trained and optimized based on historical data and real-time data to improve the accuracy and robustness of the strategy. The output layer of the neural network model outputs the optimal odorant injection strategy, including injection rate, injection duration, injection frequency, and injection amount distribution.

S14:控制执行。控制模块根据输出的最优加臭剂注入策略,控制加臭剂注入泵的多个参数,包括注入速率、注入时长、注入频率和注入量分布。例如,在高流量情况下,控制模块可以增加注入速率和注入频率,以确保加臭剂浓度的稳定性。通过实时调整注入速率、注入时长、注入频率和注入量分布,有利于确保加臭剂浓度的稳定性和均匀性,提高天然气的安全性。通过动态调整注入参数,避免过量或不足的加臭剂注入,减少加臭剂的浪费,提高资源利用效率。通过实时数据和深度学习模型,系统能够适应不同的流量和环境条件,灵活调整注入策略,确保加臭剂浓度的稳定性。通过优化注入策略,减少加臭剂的浪费和运行成本,提高系统的经济性。S14: Control execution. The control module controls multiple parameters of the odorant injection pump, including injection rate, injection duration, injection frequency and injection volume distribution, according to the output optimal odorant injection strategy. For example, under high flow conditions, the control module can increase the injection rate and injection frequency to ensure the stability of the odorant concentration. By adjusting the injection rate, injection duration, injection frequency and injection volume distribution in real time, it is beneficial to ensure the stability and uniformity of the odorant concentration and improve the safety of natural gas. By dynamically adjusting the injection parameters, excessive or insufficient odorant injection can be avoided, the waste of odorants can be reduced, and the efficiency of resource utilization can be improved. Through real-time data and deep learning models, the system can adapt to different flow rates and environmental conditions, flexibly adjust the injection strategy, and ensure the stability of the odorant concentration. By optimizing the injection strategy, the waste of odorants and operating costs can be reduced, and the economy of the system can be improved.

以下举例说明,假设在某天然气管道系统中,气体流量传感器检测到当前天然气流量为500立方米/小时,加臭剂浓度监测装置检测到当前加臭剂浓度为10 ppm,环境参数传感器检测到环境温度为25摄氏度、环境湿度为60%、大气压力为1013 hPa,加臭剂特性传感器检测到加臭剂的密度为0.8 g/cm³、气味强度为50 ppm、挥发性特性为20 kPa、在金属表面的吸附量为0.5 mg/m²、电导率为0.1 S/m。控制器的数据处理模块接收并处理上述数据,加臭剂注入策略确定模块基于深度学习的神经网络模型,结合实时数据,计算出最优的加臭剂注入策略。控制模块根据该策略,控制加臭剂注入泵的注入速率为0.5升/小时、注入时长为10分钟、注入频率为每小时注入一次、注入量分布为均匀分布。The following example illustrates that, in a natural gas pipeline system, the gas flow sensor detects that the current natural gas flow is 500 cubic meters per hour, the odorant concentration monitoring device detects that the current odorant concentration is 10 ppm, the environmental parameter sensor detects that the ambient temperature is 25 degrees Celsius, the ambient humidity is 60%, and the atmospheric pressure is 1013 hPa, and the odorant characteristic sensor detects that the density of the odorant is 0.8 g/cm³, the odor intensity is 50 ppm, the volatility characteristic is 20 kPa, the adsorption amount on the metal surface is 0.5 mg/m², and the conductivity is 0.1 S/m. The data processing module of the controller receives and processes the above data, and the odorant injection strategy determination module calculates the optimal odorant injection strategy based on the deep learning neural network model and real-time data. According to the strategy, the control module controls the injection rate of the odorant injection pump to be 0.5 liters per hour, the injection time to be 10 minutes, the injection frequency to be once per hour, and the injection amount distribution to be uniform.

在一些实施例中,该智能自适应天然气加臭剂浓度控制系统具备自学习模块,根据历史数据和实时数据不断优化和更新加臭剂注入策略,提高系统的自适应能力和精确性。通过自学习和优化,系统能够适应不同的运行条件和环境变化,实现智能化和自适应的加臭剂注入控制。In some embodiments, the intelligent adaptive natural gas odorant concentration control system has a self-learning module, which continuously optimizes and updates the odorant injection strategy based on historical data and real-time data to improve the system's adaptability and accuracy. Through self-learning and optimization, the system can adapt to different operating conditions and environmental changes, and realize intelligent and adaptive odorant injection control.

该基于深度学习的神经网络模型的训练过程包括如下步骤:The training process of the deep learning-based neural network model includes the following steps:

S21:数据收集与预处理。S21: Data collection and preprocessing.

首先,系统需要收集运行过程中产生的各种数据,包括气体流量检测数据、加臭剂浓度检测数据、环境参数(环境温度、环境湿度、大气压力)和加臭剂特性参数(密度、气味强度、挥发性特性、吸附特性、电导率)。这些数据经过清洗去除异常值和噪声,并填补缺失值。接着,将不同量纲的数据标准化到相同的范围(例如将所有数据标准化到0-1范围),以提高模型的训练效果。最后,将数据集分为训练集、验证集和测试集,比例可以为70%训练集,15%验证集,15%测试集。First, the system needs to collect various data generated during operation, including gas flow detection data, odorant concentration detection data, environmental parameters (ambient temperature, ambient humidity, atmospheric pressure) and odorant characteristic parameters (density, odor intensity, volatility, adsorption characteristics, conductivity). These data are cleaned to remove outliers and noise, and fill in missing values. Next, standardize data of different dimensions to the same range (for example, standardize all data to the range of 0-1) to improve the training effect of the model. Finally, divide the data set into training set, validation set and test set, with a ratio of 70% training set, 15% validation set, and 15% test set.

S22:模型构建。S22: Model construction.

神经网络模型的结构包括输入层、隐藏层和输出层。输入层接收预处理后的输入数据,包括气体流量、加臭剂浓度、环境参数和加臭剂特性参数。隐藏层包括多个神经元层,用于提取和处理输入数据的特征,可以使用多层感知器(Multi-Layer Perceptron,MLP)、卷积神经网络(Convolutional Neural Network,CNN)或长短期记忆网络(Long Short-Term Memory,LSTM)等结构。输出层则输出最优的加臭剂注入策略,包括注入速率、注入时长、注入频率和注入量分布。在一个举例中,隐藏层使用3层,每层包含64个神经元,激活函数为ReLU。The structure of the neural network model includes an input layer, a hidden layer, and an output layer. The input layer receives preprocessed input data, including gas flow, odorant concentration, environmental parameters, and odorant characteristic parameters. The hidden layer includes multiple neuron layers, which are used to extract and process the features of the input data. Structures such as Multi-Layer Perceptron (MLP), Convolutional Neural Network (CNN), or Long Short-Term Memory (LSTM) can be used. The output layer outputs the optimal odorant injection strategy, including injection rate, injection duration, injection frequency, and injection amount distribution. In an example, the hidden layer uses 3 layers, each layer contains 64 neurons, and the activation function is ReLU.

在神经网络模型中,隐藏层的结构可以采用多层感知器(MLP)、卷积神经网络(CNN)或长短期记忆网络(LSTM)等不同的架构。每个隐藏层由多个神经元组成,这些神经元在不同的网络架构中具有不同的功能和连接方式。以下是这些架构与神经元之间的逻辑关系:In the neural network model, the structure of the hidden layer can adopt different architectures such as multi-layer perceptron (MLP), convolutional neural network (CNN) or long short-term memory network (LSTM). Each hidden layer is composed of multiple neurons, which have different functions and connection methods in different network architectures. The following is the logical relationship between these architectures and neurons:

多层感知器(MLP)中,每个隐藏层由多个神经元组成,所有神经元之间是全连接的。每个神经元接收前一层所有神经元的输出,并通过激活函数(例如ReLU)进行非线性变换,输出到下一层的所有神经元。假设一个隐藏层有64个神经元,每个神经元接收前一层所有神经元的输出,并通过ReLU激活函数进行处理。In a multi-layer perceptron (MLP), each hidden layer consists of multiple neurons, and all neurons are fully connected. Each neuron receives the output of all neurons in the previous layer, and performs a nonlinear transformation through an activation function (such as ReLU), and outputs it to all neurons in the next layer. Assume that a hidden layer has 64 neurons, and each neuron receives the output of all neurons in the previous layer and processes it through the ReLU activation function.

在卷积神经网络(CNN)中,每个隐藏层由多个卷积核(filters)组成,每个卷积核相当于一个神经元。卷积核在输入数据上滑动,进行局部连接和权重共享,提取局部特征。卷积层通常后接池化层(Pooling Layer)以减少数据维度。假设一个卷积层有32个卷积核,每个卷积核在输入数据上滑动,提取局部特征,并通过ReLU激活函数进行处理。In a convolutional neural network (CNN), each hidden layer consists of multiple convolutional filters, each of which is equivalent to a neuron. The convolutional kernel slides over the input data, performs local connections and weight sharing, and extracts local features. The convolutional layer is usually followed by a pooling layer to reduce the data dimension. Assume that a convolutional layer has 32 convolutional kernels, each of which slides over the input data, extracts local features, and is processed by the ReLU activation function.

在长短期记忆网络(LSTM)中,每个隐藏层由多个LSTM单元组成,每个LSTM单元相当于一个神经元。LSTM单元通过输入门、遗忘门和输出门控制信息的流动,能够捕捉序列数据中的长短期依赖关系。假设一个LSTM层有128个LSTM单元,每个单元接收前一层的输出和自身的状态,通过门控机制进行处理。In a long short-term memory network (LSTM), each hidden layer consists of multiple LSTM units, and each LSTM unit is equivalent to a neuron. LSTM units control the flow of information through input gates, forget gates, and output gates, and can capture long-term and short-term dependencies in sequence data. Assume that an LSTM layer has 128 LSTM units, each unit receives the output of the previous layer and its own state, and processes them through a gating mechanism.

S23:模型训练。S23: Model training.

在模型训练过程中,选择合适的损失函数(例如均方误差(Mean Square Error,MSE))来衡量模型预测值与真实值之间的差异,并使用优化算法(例如Adam(AdaptiveMoment Estimation,自适应矩估计)、SGD(Stochastic Gradient Descent,随机梯度下降))来最小化损失函数,调整模型参数。通过多次迭代(epoch)训练模型,每次迭代使用一批(batch)数据进行参数更新。训练过程中还需要调整超参数,例如学习率、批量大小、隐藏层数量和神经元数量,以找到最佳模型结构。学习率控制参数更新的步长,学习率过大或过小都会影响模型的收敛效果。批量大小是每次迭代使用的数据量,批量大小影响训练速度和模型性能。During the model training process, a suitable loss function (such as Mean Square Error (MSE)) is selected to measure the difference between the model's predicted value and the true value, and an optimization algorithm (such as Adam (Adaptive Moment Estimation) and SGD (Stochastic Gradient Descent)) is used to minimize the loss function and adjust the model parameters. The model is trained through multiple iterations (epochs), and each iteration uses a batch of data for parameter update. Hyperparameters such as learning rate, batch size, number of hidden layers, and number of neurons also need to be adjusted during training to find the optimal model structure. The learning rate controls the step size of the parameter update. Too large or too small a learning rate will affect the convergence of the model. The batch size is the amount of data used in each iteration, and the batch size affects the training speed and model performance.

在一个举例中,使用以下参数进行模型训练:损失函数为均方误差(MSE),优化算法为Adam,学习率为0.001,批量大小为32,训练迭代为5000次。在训练过程中,模型通过多次迭代(epoch)学习数据的特征,并不断调整参数以最小化损失函数。相比于现有技术中的模型,本实施例的基于深度学习的神经网络模型在智能自适应天然气加臭剂浓度控制系统中的应用具有以下优点:使用均方误差(MSE)作为损失函数,能够有效衡量模型预测值与真实值之间的差异,确保模型的高精度预测;采用Adam优化算法,能够自适应地调整学习率,提高模型的收敛速度和稳定性;模型通过多次迭代(epoch)学习数据的特征,并不断调整参数以最小化损失函数,能够动态适应实时数据和环境变化,提供最优的加臭剂注入策略;使用批量大小为32的迷你批量梯度下降法,能够在保证训练速度的同时,提高模型的泛化能力,避免过拟合;深度学习模型(例如多层感知器MLP、卷积神经网络CNN、长短期记忆网络LSTM)具有强大的特征提取和表示能力,能够从复杂的多维数据中提取有用的特征,提高模型的预测和控制能力;深度学习模型具有高度的灵活性和扩展性,可以根据具体应用需求调整模型结构和参数,适应不同的运行条件和环境变化。In one example, the following parameters are used for model training: the loss function is mean square error (MSE), the optimization algorithm is Adam, the learning rate is 0.001, the batch size is 32, and the training iteration is 5000. During the training process, the model learns the characteristics of the data through multiple iterations (epochs) and continuously adjusts the parameters to minimize the loss function. Compared with the models in the prior art, the application of the neural network model based on deep learning in the intelligent adaptive natural gas odorant concentration control system of this embodiment has the following advantages: using the mean square error (MSE) as the loss function can effectively measure the difference between the model prediction value and the true value, ensuring the high-precision prediction of the model; using the Adam optimization algorithm, the learning rate can be adaptively adjusted to improve the convergence speed and stability of the model; the model learns the characteristics of the data through multiple iterations (epochs) and continuously adjusts the parameters to minimize the loss function, and can dynamically adapt to real-time data and environmental changes to provide the optimal odorant injection strategy; using the mini-batch gradient descent method with a batch size of 32, it can improve the generalization ability of the model while ensuring the training speed and avoid overfitting; deep learning models (such as multi-layer perceptron MLP, convolutional neural network CNN, long short-term memory network LSTM) have powerful feature extraction and representation capabilities, can extract useful features from complex multidimensional data, and improve the prediction and control capabilities of the model; deep learning models are highly flexible and scalable, and the model structure and parameters can be adjusted according to specific application requirements to adapt to different operating conditions and environmental changes.

S24:模型验证与测试。S24: Model validation and testing.

在模型验证过程中,使用验证集数据评估模型的性能,调整超参数以提高模型的泛化能力。通过交叉验证(cross-validation)方法进一步验证模型的稳定性和可靠性。在模型测试过程中,使用测试集数据评估最终模型的性能,确保模型在未见过的数据上具有良好的预测能力。During the model validation process, the validation set data is used to evaluate the performance of the model and adjust the hyperparameters to improve the generalization ability of the model. The stability and reliability of the model are further verified through the cross-validation method. During the model testing process, the test set data is used to evaluate the performance of the final model to ensure that the model has good predictive ability on unseen data.

S25:模型部署与应用。S25: Model deployment and application.

将训练好的模型部署到控制器中,实时接收和处理输入数据,输出最优的加臭剂注入策略。控制器根据模型输出的注入策略,动态调整加臭剂注入泵的多个参数,实现智能化和自适应的加臭剂注入控制。在一个举例中,例如,模型输出的注入策略为:注入速率0.5升/小时、注入时长10分钟、注入频率每小时一次、注入量分布均匀。The trained model is deployed to the controller, which receives and processes input data in real time and outputs the optimal odorant injection strategy. The controller dynamically adjusts multiple parameters of the odorant injection pump according to the injection strategy output by the model to achieve intelligent and adaptive odorant injection control. In one example, for example, the injection strategy output by the model is: injection rate 0.5 liters/hour, injection duration 10 minutes, injection frequency once per hour, and injection volume evenly distributed.

在一些实施例中,可以实现注入速率的动态调整。控制模块根据实时气体流量、加臭剂浓度、环境温度和环境湿度,动态调整加臭剂的注入速率。在高流量和高温度情况下,增加注入速率;在低流量和低温度情况下,减少注入速率。例如,当气体流量增加到600立方米/小时时,注入速率自动调整为0.6升/小时。In some embodiments, dynamic adjustment of the injection rate can be achieved. The control module dynamically adjusts the injection rate of the odorant according to the real-time gas flow rate, odorant concentration, ambient temperature and ambient humidity. In the case of high flow rate and high temperature, the injection rate is increased; in the case of low flow rate and low temperature, the injection rate is reduced. For example, when the gas flow rate increases to 600 cubic meters per hour, the injection rate is automatically adjusted to 0.6 liters per hour.

在一些实施例中,可以实现注入时长的动态调整。控制模块根据天然气流量的波动、加臭剂浓度的变化和环境湿度,动态调整每次注入的持续时间。在流量波动较大和湿度较高时,延长注入时长以确保浓度稳定;在流量稳定和湿度较低时,缩短注入时长。例如,当流量波动较大时,注入时长自动调整为15分钟。In some embodiments, dynamic adjustment of the injection duration can be achieved. The control module dynamically adjusts the duration of each injection according to the fluctuation of the natural gas flow, the change of the odorant concentration and the ambient humidity. When the flow fluctuation is large and the humidity is high, the injection duration is extended to ensure the concentration is stable; when the flow is stable and the humidity is low, the injection duration is shortened. For example, when the flow fluctuation is large, the injection duration is automatically adjusted to 15 minutes.

在一些实施例中,可以实现注入频率的动态调整。控制模块根据天然气流量、加臭剂浓度的变化频率和环境压力,动态调整注入操作的间隔时间。在流量变化频繁和压力较低的情况下,增加注入频率;在流量稳定和压力较高的情况下,减少注入频率。例如,当流量变化频繁时,注入频率自动调整为每30分钟一次。In some embodiments, dynamic adjustment of the injection frequency can be achieved. The control module dynamically adjusts the interval between injection operations according to the natural gas flow rate, the frequency of change of the odorant concentration, and the ambient pressure. In the case of frequent flow changes and low pressure, the injection frequency is increased; in the case of stable flow and high pressure, the injection frequency is reduced. For example, when the flow changes frequently, the injection frequency is automatically adjusted to once every 30 minutes.

在一些实施例中,可以实现注入量分布的动态调整。控制模块根据管道长度、天然气流动特性和加臭剂特性参数,动态调整加臭剂的分布方式。在长距离管道和高挥发性加臭剂情况下,采用多点注入方式,确保加臭剂均匀分布;在短距离管道和低挥发性加臭剂情况下,采用单点注入方式。例如,在长距离管道中,注入量分布自动调整为多点均匀分布。In some embodiments, dynamic adjustment of the injection amount distribution can be achieved. The control module dynamically adjusts the distribution of the odorant according to the pipeline length, natural gas flow characteristics and odorant characteristic parameters. In the case of long-distance pipelines and high-volatility odorants, a multi-point injection method is used to ensure uniform distribution of the odorant; in the case of short-distance pipelines and low-volatility odorants, a single-point injection method is used. For example, in a long-distance pipeline, the injection amount distribution is automatically adjusted to a multi-point uniform distribution.

例如在某天然气管道系统中,气体流量传感器检测到当前天然气流量为500立方米/小时,加臭剂浓度监测装置检测到当前加臭剂浓度为10 ppm。环境参数传感器检测到环境温度为25摄氏度、环境湿度为60%、大气压力为1013 hPa。加臭剂特性传感器检测到加臭剂的密度为0.8 g/cm³、气味强度为50 ppm、挥发性特性为20 kPa、在金属表面的吸附量为0.5 mg/m²、电导率为0.1 S/m。系统实时获取上述数据,并进行数据清洗和预处理。加臭剂注入策略确定模块基于深度学习的神经网络模型,结合实时数据,计算出最优的加臭剂注入策略。控制模块根据输出的最优加臭剂注入策略,动态调整加臭剂注入泵的多个参数。例如,当前最优加臭剂注入策略为:注入速率0.5升/小时、注入时长10分钟、注入频率每小时一次、注入量分布均匀。动态调整如下:当气体流量增加到600立方米/小时时,控制模块自动调整注入速率为0.6升/小时。当流量波动较大且环境湿度较高时,控制模块自动调整注入时长为15分钟。当流量变化频繁且大气压力较低时,控制模块自动调整注入频率为每30分钟一次。在长距离管道且加臭剂挥发性较高的情况下,控制模块自动调整注入量分布为多点均匀分布。For example, in a natural gas pipeline system, the gas flow sensor detects that the current natural gas flow is 500 cubic meters per hour, and the odorant concentration monitoring device detects that the current odorant concentration is 10 ppm. The environmental parameter sensor detects that the ambient temperature is 25 degrees Celsius, the ambient humidity is 60%, and the atmospheric pressure is 1013 hPa. The odorant characteristic sensor detects that the density of the odorant is 0.8 g/cm³, the odor intensity is 50 ppm, the volatility characteristic is 20 kPa, the adsorption amount on the metal surface is 0.5 mg/m², and the conductivity is 0.1 S/m. The system obtains the above data in real time and performs data cleaning and preprocessing. The odorant injection strategy determination module calculates the optimal odorant injection strategy based on the deep learning neural network model and real-time data. The control module dynamically adjusts multiple parameters of the odorant injection pump according to the output optimal odorant injection strategy. For example, the current optimal odorant injection strategy is: injection rate 0.5 liters/hour, injection time 10 minutes, injection frequency once an hour, and injection volume distribution is uniform. The dynamic adjustment is as follows: When the gas flow rate increases to 600 cubic meters per hour, the control module automatically adjusts the injection rate to 0.6 liters per hour. When the flow rate fluctuates greatly and the ambient humidity is high, the control module automatically adjusts the injection duration to 15 minutes. When the flow rate changes frequently and the atmospheric pressure is low, the control module automatically adjusts the injection frequency to once every 30 minutes. In the case of long-distance pipelines and high volatility of the odorant, the control module automatically adjusts the injection volume distribution to a multi-point uniform distribution.

本实施例的智能自适应天然气加臭剂浓度控制系统通过集成多种传感器和基于深度学习的控制算法,实现了对加臭剂注入过程的精确控制,具有以下技术效果:The intelligent adaptive natural gas odorant concentration control system of this embodiment realizes precise control of the odorant injection process by integrating multiple sensors and a control algorithm based on deep learning, and has the following technical effects:

通过气体流量传感器、加臭剂浓度监测装置、环境参数传感器和加臭剂特性传感器的协同工作,系统能够实时获取高精度的检测数据,确保数据的准确性和可靠性。Through the coordinated work of gas flow sensors, odorant concentration monitoring devices, environmental parameter sensors and odorant characteristic sensors, the system can obtain high-precision detection data in real time to ensure the accuracy and reliability of the data.

基于深度学习的神经网络模型,系统能够结合实时数据和历史数据,输出最优的加臭剂注入策略,实现智能化控制。该策略能够动态调整注入速率、注入时长、注入频率和注入量分布,以适应不同的运行条件和环境变化。Based on the deep learning neural network model, the system can combine real-time data and historical data to output the optimal odorant injection strategy and realize intelligent control. The strategy can dynamically adjust the injection rate, injection duration, injection frequency and injection volume distribution to adapt to different operating conditions and environmental changes.

系统能够根据实时数据和预测结果,动态调整加臭剂注入策略,具有较强的自适应能力。无论是在高流量还是低流量条件下,系统都能保持加臭剂浓度的稳定性和均匀性。The system can dynamically adjust the odorant injection strategy based on real-time data and prediction results, and has strong adaptive capabilities. Whether under high or low flow conditions, the system can maintain the stability and uniformity of the odorant concentration.

通过优化加臭剂注入策略,系统能够有效减少加臭剂的浪费,提高能源利用效率,降低运行成本。By optimizing the odorant injection strategy, the system can effectively reduce odorant waste, improve energy efficiency and reduce operating costs.

实施例二Embodiment 2

如图2所示,本实施例提供了一种用于智能自适应天然气加臭剂浓度控制系统的加臭剂浓度监测装置,包括加臭剂分析模块、温度补偿模块、环境湿度补偿模块和大气压力补偿模块。As shown in FIG. 2 , this embodiment provides an odorant concentration monitoring device for an intelligent adaptive natural gas odorant concentration control system, including an odorant analysis module, a temperature compensation module, an ambient humidity compensation module, and an atmospheric pressure compensation module.

加臭剂分析模块用于检测天然气中的不同种类的加臭剂分别对应的浓度,获得实时加臭剂浓度检测数据。在一些实施例中,可采用光谱分析模块、气相色谱模块和半导体气体传感器。气相色谱模块用于检测天然气中的不同种类的加臭剂分别对应的浓度,获得实时加臭剂浓度检测数据。气相色谱模块是一种基于气体分离和检测的技术,能够同时检测多种气体成分。气相色谱模块通过分离柱将混合气体中的各成分分离开来,然后通过检测器检测各成分的浓度。光谱分析模块用于检测天然气中的不同种类的加臭剂分别对应的浓度,获得实时加臭剂浓度检测数据。光谱分析技术通过检测气体分子的光吸收或发射特性来确定其浓度。具体来说,光谱分析模块包括光源、样品池、光谱仪和检测器。光源发出特定波长范围的光,可以使用紫外光、可见光或红外光,光源的选择取决于待测气体分子的光吸收或发射特性。待测气体通过样品池,光源发出的光穿过样品池中的气体分子。样品池的设计确保光能够均匀地穿过气体样品。光谱仪用于分离和分析通过样品池后的光,将光分解成不同波长的光谱,并测量每个波长的光强度。气体分子在特定波长范围内会吸收或发射光,导致光谱中出现特征吸收峰或发射峰。检测器用于测量光谱仪输出的光强度,并将其转换为电信号。检测器的输出信号与气体分子的浓度成正比。处理器接收检测器的输出信号,并通过光谱分析软件进行数据处理,通过比较光谱中的特征吸收峰或发射峰的强度和位置,确定加臭剂气体分子的浓度。The odorant analysis module is used to detect the concentrations of different types of odorants in natural gas and obtain real-time odorant concentration detection data. In some embodiments, a spectral analysis module, a gas chromatography module and a semiconductor gas sensor may be used. The gas chromatography module is used to detect the concentrations of different types of odorants in natural gas and obtain real-time odorant concentration detection data. The gas chromatography module is a technology based on gas separation and detection, which can detect multiple gas components at the same time. The gas chromatography module separates the components in the mixed gas through a separation column, and then detects the concentration of each component through a detector. The spectral analysis module is used to detect the concentrations of different types of odorants in natural gas and obtain real-time odorant concentration detection data. Spectral analysis technology determines the concentration of gas molecules by detecting their light absorption or emission characteristics. Specifically, the spectral analysis module includes a light source, a sample cell, a spectrometer and a detector. The light source emits light in a specific wavelength range, and ultraviolet light, visible light or infrared light can be used. The selection of the light source depends on the light absorption or emission characteristics of the gas molecules to be measured. The gas to be measured passes through the sample cell, and the light emitted by the light source passes through the gas molecules in the sample cell. The design of the sample cell ensures that the light can pass through the gas sample evenly. The spectrometer is used to separate and analyze the light after passing through the sample cell, decompose the light into spectra of different wavelengths, and measure the light intensity of each wavelength. Gas molecules absorb or emit light within a specific wavelength range, resulting in characteristic absorption peaks or emission peaks in the spectrum. The detector is used to measure the light intensity output by the spectrometer and convert it into an electrical signal. The output signal of the detector is proportional to the concentration of the gas molecules. The processor receives the output signal of the detector and performs data processing through the spectrum analysis software, and determines the concentration of the odorant gas molecules by comparing the intensity and position of the characteristic absorption peaks or emission peaks in the spectrum.

温度补偿模块用于根据实时获取的环境温度数据对所述实时加臭剂浓度检测数据进行温度补偿,获得温度补偿后的加臭剂浓度检测数据。The temperature compensation module is used to perform temperature compensation on the real-time odorant concentration detection data according to the ambient temperature data obtained in real time, so as to obtain the temperature-compensated odorant concentration detection data.

环境湿度补偿模块用于根据实时获取的环境湿度数据对所述温度补偿后的加臭剂浓度检测数据进行湿度补偿,获得湿度补偿后的加臭剂浓度检测数据。The environmental humidity compensation module is used to perform humidity compensation on the temperature-compensated odorant concentration detection data according to the environmental humidity data acquired in real time, so as to obtain the humidity-compensated odorant concentration detection data.

大气压力补偿模块用于根据实时获取的大气压力数据对所述湿度补偿后的加臭剂浓度检测数据进行压力补偿,获得压力补偿后的加臭剂浓度检测数据。The atmospheric pressure compensation module is used to perform pressure compensation on the humidity-compensated odorant concentration detection data according to the atmospheric pressure data acquired in real time, so as to obtain the pressure-compensated odorant concentration detection data.

加臭剂浓度监测装置的工作过程包括如下步骤:The working process of the odorant concentration monitoring device includes the following steps:

S31:数据采集。S31: Data collection.

加臭剂分析模块实时检测天然气中的加臭剂浓度,获得初步的加臭剂浓度检测数据。温度传感器实时获取环境温度数据,湿度传感器实时获取环境湿度数据,压力传感器实时获取大气压力数据。The odorant analysis module detects the odorant concentration in natural gas in real time and obtains preliminary odorant concentration detection data. The temperature sensor obtains the ambient temperature data in real time, the humidity sensor obtains the ambient humidity data in real time, and the pressure sensor obtains the atmospheric pressure data in real time.

S32:温度补偿。S32: Temperature compensation.

温度补偿模块根据实时获取的环境温度数据,基于温度补偿算法对初步检测的加臭剂浓度检测数据进行温度补偿,获得温度补偿后的加臭剂浓度检测数据。温度补偿算法可以使用线性回归模型,假设环境温度对加臭剂浓度的影响为线性关系:The temperature compensation module performs temperature compensation on the preliminary detected odorant concentration detection data based on the temperature compensation algorithm according to the real-time acquired ambient temperature data, and obtains the temperature-compensated odorant concentration detection data. The temperature compensation algorithm can use a linear regression model, assuming that the effect of ambient temperature on odorant concentration is a linear relationship:

Ctemp_comp=Craw+ktemp×(T-Tref)。 Ctemp _ comp = Craw + ktemp × ( T - Tref ).

其中,Ctemp_comp是温度补偿后的加臭剂浓度检测数据,Craw是初步检测的实时加臭剂浓度检测数据,ktemp是温度补偿系数,T是当前实时获取的环境温度数据,Tref是参考环境温度数据。Wherein, Ctemp_comp is the odorant concentration detection data after temperature compensation, Craw is the real-time odorant concentration detection data of preliminary detection, ktemp is the temperature compensation coefficient, T is the current real-time acquired ambient temperature data, and Tref is the reference ambient temperature data.

S33:湿度补偿。S33: Humidity compensation.

环境湿度补偿模块根据实时获取的环境湿度数据,对温度补偿后的加臭剂浓度检测数据进行湿度补偿,获得湿度补偿后的加臭剂浓度检测数据。湿度补偿算法可以使用多项式回归模型,假设湿度对浓度的影响为非线性关系:The ambient humidity compensation module performs humidity compensation on the temperature-compensated odorant concentration detection data based on the ambient humidity data obtained in real time, and obtains humidity-compensated odorant concentration detection data. The humidity compensation algorithm can use a polynomial regression model, assuming that the effect of humidity on concentration is a nonlinear relationship:

Chum_comp=Ctemp_comp +k hum1×H+k hum2×H 2 Chum_comp = Ctemp_comp + k hum1 × H + k hum2 × H2

其中,Chum_comp是湿度补偿后的加臭剂浓度检测数据,Ctemp_comp是温度补偿后的加臭剂浓度检测数据,k hum1k hum2是湿度补偿系数,H是当前实时获取的环境湿度数据。Wherein, Chum_comp is the odorant concentration detection data after humidity compensation, Ctemp_comp is the odorant concentration detection data after temperature compensation, k hum 1 and k hum 2 are humidity compensation coefficients, and H is the current real-time acquired environmental humidity data.

S33:压力补偿。S33: Pressure compensation.

大气压力补偿模块根据实时获取的大气压力数据,对湿度补偿后的加臭剂浓度检测数据进行压力补偿,获得压力补偿后的加臭剂浓度检测数据。压力补偿算法可以使用线性回归模型,假设压力对浓度的影响为线性关系:The atmospheric pressure compensation module performs pressure compensation on the humidity-compensated odorant concentration detection data based on the atmospheric pressure data obtained in real time, and obtains the pressure-compensated odorant concentration detection data. The pressure compensation algorithm can use a linear regression model, assuming that the effect of pressure on concentration is a linear relationship:

Cpress_comp=Chum_comp + kpress×(P-Pref)。 Cpress_comp = Chum_comp + kpress × ( P-Pref ).

其中,Cpress_comp是压力补偿后的加臭剂浓度检测数据,Chum_comp是湿度补偿后的加臭剂浓度检测数据,kpress是压力补偿系数,P是当前实时获取的大气压力数据,Pref是参考大气压力数据。Wherein, Cpress_comp is the odorant concentration detection data after pressure compensation, Chum_comp is the odorant concentration detection data after humidity compensation, kpress is the pressure compensation coefficient, P is the atmospheric pressure data currently acquired in real time, and Pref is the reference atmospheric pressure data.

本实施例的加臭剂浓度监测装置通过集成加臭剂分析模块、温度补偿模块、环境湿度补偿模块和大气压力补偿模块,实现了对天然气中加臭剂浓度的高精度检测和多重补偿,具有以下具体技术效果:The odorant concentration monitoring device of this embodiment integrates the odorant analysis module, the temperature compensation module, the ambient humidity compensation module and the atmospheric pressure compensation module to achieve high-precision detection and multiple compensation of the odorant concentration in natural gas, and has the following specific technical effects:

加臭剂分析模块采用电化学传感器,能够高灵敏度和高选择性地检测天然气中的不同种类的加臭剂浓度。电化学传感器通过电化学反应原理,能够准确检测低浓度的加臭剂成分,确保检测结果的可靠性和准确性。The odorant analysis module uses an electrochemical sensor that can detect the concentration of different types of odorants in natural gas with high sensitivity and selectivity. The electrochemical sensor can accurately detect low-concentration odorant components through the principle of electrochemical reaction, ensuring the reliability and accuracy of the test results.

温度补偿模块通过实时获取的环境温度数据,对加臭剂浓度检测数据进行温度补偿。温度补偿算法能够消除环境温度对检测结果的影响,确保在不同温度条件下检测结果的一致性和准确性。例如,在环境温度变化较大的情况下,温度补偿模块能够动态调整检测数据,提供温度补偿后的准确浓度值。The temperature compensation module uses the real-time acquired ambient temperature data to perform temperature compensation on the odorant concentration test data. The temperature compensation algorithm can eliminate the influence of ambient temperature on the test results and ensure the consistency and accuracy of the test results under different temperature conditions. For example, when the ambient temperature changes greatly, the temperature compensation module can dynamically adjust the test data and provide accurate concentration values after temperature compensation.

环境湿度补偿模块通过实时获取的环境湿度数据,对温度补偿后的加臭剂浓度检测数据进行湿度补偿。湿度补偿算法能够消除环境湿度对检测结果的影响,确保在不同湿度条件下检测结果的稳定性和可靠性。例如,在高湿度环境中,湿度补偿模块能够有效调整检测数据,提供湿度补偿后的准确浓度值。The ambient humidity compensation module uses the ambient humidity data acquired in real time to perform humidity compensation on the odorant concentration test data after temperature compensation. The humidity compensation algorithm can eliminate the influence of ambient humidity on the test results and ensure the stability and reliability of the test results under different humidity conditions. For example, in a high humidity environment, the humidity compensation module can effectively adjust the test data and provide accurate concentration values after humidity compensation.

大气压力补偿模块通过实时获取的大气压力数据,对湿度补偿后的加臭剂浓度检测数据进行压力补偿。压力补偿算法能够消除大气压力对检测结果的影响,确保在不同压力条件下检测结果的准确性和一致性。例如,在高海拔或低海拔环境中,压力补偿模块能够动态调整检测数据,提供压力补偿后的准确浓度值。The atmospheric pressure compensation module uses the atmospheric pressure data acquired in real time to perform pressure compensation on the odorant concentration test data after humidity compensation. The pressure compensation algorithm can eliminate the influence of atmospheric pressure on the test results and ensure the accuracy and consistency of the test results under different pressure conditions. For example, in high-altitude or low-altitude environments, the pressure compensation module can dynamically adjust the test data and provide accurate concentration values after pressure compensation.

通过集成温度补偿、湿度补偿和压力补偿模块,加臭剂浓度监测装置实现了多重补偿机制。多重补偿机制能够综合考虑环境温度、湿度和压力对检测结果的影响,提供多重补偿后的高精度加臭剂浓度检测数据。多重补偿机制确保了检测结果的稳定性和可靠性,适用于各种复杂环境条件下的加臭剂浓度检测。By integrating temperature compensation, humidity compensation and pressure compensation modules, the odorant concentration monitoring device realizes a multiple compensation mechanism. The multiple compensation mechanism can comprehensively consider the impact of ambient temperature, humidity and pressure on the detection results, and provide high-precision odorant concentration detection data after multiple compensation. The multiple compensation mechanism ensures the stability and reliability of the detection results and is suitable for odorant concentration detection under various complex environmental conditions.

加臭剂浓度监测装置能够实时监测天然气中的加臭剂浓度,并根据实时获取的环境参数进行动态调整。实时监测和动态调整功能确保了检测数据的实时性和准确性,能够及时反映环境条件的变化,提供准确的加臭剂浓度检测结果。The odorant concentration monitoring device can monitor the odorant concentration in natural gas in real time and make dynamic adjustments based on the environmental parameters obtained in real time. The real-time monitoring and dynamic adjustment functions ensure the real-time and accuracy of the test data, can promptly reflect changes in environmental conditions, and provide accurate odorant concentration test results.

通过高精度的加臭剂浓度检测和多重补偿机制,加臭剂浓度监测装置能够为智能自适应天然气加臭剂浓度控制系统提供准确的检测数据。准确的检测数据能够提高系统的整体性能,确保加臭剂注入策略的准确性和有效性,优化加臭剂的使用,提高系统的智能性和自适应能力。Through high-precision odorant concentration detection and multiple compensation mechanisms, the odorant concentration monitoring device can provide accurate detection data for the intelligent adaptive natural gas odorant concentration control system. Accurate detection data can improve the overall performance of the system, ensure the accuracy and effectiveness of the odorant injection strategy, optimize the use of odorants, and improve the intelligence and adaptability of the system.

实施例三Embodiment 3

如图3所示,本实施例提供了一种用于智能自适应天然气加臭剂浓度控制系统的加臭剂特性传感器,包括密度传感器、气味强度传感器、挥发性传感器、表面吸附分析仪和电导率传感器中的任意多个。As shown in FIG3 , this embodiment provides an odorant characteristic sensor for an intelligent adaptive natural gas odorant concentration control system, including any multiple of a density sensor, an odor intensity sensor, a volatility sensor, a surface adsorption analyzer, and a conductivity sensor.

密度传感器安装在天然气管道上,用于实时检测气体状态下加臭剂的密度。密度传感器通过电缆与控制器电连接,将检测到的密度数据传输至控制器。气体密度传感器的工作过程是通过测量气体的质量和体积来计算其密度。The density sensor is installed on the natural gas pipeline to detect the density of the odorant in the gas state in real time. The density sensor is electrically connected to the controller through a cable and transmits the detected density data to the controller. The working process of the gas density sensor is to calculate its density by measuring the mass and volume of the gas.

气味强度传感器安装在天然气管道上,用于实时检测加臭剂所散发的气味强度。气味强度传感器通过电缆与控制器电连接,将检测到的气味强度数据传输至控制器。气味强度传感器的工作过程是通过检测气体分子与传感器表面发生的化学反应,产生与气味强度成正比的电信号。The odor intensity sensor is installed on the natural gas pipeline to detect the odor intensity emitted by the odorant in real time. The odor intensity sensor is electrically connected to the controller via a cable and transmits the detected odor intensity data to the controller. The working process of the odor intensity sensor is to generate an electrical signal proportional to the odor intensity by detecting the chemical reaction between gas molecules and the sensor surface.

挥发性传感器安装在天然气管道上,用于实时检测加臭剂在天然气中的挥发性特性。挥发性传感器通过电缆或无线通信方式与控制器电连接,将检测到的挥发性数据传输至控制器。挥发性传感器的工作过程是通过测量气体分子的蒸气压来评估其挥发性。The volatility sensor is installed on the natural gas pipeline to detect the volatility characteristics of the odorant in the natural gas in real time. The volatility sensor is electrically connected to the controller through a cable or wireless communication to transmit the detected volatility data to the controller. The working process of the volatility sensor is to evaluate the volatility of the gas molecules by measuring their vapor pressure.

表面吸附分析仪安装在天然气管道上,用于测量加臭剂在不同材料表面的吸附特性。表面吸附分析仪通过电缆或无线通信方式与控制器电连接,将检测到的吸附数据传输至控制器。表面吸附分析仪的工作过程是通过测量气体分子在不同材料表面的吸附量来评估其吸附特性。The surface adsorption analyzer is installed on the natural gas pipeline to measure the adsorption characteristics of odorants on the surfaces of different materials. The surface adsorption analyzer is electrically connected to the controller via a cable or wireless communication to transmit the detected adsorption data to the controller. The working process of the surface adsorption analyzer is to evaluate the adsorption characteristics of gas molecules by measuring the amount of adsorption on the surfaces of different materials.

电导率传感器安装在天然气管道上,用于实时检测气体状态下加臭剂的电导率。电导率传感器通过电缆或无线通信方式与控制器电连接,将检测到的电导率数据传输至控制器。气体电导率传感器的工作过程是通过测量气体的电导率来评估其离子浓度和化学性质。The conductivity sensor is installed on the natural gas pipeline to detect the conductivity of the odorant in the gas state in real time. The conductivity sensor is electrically connected to the controller through a cable or wireless communication to transmit the detected conductivity data to the controller. The working process of the gas conductivity sensor is to evaluate the ion concentration and chemical properties of the gas by measuring its conductivity.

所有传感器(密度传感器、气味强度传感器、挥发性传感器、表面吸附分析仪和电导率传感器)均安装在天然气管道上,彼此相邻,形成一个传感器阵列。这样可以确保在天然气流经管道时,所有传感器能够同时检测到加臭剂的特性参数。所有传感器通过电缆或无线通信方式与控制器电连接。每个传感器的输出端通过电缆或无线通信方式连接到控制器的输入端,控制器接收并处理来自各个传感器的检测数据。All sensors (density sensor, odor intensity sensor, volatility sensor, surface adsorption analyzer and conductivity sensor) are installed on the natural gas pipeline, adjacent to each other, forming a sensor array. This ensures that all sensors can simultaneously detect the characteristic parameters of the odorant when the natural gas flows through the pipeline. All sensors are electrically connected to the controller through cables or wireless communication. The output of each sensor is connected to the input of the controller through cables or wireless communication, and the controller receives and processes the detection data from each sensor.

具体地,挥发性是指加臭剂在气体中的蒸发能力或倾向。挥发性较高的物质容易从液态或固态转变为气态,因此在天然气中更容易分布均匀。挥发性特性对于加臭剂非常重要,因为它直接影响加臭剂的扩散速度和效果,进而影响天然气在使用时的气味感知。Specifically, volatility refers to the ability or tendency of an odorant to evaporate in a gas. Substances with higher volatility tend to change easily from a liquid or solid state to a gas state, and therefore are more likely to be evenly distributed in natural gas. Volatility characteristics are very important for odorants because they directly affect the rate and effectiveness of the odorant's diffusion, which in turn affects the odor perception of natural gas when it is used.

在进行挥发性的检测时,首先通过采样设备从天然气管道中提取一定量的天然气样品。采样设备需要确保样品的代表性,并防止样品在采集过程中发生变化。When testing volatility, a certain amount of natural gas sample is first extracted from the natural gas pipeline through a sampling device. The sampling device needs to ensure the representativeness of the sample and prevent the sample from changing during the collection process.

然后利用如下分析设备检测挥发性有机化合物:The volatile organic compounds were then tested using the following analytical equipment:

气相色谱仪(GC):气相色谱仪是一种检测挥发性有机化合物的设备。气体样品被注入气相色谱仪,通过载气(如氦气或氮气)的推动,样品中的各组分在色谱柱中分离。不同组分根据其化学性质在色谱柱中移动的速度不同,最终在检测器处被检测到。检测器将这些信号转化为色谱图,显示各组分的相对浓度和挥发性。Gas Chromatograph (GC): A gas chromatograph is a device that detects volatile organic compounds. A gas sample is injected into the gas chromatograph and the components in the sample are separated in the chromatographic column by the carrier gas (such as helium or nitrogen). Different components move at different speeds in the chromatographic column according to their chemical properties and are eventually detected at the detector. The detector converts these signals into a chromatogram, which shows the relative concentration and volatility of each component.

质谱仪(MS):气相色谱仪与质谱仪(GC-MS)联用可以进一步提高检测精度。样品在气相色谱柱中分离后进入质谱仪,质谱仪通过电离和检测分子碎片的质量-电荷比来识别各组分的化学结构和浓度。这种方法能够提供非常精确的挥发性有机化合物的定性和定量信息。Mass spectrometer (MS): The combination of gas chromatograph and mass spectrometer (GC-MS) can further improve the detection accuracy. After the sample is separated in the gas chromatography column, it enters the mass spectrometer, which identifies the chemical structure and concentration of each component by ionizing and detecting the mass-charge ratio of molecular fragments. This method can provide very accurate qualitative and quantitative information of volatile organic compounds.

傅里叶变换红外光谱仪(FTIR):FTIR可以通过检测挥发性有机化合物在红外光谱区的吸收特性来分析其组成和浓度。气体样品被引入FTIR中,红外光通过样品时,各种成分会吸收特定波长的红外光,从而产生特征吸收谱图。通过分析这些谱图,可以确定挥发性有机化合物的种类和含量。Fourier Transform Infrared Spectrometer (FTIR): FTIR can analyze the composition and concentration of volatile organic compounds by detecting their absorption characteristics in the infrared spectral region. The gas sample is introduced into the FTIR, and when infrared light passes through the sample, various components absorb infrared light of specific wavelengths, thereby producing characteristic absorption spectra. By analyzing these spectra, the type and content of volatile organic compounds can be determined.

电子鼻:电子鼻是一种模拟人类嗅觉的传感器系统,由多个化学传感器组成,每个传感器对不同的挥发性有机化合物敏感。样品气体通过传感器阵列时,各传感器产生的响应信号经过数据处理和模式识别,得到样品中挥发性成分的特征指纹图谱。这种方法可以快速检测并区分不同的挥发性有机化合物。Electronic nose: The electronic nose is a sensor system that simulates the human sense of smell. It consists of multiple chemical sensors, each of which is sensitive to different volatile organic compounds. When the sample gas passes through the sensor array, the response signal generated by each sensor is processed and pattern recognized to obtain the characteristic fingerprint of the volatile components in the sample. This method can quickly detect and distinguish different volatile organic compounds.

挥发性的检测对于确保天然气加臭剂在整个管道系统中的均匀分布至关重要。高挥发性的加臭剂能够迅速扩散,确保即使在低浓度下也能被嗅觉感知,从而提高天然气的安全性。此外,检测加臭剂的挥发性特性还可以帮助优化加臭剂的配方和使用策略,提高其使用效果和经济性。Volatility testing is essential to ensure uniform distribution of natural gas odorants throughout the pipeline system. Highly volatile odorants diffuse quickly, ensuring that they can be sensed by smell even at low concentrations, thereby improving the safety of natural gas. In addition, testing the volatility characteristics of odorants can also help optimize the formulation and use strategy of odorants, improving their effectiveness and economy.

具体地,气味强度指的是物质在气相中被嗅觉感知到的程度。气味强度与挥发性有关,但不仅仅取决于物质的挥发性,还与其化学性质和人类嗅觉系统的敏感性有关。气味强度检测设备如下:气味传感器(电子鼻),其由多个化学传感器组成,每个传感器对不同的气味成分敏感,模拟人类嗅觉系统。挥发性关注的是物质进入气态的能力和速度,主要影响物质在气相中的分布。气味强度关注的是物质在气相中对嗅觉的影响,主要影响人类感知到的气味的强弱。挥发性的检测主要依赖气相色谱、质谱、红外光谱等设备,这些设备分析物质的化学成分和浓度。气味强度的检测更多依赖气味传感器(电子鼻),专注于物质对嗅觉的影响。Specifically, odor intensity refers to the degree to which a substance is perceived by the sense of smell in the gas phase. Odor intensity is related to volatility, but it depends not only on the volatility of the substance, but also on its chemical properties and the sensitivity of the human olfactory system. The equipment for detecting odor intensity is as follows: Odor sensor (electronic nose), which consists of multiple chemical sensors, each of which is sensitive to different odor components, simulating the human olfactory system. Volatility focuses on the ability and speed of a substance to enter the gaseous state, which mainly affects the distribution of the substance in the gas phase. Odor intensity focuses on the effect of a substance on the sense of smell in the gas phase, which mainly affects the strength of the odor perceived by humans. The detection of volatility mainly relies on equipment such as gas chromatography, mass spectrometry, and infrared spectroscopy, which analyze the chemical composition and concentration of substances. The detection of odor intensity relies more on odor sensors (electronic noses), which focus on the effect of substances on the sense of smell.

具体地,吸附特性指的是加臭剂在天然气管道或容器内壁上的吸附行为。这种行为描述了加臭剂分子如何在接触固体表面(例如管道壁、储存罐内壁等)时,被表面物质捕获和停留的过程。吸附特性对加臭剂的有效性和浓度控制具有重要影响。过多的吸附会导致加臭剂在输送过程中被固体表面捕获,减少其在天然气中的有效浓度,从而影响加臭剂的功能。同时,了解吸附特性有助于选择适合的管道材料和涂层,以减少加臭剂的损耗。表面吸附分析仪通过测量加臭剂分子在固体表面上的吸附量和吸附速率来评估其吸附特性。Specifically, adsorption characteristics refer to the adsorption behavior of odorants on the inner wall of natural gas pipelines or containers. This behavior describes how odorant molecules are captured and retained by surface materials when they contact solid surfaces (such as pipeline walls, storage tank inner walls, etc.). Adsorption characteristics have an important impact on the effectiveness and concentration control of odorants. Excessive adsorption will cause the odorant to be captured by the solid surface during transportation, reducing its effective concentration in natural gas, thereby affecting the function of the odorant. At the same time, understanding the adsorption characteristics helps to select suitable pipeline materials and coatings to reduce the loss of odorants. The surface adsorption analyzer evaluates its adsorption characteristics by measuring the adsorption amount and adsorption rate of odorant molecules on the solid surface.

加臭剂特性传感器的工作过程包括如下步骤:The working process of the odorant characteristic sensor includes the following steps:

S41、密度检测:天然气流经密度传感器,传感器测量气体的质量和体积,计算其密度,并将密度数据传输至控制器。S41, Density detection: Natural gas flows through the density sensor, which measures the mass and volume of the gas, calculates its density, and transmits the density data to the controller.

S42、气味强度检测:天然气流经气味强度传感器,传感器通过检测气体分子与传感器表面发生的化学反应,产生与气味强度成正比的电信号,并将气味强度数据传输至控制器。S42. Odor intensity detection: Natural gas flows through the odor intensity sensor. The sensor detects the chemical reaction between gas molecules and the sensor surface, generates an electrical signal proportional to the odor intensity, and transmits the odor intensity data to the controller.

S43、挥发性检测:天然气流经挥发性传感器,传感器通过测量气体分子的蒸气压来评估其挥发性,并将挥发性数据传输至控制器。S43, Volatility detection: Natural gas flows through the volatility sensor, which evaluates its volatility by measuring the vapor pressure of gas molecules and transmits the volatility data to the controller.

S44、表面吸附检测:天然气流经表面吸附分析仪,传感器通过测量气体分子在不同材料表面的吸附量来评估其吸附特性,并将吸附数据传输至控制器。S44, Surface adsorption detection: Natural gas flows through the surface adsorption analyzer. The sensor evaluates its adsorption characteristics by measuring the amount of gas molecules adsorbed on the surfaces of different materials and transmits the adsorption data to the controller.

S45、电导率检测:天然气流经电导率传感器,传感器测量气体的电导率,评估其离子浓度和化学性质,并将电导率数据传输至控制器。S45, Conductivity detection: Natural gas flows through the conductivity sensor, which measures the conductivity of the gas, evaluates its ion concentration and chemical properties, and transmits the conductivity data to the controller.

假设在某天然气管道系统中,以下是各个传感器的检测数据:密度传感器检测到当前天然气中的加臭剂密度为0.8 g/cm³。气味强度传感器检测到当前加臭剂的气味强度为50 ppm。挥发性传感器检测到当前加臭剂的蒸气压为20 kPa。表面吸附分析仪检测到当前加臭剂在金属表面的吸附量为0.5 mg/m²。电导率传感器检测到当前加臭剂的电导率为0.1 S/m。控制器接收并处理上述数据,结合其他传感器的数据,计算出最优的加臭剂注入策略。Assume that in a natural gas pipeline system, the following are the detection data of various sensors: The density sensor detects that the current odorant density in the natural gas is 0.8 g/cm³. The odor intensity sensor detects that the current odorant odor intensity is 50 ppm. The volatility sensor detects that the current vapor pressure of the odorant is 20 kPa. The surface adsorption analyzer detects that the current adsorption amount of the odorant on the metal surface is 0.5 mg/m². The conductivity sensor detects that the current conductivity of the odorant is 0.1 S/m. The controller receives and processes the above data, and combines the data from other sensors to calculate the optimal odorant injection strategy.

在智能自适应天然气加臭剂浓度控制系统中,加入加臭剂特性传感器并实时检测加臭剂的多种特性参数(密度、气味强度、挥发性、表面吸附、电导率)能够显著提高系统的精确性和智能化水平。In the intelligent adaptive natural gas odorant concentration control system, adding odorant characteristic sensors and real-time detection of various characteristic parameters of the odorant (density, odor intensity, volatility, surface adsorption, conductivity) can significantly improve the accuracy and intelligence of the system.

通过实时检测加臭剂的密度、气味强度、挥发性、表面吸附和电导率等特性参数,系统能够全面了解加臭剂的物理和化学特性,从而制定更加精确的注入策略。例如,密度检测可以帮助确定加臭剂的质量和体积关系,确保注入量的准确性;气味强度检测可以确保加臭剂的气味效果达到预期;挥发性检测可以评估加臭剂在天然气中的扩散能力,确保其均匀分布;表面吸附检测可以评估加臭剂在管道内壁的吸附情况,避免加臭剂的损失;电导率检测可以评估加臭剂的离子浓度和化学性质,确保其化学稳定性。By real-time detection of odorant density, odor intensity, volatility, surface adsorption and conductivity and other characteristic parameters, the system can fully understand the physical and chemical properties of the odorant, so as to formulate a more accurate injection strategy. For example, density detection can help determine the mass and volume relationship of the odorant to ensure the accuracy of the injection amount; odor intensity detection can ensure that the odor effect of the odorant meets the expectations; volatility detection can evaluate the diffusion capacity of the odorant in natural gas to ensure its uniform distribution; surface adsorption detection can evaluate the adsorption of the odorant on the inner wall of the pipeline to avoid the loss of the odorant; conductivity detection can evaluate the ion concentration and chemical properties of the odorant to ensure its chemical stability.

通过实时监测加臭剂的多种特性参数,系统能够根据实时数据动态调整注入策略,确保加臭剂在不同环境条件下的最佳效果。例如,在高温高湿环境下,挥发性较高的加臭剂需要增加注入频率和注入量;在低温低湿环境下,密度较大的加臭剂需要延长注入时长和增加注入速率;在管道内壁吸附较严重的情况下,需要调整注入量分布,确保加臭剂在管道中的均匀分布。By real-time monitoring of various characteristic parameters of the odorant, the system can dynamically adjust the injection strategy according to real-time data to ensure the best effect of the odorant under different environmental conditions. For example, in a high temperature and high humidity environment, the odorant with higher volatility needs to increase the injection frequency and injection amount; in a low temperature and low humidity environment, the odorant with higher density needs to extend the injection time and increase the injection rate; in the case of severe adsorption on the inner wall of the pipeline, the injection amount distribution needs to be adjusted to ensure the uniform distribution of the odorant in the pipeline.

通过综合分析加臭剂的多种特性参数,系统能够自适应地调整注入策略,适应不同的运行条件和环境变化,提高系统的自适应能力。例如,系统可以根据实时数据和历史数据,预测加臭剂的消耗速率和剩余量,提前调整注入策略,避免加臭剂不足或过量;系统可以根据加臭剂的特性参数,优化注入策略,确保加臭剂在不同管道长度和流动特性下的均匀分布。By comprehensively analyzing the various characteristic parameters of the odorant, the system can adaptively adjust the injection strategy to adapt to different operating conditions and environmental changes, and improve the system's adaptive ability. For example, the system can predict the consumption rate and remaining amount of the odorant based on real-time data and historical data, and adjust the injection strategy in advance to avoid insufficient or excessive odorant; the system can optimize the injection strategy based on the characteristic parameters of the odorant to ensure the uniform distribution of the odorant under different pipe lengths and flow characteristics.

通过精确控制加臭剂的注入量和分布,系统能够确保天然气的气味效果和安全性,提高用户的使用体验。例如,均匀分布的加臭剂能够确保天然气在泄漏时能够被及时检测到,提高天然气的安全性;精确控制的加臭剂注入量能够确保天然气在使用时具有一致的气味感知,提高用户的使用效果。By precisely controlling the injection amount and distribution of the odorant, the system can ensure the odor effect and safety of natural gas and improve the user experience. For example, evenly distributed odorants can ensure that natural gas leaks can be detected in time, improving the safety of natural gas; precisely controlled odorant injection amount can ensure that natural gas has a consistent odor perception when used, improving the user's experience.

通过精确控制加臭剂的注入量和分布,系统能够减少加臭剂的浪费,提高资源利用效率,降低运行成本。例如,通过实时监测和动态调整注入策略,系统能够避免过量或不足的加臭剂注入,减少加臭剂的浪费;通过优化注入策略,系统能够提高加臭剂的使用效率,降低运行成本。By precisely controlling the injection volume and distribution of odorants, the system can reduce odorant waste, improve resource utilization efficiency, and reduce operating costs. For example, by real-time monitoring and dynamically adjusting the injection strategy, the system can avoid excessive or insufficient odorant injection and reduce odorant waste; by optimizing the injection strategy, the system can improve the efficiency of odorant use and reduce operating costs.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

实施例四Embodiment 4

如图4所示,本实施例提供了一种用于智能自适应天然气加臭剂浓度控制系统的预测警报模块。该预测警报模块用于根据实时气体流量检测数据和实时加臭剂浓度检测数据,计算天然气管道中加臭剂的消耗速率,并根据计算出的加臭剂消耗速率,预测加臭剂储罐的剩余量。当所述剩余量低于预设阈值时,触发加臭剂补充警报。As shown in FIG4 , this embodiment provides a prediction alarm module for an intelligent adaptive natural gas odorant concentration control system. The prediction alarm module is used to calculate the consumption rate of the odorant in the natural gas pipeline according to the real-time gas flow detection data and the real-time odorant concentration detection data, and predict the remaining amount of the odorant storage tank according to the calculated odorant consumption rate. When the remaining amount is lower than a preset threshold, an odorant replenishment alarm is triggered.

预测警报模块安装在控制器中,通过电缆或无线通信方式与气体流量传感器和加臭剂浓度监测装置电连接。预测警报模块接收并处理来自气体流量传感器和加臭剂浓度监测装置的实时数据。The prediction alarm module is installed in the controller and is electrically connected to the gas flow sensor and the odorant concentration monitoring device through a cable or wireless communication. The prediction alarm module receives and processes real-time data from the gas flow sensor and the odorant concentration monitoring device.

预测警报模块的工作过程包括如下步骤:The working process of the prediction alarm module includes the following steps:

S51、数据采集:预测警报模块实时接收气体流量传感器检测到的气体流量数据和加臭剂浓度监测装置检测到的加臭剂浓度数据。S51, data collection: the prediction alarm module receives in real time the gas flow data detected by the gas flow sensor and the odorant concentration data detected by the odorant concentration monitoring device.

S52、消耗速率计算:预测警报模块根据实时气体流量检测数据和实时加臭剂浓度检测数据,计算天然气管道中加臭剂的消耗速率。消耗速率的计算公式如下:S52, consumption rate calculation: The prediction alarm module calculates the consumption rate of the odorant in the natural gas pipeline based on the real-time gas flow detection data and the real-time odorant concentration detection data. The calculation formula of the consumption rate is as follows:

消耗速率=气体流量×加臭剂浓度。Consumption rate = gas flow rate × odorant concentration.

S53、剩余量预测:预测警报模块采用先进的预测算法,例如时间序列分析(ARIMA(Autoregressive Integrated Moving Average,自回归积分滑动平均)模型)、机器学习算法(如随机森林、支持向量机)或深度学习算法(例如LSTM)来预测加臭剂储罐的剩余量。预测算法不仅考虑当前的消耗速率,还结合历史数据和环境参数进行综合分析。S53, Remaining quantity prediction: The prediction alarm module uses advanced prediction algorithms, such as time series analysis (ARIMA (Autoregressive Integrated Moving Average) model), machine learning algorithms (such as random forest, support vector machine) or deep learning algorithms (such as LSTM) to predict the remaining quantity of the odorant tank. The prediction algorithm not only considers the current consumption rate, but also combines historical data and environmental parameters for comprehensive analysis.

在预测警报模块的工作过程中,预测算法不仅考虑当前的消耗速率,还结合历史数据和环境参数进行综合分析,以提高预测的准确性和可靠性。具体地,当前的消耗速率通过实时气体流量检测数据和加臭剂浓度检测数据计算得出。预测算法例如时间序列分析(ARIMA模型)、机器学习算法(例如随机森林、支持向量机)或深度学习算法(例如LSTM)会将当前的消耗速率作为输入变量之一。同时,预测算法还会利用历史数据,包括过去的气体流量、加臭剂浓度、环境温度、环境湿度、大气压力等参数,来捕捉数据中的时间依赖性和趋势。此外,环境参数如温度、湿度和压力等也会作为输入变量,帮助算法更好地理解和预测加臭剂的消耗模式。通过综合分析当前的消耗速率、历史数据和环境参数,预测算法能够更准确地预测加臭剂储罐的剩余量,及时触发警报,确保系统的正常运行和加臭剂的及时补充。During the operation of the prediction alarm module, the prediction algorithm not only considers the current consumption rate, but also conducts a comprehensive analysis in combination with historical data and environmental parameters to improve the accuracy and reliability of the prediction. Specifically, the current consumption rate is calculated using real-time gas flow detection data and odorant concentration detection data. Prediction algorithms such as time series analysis (ARIMA model), machine learning algorithms (such as random forests, support vector machines), or deep learning algorithms (such as LSTM) will use the current consumption rate as one of the input variables. At the same time, the prediction algorithm will also use historical data, including past gas flow, odorant concentration, ambient temperature, ambient humidity, atmospheric pressure and other parameters, to capture the time dependency and trend in the data. In addition, environmental parameters such as temperature, humidity and pressure will also be used as input variables to help the algorithm better understand and predict the consumption pattern of the odorant. By comprehensively analyzing the current consumption rate, historical data and environmental parameters, the prediction algorithm can more accurately predict the remaining amount of the odorant tank, trigger the alarm in time, and ensure the normal operation of the system and the timely replenishment of the odorant.

S54、警报触发:当预测的加臭剂储罐剩余量低于预设阈值时,预测警报模块触发加臭剂补充警报,通知操作人员进行加臭剂补充。S54, alarm triggering: when the predicted remaining amount of the odorant storage tank is lower than a preset threshold, the prediction alarm module triggers an odorant replenishment alarm to notify the operator to replenish the odorant.

假设在某天然气管道系统中,气体流量传感器检测到当前天然气流量为500立方米/小时,加臭剂浓度监测装置检测到当前加臭剂浓度为10 ppm。加臭剂储罐的初始储量为1000升,预设阈值为100升。Assume that in a natural gas pipeline system, the gas flow sensor detects that the current natural gas flow is 500 cubic meters per hour, and the odorant concentration monitoring device detects that the current odorant concentration is 10 ppm. The initial storage capacity of the odorant storage tank is 1000 liters, and the preset threshold is 100 liters.

在数据采集步骤,预测警报模块实时接收气体流量数据(500立方米/小时)和加臭剂浓度数据(10 ppm)。In the data collection step, the predictive alarm module receives gas flow data (500 m3/h) and odorant concentration data (10 ppm) in real time.

在消耗速率计算步骤,预测警报模块计算加臭剂的消耗速率:In the consumption rate calculation step, the prediction alarm module calculates the consumption rate of the odorant:

消耗速率=500立方米/小时×10ppm=5升/小时。Consumption rate = 500 cubic meters/hour × 10ppm = 5 liters/hour.

在剩余量预测步骤,预测警报模块采用LSTM模型进行剩余量预测。LSTM模型通过学习历史数据和当前数据,预测未来的加臭剂消耗情况。假设经过100小时的运行时间,LSTM模型预测未来80小时的消耗速率如下:In the remaining quantity prediction step, the prediction alarm module uses the LSTM model to predict the remaining quantity. The LSTM model predicts the future odorant consumption by learning historical data and current data. Assuming that after 100 hours of operation, the LSTM model predicts the consumption rate for the next 80 hours as follows:

未来消耗速率=[5.1,5.2,5.0,4.9,5.3,…]升/小时。Future consumption rate = [5.1, 5.2, 5.0, 4.9, 5.3, …] L/h.

根据预测的消耗速率,计算未来80小时的总消耗量:Based on the predicted consumption rate, calculate the total consumption for the next 80 hours:

.

假设总消耗量为400升,则剩余量预测如下:Assuming the total consumption is 400 liters, the remaining volume is forecasted as follows:

剩余量=1000升−400升=600升。Remaining volume = 1000 liters − 400 liters = 600 liters.

在警报触发步骤,当预测的加臭剂储罐剩余量低于预设阈值(100升)时,预测警报模块触发加臭剂补充警报。假设经过180小时的运行时间,LSTM模型预测未来20小时的总消耗量为100升,则剩余量计算如下:In the alarm triggering step, when the predicted remaining amount of the odorant tank is lower than the preset threshold (100 liters), the prediction alarm module triggers the odorant replenishment alarm. Assuming that after 180 hours of operation, the LSTM model predicts that the total consumption in the next 20 hours will be 100 liters, the remaining amount is calculated as follows:

剩余量=600升−100升=500升。Remaining volume = 600 liters − 100 liters = 500 liters.

此时,预测警报模块触发加臭剂补充警报,通知操作人员进行加臭剂补充。At this time, the prediction alarm module triggers the odorant replenishment alarm to notify the operator to replenish the odorant.

预测警报模块通过先进的预测算法,结合实时监测和历史数据,准确预测加臭剂储罐的剩余量,并在需要时及时触发警报,确保系统的正常运行和加臭剂的及时补充。The prediction alarm module uses advanced prediction algorithms, combined with real-time monitoring and historical data, to accurately predict the remaining amount of the odorant tank and trigger an alarm when necessary to ensure the normal operation of the system and timely replenishment of the odorant.

实施例五Embodiment 5

如图5所示,本实施例提供了一种智能自适应天然气加臭剂浓度控制方法,包括以下步骤:As shown in FIG5 , this embodiment provides an intelligent adaptive natural gas odorant concentration control method, comprising the following steps:

S1:获取天然气管道中的实时气体流量检测数据。S1: Obtain real-time gas flow detection data in the natural gas pipeline.

通过安装在天然气管道上的气体流量传感器,实时获取天然气管道中的气体流量检测数据。例如,气体流量传感器检测到当前天然气流量为500立方米/小时。The gas flow sensor installed on the natural gas pipeline can obtain the gas flow detection data in the natural gas pipeline in real time. For example, the gas flow sensor detects that the current natural gas flow is 500 cubic meters per hour.

S2:获取天然气中的实时加臭剂浓度检测数据。S2: Obtain real-time odorant concentration detection data in natural gas.

通过安装在天然气管道上的加臭剂浓度监测装置,实时获取天然气中的加臭剂浓度检测数据。例如,加臭剂浓度监测装置检测到当前加臭剂浓度为10 ppm。The odorant concentration monitoring device installed on the natural gas pipeline can obtain the odorant concentration detection data in real time. For example, the odorant concentration monitoring device detects that the current odorant concentration is 10 ppm.

S3:获取包括环境温度、环境湿度和大气压力在内的实时环境参数。S3: Acquire real-time environmental parameters including ambient temperature, ambient humidity and atmospheric pressure.

通过安装在天然气管道周围的环境参数传感器,实时获取环境温度、环境湿度和大气压力等环境参数。例如,环境参数传感器检测到环境温度为25摄氏度、环境湿度为60%、大气压力为1013 hPa。Environmental parameters such as ambient temperature, ambient humidity and atmospheric pressure are obtained in real time through environmental parameter sensors installed around natural gas pipelines. For example, the environmental parameter sensor detects that the ambient temperature is 25 degrees Celsius, the ambient humidity is 60%, and the atmospheric pressure is 1013 hPa.

S4:获取天然气中的实时加臭剂特性参数。S4: Obtain real-time odorant characteristic parameters in natural gas.

通过加臭剂特性传感器,实时检测天然气中的加臭剂特性参数。例如,加臭剂特性传感器检测到加臭剂的密度为0.8 g/cm³、气味强度为50 ppm、挥发性特性为20 kPa、在金属表面的吸附量为0.5 mg/m²、电导率为0.1 S/m。The odorant characteristic sensor detects the odorant characteristic parameters in natural gas in real time. For example, the odorant characteristic sensor detects that the density of the odorant is 0.8 g/cm³, the odor intensity is 50 ppm, the volatility is 20 kPa, the adsorption amount on the metal surface is 0.5 mg/m², and the conductivity is 0.1 S/m.

S5:接收并处理包括所述实时气体流量检测数据、实时加臭剂浓度检测数据、实时环境参数和实时加臭剂特性参数在内的实时数据。S5: receiving and processing real-time data including the real-time gas flow detection data, real-time odorant concentration detection data, real-time environmental parameters and real-time odorant characteristic parameters.

控制器的数据处理模块接收并处理上述实时数据,进行数据清洗和预处理,确保数据的准确性和一致性。The data processing module of the controller receives and processes the above real-time data, performs data cleaning and preprocessing to ensure the accuracy and consistency of the data.

S6:基于深度学习的神经网络模型,结合所述实时数据,输出最优的加臭剂注入策略。S6: Based on the deep learning neural network model, combined with the real-time data, output the optimal odorant injection strategy.

加臭剂注入策略确定模块基于深度学习的神经网络模型,结合实时数据,计算出最优的加臭剂注入策略。神经网络模型通过多层感知器(MLP)、卷积神经网络(CNN)或长短期记忆网络(LSTM)等结构,提取和处理输入数据的特征,输出最优的加臭剂注入策略。The odorant injection strategy determination module is based on a deep learning neural network model and combines real-time data to calculate the optimal odorant injection strategy. The neural network model extracts and processes the features of the input data through structures such as multi-layer perceptron (MLP), convolutional neural network (CNN) or long short-term memory network (LSTM) to output the optimal odorant injection strategy.

S7:根据所述最优的加臭剂注入策略,控制加臭剂注入泵的多个参数,所述多个参数包括注入速率、注入时长、注入频率和注入量分布,将加臭剂注入天然气管道中。S7: According to the optimal odorant injection strategy, multiple parameters of the odorant injection pump are controlled, wherein the multiple parameters include injection rate, injection duration, injection frequency and injection amount distribution, and the odorant is injected into the natural gas pipeline.

控制模块根据计算出的最优加臭剂注入策略,控制加臭剂注入泵的多个参数,包括注入速率、注入时长、注入频率和注入量分布。例如,控制模块控制加臭剂注入泵的注入速率为0.5升/小时、注入时长为10分钟、注入频率为每小时注入一次、注入量分布为均匀分布。The control module controls multiple parameters of the odorant injection pump according to the calculated optimal odorant injection strategy, including injection rate, injection duration, injection frequency and injection amount distribution. For example, the control module controls the injection rate of the odorant injection pump to be 0.5 liters/hour, the injection duration to be 10 minutes, the injection frequency to be once per hour, and the injection amount distribution to be uniform.

本实施例展示了智能自适应天然气加臭剂浓度控制方法的工作原理,各个传感器协同工作,实时检测气体状态下加臭剂的多种特性参数,并将数据传输至控制器,控制器基于深度学习的神经网络模型计算出最优的加臭剂注入策略,从而实现智能化和自适应的加臭剂注入控制。This embodiment demonstrates the working principle of the intelligent adaptive natural gas odorant concentration control method. Various sensors work together to detect various characteristic parameters of the odorant under the gas state in real time, and transmit the data to the controller. The controller calculates the optimal odorant injection strategy based on the deep learning neural network model, thereby realizing intelligent and adaptive odorant injection control.

实施例六Embodiment 6

本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如上述任意一种智能自适应天然气加臭剂浓度控制系统的控制方法。An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the control method of any one of the above-mentioned intelligent adaptive natural gas odorant concentration control systems is implemented.

所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。当然,还有其他方式的可读存储介质,例如量子存储器、石墨烯存储器等等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. Of course, there are other forms of readable storage media, such as quantum memory, graphene memory, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media does not include electrical carrier signals and telecommunication signals.

本发明还提供了一种电子设备。本发明实施例的电子设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明所提供的智能自适应天然气加臭剂浓度控制系统的控制方法。The present invention also provides an electronic device. The electronic device of the embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the control method of the intelligent adaptive natural gas odorant concentration control system provided by the present invention.

下面参考图6,其示出了适于用来实现本发明实施例的电子设备的计算机系统600的结构示意图。图6示出的电子设备仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。6, which shows a schematic diagram of the structure of a computer system 600 suitable for implementing an electronic device of an embodiment of the present invention. The electronic device shown in FIG6 is only an example and should not limit the functions and scope of use of the embodiment of the present invention.

如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM603中,还存储有计算机系统600操作所需的各种程序和数据。CPU601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG6 , the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to the bus 604.

以下部件连接至I/O接口605:包括键盘、鼠标等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便从其上读出的计算机程序根据需要被安装入存储部分608。The following components are connected to the I/O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I/O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.

特别地,根据本发明公开的实施例,上文的主要步骤图描述的过程可以被实现为计算机软件程序。例如,本发明实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行主要步骤图所示的方法的程序代码。在上述实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元601执行时,执行本发明的系统中限定的上述功能。In particular, according to the embodiments disclosed in the present invention, the process described in the main step diagram above can be implemented as a computer software program. For example, the embodiments of the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the main step diagram. In the above embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and/or installed from the removable medium 611. When the computer program is executed by the central processing unit 601, the above functions defined in the system of the present invention are executed.

需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。在本发明中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这根据所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

描述于本发明实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be arranged in a processor, and the names of these units do not limit the units themselves in some cases.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims (6)

1. An intelligent adaptive natural gas odorizing agent concentration control system, comprising: a gas flow sensor, an odorizing agent injection pump, an odorizing agent concentration monitoring device, an environmental parameter sensor, an odorizing agent characteristic sensor and a controller;
the gas flow sensor is used for acquiring real-time gas flow detection data in the natural gas pipeline;
The odorizing agent concentration monitoring device is used for acquiring real-time odorizing agent concentration detection data in the natural gas;
The environment parameter sensor is arranged around the natural gas pipeline and is electrically connected with the controller and used for acquiring real-time environment parameters including environment temperature, environment humidity and atmospheric pressure;
the odorizing agent characteristic sensor is used for detecting real-time odorizing agent characteristic parameters in the natural gas in real time;
the odorizing agent injection pump is connected with the odorizing agent storage tank and is used for injecting the odorizing agent in the odorizing agent storage tank into the natural gas pipeline under the control of the controller;
the controller includes:
The data processing module is used for receiving and processing real-time data comprising the real-time gas flow detection data, the real-time odorizing agent concentration detection data, the real-time environment parameters and the real-time odorizing agent characteristic parameters;
The odorizing agent injection strategy determining module is used for outputting an optimal odorizing agent injection strategy based on the deep learning neural network model by combining the real-time data;
the control module is used for controlling a plurality of parameters of the odorizing agent injection pump according to the optimal odorizing agent injection strategy, wherein the parameters comprise injection rate, injection duration, injection frequency and injection quantity distribution;
the odorizing agent concentration monitoring device includes:
The odorizing agent analysis module is used for detecting the concentrations of different types of odorizing agents in the natural gas respectively and obtaining real-time odorizing agent concentration detection data;
The temperature compensation module is used for carrying out temperature compensation on the real-time odorizing agent concentration detection data according to the environmental temperature data obtained in real time to obtain odorizing agent concentration detection data after temperature compensation;
the environment humidity compensation module is used for performing humidity compensation on the temperature-compensated odorizing agent concentration detection data according to the environment humidity data acquired in real time to obtain the humidity-compensated odorizing agent concentration detection data;
the atmospheric pressure compensation module is used for performing pressure compensation on the humidity-compensated odorizing agent concentration detection data according to the atmospheric pressure data acquired in real time to obtain the pressure-compensated odorizing agent concentration detection data;
the odorizing agent characteristic sensor includes:
A density sensor for detecting the density of the odorizing agent;
An odor intensity sensor for detecting the intensity of odor emitted by the odorizing agent;
A volatility sensor for detecting the volatility characteristics of the odorizing agent in the natural gas;
the surface adsorption analyzer is used for measuring the adsorption characteristics of the odorizing agent on the surfaces of different materials;
a conductivity sensor for detecting the conductivity of the odorizing agent;
The neural network model based on deep learning comprises:
the input layer is used for receiving standardized historical data, including gas flow detection data, odorizing agent concentration detection data, environmental parameters and odorizing agent characteristic parameters;
A plurality of hidden layers, each hidden layer comprising a plurality of neurons, the neurons adopting a linear rectification function as an activation function for extracting and processing characteristics of input history data;
The output layer is used for outputting an optimal odorizing agent injection strategy according to the characteristics of the historical data, and the output of the output layer comprises injection rate, injection duration, injection frequency and injection quantity distribution;
When the hidden layers use a multi-layer perceptron structure, each hidden layer comprises a plurality of neurons which are fully connected, each neuron receives the output of all neurons of the previous layer and carries out nonlinear transformation through an activation function;
when the hidden layers use a convolutional neural network structure, each hidden layer comprises a plurality of convolutional kernels, each convolutional kernel slides on input data, local connection and weight sharing are carried out, and local features are extracted;
When the hidden layers use the LSTM structure of the long-short-period memory network, each hidden layer comprises a plurality of LSTM units, each LSTM unit controls the information to flow through an input gate, a forget gate and an output gate, and long-short-period dependency relations in sequence data are captured.
2. The intelligent adaptive natural gas odorizing agent concentration control system of claim 1, characterized in that,
The temperature compensation module adopts the following temperature compensation algorithm:
Ctemp_comp=craw+ ktemp × (T-Tref); wherein ctemp_comp is odorizing agent concentration detection data after temperature compensation, craw is real-time odorizing agent concentration detection data of preliminary detection, ktemp is temperature compensation coefficient, T is environmental temperature data acquired in real time at present, tref is reference environmental temperature data;
The environmental humidity compensation module adopts the following temperature compensation algorithm:
Chum_comp=ctemp_comp+k hum1×H+khum2×H2; wherein Chum_comp is the odorant concentration detection data after humidity compensation, ctemp_comp is the odorant concentration detection data after temperature compensation, k hum1 and k hum2 are humidity compensation coefficients, and H is the environmental humidity data acquired in real time currently;
the atmospheric pressure compensation module adopts the following pressure compensation algorithm:
Cpress _comp=chum_comp+ kpress × (P-Pref); wherein Cpress _comp is the odorant concentration detection data after pressure compensation, chum_comp is the odorant concentration detection data after humidity compensation, kpress is the pressure compensation coefficient, P is the current atmospheric pressure data acquired in real time, and Pref is the reference atmospheric pressure data.
3. The intelligent adaptive natural gas odorizing agent concentration control system of claim 1, characterized in that,
The density sensor is arranged on the natural gas pipeline and is electrically connected with the controller through a cable or a wireless communication mode, and detected density data are transmitted to the controller;
The odor intensity sensor is arranged on the natural gas pipeline and is electrically connected with the controller through a cable or a wireless communication mode, and detected odor intensity data are transmitted to the controller;
The volatile sensor is arranged on the natural gas pipeline and is electrically connected with the controller through a cable or a wireless communication mode, and detected volatile data are transmitted to the controller;
The surface adsorption analyzer is arranged on a natural gas pipeline and is electrically connected with the controller through a cable or a wireless communication mode, and detected adsorption data are transmitted to the controller;
the conductivity sensor is arranged on the natural gas pipeline and is electrically connected with the controller through a cable or a wireless communication mode, and detected conductivity data are transmitted to the controller.
4. The intelligent adaptive natural gas odorizing agent concentration control system of claim 1, characterized in that,
The volatile sensor comprises a gas chromatograph, a mass spectrometer or a Fourier transform infrared spectrometer and is used for detecting volatile organic compounds of the odorizing agent;
The odor intensity sensor comprises an electronic nose composed of a plurality of chemical sensors, each chemical sensor being sensitive to a different odor component;
The surface adsorption analyzer evaluates adsorption characteristics of odorizing agent molecules by measuring adsorption amounts and adsorption rates thereof on a solid surface.
5. The intelligent adaptive natural gas odorizing agent concentration control system of claim 1, wherein said controller further comprises: and the prediction alarm module is used for calculating the consumption rate of the odorizing agent in the natural gas pipeline according to the real-time gas flow detection data and the real-time odorizing agent concentration detection data, predicting the residual quantity of the odorizing agent storage tank according to the calculated consumption rate of the odorizing agent, and triggering an odorizing agent supplementing alarm when the residual quantity is lower than a preset threshold value.
6. A control method of an intelligent adaptive natural gas odorizing agent concentration control system of any one of claims 1-5, characterized in that the control method comprises:
s1: acquiring real-time gas flow detection data in a natural gas pipeline;
s2: acquiring real-time odorizing agent concentration detection data in the natural gas;
S3: acquiring real-time environmental parameters including ambient temperature, ambient humidity and atmospheric pressure;
s4: acquiring and detecting real-time odorizing agent characteristic parameters in the natural gas;
s5: receiving and processing real-time data including the real-time gas flow detection data, the real-time odorizing agent concentration detection data, the real-time environmental parameters and the real-time odorizing agent characteristic parameters;
s6: based on the neural network model of deep learning, combining the real-time data, and outputting an optimal odorizing agent injection strategy;
S7: and controlling a plurality of parameters of the odorizing agent injection pump according to the optimal odorizing agent injection strategy, wherein the parameters comprise injection rate, injection duration, injection frequency and injection quantity distribution, and injecting the odorizing agent into the natural gas pipeline.
CN202410666434.9A 2024-05-28 2024-05-28 An intelligent adaptive natural gas odorant concentration control system and control method Active CN118242564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410666434.9A CN118242564B (en) 2024-05-28 2024-05-28 An intelligent adaptive natural gas odorant concentration control system and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410666434.9A CN118242564B (en) 2024-05-28 2024-05-28 An intelligent adaptive natural gas odorant concentration control system and control method

Publications (2)

Publication Number Publication Date
CN118242564A CN118242564A (en) 2024-06-25
CN118242564B true CN118242564B (en) 2024-07-16

Family

ID=91562735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410666434.9A Active CN118242564B (en) 2024-05-28 2024-05-28 An intelligent adaptive natural gas odorant concentration control system and control method

Country Status (1)

Country Link
CN (1) CN118242564B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119534573B (en) * 2025-01-22 2025-04-11 普利莱(天津)燃气设备有限公司 An intelligent detection device for natural gas odorant concentration suitable for remote monitoring

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101663380A (en) * 2007-04-19 2010-03-03 丰田自动车株式会社 Odorant adding device and fuel gas supply system
CN109519709A (en) * 2018-11-30 2019-03-26 湖北三江航天江北机械工程有限公司 LNG additive concentration control system and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4859729B2 (en) * 2007-03-30 2012-01-25 三井造船株式会社 Odoring device
CN114963000A (en) * 2022-05-19 2022-08-30 四川兆雪科技有限公司 Intelligent natural gas odorization control system and control method
CN115789526B (en) * 2022-12-29 2025-10-31 新奥新智科技有限公司 Method and device for controlling gas odorization, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101663380A (en) * 2007-04-19 2010-03-03 丰田自动车株式会社 Odorant adding device and fuel gas supply system
CN109519709A (en) * 2018-11-30 2019-03-26 湖北三江航天江北机械工程有限公司 LNG additive concentration control system and method

Also Published As

Publication number Publication date
CN118242564A (en) 2024-06-25

Similar Documents

Publication Publication Date Title
Liu et al. Effects of gas–wall interactions on measurements of semivolatile compounds and small polar molecules
KR101727889B1 (en) Monitoring, detecting and quantifying chemical compounds in a gas sample stream
Alizadeh et al. Electronic nose based on the polymer coated SAW sensors array for the warfare agent simulants classification
Loza et al. Characterization of vapor wall loss in laboratory chambers
He et al. Characterisation of gaseous iodine species detection using the multi-scheme chemical ionisation inlet 2 with bromide and nitrate chemical ionisation methods
US20050252275A1 (en) Odor measuring apparatus
CN118242564B (en) An intelligent adaptive natural gas odorant concentration control system and control method
CN118275371B (en) Full spectrum water index detection method based on neural network model
CN107949775A (en) The frequency registration bias of quantitative spectra determining and correcting
Kupiainen-Maatta et al. CIMS sulfuric acid detection efficiency enhanced by amines due to higher dipole moments: a computational study
Liu et al. An experimental assessment of the importance of S (IV) oxidation by hypohalous acids in the marine atmosphere
Chim et al. Effects of relative humidity and particle phase water on the heterogeneous OH oxidation of 2-methylglutaric acid aqueous droplets
CN106650926A (en) Robust boosting extreme learning machine integrated modeling method
Voliotis et al. The influence of the addition of isoprene on the volatility of particles formed from the photo-oxidation of anthropogenic–biogenic mixtures
CN117929677B (en) Multifunctional natural gas odorizing agent concentration analyzer and analysis method
Chen et al. Effects of nitrate radical levels and pre-existing particles on secondary brown carbon formation from nighttime oxidation of furan
Qu et al. Multi-scenario adaptive electronic nose for the detection of environmental odor pollutants
Rivera Martinez et al. Reconstruction of high-frequency methane atmospheric concentration peaks from measurements using metal oxide low-cost sensors
Xiao et al. Intelligent tetrahydrothiophene gas detection based on electrochemical sensor array
CN117529668A (en) System and method for providing training data to enable a neural network to analyze signals in NMR measurements
CN117929591B (en) Natural gas odorizing agent proportioning detection device and detection method
CN204594869U (en) A kind of self calibration analyzer
Zhou et al. Phosphate-functionalized MOS gas sensor for parts per billion-level acetone detection: A CBAM-GSABP neural network approach overcoming humidity interference
Moshayedi et al. Transient Modeling for Faster Gas Sensor Response: an Efficient Mathematical Approach for MOX Sensors in Ethanol Detection
Tan et al. Estimation of Flat‐topped Gaussian distribution with application in system identification

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20240625

Assignee: Binzhou Lebo Robot Technology Co.,Ltd.

Assignor: BINZHOU POLYTECHNIC

Contract record no.: X2024980028152

Denomination of invention: An intelligent adaptive natural gas odorant concentration control system and control method

Granted publication date: 20240716

License type: Common License

Record date: 20241126