Method for estimating a quantity of a gaseous species
11041801 · 2021-06-22
Assignee
Inventors
Cpc classification
G01N21/314
PHYSICS
International classification
G01N21/27
PHYSICS
Abstract
A method for measuring a quantity of a gaseous species—present in a gas and able to absorb light in an absorption spectral band—comprises: arranging the gas between a light source and a measurement photodetector, the light source being suitable for emitting an incident light wave propagating through the gas to the measurement photodetector, which is suitable for detecting a light wave transmitted by the gas, in the absorption spectral band; illuminating the gas by the light source; measuring, by the measurement photodetector, a measurement intensity of the light wave transmitted by the gas, in the absorption spectral band; measuring, by a reference photodetector, a reference intensity of a reference light wave being emitted by the light source. The method comprises a correction of the reference intensity by consideration of a parametric model, the parameters of the model being determined according to reference intensity measurements performed at various times.
Claims
1. A method for measuring an amount of a gaseous species within a gas, the gaseous species absorbing light in an absorption spectral band, the method comprising: a) placing the gas between a light source and a measurement photodetector, the light source being configured to emit an incident light wave, the incident light wave propagating through the gas toward the measurement photodetector, the measurement photodetector being configured to detect a light wave transmitted by the gas, in the absorption spectral band; b) illuminating the gas with the light source; c) measuring, with the measurement photodetector a measurement intensity of the light wave transmitted by the gas, in the absorption spectral band; d) measuring, with a reference photodetector, a reference intensity, of a reference light wave, the reference light wave being emitted by the light source in a reference spectral band; b) to d) being implemented at a plurality of measurement times, the method further comprising: e) correcting the reference intensity detected at the various measurement times; and f) estimating an amount of the gaseous species, at the various measurement times, from the reference intensity corrected in and from the measurement intensity resulting from c); wherein e) comprises: ei) taking into account a parametric model, defined using parameters, the parametric model modelling a temporal variation in the reference intensity detected at the various measurement times, the temporal variation expressing a decrease in the reference intensity; eii) estimating the parameters of the model using the reference intensities measured at the various measurement times; and eiii) estimating a corrected reference intensity at each measurement time depending on the estimated parameters of the model.
2. The method of claim 1, wherein, in ei), the model taken into account is a linear model, eii) forming a linear regression.
3. The method of claim 1, wherein b) to d) are carried out at various measurement times forming a time range, and wherein, following these measurement times: in ei), the model is taken into account for the time range; in eii), the parameters of the model are estimated using reference intensities measured during the time range; and in eiii), the corrected reference intensity is estimated for the measurement times of the time range.
4. The method of claim 3, wherein, in eii), each measurement time of the time range is assigned a weighting term that is strictly positive and lower than or equal to 1.
5. The method of claim 1, wherein eii) and eiii) are implemented for 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, from initialized parameters.
6. The method of claim 5, wherein e) and f) are implemented at each measurement time.
7. The method of claim 5, wherein eii) comprises taking into account a weighting term that is strictly positive and lower than or equal to 1 to weight to what extent the preceding iteration is taken into account.
8. The method of claim 1, wherein f) comprises the following substeps: fi) from the corrected reference intensity, at each measurement time, estimating an intensity of the light wave emitted by the light source, in the absorption spectral band, at the measurement time; fii) comparing the intensity thus estimated with the measurement intensity resulting from c), at the measurement time; and fiii) estimating the amount of the gaseous species depending on the comparison carried out in fii).
9. A device for determining an amount of a gaseous species in a gas, the device comprising: a light source configured to emit an incident light wave that propagates toward the gas, the incident light wave lying in an absorption spectral band of the gaseous species; a measurement photodetector configured to detect a light wave transmitted by the gas, at various measurement times, and to measure a measurement intensity thereof; a reference photodetector configured to measure a reference intensity; of a reference light wave emitted by the light source, at the various measurement times; a first processor, for computing a corrected reference intensity at the various measurement times, from the reference intensity measured by the reference photodetector the measurement times, the first processor being configured to implement step e) of the method according to claim 1; and a second processor for estimating the amount of the gaseous species, at each measurement time, depending on the corrected reference intensity and the measurement intensity, the second processor being configured to implement step f) of the method according to claim 1.
10. The device of claim 9, wherein the first processor and the second processor form a single processor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION
(8)
(9) The gas G contains a gaseous species G.sub.x an amount c.sub.x(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 Δ.sub.x.
(10) 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 Δ.sub.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 Δ.sub.x of the gaseous species.
(11) 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.
(12) 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 c.sub.x(k) at the measurement time, according to the Beer-Lambert equation:
(13)
where: μ(c.sub.x(k)) is an attenuation coefficient dependent on the amount c.sub.x(k) at the time k; l is the thickness of gas passed through by the light wave in the chamber 10; and I.sub.x(k) is the intensity of the incident light wave, at the time k, which corresponds to the intensity of the light wave, in the absorption spectral band Δ.sub.x, reaching the measurement photodetector 20 in the absence of absorbent gas in the chamber.
(14) The comparison between I(k) and I.sub.x(k), taking the form of a ratio
(15)
corresponds to an attenuation att(k) generated by the gaseous species in question at the time k.
(16) During each pulse of the light source 11, it is thus possible to determine μ(c.sub.x(k)), this allowing c.sub.x(k) to be estimated given that the relationship between c.sub.x(k) and μ(c.sub.x(k)) is known.
(17) Expression (1) assumes control of the intensity I.sub.x(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 20.sub.ref, arranged such that it detects a light wave, called the reference light wave 12.sub.ref, representative of the incident light wave 12 emitted by the light source 11. The reference light wave 12.sub.ref reaches the reference photodetector 20.sub.ref without interacting with the gas G, or without significantly interacting with the latter. The intensity of the reference light wave 12.sub.ref, detected by the reference photodetector 20.sub.ref, at the measurement time k, is referred to by the term reference intensity I.sub.ref(k). The reference light wave lies in a reference spectral band Δ.sub.ref.
(18) In this example, the reference photodetector 20.sub.ref 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 18.sub.ref. The reference optical filter 18.sub.ref defines the reference spectral band Δ.sub.ref corresponding to a range of wavelengths not absorbed by the gaseous species in question. The reference spectral band Δ.sub.ref is, for example, centered on the wavelength 3.91 μm.
(19) Various configurations, known from the prior art, may also be envisioned, in particular, variants in which: the reference photodetector 20.sub.ref is placed in a chamber isolated from the gas to be analyzed; in this case, the reference spectral band Δ.sub.ref may be none other than the absorption spectral band Δ.sub.x; and the reference photodetector 20.sub.ref is none other than the measurement photodetector 20, a filter-adjusting means allowing the photodetector to be alternately associated with the measurement filter 18 and with the reference optical filter 18.sub.ref. It may, for example, be a question of a filter wheel. When the reference photodetector is none other than the measurement photodetector, the reference spectral band Δ.sub.ref is preferably separate from the absorption spectral band Δ.sub.x.
(20) In prior-art devices, measurement of I.sub.ref(k) allows expression (1) to be used with I.sub.x(k) estimated from I.sub.ref(k), this allowing μ(c.sub.x(k)) to be determined, then c.sub.x(k) to be estimated.
(21) The reference photodetector 20.sub.ref may be affected by a large amount of read noise, impacting the precision of the determination of the reference intensity I.sub.ref(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 c.sub.x(k) of the gaseous species. The present disclosure addresses this problem, by correcting the reference intensity I.sub.ref(k) measured at each measurement time. More precisely, the correction consists in replacing the reference intensity I.sub.ref(k), measured at each measurement time, with an estimation I′.sub.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′.sub.ref(k) corresponds to the corrected reference intensity.
(22) 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 I.sub.ref(k) of the reference light wave 12.sub.ref, measured by the reference photodetector 20.sub.ref at each measurement time k, and to implement a method in order to obtain a corrected reference intensity I′.sub.ref(k). The correcting method is described below, with reference to
(23) 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′.sub.ref(k). The second processor is programmed to determine, depending on these intensities, the amount of the gaseous species measured at each measurement time.
(24) Devices such as that shown in
(25)
(26)
(27) 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,
(28)
I.sub.ref,f being the reference intensity after application of a median filter to five successive samples.
(29) From the curves shown in
(30) 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 I.sub.ref to be obtained.
(31) A first embodiment of the present disclosure is schematically shown in
(32) Step 100: selecting the model.
(33) In this step, a parametric model is selected. In this example, the variation in the reference intensity I.sub.ref is based on a linear model of type I.sub.ref(k)=ak+b(3), where k corresponds to a time increment; and a and b are real numbers forming the vector of parameters θ.
Step 110: acquiring the measurements.
(34) In this step, the measurement intensity I(k) and the reference intensity I.sub.ref(k) are acquired at each measurement time k.
(35) Step 120: reiterating step 110 or stopping the iteration.
(36) Step 110 is reiterated until a number N.sub.k of iterations has been reached. In this example, N.sub.k=K=2.6×10.sup.7 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 N.sub.k=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.
(37) Step 130: estimating the vector of parameters {circumflex over (θ)}.
(38) This step is illustrated in
(39)
Φ is a matrix of (N.sub.k, 2) size, with, in this example, N.sub.k=K. The first column is formed by all of the time increments k in increasing order, the second column being formed from 1's.
(40) Since the considered model is linear, it may be written in the form of the following matrix expression:
Y.sub.ref=Φ.Math.θ+ε (4), where: θ is the vector of parameters, of (2, 1) size, with
(41)
(42) 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:
(43)
(44) This estimation is carried out in substep 135.
(45) Step 140: Correcting the reference intensity.
(46) In this step, the model is taken into account to correct the reference intensity I.sub.ref(k), so as to obtain a corrected reference intensity I′.sub.ref(k). The correction consists in replacing the reference intensity with an application of the model according to the expression:
I′.sub.ref(k)=ak+b (6), where:
a and b are the terms of the vector {circumflex over (θ)}.
(47) From a matrix point of view, this amounts to forming a corrected reference vector Y′.sub.ref of (N.sub.k, 1) size, each term of which is I′.sub.ref(k), with Y′.sub.ref=Φ{circumflex over (θ)}(6′).
(48) Step 150: Estimating the amount c.sub.x(k) of the gaseous species analyzed.
(49) This estimation is carried out by estimating, from I′.sub.ref(k), the intensity I.sub.x(k) reaching the measurement photodetector 20 in the absence of gas, in the absorption spectral band Δ.sub.x. The computation of the ratio
(50)
allows the amount c.sub.x(k) to be obtained as indicated above.
(51)
(52) 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 (N.sub.k, N.sub.k) size, to be formed such that:
(53)
(54) The weighting matrix allows an error vector ε.sub.W such that ε.sub.W=ε.Math.W to be formed. The vector of parameters {circumflex over (θ)} minimizing the error vector ε.sub.w is such that:
{circumflex over (θ)}=(Φ.sup.TW.sup.TWΦ).sup.−1Φ.sup.TW.sup.TWY.sub.ref (7)
(55) When λ=1, equation (7) is equivalent to equation (5).
(56) 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 Y.sub.ref 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
(57) Step 200: Selecting the model.
(58) This step is similar to step 100 described above. In this example, the variation in the reference intensity I.sub.ref is based on a linear model of the following type
I.sub.ref(k)=a.sub.kk+b.sub.k. (8), where k corresponds to a time increment; and a.sub.k and b.sub.k are real numbers forming the vector of parameters
(59)
(60) With each time increment k, i.e., with each measurement time, is associated a vector of parameters θ.sub.k.
(61) Step 210: acquiring a measurement.
(62) In this step, the measurement intensity I(k) and the reference intensity I.sub.ref(k) are acquired at a measurement time k.
(63) Step 220: Updating the vector of parameters θ.sub.k corresponding to the measurement time k.
(64) Unlike the method described with reference to steps 100 to 150, the vector of parameters θ.sub.k is updated at each measurement time k, using a so-called recursive approach, employing the following expression:
{circumflex over (θ)}.sub.k={circumflex over (θ)}.sub.k-1+P.sub.kρ.sub.k[y.sub.k−ρ.sub.k.sup.T{circumflex over (θ)}.sub.k-1] (9)
where: ρ.sub.k is a vector of [2, 1] size with
(65)
Each vector ρ.sub.k is such that its transpose ρ.sub.k.sup.T corresponds to the k.sup.th row of the observation matrix Φ described above with regard to step 130; y.sub.k is a scalar corresponding to the measurement I.sub.ref(k); and.square-solid. P.sub.k is a matrix of (2,2) size updated at each time increment k according to the expression:
(66)
In the first iteration (k=1), an initial matrix P.sub.0, with for example
(67)
is employed.
(68) If Φ.sub.k is the observation matrix at the time k, of [k, 2] size,
(69)
P.sub.k=(Φ.sub.k.sup.T.Math.Φ.sub.k).sup.−1. P.sub.k corresponds to the inverse of the autocorrelation matrix of the observation matrix Φ.sub.k.
(70) P.sub.k and ρ.sub.k are quantities that are updated at each measurement time k and that allow the estimation {circumflex over (θ)}.sub.k of the vector of parameters of the model at the time.
(71) This embodiment is particularly advantageous because it allows the matrix P.sub.k to be expressed as a function of P.sub.k-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)).
(72) In the first iteration, expression (9) is implemented considering an arbitrary initial vector of parameters {circumflex over (θ)}.sub.0, for example
(73)
designating an initial measurement time.
(74) Step 220 is illustrated in
Step 230: Correcting the reference intensity.
(75) The model parameterized in step 220 is taken into account to correct the reference intensity I.sub.ref(k), so as to obtain a corrected reference intensity I′.sub.ref(k). The correction consists in replacing the reference intensity with an application of the model according to the expression:
I′.sub.ref(k)=ρ.sub.k{circumflex over (θ)}.sub.k=a.sub.kk+b.sub.k. (11).
Step 240: Estimating the amount c.sub.x(k) of the gaseous species analyzed.
(76) This estimation is carried out on the basis of I′.sub.ref(k) and of I(k), analogously to step 150 described above.
(77) Step 250: reiterating steps 210 to 240 or stopping the iteration. Steps 210 to 240 are reiterated until a number of iterations N.sub.k has been reached. In this example, N.sub.k=K=2.6×10.sup.7 iterations.
(78) This embodiment is said to be recursive because it uses quantities P.sub.k-1 and {circumflex over (θ)}.sub.k-1 obtained from the preceding iteration or, in the first iteration, initialized quantities. The vector of parameters {circumflex over (θ)}.sub.k is updated on each iteration, this allowing, in each iteration, it to be taken into account to correct the reference intensity I.sub.ref(k) and to obtain the concentration c.sub.x(k) of the sought-after gaseous species.
(79) Contrary to the embodiment described with regard to steps 100 to 150, it is not necessary to wait for a number N.sub.k 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.
(80) 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:
(81)
λ is a weighting term with λ∈]0,1]. For example λ=0.99.
(82) When λ=1, equation (12) is equivalent to equation (10).
(83)
(84) The curve comp2 of
(85)
(86) 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
(87) 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.