The present invention relates to the calibration of those optical detection systems which are composed by a non-directional light source, a detector and a target (material under test) and, more particularly, to such systems configured to measure optical reflectance of the target.
Numerous systems are known for measuring the optical reflectance of a target such as a piece of material, e.g. plastic, metal, etc. Some systems are able to determine reflectance across a range of wavelengths. Determining the reflectance of a target is desirable in a number of varied applications, including, for example, food analysis, colour sensing, infrared sensing, biomedical sensors, spectral sensing, counterfeiting, make-up analysis, medicine analysis, process control, thickness measurement, high temperature thermometry, LED measurement, reactive analysis, and fluorescence analysis. Such a system will typically comprise a light emitter, a light detector (e.g. configured to scan across a range of wavelengths if a reflectance versus wavelength characteristic is required), and a chassis to which the emitter and detector are attached or housed within. In some cases the chassis may be a module that facilitates the installation of the system in some larger apparatus such that the system may be a standard component that is sold to manufacturers of different apparatus. In other cases, the chassis may be the apparatus itself, for example a smartphone within which the emitter and detector are integrated. In other cases, the chassis may be a combination of a module and the apparatus.
Current detection systems are likely to assume a linear relationship between target reflectance RS at a given wavelength λ and an (electrical) output signal of the detector across a range of wavelengths of interest. This can be represented as follows:
where:
In many cases however, due to the multiple paths of light hitting the target and the chassis hosting the optical system before arriving at the detector, the amount of light intensity collected by the detector will not be linear with the reflectance of the target. This will be more apparent for high reflectance targets. In other words, the intensity collected by the detector includes not only the rays that hit the target and then the detector (direct path), but also the light rays reflected by the target and the chassis hosting the optical system (non-linear part). This is illustrated schematically in
It will of course be clear from
In order to provide a fully characterized optical module (printed circuit board and optical components), this has to be paired to a specific housing. Furthermore, the processed spectra of reflectance are not only affected by a non-linear modulation of the amplitude, but also they differ from device to device having different or even the same chassis. Another issue with current systems is that the devices are likely calibrated only for a specific distance (h) from the target. This may be acceptable where h does not vary, e.g. where the chassis is a smartphone and the target is always pressed against the device screen, but will otherwise result in reduced flexibility.
According to a first aspect of the present invention there is provided a method of measuring the optical reflectance R of a target using a detection system comprising a light emitter and a light detector spaced apart from one another. The method comprises illuminating the target with the light emitter, detecting light reflected from the target using the light detector, wherein the light detector provides an electrical output signal SS indicative of the intensity of the detected light, and determining the optical reflectance R of the target according to
where RR is the spectral reflectance of a reference standard, SR is the detector electrical output signal with the reference standard in place, SH is the detector electrical output signal with no target in front of the light emitter and light detector, and M is a calibration factor.
The method may comprise determining a height z of the target above the detection system, using said height z to determine a height scaling factor η(z), and scaling the determined reflectance using the scaling factor according to
The reflectance R may be measured for one or more wavelengths λ, according to:
The electrical output signals may be integrated over a wavelength range, and said reflectances represent reflectances averaged over the wavelength range.
The step of determining the optical reflectance R of the target may comprise obtaining from a memory values for each of RR, SR, SH and M, and evaluating the equation
The step of determining the optical reflectance R of the target may comprise using said output signal SS as a look-up to a look-up table, the look-up table being populated with reflectance values evaluated using the equation
and values for each of RR, SR, SH and M.
The calibration factor M may be dependent upon a target material type. A memory may contain a table mapping target types to respective values of M.
According to a second aspect of the present invention there is provided a method of obtaining calibration data for a detection system configured to use the method of any one of the preceding claims to measure optical reflectance. The method comprises operating a calibration detection system comprising a light emitter and a light detector spaced apart from one another, for a plurality of targets of known optical reflectances R and obtaining the respective electrical output signals of the detector SR, and solving the following equation to determine a calibration factor M;
The calibration detection system may be the detection system for which calibration data is being obtained, or it may be a different system from the detection system for which calibration data is being obtained in which case the method comprises providing the calibration factor M to the detection system for which calibration data is being obtained.
The method may comprise performing the steps of operating and solving for one or more wavelengths, and determining a value of M(λ) for each wavelength.
The method may comprise repeating the steps of operating and solving, for a plurality of different heights z above the calibration detection system, to determine values of M and η(z) for respective heights.
According to a third aspect of the present invention there is provided an optical reflectance measurement system comprising a chassis and, mounted to the chassis, a light emitter and a light detector. The system further comprises a processor or processors configured to cause the light emitter to illuminate the target, cause the light detector to detect light reflected from the target, wherein the light detector provides an electrical output signal SS indicative of the intensity of the detected light, and determine the optical reflectance R of the target according to
where RR is the spectral reflectance of a reference standard, SR is the detector electrical output signal with the reference standard in place, SH is the detector electrical output signal with no target in front of the light emitter and light detector, and M is a calibration factor.
The system may comprise a proximity sensor for determining a height z of the target above the detection system, said processor or processors configured to use said height z to determine a height scaling factor η(z), and scale the determined reflectance using the scaling factor according to
The processor or processors may be configured to determine said reflectance R for one or more wavelengths λ, according to:
The system may comprise a memory, wherein, either, said processor or processors is configured to obtain from said memory, values for each of RR, SR, SH and M, and to evaluate the equation
or said processor or processors is configured to use said output signal SS as a look-up to a look-up table stored in said memory, the look-up table being populated with reflectance values evaluated using the equation
and values for each of RR, SR, SH and M.
The present invention may be applicable to, for example, proximity sensors, colour sensors, and miniaturized spectrometers. A particular use of the invention relates to the calculation of the target reflectance using and acquired spectral signal and when the target is very close to the light source and detector (h/d small as described below).
An approach to measuring the optical, spectral reflectance of a target will now be described and which takes into account the loss of light intensity arising from multiple reflection paths between the emitter and the detector of the system. This novel approach makes use of the assumption that each ray of light, originating from the emitter, is scattered at each reflection into a number M of rays of equal intensity, whilst the reflection reduces the total intensity by a factor equal to the reflectance of the reflecting surface R(λ).
For the purpose of illustration, it is assumed that the chassis is metallic and has a reflectance R2(λ)=1, whilst the target has a reflectance R1(λ)=R(λ). Moreover, upon each reflection from the target and the chassis, the light intensity ID arriving at the detector will be reduced by the factor M. So, if the total number of reflections between emitter and detector is j, the total effect of the scattering will be to reduce the intensity at the detector by M to the power j, i.e. Mj. If it is assumed that N is the number of rays that have the right angle θn to hit the detector and I0 is the light intensity of the emitter, then:
As a result, the analogue (electrical) signal produced by the detector will be:
where k is a multiplicative factor (taking into account the responsivity of the photodetector, potential filter responses and/or interposed media) and γ takes into account the amount of diffused light that reaches the detector, the dark counts and the cross-talk.
The advantage of equation (5) is that is straightforward to compensate for the non-linear effect, by removing the offset γ and multiplying the remainder by the factor (1−R/M). This is illustrated by
Considering now the signal in terms of its wavelength response (as is necessary in the case of spectrometers) and relating it to the target reflectance, the commonly used linear formulation is:
s(λ)=k·I0(λ)·R(λ) (6)
This assumption of linearity with reflectance of material under test (equation (1)) in such a configuration creates a potential flaw in the calibration algorithm. Using instead the formulation of equation (4), equation (6) becomes:
Replacing the series with the sum in line with equation (5) we get:
This can be reformulated to provide an expression for determining the target reflectance:
NB. In equations (6) to (8), s(λ) is considered to be only the signal arising from reflectance at the target and includes dark count and cross-talk. By providing calibration, the dark count and corss-talk are removed. In equation (9), SH(λ). corresponds to the offset factor γ of equation (5).
The parameter M provides a means to quantify the non-linearity of an optical system such as that illustrated in
The procedure to compensate the integral signal (integral over the wavelength if coming from a spectrometer) coming from the detector may be described as follows:
It will be appreciated that changing the target height with respect to the detections system (i.e. h in
This is provided for by equation (9) being dependent upon the target height (variable z);
Where η(z) is the ratio of S(zREF)/S(z) (S integral over the wavelength of s(λ)), and zREF is a height of reference.
The procedure for additionally calibrating a system for height is as follows:
It will be appreciated that M(z) increases linearly with height until reaching a saturating value. The greater the height of the target above the system, the lower the contribution of multi-paths reflections will be to the detected signal and therefore the higher M will be. On the other hand, η(z) has a non-linear behaviour and it increases with increasing z (approximately according to a second degree polynomial of second grade).
In normal use, the height of the target above the system can be determined using, for example an on-board distance sensor and equation (10) can be used to determine the reflectance of the target, using the values M and η for that height as well as γ which is independent of height.
The approach described above to calibrate a detection system and to calculate reflectance essentially enable every system response to be considered linear with the reflectance. Furthermore, height compensation is easier to apply. The approaches allow for the equalization of output signals provided by multiple sensors located at different positions but still illuminated by the same source. This is an interesting case that is particularly useful when a system includes multiple detectors acting as miniaturized spectrometers, the detectors having overlapping wavelength ranges. As the approaches effectively eliminate the effect of the chassis holding the detector and emitter, optical detection modules can be sold without any restriction on the end use case.
Further advantages achieved by the described approaches may include:
The described approaches may be implemented into a system by embedding appropriate algorithms in the software/firmware of those systems, which measure and consequently provide the calculated reflectance of a target. After determining the parameters M(λ) by a priori calibration with reference reflectance targets, they may be stored in a register (memory location), along with the arrays RR(λ), SR(λ), and SH(λ). When a measurement is performed on a target, the raw signals generated by the photodetector, SS(λ), are processed according to equation (9) to provide the target reflectance R(λ). Where height compensation is provided for, and the detection system is capable of measuring the target height (e.g. using a proximity sensor), the parameter η(z) is determined during calibration and stored into the system. The raw signal is then processed according to equation (10). Alternatively the parameter η(z) is determined during calibration and equation (11) is applied to the raw signal. It will nonetheless be appreciated that the processing operations may be distributed, with certain tasks being performed outside of the device within which the detection module is provided.
It will be appreciated that the M(λ) and η(z) parameter calculation may be performed using an on-board computer of the device comprising the reflectance detector, e.g. on a smartphone. Alternatively, raw or pre-processed data may be sent via a network connection to a server or the like at which the parameter calculation is performed, with the calculated parameters being returned to the device where they are stored for later use.
Systems into which the reflectance detector can be integrated include, for example, MEMS-based miniaturized spectrometers, tuneable light sources (UV, visible or infrared).
It will be appreciated by the person of skill in the art that various modifications may be made to the above described embodiments without departing from the scope of the present invention.
To better understand the proposals presented above, reference may be made to the following detailed technical discussion.
Three main mechanisms are taken into account for studying the behavior of intensity versus the height (or better ζ=z/d). These mechanisms limit the amount of light that reaches the detector (PD) and are:
Allowed modes are not infinite. In reality, modes which have a high value of N will undergo a high number of reflections and if their exiting intensity is low, they will not contribute to the signal read by the PD. In other words, for a certain target reflectance R, the maximum number of accepted modes N has a superior limit NM, which is imposed by the detector sensitivity.
Assuming that the PD is only able to read intensities ‘I’ higher than a certain threshold ‘I0’, a generic mode, in the case of no attenuation through the medium the following inequality must hold:
This relationship is important, because it relates the PD sensitivity I0, the emitted intensity from the illuminating source IS, the target reflectance R, and the parameter M. The function └ ┘ represents the floor function.
We assume that an optical ray cannot travel longer than a certain distance, because of attenuation through the medium. Therefore, although the number of reflections that it must undergo is equal or lower than NM, that mode does not reach the PD if the optical path is longer than a certain limit.
Let us suppose that
The longest path sets a limiting angle θmax at a certain elevation, beyond which light will not reach the PD.
Substituting (13) in (12):
In equation (15), the medium is also taken into account by the attenuation coefficient α, N≤NM.
Referring to
The three limiting mechanisms provide the number of possible modes for specific system settings (I0, IS, R, M, α, FoI, FoV, ζ), Nmax−Nmin. The amount of rays will clearly determine the amount of light sensed by the PD. By plotting the expression:
θn=tan−1(2ζn) (17)
it is possible to easily interpret how the limiting factors determine Nmax−Nmin, which are given by the interceptions with the lines θ=θmax and θ=θmin and the curve θn(ζ). By increasing ζ the curves move towards the y-axis becoming steeper, the modes below θmax are more concentrated toward 90°, so Nmax is smaller.
By decreasing ζ, the difference Nmax−Nmin increases, as does the intensity. The maximum intensity is reached when ζ is equal to ζT. Below this value, the intensity decreases again because NM is reached by angles that are smaller than θmax. At the same time, Nmin (minimum angle, from which the optical ray reaches the PD) increases, the difference Nmax−Nmin decreases. The intensity will reach its minimum value when ζ=ζ0.
From eq. (16) we can deduce the values of tan(θmax), tan(θmin) by substituting NM to n, and ζT, ζ0 to ζ, respectively.
tan(θmax)=2ζTNM (18)
tan(θmin)=2ζ0NM (19)
It is clear that the number of rays is limited and it is no longer legitimate to use the sum from 1 to ∞, but rather from Nmin to Nmax. For simplicity, the attenuation of each ray is excluded. It is only considered that modes beyond θmax are excluded.
sums of the first Nmax and Nmin−1 terms of a geometric series are:
Therefore, what it is really changing with ζ is the weight of the following factor on the rest of the function.
The higher the ζ the lower the modes. At higher elevations, the curve intensity versus reflectance becomes linear for a certain range, when theoretically only one ray is allowed to hit the PD. On the contrary, when ζ is low the number of modes increases and the terms
become very small.
As already explained, below ζT, the intensity decreases (verified experimentally) because no higher modes than NM are allowed and either the emitter or the PD have a field of illumination (FoI) and a field of view (FoV) respectively. When ζ=ζ0 the intensity approaches zero. Both ζT and ζ0 depends on R/M as expected.
Exerimental results demonstrate that the model under the conditions described holds well.
Number | Date | Country | Kind |
---|---|---|---|
2009640.0 | Jun 2020 | GB | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/SG2021/050281 | 5/24/2021 | WO |