Humidity detection method, device, equipment, storage medium and program product

Through near-infrared spectroscopy, the propagation and reception of near-infrared light are used to measure humidity, which solves the accuracy problem of traditional humidity sensors under the influence of environmental factors, and achieves high-precision and reliable humidity detection.

CN119574499APending Publication Date: 2025-03-07INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411863679.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

Existing humidity sensors are susceptible to environmental factors in humidity detection, resulting in low detection accuracy and inability to meet high-precision requirements.

Method used

Using near-infrared spectroscopy technology, the near-infrared light of a preset wavelength is emitted through the near-infrared light source device, so that it passes through the air in the target detection space and then projectes to the near-infrared receiving device, and spectral parameters are obtained to determine the spatial humidity.

Benefits of technology

It realizes non-contact, high sensitivity, wide coverage and flexible humidity measurement, which improves the accuracy and reliability of humidity measurement and avoids the environmental sensitivity problems of traditional sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119574499A_ABST
    Figure CN119574499A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a humidity detection method and device, equipment, a storage medium and a program product, and relates to the field of financial science and technology or other related fields. The method comprises the following steps: controlling near-infrared light source equipment to emit near-infrared light with a preset wavelength, so that the near-infrared light is projected to corresponding near-infrared receiving equipment after passing through air in a target detection space; wherein the near-infrared receiving equipment is positioned on the opposite side of the near-infrared light source equipment; acquiring spectral parameters of the near-infrared light; wherein the spectral parameters comprise an initial parameter when the near-infrared light source equipment emits the near-infrared light and a detection parameter acquired by the near-infrared receiving equipment; and determining the space humidity of the target detection space according to the spectral parameters. According to the method provided by the invention, humidity measurement is carried out through propagation and reception of near-infrared light, non-contact, high-sensitivity, wide-coverage and flexible humidity measurement is realized, and the accuracy and reliability of humidity measurement are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial technology or other related fields, and in particular to a humidity detection method, device, equipment, storage medium and program product. Background Art

[0002] Computer room humidity monitoring is one of the most important tasks of data center equipment departments in the financial field and other related fields. Real-time, non-destructive and accurate humidity detection plays an important role in promoting the safe operation of data centers.

[0003] In the prior art, humidity detection is mainly performed by conventional humidity sensors such as capacitive humidity sensors, impedance humidity sensors, and mechanical humidity sensors. However, these conventional humidity sensors may be affected by environmental factors such as temperature changes, dust or chemical pollution, resulting in insufficient humidity accuracy.

[0004] Therefore, how to quickly and accurately detect the humidity in a space is still a problem that needs to be solved urgently. Summary of the invention

[0005] The present application provides a humidity detection method, device, equipment, storage medium and program product to solve technical problems such as how to quickly and accurately detect the humidity of a space.

[0006] In a first aspect, the present application provides a humidity detection method, the method comprising:

[0007] Controlling the near-infrared light source device to emit near-infrared light of a preset wavelength, so that the near-infrared light passes through the air in the target detection space and is projected to the corresponding near-infrared receiving device; wherein the near-infrared receiving device is located on the opposite side of the near-infrared light source device;

[0008] Acquire spectral parameters of the near-infrared light; wherein the spectral parameters include initial parameters when the near-infrared light source device emits the near-infrared light and detection parameters collected by the near-infrared receiving device;

[0009] The spatial humidity of the target detection space is determined according to the spectral parameters.

[0010] Optionally, the spectral parameters include initial light intensity and residual light intensity; wherein the initial light intensity is the light intensity before the near-infrared light is absorbed by water in the air in the target detection space after the near-infrared light source device emits the near-infrared light, and the residual light intensity is the light intensity after the near-infrared light is absorbed by water in the air in the target detection space;

[0011] Acquiring the spectral parameters of the near-infrared light includes:

[0012] The initial light intensity is acquired by the near-infrared light source device, and the remaining light intensity is acquired by the near-infrared receiving device.

[0013] Optionally, determining the spatial humidity of the target detection space according to the spectral parameter includes:

[0014] Determine the measured moisture content according to the spectral parameter and the preset functional relationship; wherein the measured moisture content is used to indicate the moisture content in the air in the target detection space;

