The present invention relates to a gas sensor device comprising a spectroscopic sensing unit such as an, e.g., non-dispersive infrared, NDIR, sensing unit. The gas sensor device is configured to output calibrated values, which are measures of a concentration of a gas component measured by the spectroscopic sensing unit, and are determined from measurement values obtained from the spectroscopic sensing unit and a baseline calibration parameter retrieved from the memory. The present invention also relates to a method for updating the baseline calibration parameter.
Gas sensors are devices used to measure the presence or concentration of gases in an area and play an important role in many applications. Spectroscopic sensors are widely used for gas sensors, which rely on the Beer-Lambert law. A non-dispersive infrared, NDIR, sensor is a commonly used type of a spectroscopic sensor in which a nondispersive element is used to filter out the broadband light into a narrow spectrum suitable to sense a specific gas. However, spectroscopic sensors have been recognized to be sensitive to variations of ambient temperature, atmospheric pressure, humidity and some other environmental factors. Moreover, aging of the sensor components also results in inaccuracy of the sensors. Due to this, regular calibration is needed for long-term accuracy of the sensors.
Today, state of the art of infrared gas sensor self-calibration is the well-established ABC technology (Automatic Baseline Correction) where the sensor is calibrated to a fixed value that is assumed to be the fresh air gas concentration. However, this method has proven not to provide a sufficiently high accuracy when a high accuracy is requested. Thus, designing more robust and smart self-calibration algorithms, which can be widely applied in different environments, becomes more and more important.
An object of the present invention is to provide a method for automatic calibration of measurement values from a spectroscopic sensing unit, such as an, e.g., non-dispersive infrared, NDIR, sensing unit, which provides a more reliable calibration than the methods according to the prior art. Another object of the present invention is to provide a method for automatic calibration of measurement values from a spectroscopic sensing unit, which takes care of aging of spectroscopic sensing units in a better way than the methods according to the prior art.
Another object of the present invention is to provide a gas sensor device comprising a spectroscopic sensing unit such as an, e.g., non-dispersive infrared, NDIR, sensing unit, which provides a more reliable calibration than the methods according to the prior art.
Another object of the present invention is to provide a gas sensor device comprising a spectroscopic sensing unit such as an, e.g., non-dispersive infrared, NDIR, sensing unit, which takes care of aging of sensing units in a better way than the methods according to the prior art.
Another object of the present invention is to provide a computer program for automatic calibration of measurement values from a spectroscopic sensing unit such as an, e.g., non-dispersive infrared, NDIR, gas sensing unit, which provides a more reliable calibration than the methods according to the prior art.
Another object of the present invention is to provide a computer program for automatic calibration of measurement values from a spectroscopic sensing unit such as an, e.g., non-dispersive infrared, NDIR, gas sensing unit, which takes care of aging of spectroscopic gas sensing units in a better way than the methods according to the prior art.
At least one of these objects is fulfilled with a method and a computer program according to the independent claims.
Further advantages are achieved with the features of the dependent claims.
According to a first aspect of the invention a gas sensor device is provided which comprises a spectroscopic sensing unit, a memory and a control unit, wherein the control unit is configured to output calibrated values, which are measures of a gas concentration measured by the spectroscopic sensing unit, wherein the calibrated values are determined from measurement values obtained from the spectroscopic sensing unit and a baseline calibration parameter retrieved from the memory. The gas sensor device is characterized in that the control unit is configured to update the baseline calibration parameter by identifying the minimum measurement value obtained during a predetermined first time period, obtaining a time for the first time period, obtaining a model value for the obtained time, determining an updated baseline calibration parameter based on the minimum measurement value and the model value, and updating the baseline calibration parameter stored in the memory.
The measurement values may be electrical signals such as currents from an intensity sensor (not shown) which intensity sensor measures the intensity of light that has been transmitted through the gas component to be measured.
The measurement values may correspond to intensity signals. The measurement values may have a non-linear relationship with the light intensity.
The measurement values may be converted in the control unit to calibrated values, which are measures of a gas concentration measured by the spectroscopic sensing unit. The calibrated values may be concentration values of the gas component to be measured.
The calibrated values may be determined as a function of the measurement values and the baseline calibration parameter. By setting the function of the measurement value to be equal to the model value and using the minimum measurement value the equation may be solved to determine an updated baseline calibration parameter.
In gas sensor devices according to the prior art the baseline calibration parameter has been a fixed value. The calibration of the gas sensor devices according to the prior art have usually been performed with predetermined intervals, such as a predetermined number of times per year. In case the gas component to be measured is CO2, it has been assumed that the carbon dioxide concentration varies due to different human activities such as traffic with cars having internal combustion engines and industrial activities such as fossil fuel power plants. It has also been assumed that the carbon dioxide concentration sometimes reach the background level such as when the traffic is at a minimum and the power plants produce no power and/or when a strong wind is blowing. It has been assumed in the prior art gas sensors that the background carbon dioxide concentration has a fixed value of, e.g., 400 ppm. At every calibration occasion the gas sensor device according to the prior art has retrieved the lowest measurement value during a preceding time period such as, e.g., the previous week and adjusted the baseline calibration parameter so that the gas sensor device outputs a correct carbon dioxide concentration. With the gas sensor device according to this application the baseline calibration parameter follows a predicted curve.
The gas sensor device may be configured such that the calibrated values corresponds to concentrations of a gas component such as, e.g., carbon dioxide. The calibrated values may be determined as a function of the measurement values and the baseline calibration parameter. The model value corresponds to a model gas concentration and may be obtained in different ways as described below. The conversion function may incorporate the Beer-Lambert law, and may also take into account environmental factors. The conversion function can be described as follows
where M is the carbon dioxide concentration, E denotes the measurement value from the spectroscopic sensing unit, F denotes environmental factors, and zero denotes a baseline calibration parameter. The environmental factors may take into account factors such as the ambient temperature, the atmospheric pressure and the humidity and may be fixed or omitted in case the ambient temperature, the atmospheric pressure and the humidity are constant.
The control unit may be configured to determine the carbon dioxide concentration M using the conversion function.
The conversion function may be an exponential function due to the Beer-Lambert relation on which the measurement value is dependent.
The control unit may be configured to calculate an updated baseline calibration parameter by setting M equal to the model value E equal to the minimum measurement value. The environmental factors F are set according to separate measurements of said factors. To obtain an updated baseline calibration parameter the equation is then solved. There are many different ways of solving such an equation known from the prior art sensor devices. However, in the prior art sensor devices it was assumed that the background carbon dioxide concentration had a fixed value of, e.g., 400 ppm.
A set of model values for different times may be stored in the memory together with their associated times. The model value may be obtained by retrieving from the memory the model value associated with the obtained time. The model values have been calculated in advance using a mathematical model for a plurality of different times. The mathematical model will be described in more detail below. The number of different model values should be adapted to the desired calibration interval and to the expected lifetime of the gas sensor device.
As an alternative to having a plurality of model values pre-stored in the memory of the gas sensor device the model values may be obtained by retrieving a set of model coefficients from the memory, calculating a model value, with a mathematical model being a function of time, using the obtained time and using the retrieved model coefficients in the mathematical model. If storage space in the memory is limited, this may be preferable.
The mathematical model may be hard wired in the control unit. This would provide a shorter time for calculating the model values.
The mathematical model may be a quadratic polynomial with a periodic term. Such a polynomial would enable a good fit to the historical CO2 values that have been measured at different geographical positions if CO2 is the gas component to be measured. The periodic term may comprise a sinus term and may comprise a sinus term within the sinus function to take into account that the CO2 level is falling more rapidly during the summer than it is rising in the winter.
A plurality of sets of coefficients may be stored in the memory, wherein each set of coefficients is related to a geographical position, and wherein the control unit retrieves a set of coefficients, to be used for calculating the model measurement value, based on information on the geographical position of the gas sensor device. In this way, the mathematical model may be adapted to different geographical positions. As an example, the coefficients should be different when the gas sensor device is located with large forests surrounding it, than when the gas sensor device is located at a small island in the ocean. Another important factor is whether the gas sensor is located on the southern hemisphere or the northern hemisphere. The geographical position of the gas sensor device may be set by an operator.
When pre-calculated model values are stored in the gas sensor device a plurality of sets of model values for different times may be stored in the memory together with their associated times, wherein each set of model values is related to a geographical position, and wherein the control unit retrieves a model value based also on information on the geographical position of the gas sensor device. The geographical position of the gas sensor device may be set by an operator.
The gas sensor device may comprise a positioning device configured to determine the geographical position of the gas sensor device, wherein the control unit is configured to retrieve a geographical position from the positioning device and to retrieve the set of calibration coefficients corresponding to the retrieved position. The positioning device may be a satellite-positioning device such as, e.g., a GPS positioning device. By comprising a positioning device, the gas sensor device may automatically determine its own position.
The gas sensor device may comprise an internal clock. In this way, the time for the above-described first time period may be determined. The gas sensor device may alternatively be configured to obtain the time for the above-described first time period from an external clock. The external clock may be of many different sorts. If the gas sensor device comprises a positioning device such as a GPS positioning device, time may be obtained from the positioning device. As another alternative, the external clock may be a clock device that transmits the time by radio signals. The clock in such a clock device may be an atomic clock. The time may also be obtained from a cellular network. In cellular networks, a time is transmitted from base stations. The above are only a few examples on external clocks from which the time may be obtained.
It is not necessary to have model coefficients of model values stored in the memory. As an alternative, the control unit is configured to retrieve from the memory the measurement values from a predetermined second time period, and to set the calibration coefficients so that the mathematical model fits the measurement values. In this way, the control unit presumes that the measurements that have been made during the second time period after installation at a location are correct. The coefficients of the mathematical model is set to fit the measurements values. The mathematical model of course have to be stored in the gas sensor device.
Above, the model values have been described as values. However, each model value may be associated with an uncertainty.
The uncertainty associated with each model value may be an uncertainty function, which is based on an earlier set of measurement values. In other words, a set of measurement values may be used to determine the uncertainty function for a model value.
The uncertainty may alternatively be expressed as the standard deviation from the model value or any other statistical measure that can be used to describe the uncertainty.
The uncertainty function may be based on measurement values measured by the sensor device itself and/or by at least one other gas sensor device. The measurement values may have been obtained during one or several previous years.
According to a second aspect of the present invention a computer implemented method is provided for updating the baseline calibration parameter stored in a memory and used to determine calibrated values, which are measures of a gas concentration measured by an spectroscopic sensing unit, wherein the calibrated values are determined from measurement values obtained from the spectroscopic sensing unit and the baseline calibration parameter. The computer implemented method is characterized in that the method comprises the steps of obtaining measurement values from the spectroscopic sensing unit, identifying the minimum measurement value obtained during a predetermined first time period, obtaining a time for the first time period, obtaining a model value for the obtained time, determining an updated baseline calibration parameter based on the minimum measurement value and the model value, and updating the baseline calibration parameter stored in the memory. The method according to the second aspect may be performed in a so-called computer cloud.
The model values may be obtained by retrieving a set of model coefficients from the memory, calculating a model value, with a mathematical model being a function of time, using the obtained time and using the retrieved model coefficients in the mathematical model.
A plurality of sets of coefficients may be stored in the memory, wherein each set of coefficients is related to a geographical position. The method may comprise the steps of obtaining information on the geographical position related to the measurement values, and retrieving a set of coefficients, to be used for calculating the model measurement value, based also on the obtained information on the geographical position related to the measurement values. The information on the geographical position related to the measurement values may be obtained from the gas sensor device or from the memory. In the latter case, the measurement values have to be related to an identification code identifying the gas sensor device. The geographical position may be stored in a look up table together with the identification code.
A set of model values for different times may be stored in the memory together with their associated times, and wherein the model value is obtained by retrieving the model value associated with the obtained time from the memory. The model values have been calculated in advance using a mathematical model for a plurality of different times. The mathematical model will be described in more detail below. The number of different model values should be adapted to the desired calibration interval and to the expected lifetime of the gas sensor device.
A plurality of sets of model values for different times may be stored in the memory together with their associated times, wherein each set of model values is related to a geographical position. The method may comprise the steps of obtaining information on the geographical position related to the measurement values, and retrieving a model value, to be used for calculating the model measurement value, based also on the obtained information on the geographical position related to the measurement values. The information on the geographical position related to the measurement values may be obtained from the gas sensor device or from the memory. In the latter case, the measurement values have to be related to an identification code identifying the gas sensor device. The geographical position may be stored in a look up table together with the identification code.
As described above for the gas sensor device according to the first aspect of the present invention each model value may be associated with an uncertainty.
The uncertainty associated with each model value may be an uncertainty function, which is based on an earlier set of measurement values. In other words, a set of measurement values may be used to determine the uncertainty function for a model value.
The uncertainty may alternatively be expressed as the standard deviation from the model value or any other statistical measure that can be used to describe the uncertainty.
The uncertainty function may be based on measurement values measured by the sensor device itself and/or by at least one other gas sensor device. The measurement values may have been obtained during one or several previous years.
According to a third aspect of the present invention a computer program for updating the baseline calibration parameter stored in a memory and used to determine calibrated values, which are measures of a gas concentration measured by an spectroscopic sensing unit, wherein the calibrated values are determined from measurement values obtained from the spectroscopic sensing unit and the baseline calibration parameter, comprising instructions which, when executed by a processor in a processing unit causes the processing unit to control the processing unit to carry out the method according to the second aspect.
The spectroscopic sensing unit may be a non-dispersive infrared, NDIR, sensing unit, which is a commonly used type of spectroscopic sensing unit.
In the following detailed description of the invention, similar features in the different figures will be denoted with the same reference numeral.
The control unit 4 is configured to output calibrated values, which are measures of a concentration of a gas component measured by the spectroscopic sensing unit 2. The gas sensor device is primarily intended for measurements of the carbon dioxide concentration in the atmosphere. To be able to output the calibrated values the gas sensor device 1 comprises a communication interface 6, which is configured to communicate wirelessly with a remote communication device (not shown) such as a base station (not shown) or any other form of transmitter or transceiver. As an alternative, the communication device may be configured for communication by wire. The calibrated values are determined from measurement values obtained from the spectroscopic sensing unit 2 and a baseline calibration parameter retrieved from the memory. Also shown in
The measurement values may be intensity values of the light that penetrates the gas to be measured. The spectroscopic sensing unit 2 is preferably configured to measure the light intensity in a specific wavelength interval. The gas sensor may also be configured to transform the intensity value to a gas concentration. In this case, the measure of the gas concentration is the gas concentration. If the transformation from the light intensity to the gas concentration is known to the processing unit performing the method, it is possible to use the light intensity. If, however, the transformation from the light intensity to the gas concentration is not known to the processing unit the belief functions are preferably a probability as a function of the gas concentration.
In gas sensor devices according to the prior art the baseline calibration parameter has been a fixed value. The calibration of the gas sensor devices according to the prior art have usually been performed with predetermined intervals, such as a predetermined number of times per year. It has been assumed that the carbon dioxide concentration varies due to different human activities such as traffic with cars having internal combustion engines and industrial activities such as fossil fuel power plants. It has also been assumed that the carbon dioxide concentration sometimes reach the background level such as when the traffic is at a minimum and the power plants produce no power and/or when a strong wind is blowing. It has been assumed in the prior art gas sensors that the background carbon dioxide concentration has a fixed value of, e.g., 400 ppm. At every calibration occasion the gas sensor device according to the prior art has retrieved the lowest measurement value during a preceding time period such as, e.g., the previous week and adjusted the calibration parameter so that the gas sensor device outputs a correct carbon dioxide concentration. In the described method according to the prior art the minimum measurement value is converted to a carbon dioxide concentration using a conversion function which can be described as follows
where M is the carbon dioxide concentration, E denotes the measurement value from the spectroscopic sensing unit 2, F denotes an environmental factor, and zero denotes a baseline calibration parameter. The baseline calibration parameter has to be adjusted over time due to aging of the gas sensing unit 2. This has been done in the prior art by assuming that a lowest carbon dioxide concentration during a fixed time period is 400 ppm. The time period has typically been chosen to be one week.
The inventors have realised that this approximation is not satisfactory if high accuracy in the concentration measurement is desired or if the sensor is to be used for many years. The reason for this is that the carbon dioxide concentration in the atmosphere varies over the year and increases from year to year.
The mathematical model shown as the dotted line 12 is a quadratic polynomial with a periodic term. In the present example, the periodic term is a sinus term. The model used for the concentration shown in
where y is the concentration of CO2 and x is the time in days. In the model of
[3.145×102,2.056×10−3,9.939×10−8,2.852,2,495×10−5,5.024×10−1,9×10−1,1.145].
It is of course possible to use a simpler model if a lower accuracy is acceptable. Such a simpler model may be achieved by simply setting one or more of the coefficients c0-c7 to zero. It is preferable that the mathematical model is a quadratic polynomial with a periodic term as this reflects the increase of the CO2 concentration in the atmosphere. The period term should have a periodicity of 1 year. That means that the term k should be equal to 2π/365.25. The term c7 is a phase shift that is different on the northern hemisphere and the southern hemisphere.
The control unit 4 is configured to update the baseline calibration parameter by identifying the minimum measurement value 13 obtained during a predetermined first time period 14 shown in
It would also be possible to identify the minimum measurement value 12 before conversion and then convert the minimum measurement value 12. Usually, the predetermined first time period 14 is on the order of 1 week, but in
The gas sensor device 1 may comprise an internal clock 5, which provides the necessary time for the measurement values. Alternatively, the gas sensor device 1 may obtain the time from an external clock using the communication interface 6. In this case, the internal clock 5 may be omitted. The external clock may be of many different sorts. If the gas sensor device comprises a positioning device such as a GPS positioning device, time may be obtained from the positioning device. As another alternative, the external clock may be a clock device that transmits the time by radio signals. The clock in such a clock device may be an atomic clock. The time may also be obtained from a cellular network. In cellular networks, a time is transmitted from base stations. The above are only a few examples on an external clock from which a time may be obtained.
In case all measurement values are stored in the memory 3, they are stored with the corresponding time for each measurement value. In case only the minimum measurement value is stored in the memory, the corresponding time is also stored in the memory 3.
The gas sensor device 1 may be configured with a plurality of sets of model values for different times stored in the memory together with their associated times. Alternatively, the gas sensor device 1 may be configured with a plurality of sets of coefficients stored in the memory 3, wherein each set of coefficients is related to a geographical position. As described above the Keeling curve is different at different geographical positions. As mentioned above the cyclic variations due to seasons are phase shifted by about 6 months on the southern hemisphere in comparison with the northern hemisphere. The control unit may retrieve model values from one of the sets of model values, wherein the choice of set of model values is based on information on the geographical position of the gas sensor device. Correspondingly, for the case with a plurality of sets of coefficients stored in the memory 3, the control unit retrieves a set of coefficients, to be used for calculating the model measurement value, based on information on the geographical position of the gas sensor device 1. The position of the gas sensor device 1 may be input by an operator, which arranges the gas sensor device at a location where it is to measure the CO2 concentration. Alternatively, the gas sensor device 1 comprises a positioning device 7 configured to determine the geographical position of the gas sensor device, wherein the control unit is configured to retrieve a geographical position from the positioning device 7 and to retrieve the set of calibration coefficients corresponding to the retrieved position. The positioning device 7 may use a satellite positioning system such as GPS or GLONASS. By having such a positioning device, the control unit may obtain the position of the gas sensor device from the positioning device 7. With the obtained position, the control unit may retrieve the correct set of model coefficients from the memory 3. When the gas sensor device 1 comprises a positioning device 7 the control unit 4 may retrieve the time from the positioning device 7 as most satellite positioning systems are based on a very accurate clock.
The control unit 4 may additionally or alternatively be configured to retrieve from the memory the measurement values from a predetermined second time period 16 as shown in
It is not necessary to have the gas sensor device configured to do the conversion of the measurements values to gas concentration values with the use of measurement values and a baseline calibration parameter, and to update baseline calibration parameter in the gas sensor device. As an alternative the gas sensor device may send all measurement values to a remote computer, which may be a virtual computer, usually called a cloud computer.
The measurement values may be transmitted either one by one or in groups with a plurality of measurement values.
The above-described embodiments may be amended in many ways without departing from the scope of the invention, which is limited only by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2150764-5 | Jun 2021 | SE | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/SE2022/050574 | 6/10/2022 | WO |