Humidity detection method, device, computer equipment and storage medium

Through the combination of dual-wavelength infrared light detection and Kalman filtering algorithm, the accuracy and stability problems in humidity detection are solved, and high-precision and fast humidity measurement are achieved, which is suitable for a variety of scenarios.

CN120253740BActive Publication Date: 2025-08-29SHANDONG JIANZHU UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510756451.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-09
Publication Date
2025-08-29
Estimated Expiration
2045-06-09

AI Technical Summary

Technical Problem

The existing humidity detection technology has problems such as contact sensors being easily contaminated, short life and poor anti-interference of non-contact solutions, which is difficult to meet the needs of high precision and long-term stability.

Method used

The dual-wavelength infrared light detection technology is used to measure the difference in the light intensity signal between the optical path and the reference optical path, and combine the Kalman filtering algorithm to compensate and correct the humidity value to achieve high-precision calculation of the humidity value.

Benefits of technology

It improves the accuracy and stability of humidity detection, the measurement error is ≤±1.5%RH, and the response time is <0.5 seconds. It is suitable for industrial production, agricultural greenhouses and storage environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120253740B_ABST
    Figure CN120253740B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, computer equipment and storage medium for humidity detection, which belongs to the field of sensor humidity detection. The method comprises: using the light intensity signal of the absorption peak band of infrared light in the measuring optical path to detect humidity. I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref Calculate the humidity value H rew Based on the real-time collected temperature, air pressure and the optical path data of the infrared light of the measurement light path and the infrared light of the reference light path, the Kalman filter algorithm is used to calculate the humidity value. H rew Perform compensation correction to obtain the humidity value of the object being measured H corrected This humidity detection method uses non-contact detection, which has a simple structure, is easy to operate, and does not damage the object being measured. It has a fast detection speed and high accuracy, and can accurately reflect the humidity changes of the object being measured in real time, solving the problems of easy contamination and short life of traditional contact sensors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of humidity detection by sensors, and in particular relates to a humidity detection method, device, computer equipment and storage medium. Background Art

[0002] Humidity measurement has important applications in construction, industrial production, agricultural environmental monitoring, warehousing and logistics, and healthcare. However, the accuracy and real-time performance of traditional methods need to be improved. Traditional humidity measurement technologies are primarily categorized as contact and non-contact, but both have significant limitations.

[0003] Capacitive and resistive sensors in contact-based detection technologies measure humidity by detecting changes in the electrical properties of a moisture-sensitive material. However, these sensors require direct contact with the measured medium. Prolonged exposure to corrosive gases (such as ammonia and hydrogen sulfide) or high humidity can lead to electrode oxidation and contamination of the moisture-sensitive membrane, resulting in reduced measurement accuracy (typical error > ±5% RH) and a service life of less than two years. While electrolytic sensors offer fast response times, they carry the risk of electrolyte volatilization, require frequent calibration, and have high maintenance costs. Furthermore, they are not suitable for use in flammable or explosive environments.

[0004] The single-path infrared absorption method, a non-contact detection technology, uses the absorption characteristics of water molecules in specific infrared bands to infer humidity by measuring the attenuation of transmitted / reflected light intensity. However, existing solutions are significantly affected by light source fluctuations, ambient temperature drift, and background radiation. Especially in complex industrial scenarios, temperature changes cause detector dark current drift, which can lead to measurement errors of more than ±3%RH. The microwave resonance method is based on the influence of medium humidity on electromagnetic wave propagation, but the equipment is bulky and easily interfered with by metal objects, making it difficult to achieve local precision measurement. The ultrasonic detection method uses the correlation between sound velocity and humidity to make inferences, but it is seriously affected by air flow rate and dust particles, and its accuracy and stability are insufficient.

[0005] In summary, contact sensors, limited by their physical contact mechanism, suffer from inherent issues such as sensitivity to contamination and short lifespan. Traditional infrared non-contact solutions, due to their single optical path design, lack real-time compensation capabilities and exhibit poor anti-interference capabilities, making them difficult to meet high-precision requirements. Therefore, a humidity detection solution that combines the advantages of non-contact measurement with high environmental adaptability and excellent long-term stability is urgently needed. Summary of the Invention