[0015] The spatial humidity of the target detection space is determined according to the measured moisture content.

[0016] Optionally, the preset functional relationship is:

[0017]

[0018] Wherein, I is the residual light intensity; I 0 is the initial light intensity; is the absorption coefficient of water at frequency v; C is the measured water content; L is the optical path absorption length between the near-infrared light source device and the near-infrared receiving device.

[0019] Optionally, determining the spatial humidity of the target detection space according to the measured moisture content includes:

[0020] The measured moisture content is determined as the spatial humidity of the target detection space.

[0021] Optionally, a plurality of near-infrared light source devices and corresponding near-infrared receiving devices located at different positions are arranged in the target detection space, and the spatial humidity of the target detection space is determined according to the measured moisture content, including:

[0022] An average value of the measured moisture content corresponding to each near-infrared light source device is determined, and the average value is determined as the spatial humidity of the target detection space.

[0023] Optionally, the method further comprises:

[0024] If it is determined that the space humidity is not within the preset humidity range, an alarm message is output; wherein the alarm message is used to indicate that the space humidity of the target detection space is abnormal.

[0025] In a second aspect, the present application provides a humidity detection device, the device comprising:

[0026] A control unit, used for controlling the near-infrared light source device to emit near-infrared light of a preset wavelength, so that the near-infrared light passes through the air in the target detection space and is projected to the corresponding near-infrared receiving device; wherein the near-infrared receiving device is located on the opposite side of the near-infrared light source device;

[0027] An acquisition unit, used for acquiring spectral parameters of the near-infrared light; wherein the spectral parameters include initial basic parameters when the near-infrared light source device emits the near-infrared light and detection parameters collected by the near-infrared receiving device;

[0028] A processing unit is used to determine the spatial humidity of the target detection space according to the spectral parameters.

[0029] In a third aspect, the present application provides an electronic device, the electronic device comprising: a processor, and a memory communicatively connected to the processor;

[0030] The memory stores computer-executable instructions;

[0031] The processor executes the computer-executable instructions stored in the memory to implement the aforementioned method.

[0032] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to implement the method as described above when executed by a processor.

[0033] In a fifth aspect, the present application provides a computer program product, including a computer program, which is used to implement the method as described above when executed by a processor.

[0034] In the humidity detection method, device, equipment, storage medium and program product provided by the present application, the method includes: controlling a near-infrared light source device to emit near-infrared light of a preset wavelength so that the near-infrared light passes through the air in the target detection space and is projected to a corresponding near-infrared receiving device; wherein the near-infrared receiving device is located on the opposite side of the near-infrared light source device; obtaining spectral parameters of the near-infrared light; wherein the spectral parameters include initial parameters when the near-infrared light source device emits the near-infrared light and detection parameters collected by the near-infrared receiving device; according to the spectral parameters, determining the spatial humidity of the target detection space. The present application utilizes near-infrared spectroscopy technology to measure humidity through the propagation and reception of near-infrared light, thereby realizing non-contact, high-sensitivity, wide-coverage and flexible humidity measurement, which not only improves the accuracy and reliability of humidity measurement, but also avoids the environmental sensitivity problem of traditional sensors. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] Figure 1 A schematic diagram of a humidity detection method provided in an embodiment of the present application;

[0037] Figure 2 A schematic diagram of the relative positions of a near-infrared light source device and a near-infrared receiving device provided in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of a flow chart of another humidity detection method provided in an embodiment of the present application;

[0039] Figure 4 A schematic diagram of the structure of a humidity detection device provided in an embodiment of the present application;

[0040] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0041] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0042] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0043] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0044] In addition, this application involves conducting big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.), and using artificial intelligence technology to make automated decisions, and making technical solutions that have a significant impact on personal rights and interests based on the results of automated decisions. The application provides users with corresponding operation entrances for them to choose to agree or reject the results of automated decisions; if the user chooses to reject, the expert decision-making process will be entered.

[0045] It should be noted that the humidity detection method, device, equipment, storage medium and program product provided in the present application can be used in the field of financial technology, and can also be used in any field other than the field of financial technology. The application field of the humidity detection method, device, equipment, storage medium and program product in the present application is not limited.

