1. Introduction
Relative humidity (
RH) is an important control parameter in many industrial processes which determines the product quality and process economy [
1]. Timely and accurate
RH measurement can help keep the inner environment of warehouses and silos stable, reduce energy consumption, and ensure product quality. The existing
RH measurement technique is mainly the contact measurement method (humidity-sensitive components). Humidity-sensitive components can be divided into two categories: resistive and capacitive. The characteristic of the humidity-sensitive resistor is that the substrate is covered with a film made of moisture-sensitive material. When the water vapor in the air is adsorbed on the moisture-sensitive film, the resistivity and resistance values of the element change. Then, humidity can be measured. The principle of the humidity-sensitive capacitor is that when the ambient humidity changes, the dielectric constant of the humidity-sensitive capacitor changes, so that the capacitance also changes, and the capacitance change is proportional to the relative humidity. The traditional
RH sensor has poor linearity and anti-pollution performance. When detecting ambient humidity, the traditional
RH sensor needs to be exposed to the environment for a long time for it to be measured, and it is easily contaminated which affects its measurement accuracy and long-term stability. The speed of sound in the air mainly depends on the air temperature and
RH. If the speed of sound in the air and the air temperature can be accurately measured, the
RH value can be inferred using the relationship between the three parameters. This is the principle of the air
RH measurement based on the acoustic method proposed in this paper. The acoustic method is a non-invasive measurement technology. Combined with tomography technology, the
RH distribution information in a two-dimensional area can be obtained [
2].
At present, the available sound sources for the measurement of air
RH by the acoustic method include ultrasonic waves and low-frequency audible sound waves [
1,
3]. Ultrasonic waves are mainly used for short-distance measurement due to their easy attenuation [
3]. Low-frequency sound waves have a smaller attenuation and a longer propagation distance, which have been used to measure indoor temperature, furnace flame temperature, and lake water temperature [
4,
5,
6]. However, the use of low-frequency sound waves to measure air
RH is relatively limited [
1,
3]. Therefore, here, an air
RH measurement method based on low-frequency sound waves and cross-correlation signal processing techniques is proposed.
There are limited studies on the measurement of air
RH using the acoustic method, and ultrasonic waves are mainly used [
1,
3]. Motegi et al. proposed an ultrasonic probe device to simultaneously detect air temperature and
RH through sound velocity and attenuation of sound waves [
3]. The experimental results show that the temperature measurement accuracy is high, and the
RH measurement accuracy needs to be improved. The absolute error of the
RH measurement result is within 7.53%, and the relative error is within 10.73% (50–90%
RH). This is mainly because there are many factors that affect the sound wave attenuation, and the attenuation coefficient has a great influence on the
RH measurement results. Van Schaik et al. proposed a
RH measurement device that uses a pair of ultrasonic sensors to measure the air flowing in the pipe [
1]. The experimental results show that the accuracy is better than 2% above 50 °C. The principle is to measure the speed of sound and air temperature, and then use the relationship between the speed of sound, temperature, and
RH to infer the
RH. Their work verifies the feasibility of using the speed of sound to reverse the
RH, but the coefficients of the calculation formula of the speed of sound need to be calibrated, which needs a high requirement on the calibration device. Sahoo et al. proposed a novel fuzzy-inspired machine learning framework for relative humidity estimation using the time-of-flight of an ultrasonic sensor. Neural networks need to first be trained, and then the trained networks are used to estimate the relative humidity [
7]. The authors previously proposed an air temperature measurement device and method based on low-frequency sound waves [
8]. The experimental results show that the measurement of air temperature can be achieved. This paper continues the previous research, using low-frequency sound waves to measure air
RH with sound speed. From the literature review, it can be found that the
RH measurement accuracy needs to be improved in the low-temperature range. Therefore, this paper focuses on the measurement of air
RH in low-temperature ranges.
This paper presents the most recent advances in the RH measurement of air using low-frequency sound waves and correlation signal processing techniques. The relationship between the speed of sound, temperature, and RH is analyzed. The influence of the variation in air temperature, atmospheric pressure, and air composition on the RH measurement is investigated through numerical simulation. A measurement system consisting of a low-frequency sound source and two acoustic sensors is constructed. A designed linear frequency sweep signal is sent out through the sound source. Using the cross-correlation algorithm, the propagation time of the sound wave between the acoustic sensors is calculated. Through reference RH experiments, the equivalent sound wave propagation path length and systematic delay are obtained, which effectively improves the RH measurement accuracy.
The paper is organized as follows:
Section 1 is the introduction.
Section 2 is the methodology, which includes
Section 2.1: relationship between sound speed, air temperature, and
RH,
Section 2.2: the influence of air temperature, atmospheric pressure, and air constituent concentrations on
RH measurement,
Section 2.3: selection of sampling frequency,
Section 2.4: sound travel time measurement using chirp signal and cross-correlation algorithm, and
Section 2.5: equivalent sound path length and systematic delay.
Section 3 introduces the experimental results and discussion, which includes
Section 3.1: experimental setup,
Section 3.2: sound travel time measurement based on cross-correlation signal processing technique,
Section 3.3: estimation of equivalent sound path length and the systematic delay, and
Section 3.4:
RH measurement results.
Section 4 provides the conclusions.
2. Methodology
Figure 1 shows the principle of the air
RH measurement using low-frequency sound waves and acoustic sensors. The sound source, two acoustic sensors, and the sensing head of the reference thermo-hygrometer are fixed at the same height. The sound source sends out the designed low-frequency sound waves, and then two acoustic sensors collect the sound waves. The sound travel time,
t (s), between the two acoustic sensors is calculated using the cross-correlation algorithm. Sound speed,
c (m/s), is calculated as:
where
is the equivalent sound path length between the two acoustic sensors (m), and
is the systematic delay (s) [
9]. The values of
and
are acquired through reference
RH experiments. After calculating sound speed,
c, the
RH (%) of air is acquired using the equation between sound speed, air temperature, and
RH. As sound speed also depends on air temperature, the air temperature,
T (°C), between the two acoustic sensors needs to be measured using traditional temperature sensors. A detailed introduction about the cross-correlation algorithm and the equivalent sound path length and systematic delay estimation is provided in
Section 2.4 and
Section 2.5, respectively.
2.1. Relationship between Sound Speed, Air Temperature and RH
Sound speed in the air mainly depends on air temperature and
RH. Sound speed,
c (m/s) [
10], is:
where
is the specific heat ratio,
Z is the compressibility factor,
R is the universal gas constant (J/(mol
K)),
Ma is the molar mass of dry air (kg/mol),
xw is the mole fraction of water vapor, and
Mw is the molar mass of water content (kg/mol).
xw is calculated from the measured
RH as:
where
f1 is the enhancement factor for water vapor,
Psv is the saturation vapor pressure (Pa), and
P is the atmospheric pressure (Pa).
P in the laboratory where this research was undertaken was 102.2 kPa. Assuming
T is 0–100 °C,
RH is 0–100%, and air constituent concentrations are the same as the standard air, then
c calculated from Equation (2) is as shown in
Figure 2. The sound speed has a monotonic relationship with air
RH for a given air temperature,
T. With the measured
c,
T,
P, and assuming that air constituent concentrations are the same as that of standard air,
RH is calculated inversely from Equation (2). From
Figure 2 it can be inferred that the influence of
RH on sound speed is low in the low-temperature range, while the influence is obvious in high-temperature ranges. The accuracy of existing traditional temperature sensors is high. This means that the sound speed measurement accuracy needs to be high enough when the air temperature is low. Therefore, a couple of reference
RH experiments were conducted to obtain the equivalent sound path length between the two acoustic sensors and the systematic delay.
2.2. The Influence of Air Temperature, Atmospheric Pressure and Air Constituent Concentrations on RH Measurement
As air temperature, atmospheric pressure, and air constituent concentrations also affect the sound speed, to increase the measurement accuracy of RH, the influence of the three factors on acoustic RH measurement results was analyzed theoretically and corresponding technical solutions are provided.
2.2.1. Air Temperature
In the study of the influence of temperature on the
RH measurement, it is assumed that the air constituent concentrations and atmospheric pressure are basically unchanged during the measurement process (standard air, atmospheric pressure is 102.2 kPa), which is also in line with the general actual measurement environment. Assuming that actual
RH is 10–100% (from 10% is used to calculate the relative error of
RH) and
T is 0–100 °C, the sound speed can be calculated using Equation (2). Assuming that the actual measured sound speed is equal to the ideal sound speed value, that is, there is no error in the sound speed measurement, the temperature error measured by the thermometer was ±1, ±0.5, and ±0.1 °C.
RH of air can be calculated with the measured
T and sound speed. Then, the relative errors of the
RH measurement results caused by the actual temperature measurement error were acquired, which are shown in
Figure 3a–c. The relative error of the
RH measurement caused by temperature fluctuation was relatively low in the high-temperature and high-
RH area. The relative error was relatively high in the low-temperature and low-humidity area, which is also the limitation of the acoustic humidity measurement. Therefore, to improve the accuracy of the
RH measurement, it is necessary to ensure the accuracy of the temperature measurement. The accuracy of the reference temperature measurement device used in the experiments can reach ±0.5 °C. More accurate thermocouples or thermal resistances can be used, and the temperature measurement accuracy can also be improved by using multi-point measurement and averaging.
2.2.2. Atmospheric Pressure
According to the atmospheric pressure information provided by the National Physical Laboratory in the United Kingdom, the atmospheric pressure change at the same location in a year is within 7 kPa, and the atmospheric pressure change on the same day will not exceed 2 kPa. To analyze the influence of atmospheric pressure fluctuations on the humidity measurement results, assuming that the actual atmospheric pressure is 102.2 kPa, the air temperature is 0–100 °C, and the
RH is 10–100%, the actual speed of sound can be calculated. Assuming that the atmospheric pressure used in the acoustic temperature measurement is 109.2 and 104.2 kPa, the relative humidity of the air can be calculated according to the actual sound speed, temperature, and atmospheric pressure, and then the relative humidity measurement error caused by the change of atmospheric pressure can be obtained, as shown in
Figure 4. The fluctuation of atmospheric pressure within a year will cause the relative
RH measurement error within 0.07%, and the relative
RH measurement error caused by the fluctuation of atmospheric pressure in one day was less than 0.02%, which indicates that the atmospheric pressure fluctuation has little influence on the relative humidity measurement. Therefore, when calculating the relative humidity of the air, the atmospheric pressure of the day can be assumed to be constant, and the atmospheric pressure value at a certain time of the day is adopted.
2.2.3. Air Constituent Concentrations
Variations in air constituent concentrations will inevitably affect the sound speed in the air. The study of the quantitative influence of the air composition on RH measurement results puts forward high requirements of hardware equipment. The current experimental conditions are difficult to achieve. However, in the general actual measurement environment, the air composition at the same location is relatively consistent, and there will be no major air composition changes (that is, the standard air composition). At the same time, in the method of acoustic measurement of RH proposed in this paper, the method of reference RH experiments is adopted, thereby reducing the influence of the fluctuation of the air composition.
2.3. Selection of Sampling Frequency
The sampling frequency will affect the accuracy of the sound travel time measurement and thus the
RH measurement results. Assuming that the sampling frequency is
Fs, then the time resolution is 1/
Fs. To choose a suitable sampling frequency, the humidity measurement error caused by the time resolution was first theoretically analyzed. During the experiments, the atmospheric pressure,
P, was 102.2 kPa, and assuming that the air temperature
T is 0~100 °C,
RH is 0~100%, and the air composition is consistent with the standard air, the corresponding ideal sound speed can be calculated with Equation (2). The distance between the two acoustic sensors was 0.4 m, and the ideal sound travel time,
t, was acquired with the sound speed. Assuming that the sound travel time measurement error is only the time resolution error caused by the sampling frequency, thus the actual sound travel time is (
t + 1/
Fs) (or
t − 1/
Fs, the result is the same). Then, sound speed can be calculated and air humidity
RH1 is derived from Equation (2). Therefore, the
RH measurement error caused by the sampling frequency is (
RH1 −
RH).
Figure 5a–d show the
RH measurement error caused by the sampling frequency when
Fs was 100 kHz, 500 kHz, 1 MHz, and 2 MHz. The
RH measurement error decreased with the sampling frequency. When
Fs was lower than 100 kHz, the
RH measurement error was within 10%, which will seriously affect the
RH measurement results. The error will be larger, as the sound travel time measurement error does not only come from the sampling frequency. The
RH measurement error was within 0.5% when the sampling frequency was 2 MHz. Therefore,
Fs was set to 2 MHz in the experiments. If the distance between the two acoustic sensors was increased, then the
RH measurement error caused by the sampling frequency decreased.
Figure 6 shows the
RH measurement error when
Fs was 100 kHz and the distance between the two acoustic sensors was 1 m.
2.4. Sound Travel Time Measurement Using Chirp Signal and Cross-Correlation Algorithm
The chirp signal is widely used as a sound source in the sound travel time measurement [
11]. The chirp signal can suppress the side lobe amplitude in the cross-correlation result, which helps to improve the accuracy and stability of the sound travel time measurement. Therefore, the chirp signal was used as the sound source signal in this study. When sound waves emitted by the sound source are received by acoustic sensors 1 and 2, the sound travel time can be calculated through the time difference of the arrival of sound waves. Threshold and peak detection methods based on the amplitude of the received acoustic signal are susceptible to noise and attenuation, resulting in inaccurate temperature measurements. Cross-correlation is a widely used time delay calculation method [
12,
13,
14], and its principle is based on the similarity of the signals received by the sensors. Assuming that the time domain signals
and
are the acoustic signals received by the acoustic sensors 1 and 2, the cross-correlation function,
, between them can be expressed as:
where
and
represent the sampled values of signals
and
, respectively,
N is the length of the sampled signal for cross-correlation analysis (
N = 200,000), and
m is the sampling points of delay (
m = 0, 1, 2, …,
M).
M is the maximum delay point.
Figure 7 shows a typical cross-correlation result of sound signals received by acoustic sensors 1 and 2.
The location of the peak point in is the actual delay point, which is the actual sound travel time. Based on the actual measurement of the received sound wave components, there are two overlapping components of reflected sound and direct sound. Therefore, to minimize the impact of reflected sound waves on the cross-correlation results, the maximum delay point, M, was set to 10,000 (5 ms), which is larger than the possible actual acoustic travel time.
To increase the amplitude of the main peak in the cross-correlation results and thus the signal-to-noise ratio, oversampling signal processing methods can be applied [
15,
16]. Oversampling can make up for the lack of hardware sampling frequency and improve the accuracy of acoustic travel time measurements, which ultimately improve the
RH measurement accuracy.
2.5. Equivalent Sound Path Length and Systematic Delay
To improve the sound speed measurement accuracy, Equation (1) was adopted to calculate the sound speed in the air. When using a sound source and two acoustic sensors to measure the speed of sound, the acoustic center of acoustic sensors is not their geometric center. The measured distance between the two acoustic sensors is not the actual sound path length [
9]. In addition, due to the difference in the working time of the two acoustic sensors to convert the sound wave signal into an electrical signal and amplify it, there is a systematic delay in the calculation result of the sound wave propagation time. More importantly, the theoretically calculated speed of sound is not exactly equal to the actual speed of sound in a specific measurement environment. To improve the sound velocity measurement accuracy, the equivalent sound path length,
L, and the systematic delay,
τ, must be determined by reference
RH experiments.
Zhou et al. proposed a calibration method for an ultrasonic temperature measurement system [
9]. Zhou’s calibration equations were adopted in this paper to calculate the equivalent sound path length,
L, and the systematic delay,
τ. Air humidity was set to
m points and the sound travel time,
, was measured ten times under each
RH point (
). The average value of
was substituted into Equation (5).
is the theoretical sound speed under the measured air temperature and
RH. The equivalent sound path length,
L, and the systematic delay,
τ, are the final values when prediction errors
are minimized.
For Equation (5), a least squares optimization algorithm can be used to estimate the two objective parameters in the linear equations. Then, the equivalent sound path length,
, and the systematic delay,
, can be calculated with Equations (6) and (7):