[0006] In order to solve the background technical problems, the present invention provides a method, device, computer equipment and storage medium for humidity detection, specifically providing the following technical solutions:

[0007] Two paths of infrared light with set wavelengths are emitted, one path is directed towards the object to be measured, forming a measurement light path; the other path does not pass through the object to be measured, forming a reference light path.

[0008] Obtain the light intensity signal of the absorption peak band of infrared light in the measurement optical path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref ; The light intensity signal of the absorption peak band of infrared light through the measuring optical path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref , calculate the humidity value H rew .

[0009] Based on the real-time collected temperature, air pressure and the optical path data of the infrared light of the measurement optical path and the infrared light of the reference optical path, the Kalman filter algorithm is used to calculate the humidity value. H rew Perform compensation correction to obtain the humidity value of the object being measured H corrected .

[0010] Preferably, the light intensity signal of the absorption peak band of the infrared light passing through the measuring light path is I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref , calculate the humidity value H rew , H rew The expression is as follows:

[0011] ;

[0012] in, is the absorption coefficient of water molecules in the absorption peak band, is the absorption coefficient of water molecules in the absorption reference baseline band, which is calculated by the differential absorption ratio algorithm based on the difference in light intensity signals between the absorption peak band and the absorption reference baseline band. H rew .

[0013] Preferably, the wavelength corresponding to the absorption peak band is 1.94 μm, and the wavelength corresponding to the absorption reference baseline band is 2.3 μm.

[0014] Preferably, the humidity value of the object being measured isH corrected The calculation expression is as follows:

[0015] ;

[0016] in, e is a natural constant, T is the real-time temperature value, T 0 is the reference temperature value, P is the current air pressure value, P 0 is the reference pressure value, d To obtain the optical path data of the measurement optical path and the reference optical path, d 0 is the initial concentration parameter of humidity measurement, which is dynamically updated by Kalman filtering K 、 β .

[0017] Preferably, when emitting two paths of infrared light of set wavelengths, the infrared light first passes through an integrated ultrasonic piezoelectric vibrator that can periodically excite surface vibration waves.

[0018] Preferably, the light intensity signal of the absorption peak band of the infrared light in the measurement light path is obtained I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref When the infrared light is wasted, it collects the wasted infrared light energy and converts it into electrical energy for storage.

[0019] The present invention also provides a humidity detection device, comprising:

[0020] The infrared light emitting module is used to emit two paths of infrared light with set wavelengths, one path is directed towards the object to be measured, forming a measurement light path; the other path does not pass through the object to be measured, forming a reference light path.

[0021] Humidity preliminary calculation module, used to obtain the light intensity signal of the absorption peak band of infrared light in the measurement light path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref ; The light intensity signal of the absorption peak band of infrared light through the measuring optical path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref, calculate the humidity value H rew .

[0022] The humidity high-precision calculation module is used to calculate the humidity value based on the real-time collected temperature, air pressure and the optical path data of the infrared light of the measurement light path and the infrared light of the reference light path, using the Kalman filter algorithm. H rew Perform compensation correction to obtain the humidity value of the object being measured H corrected .

[0023] The present invention also provides a computer device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement any one of the steps in the humidity detection method.

[0024] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is loaded by a processor, it can execute any one of the steps in the humidity detection method.

[0025] The humidity detection method provided by the present invention has the following beneficial effects:

[0026] The present invention discloses a humidity detection method, which obtains the humidity value based on the absorbance difference between water molecules in the strong absorption peak band and the weak absorption reference baseline band. H rew The method has strong anti-interference ability and improves the humidity detection accuracy; based on the real-time collected temperature, pressure and optical path data, the Kalman filter algorithm is used to H rew Compensation correction, with real-time compensation capability, ultimately calculates the humidity value of the object being measured H corrected High accuracy. This method uses non-contact detection, which does not damage the object being measured. It has a fast detection speed and accurately reflects the humidity changes of the object being measured. The measurement error is ≤±1.5%RH and the response time is less than 0.5 seconds. In addition, this method has a simple structure, is easy to operate, and is easy to promote. It can be applied in industrial production, agricultural greenhouses, storage environments and other scenarios, solving the problems of traditional contact sensors that are easy to contaminate and have a short lifespan. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] To more clearly illustrate the embodiments of the present invention and its design, the following briefly introduces the drawings required for this embodiment. The drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be derived from these drawings without inventive effort.