[0046] The computer room is usually used to deploy the most critical and important server equipment of the data center equipment department, and is an important equipment location of the data center equipment department. A large number of electronic devices such as semiconductors, resistors, and capacitors are used in server equipment. When the server is powered on, too high or too low humidity will affect their normal operation. Too high humidity can easily cause the metal parts and connectors of the server to rust, and can also reduce the insulation of circuit boards, connectors, wiring, etc., and may even cause circuit short circuits in severe cases; too low humidity and too dry air can easily cause electrostatic effects, which can also threaten the safety of communication equipment. Therefore, computer room humidity monitoring has become one of the most important tasks of the data center equipment department.

[0047] At present, the common humidity detection method is mainly completed by traditional humidity sensors such as capacitive humidity sensors, impedance humidity sensors, mechanical humidity sensors, etc. However, these traditional humidity sensors may be affected by environmental factors such as temperature changes, dust or chemical pollution, resulting in insufficient humidity accuracy, which cannot meet the high-precision requirements of the computer room for humidity detection.

[0048] In order to solve the above problems, the embodiment of the present application provides a humidity detection method, which is based on near-infrared spectral analysis, emits near-infrared light through a near-infrared light source device, and uses the absorption characteristics of water to near-infrared light to determine the humidity of the space. Optical sensing technology has the characteristics of non-contact, high precision, and fast response speed. The humidity detection method based on near-infrared spectral analysis can realize real-time and accurate monitoring of the humidity of the target detection space, which can not only improve the accuracy and reliability of humidity measurement, but also avoid the environmental sensitivity problem of traditional sensors, and can meet the needs of modern industry and environmental monitoring.

[0049] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0050] Figure 1 A schematic flow chart of a humidity detection method provided in an embodiment of the present application. For example, the execution subject of the embodiment of the present application may be a humidity detection device, which may be located on a server or other electronic device, and the electronic device may be a mobile terminal such as a computer or other device with data processing capabilities, which is not limited in the embodiment of the present application. The embodiment of the present application is described in detail by taking the execution subject as a humidity detection device as an example.

[0051] like Figure 1 As shown, the humidity detection method provided in the embodiment of the present application may include:

[0052] S101, controlling a near-infrared light source device to emit near-infrared light of a preset wavelength, so that the near-infrared light passes through the air in a target detection space and is projected to a corresponding near-infrared receiving device; wherein the near-infrared receiving device is located on the opposite side of the near-infrared light source device.

[0053] It should be noted that near-infrared spectroscopy is a spectral analysis technique that belongs to the category of molecular vibration spectroscopy, which involves the anharmonic energy level vibration of chemical bonds in molecules. Anharmonic vibrations lead to the observation of overtones and combination frequencies in the near-infrared region. Overtones refer to integer multiples of the fundamental frequency (basic vibration frequency), while combination frequencies refer to the combination of frequencies of two or more different vibration modes. The absorption of molecules in the infrared spectral region is caused by changes in the state of molecular vibration or rotation, or transitions between different energy levels of molecular vibration or rotation states. Only bonds in infrared-active molecules can react with near-infrared photons to produce near-infrared spectral absorption. The near-infrared spectrum is particularly sensitive to groups containing hydrogen atoms. For example, substances containing CH, OH, and NH will produce near-infrared spectra.

[0054] In the embodiment of the present application, the moisture measurement based on the near-infrared spectrum is measured according to the near-infrared absorption spectrum of water. Its essence is to project light in the near-infrared band (wavelength that moisture can absorb) into the air of the computer room, and install a receiving device on the opposite side. The greater the moisture content in the air of the computer room, the more light energy is absorbed, and the less light energy is obtained by the receiving device, thereby indirectly measuring the spatial humidity of the computer room.

[0055] For example, in the embodiment of the present application, the near-infrared light source device is used to emit near-infrared light of a preset wavelength. Optionally, the near-infrared light source device can be a near-infrared light emitting diode, a laser diode, a tungsten filament lamp, a fiber laser, etc., which can be set according to actual conditions, and the embodiment of the present application does not make specific restrictions.

