Infrared CO gas sensor capable of adaptively and intelligently compensating ambient air pressure and use method of infrared CO gas sensor
The infrared CO gas sensor with adaptive intelligent compensation of ambient air pressure, combined with the WOA-WNN algorithm and 5G technology, solves the problem of inaccurate data of traditional CO sensors in complex industrial environments and achieves highly accurate and reliable CO monitoring. Improved industrial production safety.
Patent Information
- Application Number
- CN202410624158.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-27
AI Technical Summary
Traditional CO sensors have problems with insufficient detection sensitivity, response speed, and accuracy in complex industrial environments, resulting in inaccurate real-time monitoring data, affecting the accuracy of early warnings, and making it difficult to adapt to the needs of different production environments.
An infrared CO gas sensor with adaptive intelligent compensation of ambient air pressure is designed. It adopts modular design and WOA-WNN algorithm model to automatically adjust the measurement error. It combines 5G technology to achieve fast wireless data transmission and integrates CPU core processor and industrial data. Collection card to improve data processing and early warning efficiency.
Significantly improves the accuracy and reliability of measurements, reduces the impact of environmental factors on measurement results, enhances industrial production safety, achieves high scalability and real-time data processing, and reduces the need for frequent calibrations.
Smart Images

Figure CN118549376A
Abstract
Description
Technical Field
[0001] The invention relates to the field of sensor monitoring, and in particular to an infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure and a use method thereof. Background Art
[0002] CO (carbon monoxide) is a common toxic gas that is also a common hazard in various industrial production fields, especially in the working environment of mines, where it poses a major health and safety risk. In industrial environments, the sources of CO include but are not limited to combustion processes, chemical production, metal processing, and organic synthesis. Its accumulation in the air may cause poisoning accidents to workers, affecting production safety and employee health.
[0003] In complex and ever-changing industrial environments, traditional CO sensors have obvious limitations in terms of detection sensitivity, response speed, and accuracy. These limitations lead to inaccurate real-time monitoring data and make it impossible to effectively conduct in-depth mining and analysis of complex data, which in turn affects the accuracy of early warnings and increases the false alarm rate. In addition, based on the diversity and complexity of industrial production environments, in order to achieve flexible and reliable monitoring and early warning according to different production environments and requirements, there is an urgent need for a CO sensor with higher environmental adaptability and intelligence. Summary of the invention
[0004] In view of the problems existing in the above-mentioned prior art, the present invention discloses an infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure and a method of use, which can automatically adjust and compensate for the measurement error caused by the change of ambient air pressure to ensure the accuracy of the data. Through modular design, it is easy to integrate into various industrial detection systems, which improves the versatility and practicality of the sensor. In addition, by using modern communication technology, fast wireless transmission of data is realized, the efficiency of data processing and early warning is improved, and strong technical support is provided for industrial production safety. The present invention is of great significance for improving the accuracy and reliability of CO monitoring in the industrial field.
[0005] The invention discloses an infrared CO gas sensor with adaptive intelligent compensation of ambient air pressure, comprising: a gas detection module, a core control module, a signal receiving and releasing module, a host computer display and alarm module, a GFC modulation wheel, and a power supply for power supply;
[0006] The gas detection module comprises: a long optical path gas pool, an infrared light source, an infrared detector, and a micro gas pump, wherein the long optical path gas pool is provided with an air inlet and an air outlet, the micro gas pump is connected to the air inlet so that the gas to be measured enters the long optical path gas pool, the infrared light source is used to continuously irradiate the long optical path gas pool, and the infrared detector is correspondingly arranged with the long optical path gas pool to generate a concentration signal;
[0007] The GFC modulation wheel acts on the gas detection module, so that the infrared light emitted by the infrared light source alternately enters the long optical path gas pool through the GFC modulation wheel;
[0008] The signal receiving and releasing module is used to convert the concentration signal transmitted by the gas detection module into an electrical signal and transmit it to the core control module; it is also used to send the concentration data to the underground base station for wireless uploading;
[0009] The core control module is used to store the received concentration signal as raw data, and to obtain concentration data by compensating the raw data through the embedded WOA-WNN algorithm model to eliminate the accuracy error caused by the external air pressure;
[0010] The upper computer display alarm module comprises: an audible and visual alarm, an LED display screen, a power switch, and a zero mark button which are electrically connected to the core control module.
[0011] Furthermore, the core control module includes: a system board as a component carrier, a CPU core processor, a memory, and an industrial data acquisition card, wherein the industrial data acquisition card is used to send the converted concentration signal to the memory and save it as raw data, and the CPU core processor is used to call the raw data saved in the memory and perform compensation processing based on the WOA-WNN algorithm model to obtain concentration data.
[0012] Furthermore, the signal receiving and releasing module includes: a signal board as a component carrier, a signal input port, a signal output port, and a 4-20mA signal conversion board, wherein the signal input port is an input port of the optical signal generated by the gas detection module, the 4-20mA signal conversion board is used to convert the concentration signal from an optical signal to an electrical signal, and the signal output port is used to transmit the concentration signal converted into an electrical signal to the industrial data acquisition board in the core control module;
[0013] The signal receiving and transmitting module also includes: a 5G signal receiving and transmitting antenna electrically connected to the core control module, which is used to send concentration data to the underground base station for wireless uploading.
[0014] Furthermore, it also includes:
[0015] Stainless steel shell to protect the whole equipment;
[0016] A power supply wire is electrically connected to the power supply wire to realize power supply.
[0017] The present invention also discloses a method for using an infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure. The method is implemented based on the infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure described above. The method specifically includes:
[0018] S1: When the sensor is placed at the desired position, turn on the power switch and use the zeroing button to perform the zeroing operation in the initial state;
[0019] S2: After completing the zeroing operation, the sampling time of the sensor is aligned, and then the gas to be tested is sucked into the long optical path gas pool through the micro gas pump in the gas detection module. After the gas in the long optical path gas pool is irradiated by the infrared light source, the specific wavelength light of CO gas reaches the infrared detector, thereby outputting a voltage waveform with a concentration signal, providing collection, calculation and calibration. After obtaining the concentration signal, the gas to be tested is discharged from the long optical path gas pool through the outlet, completing the collection of the optical signal;
[0020] S3: The signal receiving and releasing module converts the concentration signal from an optical signal into an electrical signal, and outputs it to the core control module to be stored as raw data;
[0021] S4: The core control module calls the stored raw data for real-time sample training and sample verification, and divides the concentration data compensated by the WOA-WNN algorithm model into the first channel data, the second channel data and the third channel data. The first channel data is compared with the limit concentration stored in the memory. When the limit concentration is exceeded, the sound and light alarm alarms, the second channel data is displayed on the LED screen, and the third channel data is wirelessly uploaded to the cloud through the 5G signal transceiver antenna in the signal receiving and releasing system.
[0022] Furthermore, the step S1 further includes:
[0023] S101: Before zero point calibration, high concentration N2 is introduced to flush the sensor;
[0024] To perform zero point calibration, introduce zero gas for at least 5 minutes, observe the gas concentration output by the sensor, and after the data is stable, send the "user curve zero point calibration" command of the current calibration gas to complete the zero point calibration;
[0025] S102: Before calibrating the range point, high concentration N2 is introduced to flush the sensor;
[0026] To calibrate the range point, introduce the gas that needs to be calibrated into the sensor for more than 5 minutes at a concentration of 80% of the full scale. After observing the gas concentration output by the sensor and the data is stable, send the "user curve range point calibration" command of the current calibration gas to complete the calibration of the 80% point of the full scale.
[0027] The step S3 includes: the optical signal is input from the signal input port to the 4-20mA signal conversion board, the optical signal is converted into an electrical signal and output through the signal output port, and the output electrical signal is sent to the memory in the core control module through the circuit wire for storage.
[0028] Furthermore, the step S4 comprises:
[0029] S401: Sample training requires substituting the original data obtained in step S3 into the WOA whale algorithm model for data processing, and performing calculations and optimization on the substituted original data through the WOA whale algorithm model to obtain the optimal weights of the WNN algorithm model suitable for the scenario environment;
[0030] S402: Introduce the optimal weight obtained in step S401 into the WNN algorithm model, and substitute the original data obtained in step S3 into the WNN algorithm model for calculation and processing. Set the maximum iteration condition to 1000 times. The number of hidden layers of the WNN algorithm model is determined by the following empirical formula:
[0031]
[0032] Among them, let the number of nodes in the input layer be m, the number of nodes in the output layer be k, then the number of nodes in the hidden layer is n, a is a constant between [1, 10];
[0033] The root mean square error is used as the evaluation index:
[0034]
[0035] Among them, n is the number of elements in the data set, y i is the sensor measured value, is the compensation value of the WOA-WNN algorithm model. The smaller the RMSE, the better the model effect.
[0036] S403: Set the end condition to reach the maximum number of iterations set in S402 or the output algorithm evaluation indicator RMSE<0.1, and determine whether the end condition is met. If so, end and obtain the result; if not, return to step S402.
[0037] The present invention has at least the following beneficial effects:
[0038] Environmental adaptability: The infrared CO sensor using the WOA-WNN algorithm model can intelligently adjust and compensate automatically according to the changes in ambient air pressure, significantly improving the accuracy and reliability of the measurement. This is particularly important for industrial sites with large pressure fluctuations, ensuring the high stability of data measurement and reducing the impact of environmental factors on the measurement results.
[0039] Modular design and high scalability: The modular design of the present invention enables sensor components such as light sources, detectors and core circuits to be easily integrated into various detection or control systems. This design not only improves the versatility and practicality of the equipment, but also greatly simplifies the maintenance and upgrade process, meeting the customization needs in different industrial environments.
[0040] Accurate long-term stability: By utilizing the infrared radiation protection block and dual detector design, the sensor of the present invention can highly accurately compensate the absorption signal of the gas to be measured, significantly reducing the influence of external environmental factors (such as temperature and humidity changes) on the single-channel measurement scheme, ensuring the long-term stability of the measurement results and reducing the need for frequent calibration.
[0041] Real-time data processing and early warning system: The integrated CPU core processor and industrial data acquisition card, combined with the WOA-WNN algorithm, can process and store a large amount of measurement data in real time. The fast wireless transmission of data through 5G technology has greatly improved the efficiency of data communication. Equipped with an LED display screen and an audible and visual alarm, it can issue an early warning in time when the CO concentration exceeds the preset limit, significantly improving the level of production safety.
[0042] Other beneficial effects of the present invention will be described in detail in the specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 It is a schematic diagram of a device module of an infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure disclosed in a preferred embodiment of the present invention.
[0045] Figure 2 It is a schematic diagram of the device housing structure of an infrared CO gas sensor with adaptive intelligent compensation of ambient air pressure disclosed in a preferred embodiment of the present invention.
[0046] Figure 3 It is a schematic diagram of the main device structure of an infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure disclosed in a preferred embodiment of the present invention.
[0047] Figure 4 It is a schematic diagram of the back side power connection of the infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure disclosed in the preferred embodiment of the present invention.
[0048] Figure 5 It is a schematic diagram of the oblique alarm display structure of an infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure disclosed in a preferred embodiment of the present invention.
[0049] Figure 6It is a user curve zero point calibration diagram disclosed in the preferred embodiment of the present invention.
[0050] Figure 7 It is a user curve range point calibration diagram disclosed in a preferred embodiment of the present invention.
[0051] Among them, 1-gas detection module, 101-infrared light source, 102-long optical path gas pool, 103-infrared detector, 104-air inlet, 105-air outlet, 106-micro gas pump, 2-core control module, 201-system board, 202-CPU core processor, 203-memory, 204-industrial data acquisition card, 3-signal receiving and releasing module, 301-5G signal receiving and transmitting antenna, 302-signal board, 303-signal input port, 304-signal output port, 305-4-20mA signal conversion board, 4-host computer display alarm module, 401-LED display screen, 402-sound and light alarm, 403-switch, 404-zero button, 405-power supply wire, 5-GFC modulation wheel, 6-power supply, 7-stainless steel shell. DETAILED DESCRIPTION
[0052] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0053] Embodiment 1
[0054] like Figures 1 to 5 As shown, this embodiment discloses an infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure, which mainly includes: a gas detection module 1, a core control module 2, a signal receiving and releasing module 3, a host computer display alarm module 4, a GFC modulation wheel 5, a power supply 6, and a stainless steel shell 7.
[0055] The gas detection module 1 includes: a light source, a long optical path gas pool 102, an infrared detector 103, an air inlet 104, an air outlet 105, and a micro gas pump 106. The light source is a stable infrared light source 101, which is used to continuously irradiate the air intake of the long optical path gas pool 102. The long optical path gas pool 102 is used as the location where the optical reaction occurs. The gas to be tested passes through the long optical path gas pool 102, so that the infrared light of the corresponding wavelength (characteristic absorption) of the substance to be tested is absorbed. The infrared detector 103 is based on the infrared principle and has two highly selective filters. It selects specific wavelengths of light to reach the infrared detector 103, thereby providing collection, calculation, calibration, and obtaining concentration signals. The air inlet 104 is the pipe opening for the gas to enter the long optical path gas pool 102. The air outlet 105 is the pipe opening for the gas to discharge from the long optical path gas pool 102. The micro gas pump 106 can suck the gas to be measured in the external environment into the long optical path gas cell 102 through the gas inlet 104 , and can discharge the gas to be measured through the gas outlet 105 .
[0056] GFC modulation wheel 5, infrared rays pass through the gas to be measured (such as CO) and N2 filter in the filter wheel driven by the modulation motor in turn, and then the infrared radiation passes through a narrow-band interference filter into the long optical path gas pool 102 and is absorbed by the sampled gas. The infrared radiation from the light exit chamber enters the infrared detector 103.
[0057] The core control module 2 includes: a system board 201, a CPU core processor 202, a memory 203, and an industrial data acquisition card 204. The system board 201 is a component carrier of each component in the core control module 2, and its main body is a kind of circuit board, and the circuit on it connects the CPU core processor 202, the memory 203, and the industrial data acquisition card 204 to work. The CPU core processor 202 is the core component of the sensor, and the WOA-WNN algorithm model embedded therein can perform algorithm compensation on the measurement data collected by the industrial data acquisition card 204 in the memory 203, eliminating the error of the sensor measurement accuracy caused by the external air pressure. The industrial data acquisition card 204 can convert the optical signal converted by the 4-20mA signal conversion board 305 into an electrical signal for collection and send it to the memory 203 through the circuit board and save it as raw data. The memory 203 can collect the data collected by the industrial data acquisition card 204 so that the CPU core processor 202 can call the data for algorithm compensation.
[0058] Preferably, the calculation process of the embedded WOA-WNN algorithm model is as follows: The WOA whale algorithm assumes that the current optimal weight is the prey. After determining the prey position, the remaining solutions will move towards the optimal solution and update the position. By generating a random number p between 0 and 1, it is determined whether the algorithm enters the bubble attack mechanism. If p>0.5, it enters the bubble attack mechanism. Otherwise, it will judge whether the system enters the search for the optimal solution or the surround optimal solution stage according to the absolute value of the coefficient vector A. If |A|<1, it enters the surround optimal solution stage; if |A|>=1, it enters the search for the optimal solution stage. As the number of iterations increases, |A| gradually decreases to 0.
[0059] The completion of the whale algorithm requires a two-step algorithm. The first step is to search for the optimal solution for encirclement, and the second step is to search for the optimal solution for spiral position update.
[0060] If |A|<1, then enter the stage of surrounding the optimal solution.
[0061] The expression realized by the A vector is:
[0062]
[0063]
[0064] is the coefficient vector, The coefficient vector in the iteration process, a is the coefficient in the iteration process (linearly decreases from 2 to 0 in the iteration process), is a random vector between 0 and 1, t is the number of calculation iterations, t Max is the maximum iteration coefficient.
[0065] If |A|>=1, the optimal solution search phase begins.
[0066]
[0067]
[0068] Where, X rand is a randomly selected solution, For the next algorithm solution, the optimal solution is the weight and threshold required by the WNN algorithm.
[0069] The spiral position is updated to search for the optimal solution. A spiral equation is established between the solution and the position of the optimal solution to find the optimal weight:
[0070]
[0071]
[0072] Where t is the number of iterations; is the coefficient vector; is the distance vector between the optimal solution and the current algorithm solution, is the position vector of the optimal solution; is the position vector of the remaining solutions; b is an attempt to define the shape of the logarithmic spiral, i is a random number between 0 and 1, and k is the correction coefficient, which is set to a random number between 1 and 2 in this system.
[0073] After the key parameters of the WNN algorithm are obtained by the WOA algorithm, the WNN algorithm program is operated. In this process, the wavelet neural network mainly has four parameters involved in the calculation. These four parameters are the smoothing factor b of the wavelet basis function j With the expansion factor a j And the two connection weights ω between the hidden layer and the output layer jt and ω t , the values of these four parameters will directly affect the performance of the network.
[0074] Assuming that the number of nodes in the input layer, hidden layer, and output layer are n, i, and m respectively, when the data is transferred from the output layer to the hidden layer, the calculation formula for the input data of the jth node in the hidden layer is as follows:
[0075]
[0076] Among them, x k is the kth sample data in the input data, w kj is the connection weight of the hidden layer nodes, n is the number of samples, j is the number of nodes, S j is the input data of the jth node.
[0077] The WNN algorithm uses Morlet wavelet as the base wave. The above calculation results are used to scale the wavelet basis at the hidden layer nodes. The specific transformation formula is as follows:
[0078]
[0079] h j =φ[(S j -b j ) / a j ]
[0080] Where φ(x) is the wavelet basis function, b j is the smoothing factor of the basis function, a i is the scaling factor of the basis function, a i and b j The value is between 1 and 2, such as 1.21, 1.211, 1.2111 and other consecutive numbers. j is the output data of the jth node in the hidden layer.
[0081] Finally, the output data of the jth node in the hidden layer enters the output layer and is output from the t nodes in the output layer after calculation. The calculation formula on this node is as follows:
[0082]
[0083] The signal receiving and releasing module 3 includes: a 5G signal transceiver antenna 301, a signal board 302, a signal input port 303, a signal output port 304, and a 4-20mA signal conversion board 305. The 5G signal transceiver antenna 301 can send the compensated data to the underground base station to realize wireless data upload. The signal board 302 is a component carrier of all signal receiving and releasing modules 3. Its main body is a kind of circuit board. The circuit on it connects the 5G signal transceiver antenna 301, the signal output port 304, the signal input port 303, and the 4-20mA signal conversion board 305 to work. The signal input port 303 is the original optical signal input port 303 measured by the gas detection module 1. The signal output port 304 can convert the optical signal passing through the 4-20mA signal conversion board 305 into an electrical signal and then transmit it to the industrial data acquisition board in the core control module 2. The output signal is RS-232 / RS-485 / 4-20mA. The 4-20mA signal conversion board 305 can convert the original optical signal measured by the gas detection module 1 and connected to the signal input port 303 into a processable electrical signal.
[0084] The upper computer display alarm system includes: an LED display screen 401, an audible and visual alarm 402, a switch 403, and a zeroing button 404. The LED display screen 401 can display the CO value obtained after algorithm compensation in real time, and the display accuracy is 0-1000ppm. The alarm mode of the audible and visual alarm 402 is a limit alarm, and the limit concentration is stored in the memory 203. When the compensated CO concentration output by the CPU core processor 202 exceeds the limit concentration set according to the demand in the memory 203, the audible and visual alarm 402 starts to flash and emits an alarm sound. The switch 403 controls the sensor power supply 6 to turn on and off. The zeroing button 404 is connected to the CPU core processor 202 through a wire to perform zeroing of the sensor at 0 point. Whether the zeroing is successful can be verified by the indication on the LED display screen 401. The sensor is calibrated at two points, namely, the zero point and the 80% point of the full scale. The zero point gas and the 80% point gas of the full scale are introduced respectively. After sending the corresponding calibration instructions, the sensor will automatically calculate the calibration value, and the optimal value is 0 and 800ppm.
[0085] The power source 6 may be a lithium battery. The sensor is equipped with a lithium battery to power various systems in the sensor.
[0086] In this embodiment, the sensor further includes: a power supply wire 405, which supplies power to each module through the wire; and a stainless steel housing 7, which is used to protect the entire device.
[0087] Embodiment 2
[0088] This embodiment discloses a method for using an infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure. The method is implemented based on the infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure described in Embodiment 1. The method specifically includes:
[0089] S1: When the sensor is placed at the desired designated position, turn on the power switch 403 of the power supply 6, and use the zeroing button 404 to perform the zeroing operation in the initial state.
[0090] Preferably, high concentration N2 is introduced to flush the sensor before zero point calibration. For zero point calibration, introduce zero gas for at least 5 minutes, observe the gas concentration output by the sensor, and after the data is stable, send the "user curve zero point calibration" command of the current calibration gas to complete the zero point calibration. For the user curve zero point calibration diagram, see Figure 6 .
[0091] Before performing the range point calibration, flush the sensor with high concentration N2. For range point calibration, pass the gas that needs to be calibrated into the sensor for more than 5 minutes with a concentration of 80% of the full range, observe the gas concentration output by the sensor, and after the data is stable, send the "user curve range point calibration" command of the current calibration gas to complete the full range 80% point calibration. For the user curve range point calibration diagram, see Figure 7 .
[0092] S2: After completing the zeroing operation, the sampling time of the sensor is aligned, and then the gas to be tested is sucked into the long optical path gas pool 102 through the micro gas pump 106 in the gas detection module 1. After the gas in the long optical path gas pool 102 is irradiated by the infrared light source 101, the specific wavelength light of CO gas reaches the infrared detector 103, thereby outputting a voltage waveform with a concentration signal, providing collection, calculation and calibration. After obtaining the concentration signal, the gas to be tested is discharged from the long optical path gas pool 102 through the outlet 105, completing the collection of the optical signal.
[0093] S3: The signal receiving and releasing module 3 converts the concentration signal from an optical signal into an electrical signal, and outputs it to the core control module 2 to be stored as raw data.
[0094] Preferably, the optical signal is input from the signal input port 303 to the 4-20mA signal conversion board 305, which converts the optical signal into an electrical signal and outputs it through the signal output port 304. The output electrical signal reaches the memory 203 in the core control module 2 through the circuit wire for storage.
[0095] S4: The core control module 2 calls the stored original data for real-time sample training and sample verification, and divides the concentration data after compensation by the WOA-WNN algorithm model into the first data channel, the second data channel and the third data channel, wherein the first data channel is compared with the limit concentration stored in the memory 203. When the limit concentration is exceeded, the sound and light alarm 402 alarms, the second data channel is displayed on the LED screen, and the third data channel is wirelessly uploaded to the cloud through the 5G signal transceiver antenna 301 in the signal receiving and receiving system.
[0096] Preferably, the step S4 comprises:
[0097] S401: Sample training requires substituting the original data obtained in step S3 into the WOA whale algorithm model for data processing, and performing calculations and optimization on the substituted original data through the WOA whale algorithm model to obtain the optimal weights of the WNN algorithm model suitable for the scenario environment.
[0098] S402: Introduce the optimal weight obtained in step S401 into the WNN algorithm model, and substitute the original data obtained in step S3 into the WNN algorithm model for calculation and processing. Set the maximum iteration condition to 1000 times. The number of hidden layers of the WNN algorithm model is determined by the following empirical formula:
[0099]
[0100] Among them, let the number of nodes in the input layer be m, the number of nodes in the output layer be k, then the number of nodes in the hidden layer is n, a is a constant between [1, 10];
[0101] The root mean square error is used as the evaluation index:
[0102]
[0103] Among them, n is the number of elements in the data set, y i is the sensor measured value, is the compensation value of the WOA-WNN algorithm model. The smaller the RMSE, the better the model effect.
[0104] S403: Set the algorithm termination condition to reach the maximum number of iterations set in S402 or the output algorithm evaluation indicator RMSE<0.1, and determine whether the termination condition is met. If so, end and obtain the result; if not, return to step S402.
[0105] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. An infrared CO gas sensor with adaptive intelligent compensation of ambient air pressure, characterized in that: include: Gas detection module, core control module, signal receiving and releasing module, host computer display alarm module, GFC modulation wheel, power supply for power supply; The gas detection module comprises: a long optical path gas pool, an infrared light source, an infrared detector, and a micro gas pump, wherein the long optical path gas pool is provided with an air inlet and an air outlet, the micro gas pump is connected to the air inlet so that the gas to be measured enters the long optical path gas pool, the infrared light source is used to continuously irradiate the long optical path gas pool, and the infrared detector is correspondingly arranged with the long optical path gas pool to generate a concentration signal; The GFC modulation wheel acts on the gas detection module, so that the infrared light emitted by the infrared light source alternately enters the long optical path gas pool through the GFC modulation wheel; The signal receiving and releasing module is used to convert the concentration signal transmitted by the gas detection module into an electrical signal and transmit it to the core control module; it is also used to send the concentration data to the underground base station for wireless uploading; The core control module is used to store the received concentration signal as raw data, and to obtain concentration data by compensating the raw data through the embedded WOA-WNN algorithm model to eliminate the accuracy error caused by the external air pressure; The upper computer display alarm module comprises: an audible and visual alarm, an LED display screen, a power switch, and a zero mark button which are electrically connected to the core control module.
2. The infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure according to claim 1 is characterized in that: The core control module includes: a system board as a component carrier, a CPU core processor, a memory, and an industrial data acquisition card, wherein the industrial data acquisition card is used to send the converted concentration signal to the memory and save it as raw data, and the CPU core processor is used to call the raw data saved in the memory and perform compensation processing based on the WOA-WNN algorithm model to obtain concentration data.
3. The infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure according to claim 2 is characterized in that: The signal receiving and releasing module includes: a signal board as a component carrier, a signal input port, a signal output port, and a 4-20mA signal conversion board, wherein the signal input port is an input port of an optical signal generated by a gas detection module, the 4-20mA signal conversion board is used to convert a concentration signal from an optical signal to an electrical signal, and the signal output port is used to transmit the concentration signal converted into an electrical signal to the industrial data acquisition board in the core control module; The signal receiving and transmitting module also includes: a 5G signal receiving and transmitting antenna electrically connected to the core control module, which is used to send concentration data to the underground base station for wireless uploading.
4. The infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure according to claim 1 is characterized in that: Also includes: Stainless steel shell to protect the whole equipment; A power supply wire is electrically connected to the power supply wire to realize power supply.
5. A method for using an infrared CO gas sensor with adaptive intelligent compensation of ambient air pressure, characterized in that: The method is implemented based on the infrared CO gas sensor with adaptive intelligent compensation of ambient air pressure as described in any one of claims 1 to 4, and the method specifically comprises: S1: When the sensor is placed at the desired position, turn on the power switch and use the zeroing button to perform the zeroing operation in the initial state; S2: After completing the zeroing operation, the sampling time of the sensor is aligned, and then the gas to be tested is sucked into the long optical path gas pool through the micro gas pump in the gas detection module. After the gas in the long optical path gas pool is irradiated by the infrared light source, the specific wavelength light of CO gas reaches the infrared detector, thereby outputting a voltage waveform with a concentration signal, providing collection, calculation and calibration. After obtaining the concentration signal, the gas to be tested is discharged from the long optical path gas pool through the outlet, completing the collection of the optical signal; S3: The signal receiving and releasing module converts the concentration signal from an optical signal into an electrical signal, and outputs it to the core control module to be stored as raw data; S4: The core control module calls the stored raw data for real-time sample training and sample verification, and divides the concentration data compensated by the WOA-WNN algorithm model into the first channel data, the second channel data and the third channel data. The first channel data is compared with the limit concentration stored in the memory. When the limit concentration is exceeded, the sound and light alarm alarms, the second channel data is displayed on the LED screen, and the third channel data is wirelessly uploaded to the cloud through the 5G signal transceiver antenna in the signal receiving and releasing system.
6. The method for using the infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure according to claim 5 is characterized in that: The step S1 further includes: S101: Before zero point calibration, high concentration N2 is introduced to flush the sensor; To perform zero point calibration, introduce zero gas for at least 5 minutes, observe the gas concentration output by the sensor, and after the data is stable, send the "user curve zero point calibration" command of the current calibration gas to complete the zero point calibration; S102: Before calibrating the range point, high concentration N2 is introduced to flush the sensor; To calibrate the range point, introduce the gas that needs to be calibrated into the sensor for more than 5 minutes at a concentration of 80% of the full scale. After observing the gas concentration output by the sensor and stabilizing the data, send the "user curve range point calibration" command of the current calibration gas to complete the calibration of the 80% point of the full scale.
7. The method for using the infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure according to claim 6 is characterized in that: The step S3 includes: the optical signal is input from the signal input port to the 4-20mA signal conversion board, the optical signal is converted into an electrical signal and output through the signal output port, and the output electrical signal is sent to the memory in the core control module through the circuit wire for storage.
8. The method for using the infrared CO gas sensor with adaptive intelligent compensation for ambient air pressure according to claim 7, characterized in that: The step S4 comprises: S401: Sample training requires substituting the original data obtained in step S3 into the WOA whale algorithm model for data processing, and performing calculations and optimization on the substituted original data through the WOA whale algorithm model to obtain the optimal weights of the WNN algorithm model suitable for the scenario environment; S402: Introduce the optimal weight obtained in step S401 into the WNN algorithm model, and substitute the original data obtained in step S3 into the WNN algorithm model for calculation and processing. Set the maximum iteration condition to 1000 times. The number of hidden layers of the WNN algorithm model is determined by the following empirical formula: Among them, let the number of nodes in the input layer be m, the number of nodes in the output layer be k, then the number of nodes in the hidden layer is n, a is a constant between [1, 10]; The root mean square error is used as the evaluation index: Among them, n is the number of elements in the data set, y i is the sensor measured value, is the compensation value of the WOA-WNN algorithm model. The smaller the RMSE, the better the model effect. S403: Set the end condition to reach the maximum number of iterations set in S402 or the output algorithm evaluation indicator RMSE<0.1, and determine whether the end condition is met. If so, end and obtain the result; if not, return to step S402.
Citation Information
Cited By
Gas sensor capable of switching types of detected gas and gas concentration detection method
CN119780021A
Gas sensor capable of switching the type of gas being measured and gas concentration detection method
CN119780021B