[0028] Figure 1The present invention provides a flow chart of a humidity detection method. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the technical solution of the present invention and to be able to implement it, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments. The following embodiments are only used to more clearly illustrate the technical solution of the present invention and are not intended to limit the scope of protection of the present invention.

[0030] The present invention provides a method for detecting humidity, specifically Figure 1 Shown, including:

[0031] S1. Emits two paths of infrared light with set wavelengths, one path is directed toward the object to be measured, forming a measurement light path; the other path does not pass through the object to be measured, forming a reference light path.

[0032] The infrared light emitting module includes an infrared light emitter and a driver circuit, emitting infrared light of a specific wavelength with adjustable output power. The infrared light detection device is activated, and the temperature and pressure sensors are adjusted to correct for the effects of environmental parameters on the optical path in real time. The infrared light emitting module is then aligned with the object being measured, emitting infrared light. The 3D translation stage and angle adjuster are then adjusted to optimize the optical path alignment.

[0033] S2. Obtain the light intensity signal of the absorption peak band of the infrared light in the measurement light path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref ; The light intensity signal of the absorption peak band of infrared light through the measuring optical path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref , calculate the humidity value H rew .

[0034] The infrared light receiving module includes an infrared light receiver and a signal processing circuit. It is used to receive infrared light reflected or transmitted from the object under test and convert it into an electrical signal for processing. The infrared light receiving module receives infrared light reflected or transmitted from the object under test and converts it into an electrical signal for transmission to the data analysis module.

[0035] The infrared light emitted by the infrared light transmitting module is reflected or transmitted by the object being measured and then received by the infrared light receiving module. During this process, the infrared light receiving module's main function is to convert the optical signal into an electrical signal. Subsequent analysis and processing equipment, such as microprocessors, are more apt to process electrical signals. However, the raw light intensity signal cannot be directly read and analyzed by these devices. It must be converted into an electrical signal before subsequent quantification and calculation can be performed.

[0036] The traditional Beer-Lambert law is the basis for building humidity calculation models. Its core content is that absorbance is proportional to the concentration of the absorbing substance and the optical path. In the humidity detection technology of the present invention, humidity (water molecule concentration) is closely related to light intensity and optical path. The reference optical path is introduced. I ref and measurement optical path I meas Real-time comparison, significantly suppressing noise, improving stability, building a humidity calculation model based on the Beer-Lambert law, and calculating preliminary humidity values H , the humidity calculation model expression is:

[0037] ;

[0038] in, I ref 、 I meas are the light intensity signals of the reference optical path and the measurement optical path respectively, is the water molecule absorption coefficient, is the optical path difference, and is the calibration parameter.

[0039] The multi-band collaborative detection proposed in this invention uses dual-wavelength phase-locked amplification technology to simultaneously detect the absorbance difference of water molecules at 1.94μm (absorption peak band, i.e., strong absorption peak) and 2.3μm (absorption reference baseline band, i.e., weak absorption reference baseline). Combined with the differential absorption ratio algorithm, it eliminates non-target interference such as aerosols and dust. The differential absorption ratio algorithm formula is as follows:

[0040] ;

[0041] in, is the absorption coefficient of water molecules in the absorption peak band, is the absorption coefficient of water molecules in the absorption reference baseline band, which is calculated by the differential absorption ratio algorithm based on the difference in light intensity signals between the absorption peak band and the absorption reference baseline band. H rew .

[0042] S3, based on the real-time collected temperature, air pressure and the optical path data of the infrared light of the measurement light path and the infrared light of the reference light path, the Kalman filter algorithm is used to calculate the humidity value. H rew Perform compensation correction to obtain the humidity value of the object being measured H corrected .

[0043] When ambient temperature and pressure change, the optical path length changes. According to the Beer-Lambert law, light absorption also changes, affecting humidity measurements. Therefore, the temperature-pressure-optical path length-humidity four-dimensional compensation function references the Beer-Lambert law, accounting for the impact of optical path length variations on humidity measurements. By compensating for optical path length and related environmental factors, the humidity values ​​calculated based on this law are more accurate, ensuring accurate humidity measurements under diverse environmental conditions.