[0056] The near infrared band generally refers to electromagnetic waves with a wavelength range of about 700 nanometers to 2500 nanometers. The embodiment of the present application does not limit the preset wavelength of the near infrared light emitted by the near infrared light source device. For example, the preset wavelength may be 1900 nanometers.

[0057] The near-infrared receiving device is located on the opposite side of the near-infrared light source device, and the near-infrared receiving device is used to receive the near-infrared light emitted by the near-infrared light source device. Among them, the near-infrared light received by the near-infrared receiving device is the near-infrared light absorbed by the water in the air in the target detection space. The target detection space is the space to be measured, for example, it can be a computer room, of course, it can also be other spaces that require humidity detection, and the embodiments of the present application are not limited. Optionally, the near-infrared receiving device can be an indium gallium arsenide photodetector, a germanium photodetector, a mercury cadmium telluride detector, etc., which can be set according to actual conditions, and the embodiments of the present application are not specifically limited.

[0058] For example, Figure 2 A schematic diagram of the relative positions of a near-infrared light source device and a near-infrared receiving device provided in an embodiment of the present application. Figure 2 As shown, the near infrared receiving device 22 is located on the opposite side of the near infrared light source device 21, and there is no other obstruction between the near infrared light source device 21 and the near infrared receiving device 22. The near infrared light emitted by the near infrared light source device 21 is directly projected to the near infrared receiving device 22 after being absorbed by the air in the machine room.

[0059] S102, obtaining spectral parameters of near-infrared light; wherein the spectral parameters include initial parameters when the near-infrared light source device emits near-infrared light and detection parameters collected by the near-infrared receiving device.

[0060] Exemplarily, during humidity detection, after controlling the near-infrared light source device to emit near-infrared light of a preset wavelength, the initial parameters of the near-infrared light source device when emitting near-infrared light can be determined, and when the near-infrared receiving device receives the near-infrared light emitted by the near-infrared light source device, the corresponding near-infrared light spectral data can also be detected.

[0061] Among them, the humidity detection device of the embodiment of the present application can send control signals to the near-infrared light source device and the near-infrared receiving device respectively, so as to control the near-infrared light source device to emit near-infrared light of a preset wavelength, and make the near-infrared light pass through the air in the target detection space and then be projected to the corresponding near-infrared receiving device, and at the same time control them to return the spectral parameters detected respectively, so that the humidity detection device of the embodiment of the present application can obtain the spectral parameters of the near-infrared light.

[0062] Optionally, the spectral parameters of the acquired near-infrared light may include an initial light intensity and a residual light intensity; wherein the initial light intensity is the light intensity before the near-infrared light is absorbed by water in the air in the target detection space after the near-infrared light source device emits the near-infrared light, and the residual light intensity is the light intensity after the near-infrared light is absorbed by water in the air in the target detection space. The initial light intensity can be acquired by the near-infrared light source device, and the residual light intensity can be acquired by the near-infrared receiving device. The near-infrared light source device has the ability to acquire the initial light intensity, and the near-infrared receiving device has the ability to acquire the residual light intensity, which will not be described in detail here.

[0063] Understandably, the theoretical basis of spectral quantitative analysis is based on the Lambert-Beer law. When a beam of monochromatic light is irradiated on the surface of an absorbing medium, after passing through a medium of a certain thickness, the intensity of the projected light will weaken because the medium absorbs part of the light energy. The greater the concentration of the absorbing medium and the greater the thickness of the medium, the more the light intensity weakens. Similarly, in this application, after the near-infrared light is emitted, it will also be absorbed by the water in the air, so that the light intensity changes. By obtaining the accurate initial light intensity and the residual light intensity, the absorption of near-infrared light by water in the air in the target detection space can be known, so as to provide an accurate data basis for the subsequent determination of the humidity in the space.

[0064] S103: Determine the spatial humidity of the target detection space according to the spectral parameters.

[0065] Exemplarily, after the humidity detection device of the embodiment of the present application obtains the spectral parameters of the near-infrared light, the spatial humidity of the target detection space can be determined according to the spectral parameters.

