The technical field of the present disclosure is the use of a light source, in particular a black body or gray body, to perform optical measurements, with a temporal drift affecting the light radiation emitted by the light source taken into account.
Optical methods are frequently used to analyze a gas. Some devices allow the composition of a gas to be determined on the basis of the fact that the species from which the gas is composed have absorption spectral properties that are different from one another. Thus, if the absorption spectral band of a gaseous species is known, its concentration may be determined via an estimation of the absorption of light passing through the gas, using the Beer-Lambert law. This principle allows the concentration of a gaseous species present in the gas to be estimated.
The light source is usually a source emitting in the infrared, the method used conventionally being referred to as NDIR detection, the acronym NDIR meaning “non-dispersive infrared.” Such a principle has frequently been employed, and is, for example, described in documents U.S. Pat. No. 5,026,992 or WO2007064370.
In the commonest methods, the analyzed gas lies between a light source and a photodetector, called the measurement photodetector, the latter being intended to measure a light wave transmitted by the gas to be analyzed, the light wave being partially absorbed by the latter. These methods generally comprise a measurement of a light wave, called the reference light wave, emitted by the source, the reference light wave not being absorbed, or being absorbed negligibly, by the analyzed gas.
Comparison of the light wave in the presence of gas and the light wave without gas allows the absorption of the gas to be characterized. It is, for example, a question of determining an amount of a gaseous species in the gas, using the technology referred to as “absorption NDIR.” It may also be a question of estimating a number of particles in the gas, by detecting light scattered by the latter in a preset angular range of scatter.
The reference light wave is measured by a reference photodetector. It may be a reference photodetector different from the measurement photodetector, and arranged so as to be placed facing the light source, the reference photodetector being associated with a reference optical filter. The reference optical filter defines a reference spectral band, in which the gas to be analyzed exhibits no significant absorption. The publication Wei-Lin Ye, et al., “Design and performances of a mid-infrared CH4 detection device with novel three-channel-based LS-FTF self-adaptive denoising structure,” Sensors and Actuators B: Chemical, volume 155, issue 1, describes such a method. In this publication an algorithm for denoising a signal emitted by the reference photodetector is described. The denoising algorithm is also applied to the signal resulting from the measurement photodetector.
The inventors have proposed an improvement to existing methods and devices. Specifically, the reference photodetector is frequently affected by measurement noise, which has an impact on the estimation of the intensity of the reference light wave. This is, in particular, the case when the reference photodetector is a simple and inexpensive photodetector. Such noise may lead to uncertainty in the estimated amounts. Embodiments of the present disclosure aim to decrease this uncertainty, by limiting the effect of the fluctuations affecting the measurements carried out by the reference photodetector.
A first subject of the present disclosure is a method for measuring an amount of a gaseous species present in a gas, the gaseous species being able to absorb light in an absorption spectral band, the method comprising the following steps:
steps b) to d) being implemented at a plurality of measurement times, the method also comprising the following steps:
the method being characterized in that step e) comprises the following substeps:
The reference light wave is representative of a light wave that reaches the measurement photodetector without having been absorbed by the gas. It lies in a reference spectral band. Depending on the configuration, the reference spectral band may be separate from or none other than the absorption spectral band.
In step ei), the model taken into account may, in particular, be a linear model, step eii) forming a linear regression.
According to one embodiment, steps b) to d) are carried out at various measurement times forming a time range, and, following these measurement times:
In this embodiment, in sub step eii), each time of the time range may be assigned a weighting term that is strictly positive and lower than or equal to 1.
According to another embodiment, sub steps eii) and eiii) are implemented at each measurement time, iteratively, the parameters of the model being updated depending on parameters of the model resulting from a preceding iteration, or, at a first measurement time, depending on initialized parameters. According to this embodiment, steps e) and f) may be implemented at each measurement time. Sub step eii) may take into account a forgetting factor to weight to what extent the preceding iteration is taken into account.
The model may comprise a weighting term that is strictly positive and lower than or equal to 1.
Whatever the embodiment, step f) may comprise the following sub steps:
Another subject of the present disclosure is a device for determining an amount of a gaseous species in a gas, the device comprising:
The first and second processors may be merged and form a single processor.
Other advantages and features will become more clearly apparent from the following description of particular embodiments of the present disclosure, which are given by way of nonlimiting example, and shown in the figures listed below.
The gas G contains a gaseous species Gx an amount cx(k) of which, a concentration of which, for example, it is sought to determine at a measurement time k. This gaseous species absorbs a measurable percentage of the light in an absorption spectral band Δx.
The light source 11 is able to emit the incident light wave 12, in an illumination spectral band Δ, the latter possibly lying between the near ultraviolet and the mid infrared, between 200 nm and 10 μm, and most often between 1 μm and 10 μm. The absorption spectral band Δx of the analyzed gaseous species is comprised in the illumination spectral band Δ. The light source 11 may, in particular, be pulsed, the incident light wave 12 being a pulse of duration generally comprised between 100 ms and 1 s. The light source 11 may, in particular, be a suspended filament light source heated to a temperature comprised between 400° C. and 800° C. The measurement photodetector 20 is preferably associated with an optical filter 18, defining a detection spectral band encompassing all or some of the absorption spectral band Δx of the gaseous species.
In the example in question, the measurement photodetector 20 is a thermopile, able to deliver a signal dependent on the intensity of the light wave to which the photodetector is exposed. It may also be a question of a photodiode or of another type of photodetector.
The intensity I(k) of the light wave 14 detected by the measurement photodetector 20, called the measurement intensity, at a measurement time k, depends on the amount cx(k) at the measurement time, according to the Beer-Lambert equation:
where:
The comparison between I(k) and Ix(k), taking the form of a ratio
corresponds to an attenuation att(k) generated by the gaseous species in question at the time k.
During each pulse of the light source 11, it is thus possible to determine μ(cx(k)), this allowing cx(k) to be estimated given that the relationship between cx(k) and μ(cx(k)) is known.
Expression (1) assumes control of the intensity Ix(k) of the incident light wave 12 at the measurement time k. However, it is known that the emissivity of light sources, of black-body and gray-body type, varies over time, and may, in particular, undergo a decrease. In order to take into account this temporal variation in the emission of the light source 11, the device comprises a reference photodetector 20ref, arranged such that it detects a light wave, called the reference light wave 12ref, representative of the incident light wave 12 emitted by the light source 11. The reference light wave 12ref reaches the reference photodetector 20ref without interacting with the gas G, or without significantly interacting with the latter. The intensity of the reference light wave 12ref, detected by the reference photodetector 20ref, at the measurement time k, is referred to by the term reference intensity Iref(k). The reference light wave lies in a reference spectral band Δref.
In this example, the reference photodetector 20ref is placed beside the measurement photodetector 20 and is of the same type as the latter. It is associated with an optical filter, called the reference optical filter 18ref. The reference optical filter 18ref defines the reference spectral band Δref corresponding to a range of wavelengths not absorbed by the gaseous species in question. The reference spectral band Δref is, for example, centered on the wavelength 3.91 μm.
Various configurations, known from the prior art, may also be envisioned, in particular, variants in which:
In prior-art devices, measurement of Iref(k) allows expression (1) to be used with Ix(k) estimated from Iref(k), this allowing μ(cx(k)) to be determined, then cx(k) to be estimated.
The reference photodetector 20ref may be affected by a large amount of read noise, impacting the precision of the determination of the reference intensity Iref(k). The reference intensity is thus subject to statistical fluctuations, this resulting in a high measurement uncertainty that has an impact on the estimation of the amount cx(k) of the gaseous species. The present disclosure addresses this problem, by correcting the reference intensity Iref(k) measured at each measurement time. More precisely, the correction consists in replacing the reference intensity Iref(k), measured at each measurement time, with an estimation I′ref(k) of the reference intensity called the denoised estimation. By denoised, what is meant is less subject to fluctuations than the reference intensity measured by the reference photodetector. I′ref(k) corresponds to the corrected reference intensity.
To this end, the device comprises a first processor 30, for example, a microprocessor or a microcontroller. The latter is configured to receive a signal representative of the intensity Iref(k) of the reference light wave 12ref, measured by the reference photodetector 20ref at each measurement time k, and to implement a method in order to obtain a corrected reference intensity I′ref(k). The correcting method is described below, with reference to
The device also comprises a second processor 30′ configured to receive a signal representative of a measurement intensity I(k) and the corrected reference intensity I′ref(k). The second processor is programmed to determine, depending on these intensities, the amount of the gaseous species measured at each measurement time.
Devices such as that shown in
The gradual decrease in the measurement intensity may be corrected by taking into account the reference intensity. A compensation function comp may thus be applied to the measurement intensity, preferably after application of a median filter, such that, at each measurement time k,
Iref,f being the reference intensity after application of a median filter to five successive samples.
From the curves shown in
The inventors have sought to optimize the way in which the reference intensity is taken into account, so as to further limit the fluctuations affecting the latter. They have taken advantage of the fact that, contrary to the measurement intensity, certain fluctuations of which are due to non-modellable variations in concentrations of the analyzed gaseous species, the variation in the reference intensity may be modelled using a predetermined parametric model. If θ is a vector containing the parameters of the model, determining θ allows a denoised estimation of the reference intensity Iref to be obtained.
A first embodiment of the present disclosure is schematically shown in
Step 100: selecting the model.
In this step, a parametric model is selected. In this example, the variation in the reference intensity Iref is based on a linear model of type Iref(k)=ak+b(3), where
In this step, the measurement intensity I(k) and the reference intensity Iref(k) are acquired at each measurement time k.
Step 120: reiterating step 110 or stopping the iteration.
Step 110 is reiterated until a number Nk of iterations has been reached. In this example, Nk=K=2.6×107 iterations, this meaning that a single vector of parameters θ is formed for all of the measurements carried out. Alternatively, the vector of parameters θ of the model may be renewed more often, for example every Nk=100000 iterations. The decrease in the time range Δk employed to establish the vector of parameters θ may allow the uncertainty in the model with respect to the measurements to be decreased, as described below.
Step 130: estimating the vector of parameters {circumflex over (θ)}.
This step is illustrated in
Φ is a matrix of (Nk, 2) size, with, in this example, Nk=K. The first column is formed by all of the time increments k in increasing order, the second column being formed from 1's.
Since the considered model is linear, it may be written in the form of the following matrix expression:
Y
ref=Φ·θ+ε (4), where:
The vector of parameters {circumflex over (θ)} may be estimated by minimizing the quadratic norm of the error vector ε, this being expressible by the following expression:
This estimation is carried out in substep 135.
Step 140: Correcting the reference intensity.
In this step, the model is taken into account to correct the reference intensity Iref(k), so as to obtain a corrected reference intensity I′ref(k). The correction consists in replacing the reference intensity with an application of the model according to the expression:
I′
ref(k)=ak+b (6), where:
a and b are the terms of the vector {circumflex over (θ)}.
From a matrix point of view, this amounts to forming a corrected reference vector Y′ref of (Nk, 1) size, each term of which is I′ref(k), with Y′ref=Φ{circumflex over (θ)}(6′).
Step 150: Estimating the amount cx(k) of the gaseous species analyzed.
This estimation is carried out by estimating, from I′ref(k), the intensity Ix(k) reaching the measurement photodetector 20 in the absence of gas, in the absorption spectral band Δx. The computation of the ratio
allows the amount cx(k) to be obtained as indicated above.
Complementarily or alternatively, the precision of the model may be improved by taking into account a weighting factor, or forgetting factor), associated with each time increment k, with λ∈]0,1], the forgetting factor preferably being comprised between 0 and 1. The forgetting factor in question allows a weighting matrix W, of (Nk, Nk) size, to be formed such that:
The weighting matrix allows an error vector εW such that εW=ε·W to be formed. The vector of parameters {circumflex over (θ)} minimizing the error vector εw is such that:
{circumflex over (θ)}=(ΦTWTWΦ)−1ΦTWTWYref (7)
When λ=1, equation (7) is equivalent to equation (5).
One drawback of the method described with regard to steps 100 to 150, with or without application of a weighting matrix, is that it is a question of a method applied a posteriori, after the observation vector Yref has been obtained. This requires a high number of measurements to have been taken before the corrected reference intensities may be obtained. The correction of the reference intensity is therefore not carried out in real time. Another drawback is that it is necessary to perform complex matrix computations (such as those of expressions (5) or (7)) involving matrix inversions. An embodiment not having these drawbacks is illustrated in
Step 200: Selecting the model.
This step is similar to step 100 described above. In this example, the variation in the reference intensity Iref is based on a linear model of the following type
I
ref(k)=akk+bk. (8), where
With each time increment k, i.e., with each measurement time, is associated a vector of parameters θk.
Step 210: acquiring a measurement.
In this step, the measurement intensity I(k) and the reference intensity Iref(k) are acquired at a measurement time k.
Step 220: Updating the vector of parameters θk corresponding to the measurement time k.
Unlike the method described with reference to steps 100 to 150, the vector of parameters θk is updated at each measurement time k, using a so-called recursive approach, employing the following expression:
{circumflex over (θ)}k={circumflex over (θ)}k-1+Pkρk[yk−ρkT{circumflex over (θ)}k-1] (9)
where:
Each vector ρk is such that its transpose ρkT corresponds to the kth row of the observation matrix Φ described above with regard to step 130;
In the first iteration (k=1), an initial matrix P0, with for example
is employed.
If Φk is the observation matrix at the time k, of [k, 2] size,
Pk=(ΦkT·Φk)−1. Pk corresponds to the inverse of the autocorrelation matrix of the observation matrix Φk.
Pk and ρk are quantities that are updated at each measurement time k and that allow the estimation {circumflex over (θ)}k of the vector of parameters of the model at the time.
This embodiment is particularly advantageous because it allows the matrix Pk to be expressed as a function of Pk-1, the expression of this matrix in a preceding iteration k−1, using equation (10). This does not require the matrix inversion that the preceding embodiment requires (see equation (5)).
In the first iteration, expression (9) is implemented considering an arbitrary initial vector of parameters {circumflex over (θ)}0, for example
designating an initial measurement time.
Step 220 is illustrated in
The model parameterized in step 220 is taken into account to correct the reference intensity Iref(k), so as to obtain a corrected reference intensity I′ref(k). The correction consists in replacing the reference intensity with an application of the model according to the expression:
I′
ref(k)=ρk{circumflex over (θ)}k=akk+bk. (11).
Step 240: Estimating the amount cx(k) of the gaseous species analyzed.
This estimation is carried out on the basis of I′ref(k) and of I(k), analogously to step 150 described above.
Step 250: reiterating steps 210 to 240 or stopping the iteration. Steps 210 to 240 are reiterated until a number of iterations Nk has been reached. In this example, Nk=K=2.6×107 iterations.
This embodiment is said to be recursive because it uses quantities Pk-1 and {circumflex over (θ)}k-1 obtained from the preceding iteration or, in the first iteration, initialized quantities. The vector of parameters {circumflex over (θ)}k is updated on each iteration, this allowing, in each iteration, it to be taken into account to correct the reference intensity Iref(k) and to obtain the concentration cx(k) of the sought-after gaseous species.
Contrary to the embodiment described with regard to steps 100 to 150, it is not necessary to wait for a number Nk of iterations to have been carried out before estimating the parameters of the model. This allows the reference intensity to be corrected in real time, and therefore the sought-after amount of the gaseous species to be determined in real time. In addition, the updating formulae described with regard to step 220 are simple to implement and consume little memory.
According to one variant of this embodiment, a weighting term, or forgetting factor λ, may be provided so as to weight to what extent the preceding iteration is taken into account. In this variant, expression (10) is replaced by:
λ is a weighting term with λ∈]0,1]. For example λ=0.99.
When λ=1, equation (12) is equivalent to equation (10).
The curve comp2 of
It may be seen that the intensity thus compensated for exhibits no significant fluctuations, the residual fluctuations corresponding to the series of measurements described with reference to
The present disclosure will possibly be implemented on processors for processing data measured by gas sensors, for applications in environmental monitoring, but also in applications related to the measurement of gas in industrial environments or in medical applications.
Number | Date | Country | Kind |
---|---|---|---|
1755429 | Jun 2017 | FR | national |
This application is a national phase entry under 35 U.S.C. § 371 of International Patent Application PCT/EP2018/065907, filed Jun. 14, 2018, designating the United States of America and published in French as International Patent Publication WO 2018/229239 A1 on Dec. 20, 2018, which claims the benefit under Article 8 of the Patent Cooperation Treaty to French Patent Application Serial No. 1755429, filed Jun. 15, 2017.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2018/065907 | 6/14/2018 | WO | 00 |