1. Introduction
In-line and online sensors for liquids are gradually gaining an increased market share with the advent of the internet of things in an ever-interconnected world. For example, in an industrial environment, they allow a timely reaction to any production flaws that can occur. Storing the historical data obtained, in the perspective of a Big Data analysis, can also help to identify systematic or regular flaws that could not be perceived easily by standard control engineering [
1]. In the same way, quality control in liquids is essential in many sectors, from industry to biology. One of these quality control parameters that can be monitored in liquids is the color [
2,
3,
4].
Measuring color for water based non-turbid solutions is a simple process and well documented in literature with several commercial solutions available, like spectrophotometers and colorimeters [
5,
6,
7]. State of the art developments show there are some approaches for the assessment of liquid color that tries to create low-cost, portable and easy to use devices. This is the case of a very simple sample holder-based colorimeter, constructed using LEGO bricks that has a single wavelength light-emitting diode (LED) as light source [
8] or a more complex colorimeter for chemistry laboratories that uses three LEDs of 640, 524 and 470 nm wavelengths presenting the transmittance values to an integrated liquid crystal display (LCD) [
9]. This was also the approach taken by Jiménez-Márquez et al. for a solution to be used for the monitoring of the maceration of red wine [
10]. The transmitted light of the three red-green-blue (RGB) LEDs of the wavelength of interest is distributed throughout the measurement cell and the measurement of the transmittance values are independently determined by a row of three photodiodes distributed in the same way as in the LEDs. Another approach presented by Zhou et al. [
11] uses filters in the light path between the white LEDs sources and the sample holder instead of different color LEDs. The only in situ and online measurement device found in literature ready for color measurement was presented by Novo et al. [
12,
13] and Shrake et al. [
14] for wine monitoring. Novo uses the advantages of polymer optical fiber (POF) miniaturization and maneuverability to create four separate air-gap regions between two fiber extremities in a sensor head structure where the wine to be measured will flow. One of the fibers will be connected to an LED and the other to a photodetector to detect the transmittance. Shrake also uses POF for light guiding of 420, 470, 503, 525, 565 and 630 nm LEDs but this light is directly captured by photodiodes instead of a fiber.
Although there are developed solutions for color monitoring like those presented here, these devices have a major handicap of needing cleared liquids for color determination. When turbidity and refractive index variations are present or occur, a dependency on these parameters with changes in the measurement signal will be observed. This means that one cannot measure color without considering the effects of refractive index changes and the turbidity in the liquid.
In this work, a study of an optical color sensor for liquids, based on the transmission of light from fiber-to-fiber, is presented. Measurement of color is performed due to the absorbance of light from the liquid. Its characterization to turbidity and refractive index dependency is also undertaken. Possible compensation for turbidity and refractive index present in the solution is discussed for future developments.
2. Sensor Design
The chromatic sensor is based on the air-gap, multimode fiber-to-fiber, transmission principle. A schematic view of this principle is presented in
Figure 1 where a geometric model for a multimode fiber can be used [
15].
The light emitted by one of the fibers, identified as
F1, will propagate in a conical shape until it reaches the second fiber,
F2, at a distance
d. Because of its increasing conical shape, only a fraction of light reaches
F2. The ratio of the received light power
P2, by the emitted power,
P1, will be equal to the ratio of the receiving area
A2, with the light emitting area
A1 when it reaches the fiber
F2. Considering that the light energy is radially uniform through the fiber, the fraction of light power that reaches
F2 will be mostly dependent on geometric factors like the distance between fibers (
d) and the fiber core radius (
Rc) [
15]:
θmax is the aperture angle that will depend on the refractive index of the fiber core (
nco) and cladding (
ncl), but also it will vary with refractive index of the external medium (
next) as,
When submerged in solutions where there is the existence of colored or suspended particles, phenomena of scattering or absorption of light will occur. This is described by the Beer-Lambert law that states that the attenuation (
A) of light have a logarithmic relation with the transmission light intensity, in the presence of the attenuation agent (
I) and without the presence of it (
I0):
For color measurement, the sensor uses 3 LEDs from Industrial Fiber Optics with central wavelengths of 430 nm (IF E92A), 522 nm (IF E93), and 660 nm (IF E97). These wavelengths were chosen to give a wide color perception of the solutions to measure, being the same or near to the usually used in colorimeters found in the market [
16]. A fourth LED with wavelength of 870 nm (IF E91D) in the infrared region and unaffected by colored solutions is also used to measure turbidity. The light spectrum of each LED is presented in
Figure 2.
The 870 nm LED will be a key element for turbidity compensation. All the LEDs are controlled by an electronic board connected to a 4 × 4 POF coupler with splitting ratio of 25:25:25:25%, all in the same side. One of the outputs of the coupler is used as the source light to a stainless-steel sensing head, where the solution to measure will flow. The board has three photodetectors, one for the transmission measurement, a second directly connected to a second output of the coupler for optical drifts numeric compensation, and the third will be associated to a POF for scattering measurements also used for turbidity measurements (
Figure 3). When the measuring mode starts, the board will sequentially turn on and off each light source for a second and register the data obtained from the photodetectors. A full measurement will have information from the three photodetectors and from the four-light source, counting a total of 12 values. This information is then sent to an online server by a wireless module for measurement calculation using the calibrations. The POF used was the ESKA
TM series model GHCP4001 from Mitsubishi Rayon Co., Ltd. (Tokyo, Japan).
3. Color and Turbidity
In presence of turbid solutions, color determination with a direct calculation of absorbance cannot be performed. In colored turbid solutions, two different elements are contributing in the decrease of light along the path of propagation: while the suspended particles are scattering light, the liquid is absorbing it. In
Figure 4 this can be seen clearly by experimental data, where both turbidity and the color concentration of the solution are increased. Here, red dye was used as an example of liquid absorber agent where volumes of 0.5, 1, 1.5 and 2 mL were added to 500 mL of water. For increased turbidity, corn starch was added to all the solutions to promote scattering centers. The size of these particles is on average 20 μm [
17] where forward scattering is dominant [
18]. Both chemical species were homogenous distributed in the solution. Measurements were carried with a constant temperature of 25 °C. As observed in
Figure 4, while color attenuation is described by the Beer-Lambert law model, turbidity attenuation will present a similar behavior. Red dye was chosen as an example because it can be clearly seen the effect of light absorption in the 430 and 522 nm wavelengths while the 660 and 870 nm are barely affected.
Note that the turbidity measurement is in formazine nephelometric units (FNU), a measurement of relative clarity that follows the ISO 7072 standard [
19]. FNU uses an infrared output, as opposed to the broadband light output used by turbidity meters that measure in nephelometric turbidity units (NTU). NTU and FNU will behave similarly when calibrated with formazine because of its common nephelometric technology.
The color absorption can be calculated separately of turbidity if the variation of light from the latter is already known and if the turbidity value is calculated by a way that is unaffected by the color. As can be seen in the case of
Figure 4d, the infrared measurements are insensitive to changes in the dye concentration. This curve can be used to calculate turbidity separately from color. Knowing that attenuation of two different chemical species is the summation of the species attenuation separately, one can state that the total attenuation (
Atot) is the sum of the turbidity attenuation (
Atb) and color absorption (
Acol),
From Equation (4) we can correlate it with the total light intensity detected (
Itot) and with the expected light intensity obtained when in presence only with the turbidity (
Itb). Therefore, when submerged in this two-chemical species solution
Acol can be calculated as:
This calculation was performed with the experimental data presented in
Figure 4. To discriminate color from turbidity, a calibration routine of the sensor using all the wavelengths must be performed with variations of turbidity. The 870 nm wavelength is used to calculate the turbidity value since is unaffected by the color. Knowing the turbidity value using this wavelength and using the previous calibration data discussed, it is possible to calculate the expected light intensity for the other wavelengths with the same turbidity, but without the color absorption (
Itb). Therefore, by calculating the real light intensity detected (
Itot), this is, the one that is under attenuation and absorption of color and turbidity respectively, and using Equation (5), the color absorption can be easily calculated for each individual wavelength (
Figure 5).
A comparison of these experimental results with the theoretical expected absorption values obtained with the increasing of the red dye concentration in water solutions was performed based in spectrographic measurements taken and presented in
Figure 6a. Considering the spectra given by 430 and 522 nm LEDs and the responsivity of the photodetector with wavelength, the real detected intensity expected by the sensor in its transmission photodetector was calculated and presented in
Figure 6b.
By integrating the light intensity expected in the transmission photodetector with wavelength, the total expected normalized transmitted values can be obtained, and the absorbance deduced for each dye concentration. Using the methodology presented in Equation (5), a comparison between the experimental color absorbance and the expected theoretical ones obtained with turbid solutions is presented in
Table 1.
The values for the absorbance obtained by the chromatic sensor are close to what was expected theoretically from the deduced values from the spectrophotometer. But the real comparison must be performed with the values obtained for 0 FNU, i.e., without turbidity. Accuracies of about ±0.3 absorbance units (AU) are obtained in turbid liquids. It is important to notice that for low color concentrations, but high turbidity values (turbidity dominance), the error deviation of the calculated color is higher than when high color concentration is present (color dominance). In this region of measurement, color absorbance presents very stable calculated values. Overall, the turbidity compensation for color measurement is achieved.
4. Turbidity and Refractive Index
Refractive index (RI) changes, in clear or turbid solutions, will create variations in the transmitted channel. Contrary to color and turbidity that have a negative contribution for the light detected with increase of absorber and scattering centers, a refractive index increase will have a positive contribution in light-intensity detection. Depending on the concentration of particles present in the solution, it will have different increasing rates. In
Figure 7, a representation of this variation measured with the sensor transmission channel at 25 °C is visible for solutions prepared with turbidities of 0, 1250 and 6010 FNU using corn starch. The refractive index was changed by adding sucrose to the prepared solutions and measured with a Abbemat 200 refractometer from Anton Paar.
The different increasing variation rates in the detected light observed, in contrast to that obtained from clear solutions, is explained considering the light cone created in the exit of the emitting fiber. It will decrease its aperture with the increase of the refractive index of the solution (
next) as seen in Equation (2), and consequently focus more light into the receiving fiber, increasing its intensity value. Adding to this effect, the low aperture cone will also interact with less scattering centers and therefore, effectively, it will detect less turbidity than with a lower RI solution (
Figure 8).
In the receiver fiber dedicated to the scattered light, there is no effect in intensity when measuring variations of refractive index in clear solutions, due to light not achieving this fiber. In turbid media the light will reach the scattering channel and, therefore, changes in the geometry of the emitting light cone will have effects in the detected scattering light. As discussed, with a more focused light in the transmission channel, less light will be scattered and detected in the related channel. Again, adding to this effect, with a lower angle light cone there are fewer interactions with the particles to scatter light and so, as a result, even less light is scattered. This will be expressed as a decreasing variation in the detected light with the increase of the refractive index. Experimental values are presented in
Figure 9 for all scattering channels with turbidities of 1250 and 6010 FNU.
To compensate this phenomenon for posterior calculation of color and turbidity, external measurement of refractive index value using another sensor will need to be performed, but effective compensation for this sensor can be achieved using interpolation values from
Table 2. The process starts with the calculation of turbidity using the 870 nm LED as described in
Figure 10. Knowing this value of turbidity, the value or refractive index and executing an interpolation from the
Table 2 values, the variation of light intensity signal from this solution in relation to a solution with refractive index of water can be assessed. The variation assessment will lead to the real turbidity value of the solution and the latter to the real color absorption value (
Figure 10).