[0066] Optionally, in a possible embodiment, determining the spatial humidity of the target detection space according to the spectral parameter may include:

[0067] S1. Determine the measured moisture content according to the spectral parameters and the preset functional relationship; wherein the measured moisture content is used to indicate the moisture content in the air in the target detection space;

[0068] S2. Determine the spatial humidity of the target detection space according to the measured moisture content.

[0069] Exemplarily, a preset functional relationship is used to indicate the functional relationship between the spectral parameters and the measured moisture content. In practical applications, the preset functional relationship can be obtained by fitting the experimental data in advance. For example, a multivariate linear regression, partial least squares regression or machine learning model is used to establish the relationship between the spectral absorption characteristics and the measured moisture content, which is not limited by the embodiments of the present application. By substituting the acquired spectral parameters into the preset functional relationship, the measured moisture content can be calculated, thereby further determining the spatial humidity of the target detection space. By pre-constructing the functional relationship between the spectral parameters and the measured moisture content, the data processing efficiency can be improved, and the measured moisture content can be quickly and accurately determined in the process of determining the spatial humidity of the target detection space.

[0070] Optionally, in a possible embodiment, the preset functional relationship may be the following formula (1):

[0071] (1)

[0072] Where, I is the residual light intensity; I 0 is the initial light intensity; is the absorption coefficient of water at frequency v; C is the measured water content; L is the optical absorption length between the near-infrared light source device and the near-infrared receiving device.

[0073] It should be noted that the absorption coefficient of water at frequency v is a known parameter, which can be obtained by looking up a table or the like. Frequency v is the frequency corresponding to the near-infrared light of a preset wavelength. When the specific value of the preset wavelength is determined, the frequency v can be determined accordingly, so that the absorption coefficient of water at frequency v can be found. In addition, the optical absorption length L between the near-infrared light source device and the near-infrared receiving device can also be measured after the relative position of the near-infrared light source device and the near-infrared receiving device is determined, and is also a known constant. Based on this, the residual light intensity and initial light intensity of the acquired near-infrared light are substituted into formula (1), and the measured water content can be quickly and accurately calculated.

[0074] Optionally, in a possible embodiment, determining the spatial humidity of the target detection space according to the measured moisture content may include: determining the measured moisture content as the spatial humidity of the target detection space.

[0075] Exemplarily, the measured moisture content indicates the moisture content in the air in the target detection space, usually refers to the absolute content of water vapor in the air. In some scenarios, it can be used directly to measure the humidity of the space. Therefore, in an embodiment of the present application, the calculated measured moisture content can also be directly determined as the spatial humidity of the target detection space. Based on this method, the spatial humidity can be quickly determined to obtain the measurement result.

[0076] Optionally, in some other scenarios, under the condition of known temperature and pressure, the measured moisture content can also be converted into relative humidity to measure the humidity of the space. Relative humidity refers to the ratio of the actual water vapor pressure in the air to the saturated water vapor pressure at that temperature, usually expressed as a percentage. The measured moisture content of the present application can also be converted into relative humidity through a corresponding feasible physical conversion formula, which is not limited in the embodiments of the present application.

[0077] Optionally, in another possible embodiment, a plurality of near-infrared light source devices and corresponding near-infrared receiving devices are arranged at different positions in the target detection space, and the spatial humidity of the target detection space is determined according to the measured moisture content. It may also include: determining the average value of the measured moisture content corresponding to each near-infrared light source device, and determining the average value as the spatial humidity of the target detection space.

[0078] For example, the spatial humidity in different areas of the same space may be different. In order to more accurately characterize the spatial humidity and improve the detection accuracy of the spatial humidity, multiple near-infrared light source devices and corresponding near-infrared receiving devices located in different positions can be set in the target detection space. Each set of devices can perform one or more measurements at the same time, and then calculate their average value, and use the average value as the final spatial humidity of the target detection space. Through this method of multi-point measurement and average calculation, the overall humidity condition of the target detection space can be more accurately reflected, reducing the errors and uncertainties that may be caused by single-point measurement.