[0044] Integrated temperature sensor and air pressure sensor are used to correct the influence of environmental parameters on optical path in real time. Kalman filter is used to correct the influence of temperature, air pressure and optical path in real time, and a four-dimensional compensation model of temperature, air pressure, optical path and humidity is established to obtain the final humidity value. H corrected , the model expression is as follows:

[0045] ;

[0046] in, e is a natural constant, T is the real-time temperature value, T 0 is the reference temperature value, P is the current air pressure value, P 0 is the reference pressure value, d To obtain the optical path data of the measurement optical path and the reference optical path, d 0 is the initial concentration parameter of humidity measurement, which is dynamically updated by Kalman filtering K 、 β .

[0047] Based on the same inventive concept, the present invention also provides a humidity detection device, comprising:

[0048] The infrared light emitting module is used to emit two paths of infrared light with set wavelengths, one path is directed towards the object to be measured, forming a measurement light path; the other path does not pass through the object to be measured, forming a reference light path.

[0049] Humidity preliminary calculation module, used to obtain the light intensity signal of the absorption peak band of infrared light in the measurement light path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path Iref ; The light intensity signal of the absorption peak band of infrared light through the measuring optical path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref , calculate the humidity value H rew .

[0050] The humidity high-precision calculation module is used to calculate the humidity value based on the real-time collected temperature, air pressure and the optical path data of the infrared light of the measurement light path and the infrared light of the reference light path, using the Kalman filter algorithm. H rew Perform compensation correction to obtain the humidity value of the object being measured H corrected .

[0051] This invention integrates ultrasonic piezoelectric transducers (40kHz frequency) on the surfaces of infrared light emitting and receiving modules, periodically exciting surface vibration waves to prevent dust and water mist adhesion and ensure long-term stability. These integrated ultrasonic piezoelectric transducers, made of piezoelectric materials (such as quartz crystals or piezoelectric ceramics), generate high-frequency mechanical vibrations when excited by electrical signals. Integrated on the surfaces of the infrared light emitting and receiving modules, they are directly coupled to the infrared optical path. When a periodic electrical signal is applied to the transducers, the piezoelectric material generates surface vibration waves (ultrasonic waves) due to the inverse piezoelectric effect. These vibration waves mechanically dislodge particles such as dust, water mist, and pollutants adhering to the optical path surface through resonance, preventing them from blocking infrared light or contaminating optical components.

[0052] The sensor converts waste infrared light into electrical energy to power the sensor, achieving self-circulation. A mechanical adjustment mechanism, including a three-dimensional translation stage and angle adjuster, optimizes optical alignment. A duty-cycle-adjustable pulse drive circuit reduces the light source's duty cycle to 5% in standby mode, reducing overall power consumption from 3W to 0.5W. This allows for long-term, solar-powered field monitoring and displays humidity information on the object being measured.

[0053] The present invention also provides a computer device. At the hardware level, the computer device includes a processor, an internal bus, a network interface, memory, and non-volatile storage, and may also include other hardware required for operations. The processor reads a corresponding computer program from the non-volatile storage into the memory and then executes the program to implement the humidity detection method provided above.

[0054] The present invention also provides a computer-readable storage medium, which stores a computer program. The computer program can be used to execute the humidity detection method provided above.

[0055] For the specific definition of the humidity detection method, please refer to the definition of the humidity detection method above and will not be repeated here. The various modules in the above-mentioned humidity detection method can be implemented in whole or in part by software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of the above-mentioned modules.

[0056] Example 1

[0057] Preparation: Select appropriate infrared light transmitters and receivers to ensure stable performance and high accuracy.

[0058] Build the data analysis module and display module, which can be implemented using a microprocessor and display screen. Testing process: Mount the infrared light transmitter and receiver modules on a fixed bracket and align them with the object under test. Turn on the infrared light transmitter to emit infrared light of a specific wavelength toward the object under test. The infrared light receiver module receives the infrared light reflected or transmitted from the object under test and converts it into an electrical signal, which is then transmitted to the data analysis module.

[0059] The data analysis module analyzes and processes the electrical signal, calculates the humidity value of the object being measured, and transmits the result to the display module for display.

[0060] Example 2

