Ashraf A Mohamed1, Ahmed A Shalaby1, Abdelnaby M Salem1. 1. Department of Chemistry, Faculty of Science, Ain Shams University Abbassia Cairo-11566 Egypt aamohamd@sci.asu.edu.eg +202 24831836 +2 01001578849.
Spectrochemical methods utilizing the light absorbed by (or emitted from) a sample are very popular in quantitative chemical analysis. However, bulky size and relatively high cost are common disadvantages of many research grade spectrometers.Therefore, methods of digital image-based analysis (DIBA) are suggested as simple and low-cost alternatives. DIBA relies on a colour change, wherein the analyte reacts with a chromogenic reagent to give a coloured product, the digital images of which are analysed to obtain the red, green and blue (RGB) intensity values (IR, IG, IB, and IRGB). The RGB intensities,[1-10] the RGB absorbance (AR, AG, AB, ARGB),[11-14] the normalized IG/IR ratio,[15] the cyan, magenta, and yellow (CMY) intensities,[16-19] the tristimulus XYZ parameters,[20-22] the greyscale intensity,[23,24] and the inverted 8 bit greyscale intensity[25,26] have been used as analytical signals in DIBA. Images have been captured using digital cameras,[9,14,18,24] mobile phone cameras,[4,7,12,15,17,19,23] web cams,[10,11] or computer scanners.[6,13,16,17,25,26] However, some other excellent papers on the topic have been undoubtedly missed and can be found in excellent reviews of the topic.[27-29]The mathematical conversion of RGB intensities into the corresponding parameters of other colour spaces is well documented;[27-30] A brief introduction to the aforementioned colour spaces and their inter-conversions is given in the ESI.† However, some programs perform these conversions at a click of a button. The free online Colormine converter is very simple and was adopted in this work.[31]It is worthy to mention that, the CIE (Commission Internationale de l'Eclairage, International Commission on Illumination) has classified the RGB, CMY, YXZ, and Yxy spaces as non-uniform colour spaces, where at constant luminance, the colour differences represented by equal distances are not perceived, by the human eye, as being equal. Moreover, the RGB and CMY are device dependent colour spaces that vary from one device to another and cannot represent all the colours.[30]Despite the aforementioned progress,[1-26] the direct application of RGB intensity,[1-10] RGB colour absorbance,[11-14] CMY,[16-19] XYZ,[20-22] and grayscale parameters,[23-26] in analytical determinations exhibited a major disadvantage of poor linearity of its calibration graphs, especially at the low analyte concentrations that are commonly encountered in environmental samples.[1-26]Herein, we present the Yxy colour space parameters (Y: luminance, xy: chrominance values) as a novel signalling tool for digital imaging sensors in the analytical laboratory. The Yxy signals exhibited excellent performance compared to the RGB parameters and the corresponding data of a sophisticated Shimadzu UV 1601 PC spectrophotometer. Moreover, we show the advantages of Yxy over the RGB, grayscale, CMY, and tristimulus XYZ colour space signals regarding calibration graph linearity, slope-to-intercept ratio, and LOD. Also, we describe the design, use, and validation of a simple homemade platform and its application to the assessment of iron based on its reactions with 1,10-phenanthroline, 2,4,6-tris(2-pyridyl)-s-triazine (TPTZ) or salicylate. Our low-cost and simple platform is free from lenses, slits, mirrors, monochromators, photodiodes, photomultipliers, and signal amplifiers. It consists of (1) a digital camera, (2) a cuvette and (3) a white paper as a background diffuser. These advantages make the present platform an excellent successor to many of the closely related devices.[1-26]
Experimental
Materials and reagents
All reagents were of ACS grade and were used as received from Sigma-Aldrich (St. Louis, MO, USA) or Merck (Darmstadt, Germany). Ultrapure water and aqueous solutions were used throughout. 1,10-Phenanthroline, 2,4,6-tris(2-pyridyl)-s-triazine (TPTZ), sodium salicylate, ferrous ammonium sulphate hexahydrate, ferric ammonium sulphate dodecahydrate, and l-ascorbic acid were also used. Standard solutions for the determination of iron using phenanthroline,[32-35] TPTZ,[35,36] and salicylate[37] were prepared according to standard/reference methods.
Instruments and software
Spectrophotometric measurements were performed on a Shimadzu UV 1601 PC Spectrophotometer (Kyoto, Japan) controlled by UVProbe-2.5 software. Eppendorf 10–100 and 100–1000 μL vary-pipettes (Westbury, NY, USA) and a calibrated EDT pH-mV meter (Dover Kent, UK) were also used.Digital image-based analysis (DIBA) measurements were conducted using a simple homemade platform (spectrometer) consisting of (1) a cuvette as a sample container, (2) a digital camera as an imaging device, (3) white paper as a background diffuser. However, the sample container can also be a test tube, a beaker, or a microwell plate, and the digital imaging device can be a smartphone camera, a desktop scanner, or a simple webcam. The diffuser and the camera were fixed at 5 cm distances from both sides of the polylactic acid 3D-printed cell-holder on a 20 × 20 cm wooden plate, as shown in Fig. 1. For comparison of various digital imaging devices, images were captured using a 16.0 MP Canon PowerShot A810 digital camera, a 3.15 MP Sony Xperia E Dual smartphone camera, and the scanner of an HP LaserJet Pro M1536dnf MF printer.
Fig. 1
The homemade platform design.
A simple HP-Pavilion dv6-6176ex Notebook running Windows 8.1 was used for data treatment and analysis. Photoshop CC 2015.5 and ImageJ software version 1.51i were used for digital image cropping and RGB channel intensity calculations, respectively.
Recommended procedure
Procedure for iron determination using phenanthroline
An aliquot of the standard iron or sample solutions containing ≤80 μg of Fe(iii) or Fe(ii) was transferred to a 25 mL volumetric flask. A 1 mL portion of each of the ascorbic acid, phenanthroline and acetic/acetate buffer solution (pH 4.0) were added, and the flask was completed to the mark with water, mixed well, and set aside for 15 min to allow for full colour development.[32-35] A portion of the mixed solution was transferred to a 10 mm spectrophotometric cell, and the absorbance at 512 nm was measured against a similarly prepared blank. The same sample and blank cells were then transferred to our homemade platform to capture digital images using the Canon digital camera and the Sony smartphone. Another 250 μL portion aliquot of the mixed solution was transferred to one chamber of a flat-bottom 96 microwell plate to take a scanned image.
Procedure for iron determination using TPTZ
An aliquot of the standard iron or sample solutions containing ≤50 μg of Fe(iii) or Fe(ii) was transferred to a 25 mL volumetric flask. A 1 mL portion of each of ascorbic acid and acetic/acetate buffer (pH = 4.0) solutions were added followed by a 3 mL of TPTZ solution. The flask was completed to the mark with water, mixed well, and set aside for 5 min to allow full colour development.[35,36] A portion of the reacting solution was transferred to a 10 mm spectrophotometric cell, and the absorbance at 595 nm was measured against a similarly prepared blank. Digital images were captured and processed as described above.
Procedure for iron determination using salicylate
An aliquot of the standard iron solution or sample solution containing ≤450 μg of Fe(iii) was transferred to a 25 mL volumetric flask. A 1 mL portion of each of 0.1 mol L−1 nitric acid and salicylate solutions was added, and the flask was diluted to the mark with water and then mixed will. A portion of the reaction solution was transferred to a 10 mm cell, and the absorbance at 525 nm was measured against a similarly prepared blank.[37] Digital images were captured and processed as described above.
Pharmaceutical sample treatment for Fe-determination
A 1.00 mL sample or one tablet was transferred to a 50 mL beaker containing 30 mL of water and 5 mL concentrated HCl. The mixture was boiled gently on a hotplate for 10 min, cooled, filtered into a 100 mL volumetric flask, and diluted to the mark with water. A 10 mL aliquot of the resulting solution was diluted to 100 mL in a volumetric flask.[32,35]
Procedure for digital image processing
From each captured image, a representative homogenous area was cropped (a square of 354 × 354 pixels from the camera images, a square of 142 × 142 pixels from the smartphone images and a circle of 64, 127, and 253 pixels in diameter from the 300, 600 and 1200 dpi images of the scanner, respectively; however, any other predefined area can be used). Cropped images were processed to obtain the RGB channel intensities (IR, IG, and IB), which can be used directly or after conversion into other colour spaces. For each image, the RGB colour absorbance (AR, AG, AB, and ARGB) was calculated from [A = log(I0/I)], where I0 and I are the channel intensities of the blank and sample, respectively. However, the Yxy colour absorbance was calculated from [A = |log(I0/I)|]. The obtained RGB intensities were converted into the corresponding coordinates of other non-uniform colour spaces using the Colormine online converter.[31]
Results and discussion
Preliminary studies
The main advantages of the developed platform were its simplicity, ease of construction and high performance at minimum cost. Trials using conventional LED lamps as light sources[4] were unsuccessful, as captured images were not homogeneous among their different parts, exhibiting variable degrees of brightness depending on not only the number and intensity of LED lamps but also the relative distances and angles between the lamp, cuvette, camera, and diffuser. Therefore, for the sake of simplicity, reproducibility, and cost reduction, we used the conventional fluorescent daylight lamp fixed to the ceiling of our laboratory (at about 2.5 m distance from the bench-top), as the light source. With this choice, the photo quality and the colour absorbance registered with the platform was almost independent of the lamp intensity, the relative platform-lamp position, camera-cuvette distance, and cuvette-diffuser distance, Fig. S1 and S2.† This is due to the relatively large distance between the lamp and cuvette that allowed a uniform light segment to reach the sample. However, for practical considerations, the camera and the diffuser were set at 5 cm distances from the 3-D printed cell holder carrying the cuvettes, Fig. 1. Moreover, the flash off mode of the camera was used to prevent any reflections on the cuvette surface due to the camera flash light.
Comparison between RGB, grayscale, CMY, XYZ and Yxy parameters as signalling tools
Our homemade platform was applied to the determination of iron using 1,10-phenanthroline, TPTZ and salicylate, which gave orange-red, blue-purple and violet colours, respectively. These reaction systems were selected to give three different colours covering a wide range of the visible spectrum. A representative area was cropped from each image (Fig. S2A–C).† These cropped images were analysed to obtain the corresponding RGB channel intensities. For the Fe(ii)-phenanthroline system, plots of Fe(ii) concentration vs. RGB intensities or their logarithmic values (i.e., log(IR), log(IG), log(IB), or log(IRGB)), gave inadequate linearity, as shown in Fig. 2A and B. On the other hand, conversion of the RGB intensities to the corresponding 8 bit greyscale intensity and plotting Fe(ii) concentration vs. greyscale intensity (IGrey), logarithmic greyscale intensity (log IGrey) or greyscale colour absorbance (Agreyscale) worsened the linearity, Fig. 2C–E.
Fig. 2
Calibration graphs of Fe(ii)-phenanthroline solutions. Responses are RGB intensity (A), log IRGB (B), greyscale intensity (C), log(greyscale intensity) (D), greyscale colour absorbance (E), RGB colour absorbance (F), CMY colour absorbance (G), tristimulus XYZ colour absorbance (H), and Yxy colour absorbance (I). Conditions are those of the recommended procedure.
To improve the linearity, we converted the RGB channel intensities into the corresponding RGB colour absorbance values (AR, AG, AB, and ARGB), Fig. 2F, where inadequate linearity was also observed. Therefore, we tested the conversion of the RGB intensities into the corresponding colour absorbance values in the CMY, XYZ, and Yxy colour spaces, Fig. 2G–I. The conversion data clearly show that compared to the RGB, CMY and tristimulus XYZ values, the x and y coordinate of the Yxy space exhibited a marginal improvement not only in linearity (R2 = 0.999) but also in slope, slope-to-intercept ratio and detection limit (LOD = 0.07 mg L−1), Fig. 2I.To confirm that these findings are not limited to the orange-red coloured Fe-phenanthroline system, we examined the well-known Fe(ii)-TPTZ system exhibiting a deep blue-purple colour. Solutions containing 0.00–2.00 mg L−1 Fe(ii) were treated with TPTZ according to the recommended procedure. Images of these reacting solutions, Fig. S2B,† were captured, cropped, and analysed to obtain the RGB values and further converted into other non-uniform colour spaces' parameters. The relations between Fe(ii) concentration and IRGB, ARGB, ACMY, AXYZ and AYxy, have been constructed. The data, Fig. S3A–E,† also showed that among all the tested signals, the x and/or y coordinate of the Yxy space exhibited marginal improvements in linearity (R2 ≥ 0.999), slope, slope-to-intercept ratio and detection limit (LOD = 0.02 mg L−1).For further verification, we extended our work from the orange-red Fe-phenanthroline and the blue-purple Fe-TPTZ systems to the well-known violet-coloured Fe(iii)-salicylate system. Solutions containing 0.0–18.0 mg L−1 Fe(iii) were treated with salicylate according to the recommended procedure. Images of these reacting solutions, Fig. S2C,† were similarly analysed and the relations between Fe(iii) concentration and IRGB, ARGB, ACMY, AXYZ and AYxy, were established. Similarly, the data, Fig. S4A–E,† showed that among all the tested parameters, the Ay parameter of the Yxy space exhibited marginal improvements in linearity (R2 = 0.999), slope, slope-to-intercept ratio and detection limit.In addition, the colour absorbance of the x and/or y coordinates of the Yxy colour space was compared to the absorbance readings recorded using the Shimadzu UV 1601 PC spectrophotometer for the three colour systems: Fe(ii)-Phenanthroline, Fe(ii)-TPTZ and Fe(iii)-salicylate, respectively, Fig. 3A–C. The regression parameters of Table S1† clearly show that colour absorbance data from digital images compete well with the corresponding spectrophotometric absorbance data, with the added advantage that our platform does not contain any monochromator, photomultiplier, signal amplifier, or any special optical unit.
Fig. 3
Relationship between Yxy colour absorbance and spectrophotometric absorbance at the appropriate wavelength for the Fe(ii)-phenanthroline (A), Fe(ii)-TPTZ (B), and Fe(iii)-salicylate systems (C). The other conditions tested are those shown in Fig. 2.
Now, the challenging question is as follows: why do the x and y coordinate absorbances provide excellent linearity in the Fe(ii)-phenanthroline and Fe(ii)-TPTZ systems, whereas only the y coordinate absorbance exhibited excellent linearity in the Fe(iii)-Salicylate system? This can be explained by the fact that the Fe(ii)-phenanthroline and Fe(ii)-TPTZ are orange-red and blue-purple, respectively, and are affected by both the x and y coordinate parameters. Therefore, they provide excellent calibration relations with both parameters. However, the Fe(iii)-salicylate system exhibits a violet colour and is mainly affected by the y parameter; therefore, it gave excellent linearity with the y parameter only.It is worthy to mention that, according to the CIE, the XYZ and Yxy are device independent spaces and can represent all the colours because the xy gamut includes the RGB gamut inside it. However, the Yxy space has an advantage over the XYZ space as it normalizes the XYZ parameters and represents the colours in 2D plane that give good correlation with human vision attributes.[30] This may explain why the Yxy space data are more linear compared to other non-uniform colour spaces.Based on the above findings, we can safely recommend using the x and/or y colour absorbance values of the Yxy space for analytical determination based on digital imaging. This is because the Yxy colour absorbance surpasses the conventional RGB intensities, greyscale intensity, log RGB, loggreyscale parameters, along with the colour absorbance values of RGB, greyscale, CMYK or tristimulus XYZ parameters.
Comparison of different digital imaging devices
To compare various image-capturing devices, we compared a Sony Xperia E smartphone with a 3.15 MP low-resolution camera and the scanner of HP LaserJet Pro M1536dnf MF printer to our Canon PowerShot A810 digital camera with its 16 MP sensor. Digital images and the corresponding cropped areas of Fe(ii)-phenanthroline solutions in 10 mm glass cells and 96-microwell plates, were recorded, Fig. 4A and B. The relation between Fe(ii) concentration and the x-coordinate colour absorbance (A) of the scanner images at 300, 600 and 1200 dpi were depicted, Fig. 4C. The regression parameters clearly show that there is no significant difference in the linearity or slopes of the three calibration lines. Thus, to save time, we recommend using the 300 dpi scan speed. The use of the microwell plate and scanner added the advantage of the possible direct analysis of samples in the form of thin-films, nL or μL droplets.
Fig. 4
Digital images and cropped images of Fe(ii)-phenanthroline standard solutions (0.0–3.0 mg L−1 Fe). Images were captured using (A) a Sony Xperia E smartphone equipped with a 3.15 MP camera and (B) the scanner of HP LaserJet Pro M1536dnf MF printer at 1200 dpi. Calibration graphs based on images from the desktop scanner at various pixel densities (C), and from various digital image-capturing devices (D). Captured images were arbitrarily compressed to fit into the page margins; however, for image processing, the original uncompressed images were used. The other conditions tested are those shown in Fig. 2.
The relations between Fe(ii) concentration and the colour absorbance (A) obtained by the three image-capturing devices are depicted, Fig. 4D. The linear calibration equations indicate that the sensor sensitivity has the order digital camera > scanner > smartphone, as evidenced from the slope values of 0.059 > 0.046 > 0.038. However, the linearity is not significantly affected by changing the image-capturing device resolution, as all devices resulted in a correlation coefficient R2 ≥0.994.Similarly, the relation between the Fe concentration and x or y colour absorbance of images of Fe(ii)-TPTZ and Fe(iii)-salicylate solutions captured using various image-capturing devices, Fig. S5 and S6.† For both systems, the regression equations show no significant difference between the linearity and sensitivity of the different calibration lines constructed using the scanner at various levels of pixel density. Moreover, all calibration lines constructed using the three image-capturing devices show excellent linearity (R2 > 0.99), with the digital camera exhibiting the best sensitivity (slope).
Determination of iron in real samples
The performance of our homemade platform with the Yxy signalling was tested by its application to the assessment of iron in real samples. The analytical data obtained by the proposed approach were validated by comparison with the corresponding data obtained with the sophisticated Shimadzu UV 1601 PC spectrophotometer. For sample analysis, the digital camera was used as the image-capturing device, and the A colour absorbance of the Yxy colour space was used as the analytical signalling tool. The 1,10-phenanthroline method was used for the analysis of natural and waste waters and three pharmaceutical samples: Fercayl injection solution, Hydroferrin syrup, and Theragran multivitamin tablets. Table 1 shows the results of iron determination obtained using the proposed DIBA and standard phenanthroline-based spectrophotometric methods. At the 95% confidence level, the Student's t-test and the F-test could not detect any significant difference between the means and variances of the two methods.[38]
Results of iron determination in real samples using the proposed DIBA and spectrophotometric methods
Iron concentration
F0.05(3,3), Ftabulated = 39
|t0.05(3,3)|, Ttabulated = 2.78
P value, Ptabulated = 0.050
DIBA
Spectrophotometry
Nile river water (mg L−1)a
0.52 ± 0.02
0.53 ± 0.02
1
0.61
0.573
Waste water (mg L−1)b
1.95 ± 0.03
1.94 ± 0.02
2.25
0.48
0.656
Fercayl injection (mg mL−1)
45.12 ± 0.21
45.20 ± 0.07
10.05
0.67
0.542
Hydroferrin syrup (mg mL−1)
55.72 ± 0.98
56.56 ± 0.23
17.68
1.45
0.220
Theragran multivitamin (mg per tablet)
64.95 ± 0.62
65.45 ± 0.32
3.88
2.11
0.102
Collected downstream, approximately 1 km from the Qasr El Nile Bridge on March 10, 2017; (pH = 8.10).
Collected from the exit pipe of 101 Chem Lab.
Collected downstream, approximately 1 km from the Qasr El Nile Bridge on March 10, 2017; (pH = 8.10).Collected from the exit pipe of 101 Chem Lab.
Conclusion
In conclusion, we report a homemade, low-cost, and portable camera-based platform with Yxy signalling and its application to the assessment of iron. Our inexpensive and simple design is free from special light sources, lenses, slits, mirrors, filters, gratings, special sample compartments, photodiodes, photomultipliers, and signal amplifiers. In principle, it requires only a cuvette, a camera (or mobile phone or scanner), and a white paper as a diffuser. Moreover, it can measure absorption, reflectance, and/or luminescence without any additional instrumentation or software, indicating its potential as an excellent competitor to sophisticated laboratory spectrophotometers and spectrofluorometers. This would be very promising, especially in resource-limited environments. In addition, it can in principle analyse not only large volume liquid samples but also nano- or microlitre droplet and thin-film samples of transparent, non-transparent, solid, turbid or opaque dispersion samples where common spectrophotometers and spectrofluorometers usually require special attachment units. With our platform, a comparison of various non-uniform (RGB, greyscale, inverted greyscale, CMY, tristimulus XYZ, and Yxy) signals revealed that the A and/or A colour absorbance parameters of the Yxy colour space yielded calibration graphs with excellent linearity, slope-to-intercept ratio, and LOD irrespective of the colour and nature of the reaction system. Moreover, the linearity and sensitivity of the calibration lines were independent of the type and resolution of the image-capturing device. The excellent performance of the platform was demonstrated by its application to the assessment of iron in natural and waste waters and pharmaceutical samples. Statistical treatment of the analytical results revealed no significant difference between the data obtained using our platform and the sophisticated Shimadzu UV-1601 PC spectrophotometer.
Authors: Luis Fermín Capitán-Vallvey; Nuria López-Ruiz; Antonio Martínez-Olmos; Miguel M Erenas; Alberto J Palma Journal: Anal Chim Acta Date: 2015-10-23 Impact factor: 6.558
Authors: Neal A Rakow; Avijit Sen; Michael C Janzen; Jennifer B Ponder; Kenneth S Suslick Journal: Angew Chem Int Ed Engl Date: 2005-07-18 Impact factor: 15.336
Authors: Andres W Martinez; Scott T Phillips; Emanuel Carrilho; Samuel W Thomas; Hayat Sindi; George M Whitesides Journal: Anal Chem Date: 2008-04-11 Impact factor: 6.986
Authors: Poomrat Rattanarat; Wijitar Dungchai; David M Cate; Weena Siangproh; John Volckens; Orawon Chailapakul; Charles S Henry Journal: Anal Chim Acta Date: 2013-09-12 Impact factor: 6.558
Authors: Sandeep Kumar Vashist; Thomas van Oordt; E Marion Schneider; Roland Zengerle; Felix von Stetten; John H T Luong Journal: Biosens Bioelectron Date: 2014-08-19 Impact factor: 10.618
Authors: Egan H Doeven; Gregory J Barbante; Emily Kerr; Conor F Hogan; John A Endler; Paul S Francis Journal: Anal Chem Date: 2014-02-20 Impact factor: 6.986
Authors: Poomrat Rattanarat; Wijitar Dungchai; David Cate; John Volckens; Orawon Chailapakul; Charles S Henry Journal: Anal Chem Date: 2014-03-14 Impact factor: 6.986