[0079] The embodiment of the present application does not limit the position of the near-infrared light source device and the corresponding near-infrared receiving device in the target detection space. Optionally, when there is only one set of near-infrared light source devices and corresponding near-infrared receiving devices, they can be set in the middle of the target detection space; when there are multiple sets of near-infrared light source devices and corresponding near-infrared receiving devices, they can be relatively evenly distributed in the target detection space to cover the detection range as much as possible, thereby improving the accuracy of detection.

[0080] The humidity detection method provided in the embodiment of the present application includes: controlling the near-infrared light source device to emit near-infrared light of a preset wavelength so that the near-infrared light passes through the air in the target detection space and is projected to the corresponding near-infrared receiving device; wherein the near-infrared receiving device is located on the opposite side of the near-infrared light source device; obtaining the spectral parameters of the near-infrared light; wherein the spectral parameters include the initial parameters when the near-infrared light source device emits the near-infrared light and the detection parameters collected by the near-infrared receiving device; and determining the spatial humidity of the target detection space according to the spectral parameters. The scheme of the embodiment of the present application utilizes near-infrared spectroscopy technology to measure humidity through the propagation and reception of near-infrared light, thereby realizing non-contact, high-sensitivity, wide-coverage and flexible humidity measurement, which not only improves the accuracy and reliability of humidity measurement, but also avoids the environmental sensitivity problem of traditional sensors.

[0081] Figure 3 A schematic diagram of a flow chart of another humidity detection method provided in an embodiment of the present application. Figure 3 As shown, the humidity detection method provided in the embodiment of the present application may include:

[0082] S301, controlling a near-infrared light source device to emit near-infrared light of a preset wavelength, so that the near-infrared light passes through the air in the target detection space and is projected to a corresponding near-infrared receiving device; wherein the near-infrared receiving device is located on the opposite side of the near-infrared light source device.

[0083] It should be noted that the specific implementation of step S301 can refer to the description of step S101 and will not be repeated here.

[0084] S302, obtaining spectral parameters of near-infrared light; wherein the spectral parameters include initial parameters when the near-infrared light source device emits near-infrared light and detection parameters collected by the near-infrared receiving device.

[0085] It should be noted that the specific implementation of step S302 can refer to the description of step S102 and will not be repeated here.

[0086] S303: Determine the spatial humidity of the target detection space according to the spectral parameters.

[0087] It should be noted that the specific implementation of step S303 can refer to the description of step S103, which will not be repeated here.

[0088] S304: If it is determined that the space humidity is not within the preset humidity range, an alarm message is output; wherein the alarm message is used to indicate that the space humidity of the target detection space is abnormal.

[0089] Exemplarily, in humidity detection, it is very important to monitor and maintain the humidity of the target detection space within a preset range. When the humidity exceeds the range, an alarm message can be issued in time so that appropriate measures can be taken. Specifically, according to specific application requirements, the ideal humidity range of the target detection space can be preset. For example, in a storage environment, the relative humidity may need to be maintained between 40% and 60%. In an embodiment of the present application, there is no restriction on the specific value of the preset humidity range. When the target detection space is an equipment room, the preset humidity range should be a range suitable for the safe operation of the equipment.

[0090] After determining the spatial humidity of the target detection space based on the solution of the embodiment of the present application, the humidity detection device of the embodiment of the present application can also compare the real-time detected spatial humidity data with the preset humidity range. If the humidity data exceeds the preset humidity range (that is, lower than the minimum value or higher than the maximum value), it can be determined that the humidity is abnormal. At this time, the humidity detection device can automatically generate and output an alarm message to prompt the staff that the spatial humidity of the target detection space is abnormal.

[0091] Among them, the alarm information may include the value of the current space humidity, the preset humidity range, and possible impacts or recommended measures, etc.; the alarm method may include one or more of sound and light alarms, SMS notifications, emails, system log records, etc.; the embodiments of the present application are not limited.

[0092] By effectively monitoring and managing the humidity of the target detection space, ensuring that it is within the preset range and issuing alarm information in a timely manner under abnormal circumstances, it not only helps protect the environment and equipment, but also improves overall safety and reliability.

[0093] Optionally, in some possible embodiments, automatic control measures may also be integrated, such as starting a dehumidifier or a humidifier to automatically adjust the humidity of the space to within a preset humidity range, which is not limited in the embodiments of the present application.