[0061] Preparation: Design a portable infrared light detection device to facilitate detection in different locations.

[0062] Choose a high-performance battery as the power source to ensure the device's battery life. Testing process: Hold the infrared light detection device and aim it at the object being measured. Turn on the device, and the infrared light transmitting module will emit infrared light toward the object being measured. The infrared light receiving module receives the infrared light reflected or transmitted from the object being measured, converts it into an electrical signal, and transmits it to the data analysis module. The data analysis module analyzes and processes the electrical signal, calculates the humidity value of the object being measured, and displays the result on the device's display.

[0063] It should be noted that the specific embodiments described above can enable those skilled in the art to more fully understand the present invention, but do not limit the present invention in any way. Therefore, although this specification and examples have described the present invention in detail, those skilled in the art should understand that the present invention can still be modified or replaced with equivalents; and all technical solutions and improvements that do not depart from the spirit and scope of the present invention are included in the scope of protection of the patent for the present invention. Any reference signs in the claims should not be construed as limiting the claims involved.

Claims

1. A method for humidity detection, characterized in that: The method comprises: Two paths of infrared light with set wavelengths are emitted, one path is directed towards the object to be measured, forming a measurement light path; the other path does not pass through the object to be measured, forming a reference light path; Obtain the light intensity signal of the absorption peak band of infrared light in the measurement optical path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref ; The light intensity signal of the absorption peak band of infrared light through the measuring optical path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref , calculate the humidity value H rew ; Based on the real-time collected temperature, air pressure, and optical path data of the infrared light of the measurement light path and the infrared light of the reference light path, the Kalman filter algorithm is used to calculate the humidity value. H rew Perform compensation correction to obtain the humidity value of the object being measured H corrected ; Also included is the light intensity signal of the absorption peak band of the infrared light passing through the measuring light path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref , calculate the humidity value H rew , H rew The expression is as follows: ; in, is the absorption coefficient of water molecules in the absorption peak band, is the absorption coefficient of water molecules in the absorption reference baseline band, which is calculated by the differential absorption ratio algorithm based on the difference in light intensity signals between the absorption peak band and the absorption reference baseline band. H rew ; The humidity value of the object being measured H corrected The calculation expression is as follows: ; in, e is a natural constant, T is the real-time temperature value, T 0 is the reference temperature value, P is the current air pressure value, P 0 is the reference pressure value, d To obtain the optical path data of the measurement optical path and the reference optical path, d 0 is the initial concentration parameter of humidity measurement, which is dynamically updated by Kalman filtering K 、 β .

2. A humidity detection method according to claim 1, characterized in that: The wavelength corresponding to the absorption peak band is 1.94 μm, and the wavelength corresponding to the absorption reference baseline band is 2.3 μm.

3. A humidity detection method according to claim 1, characterized in that: When the two paths of infrared light with set wavelengths are emitted, the infrared light first passes through an integrated ultrasonic piezoelectric vibrator that can periodically excite surface vibration waves.

4. A humidity detection method according to claim 1, characterized in that: The light intensity signal of the absorption peak band of the infrared light in the measuring optical path is obtained I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref When the infrared light is wasted, it collects the wasted infrared light energy and converts it into electrical energy for storage.

5. A humidity detection device, characterized in that: include: The infrared light emitting module is used to emit two paths of infrared light of set wavelengths, one path is directed toward the object to be measured, forming a measurement light path; the other path does not pass through the object to be measured, forming a reference light path; Humidity preliminary calculation module, used to obtain the light intensity signal of the absorption peak band of infrared light in the measurement light path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref ; The light intensity signal of the absorption peak band of infrared light through the measuring optical path I 强 , measure the light intensity signal of the infrared absorption reference baseline band of the optical path I 弱 And the light intensity signal of infrared light in the reference light path I ref , calculate the humidity value H rew ; The humidity high-precision calculation module is used to calculate the humidity value based on the real-time collected temperature, air pressure and the optical path data of the infrared light of the measurement light path and the infrared light of the reference light path, using the Kalman filter algorithm. H rew Perform compensation correction to obtain the humidity value of the object being measured H corrected .

6. A computer device comprising a memory, a processor, and a computer program stored in the memory, wherein: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method steps according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Infrared beam sensor

    JP1992184226A