[0094] The humidity detection method provided by the embodiment of the present application includes: controlling the near-infrared light source device to emit near-infrared light of a preset wavelength so that the near-infrared light passes through the air in the target detection space and is projected to the corresponding near-infrared receiving device; wherein the near-infrared receiving device is located on the opposite side of the near-infrared light source device; obtaining the spectral parameters of the near-infrared light; wherein the spectral parameters include the initial parameters when the near-infrared light source device emits the near-infrared light and the detection parameters collected by the near-infrared receiving device; according to the spectral parameters, determining the spatial humidity of the target detection space; if it is determined that the spatial humidity is not within the preset humidity range, outputting an alarm message; wherein the alarm message is used to indicate that the spatial humidity of the target detection space is abnormal. The scheme of the embodiment of the present application, on the basis of utilizing near-infrared spectroscopy technology to measure humidity through the propagation and reception of near-infrared light, realizes non-contact, high-sensitivity, wide-coverage and flexible humidity measurement, and also manages the spatial humidity of the target detection space, and promptly issues an alarm message under abnormal conditions, which not only helps to protect the environment and equipment, but also further improves the overall safety and reliability.

[0095] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0096] Figure 4 This is a schematic diagram of the structure of a humidity detection device provided in an embodiment of the present application. Figure 4 As shown, the humidity detection device 40 provided in the embodiment of the present application includes a control unit 401 , an acquisition unit 402 and a processing unit 403 .

[0097] The control unit 401 is used to control the near-infrared light source device to emit near-infrared light of a preset wavelength, so that the near-infrared light passes through the air in the target detection space and is projected to the corresponding near-infrared receiving device; wherein the near-infrared receiving device is located on the opposite side of the near-infrared light source device;

[0098] An acquisition unit 402 is used to acquire spectral parameters of near-infrared light; wherein the spectral parameters include initial basic parameters when the near-infrared light source device emits near-infrared light and detection parameters collected by the near-infrared receiving device;

[0099] The processing unit 403 is used to determine the spatial humidity of the target detection space according to the spectral parameters.

[0100] The device provided in this embodiment can be used to execute the method of the above embodiment. Its implementation principle and technical effect are similar and will not be described in detail here.

[0101] Based on the above device embodiment, in some possible examples, the spectral parameters include initial light intensity and residual light intensity; wherein the initial light intensity is the light intensity before the near-infrared light is absorbed by water in the air in the target detection space after the near-infrared light source device emits the near-infrared light, and the residual light intensity is the light intensity after the near-infrared light is absorbed by water in the air in the target detection space; the acquisition unit 402 is further used to:

[0102] The initial light intensity is obtained by a near-infrared light source device, and the remaining light intensity is obtained by a near-infrared receiving device.

[0103] Based on the above device embodiment, in some possible examples, the processing unit 403 is further configured to:

[0104] Determine the measured moisture content according to the spectral parameters and the preset functional relationship; wherein the measured moisture content is used to indicate the moisture content in the air in the target detection space;

[0105] According to the measured moisture content, the spatial humidity of the target detection space is determined.

[0106] Based on the above device embodiment, in some possible examples, the preset functional relationship is:

[0107]

[0108] Among them, I is the residual light intensity; I0 is the initial light intensity; is the absorption coefficient of water at frequency v; C is the measured water content; L is the optical path absorption length between the near-infrared light source device and the near-infrared receiving device.

[0109] Based on the above device embodiment, in some possible examples, the processing unit 403 is further configured to:

[0110] Determine the measured moisture content as the spatial humidity of the target detection space.

[0111] Based on the above device embodiment, in some possible examples, a plurality of near-infrared light source devices and corresponding near-infrared receiving devices located at different positions are arranged in the target detection space, and the processing unit 403 is further used to:

[0112] The average value of the measured moisture content corresponding to each near-infrared light source device is determined, and the average value is determined as the spatial humidity of the target detection space.

[0113] Based on the above device embodiment, in some possible examples, the processing unit 403 is further configured to:

[0114] If it is determined that the space humidity is not within the preset humidity range, an alarm message is output; wherein the alarm message is used to indicate that the space humidity of the target detection space is abnormal.

[0115] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. In addition, it can also be stored in the memory of the above device in the form of program code, and the functions of the above data processing modules can be called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0116] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 50 includes: a processor 501, and a memory 502 communicatively connected to the processor.

[0117] The memory 502 stores computer-executable instructions; the processor 501 executes the computer-executable instructions stored in the memory 502 to implement any of the aforementioned methods.

[0118] In the specific implementation of the above electronic device, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The method disclosed in the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution.

[0119] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement any of the methods described above.

[0120] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to computer instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0121] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement any of the aforementioned methods when executed by a processor.

[0122] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0123] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0124] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0125] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.

[0126] If the integrated unit / module is implemented in the form of hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. Unless otherwise specified, the processor may be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, an ASIC, etc. Unless otherwise specified, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory (RRAM), a dynamic random access memory (DRAM), a static random access memory (SRAM), an enhanced dynamic random access memory (EDRAM), a high-bandwidth memory (HBM), a hybrid memory cube (HMC), etc.

[0127] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0128] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0129] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0130] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A humidity detection method, characterized in that: The method comprises: Controlling the near-infrared light source device to emit near-infrared light of a preset wavelength, so that the near-infrared light passes through the air in the target detection space and is projected to the corresponding near-infrared receiving device; wherein the near-infrared receiving device is located on the opposite side of the near-infrared light source device; Acquire spectral parameters of the near-infrared light; wherein the spectral parameters include initial parameters when the near-infrared light source device emits the near-infrared light and detection parameters collected by the near-infrared receiving device; The spatial humidity of the target detection space is determined according to the spectral parameters.

2. The method according to claim 1, characterized in that The spectral parameters include initial light intensity and residual light intensity; wherein the initial light intensity is the light intensity before the near-infrared light is absorbed by the water in the air in the target detection space after the near-infrared light source device emits the near-infrared light, and the residual light intensity is the light intensity after the near-infrared light is absorbed by the water in the air in the target detection space; Acquiring the spectral parameters of the near-infrared light includes: The initial light intensity is acquired by the near-infrared light source device, and the remaining light intensity is acquired by the near-infrared receiving device.

3. The method according to claim 2, characterized in that Determining the spatial humidity of the target detection space according to the spectral parameter includes: Determine the measured moisture content according to the spectral parameter and the preset functional relationship; wherein the measured moisture content is used to indicate the moisture content in the air in the target detection space; The spatial humidity of the target detection space is determined according to the measured moisture content.

4. The method according to claim 3, characterized in that The preset functional relationship is: Wherein, I is the residual light intensity; I0 is the initial light intensity; is the absorption coefficient of water at frequency v; C is the measured water content; L is the optical path absorption length between the near-infrared light source device and the near-infrared receiving device.

5. The method according to claim 3, characterized in that: Determining the spatial humidity of the target detection space according to the measured moisture content includes: The measured moisture content is determined as the spatial humidity of the target detection space.

6. The method according to claim 3, characterized in that A plurality of near-infrared light source devices and corresponding near-infrared receiving devices are arranged in the target detection space at different positions, and the spatial humidity of the target detection space is determined according to the measured moisture content, including: An average value of the measured moisture content corresponding to each near-infrared light source device is determined, and the average value is determined as the spatial humidity of the target detection space.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: If it is determined that the space humidity is not within the preset humidity range, an alarm message is output; wherein the alarm message is used to indicate that the space humidity of the target detection space is abnormal.

8. A humidity detection device, characterized in that: The device comprises: A control unit, used for controlling the near-infrared light source device to emit near-infrared light of a preset wavelength, so that the near-infrared light passes through the air in the target detection space and is projected to the corresponding near-infrared receiving device; wherein the near-infrared receiving device is located on the opposite side of the near-infrared light source device; An acquisition unit, configured to acquire spectral parameters of the near-infrared light; wherein the spectral parameters include initial basic parameters when the near-infrared light source device emits the near-infrared light and detection parameters collected by the near-infrared receiving device; A processing unit is used to determine the spatial humidity of the target detection space according to the spectral parameters.

9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.