Next Article in Journal
The Contribution of Botanical Origin to the Physicochemical and Antioxidant Properties of Algerian Honeys
Previous Article in Journal
The Relationship between Food Safety Culture Maturity and Cost of Quality: An Empirical Pilot Study in the Food Industry
Previous Article in Special Issue
Isolation and Characterization of n-3 Polyunsaturated Fatty Acids in Enteromorpha prolifera Lipids and Their Preventive Effects on Ulcerative Colitis in C57BL/6J Mice
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Feasibility of Using a Cheap Colour Sensor to Detect Blends of Vegetable Oils in Avocado Oil

by
Natasha D. Lorenzo
1,
Roney A. da Rocha
2,
Emmanouil H. Papaioannou
3,
Yhan S. Mutz
2,
Leticia L. G. Tessaro
1 and
Cleiton A. Nunes
2,*
1
Department of Chemistry, Federal University of Lavras, P.O. Box 3037, Lavras 37203-202, MG, Brazil
2
Department of Food Science, Federal University of Lavras, P.O. Box 3037, Lavras 37203-202, MG, Brazil
3
School of Engineering, Lancaster University, Lancaster LA1 4YW, UK
*
Author to whom correspondence should be addressed.
Foods 2024, 13(4), 572; https://doi.org/10.3390/foods13040572
Submission received: 28 December 2023 / Revised: 9 February 2024 / Accepted: 12 February 2024 / Published: 14 February 2024

Abstract

:
This proof-of-concept study explored the use of an RGB colour sensor to identify different blends of vegetable oils in avocado oil. The main aim of this work was to distinguish avocado oil from its blends with canola, sunflower, corn, olive, and soybean oils. The study involved RGB measurements conducted using two different light sources: UV (395 nm) and white light. Classification methods, such as Linear Discriminant Analysis (LDA) and Least Squares Support Vector Machine (LS-SVM), were employed for detecting the blends. The LS-SVM model exhibited superior classification performance under white light, with an accuracy exceeding 90%, thus demonstrating a robust prediction capability without evidence of random adjustments. A quantitative approach was followed as well, employing Multiple Linear Regression (MLR) and LS-SVM, for the quantification of each vegetable oil in the blends. The LS-SVM model consistently achieved good performance (R2 > 0.9) in all examined cases, both for internal and external validation. Additionally, under white light, LS-SVM models yielded root mean square errors (RMSE) between 1.17–3.07%, indicating a high accuracy in blend prediction. The method proved to be rapid and cost-effective, without the necessity of any sample pretreatment. These findings highlight the feasibility of a cost-effective colour sensor in identifying avocado oil blended with other oils, such as canola, sunflower, corn, olive, and soybean oils, suggesting its potential as a low-cost and efficient alternative for on-site oil analysis.

1. Introduction

The production of avocado oil has been steadily increasing due to its recognised health benefits, attributed to a high concentration of unsaturated fatty acids, specifically, oleic acid. Recent comparative studies have been conducted to provide qualitative and quantitative evidence of the nutritional value of avocado oil in respect to olive oil [1]. Avocado oil has been associated with the potential lower risk of chronic degenerative illnesses [2]. As a result, both avocado and olive oils are esteemed as premium delicacies due to their health benefits and are categorised as high-quality oils of considerable value. These benefits justify their popularity in the culinary world.
Due to their premium pricing, extra virgin oils are susceptible to fraudulent practices. Notably, avocado oils have been a central point of various studies investigating adulteration, blend quantification, and geographical provenance [3,4,5]. On the other hand, mixing different oils is acceptable if appropriately labelled, ensuring compliance with legislation and facilitating inspection to validate the accuracy of the label information.
Despite the analytical performance of methods commonly used to assess oil quality, especially chromatographic and spectroscopic methods [3], they are costly and necessitate trained analysts and specialised equipment. These analyses are time intensive, involve many preparatory steps and the use of chemicals, generate chemical waste, and are energy intensive [4]. Additionally, on-site analysis is often impeded due to the utilities required, and the size and the stationary nature of equipment. Therefore, the agro-food industry urges user-friendly, cost-effective, portable, non-destructive, powerful, rapid, and in-line-applicable equipment to ensure food quality and safety.
The demand for cutting-edge analytical tools has propelled the use of portable instruments of vibrational spectroscopy, including infrared spectroscopy, to the forefront of on-site quality evaluation, food authentication, and safety assurance [5,6]. The development of portable devices has facilitated the on-site analyses without requiring costly equipment. Similarly, alternative portable devices have been investigated for food analysis, such as mobile cameras [4,5,7,8,9] and optical sensors [6,10].
Optical or colourimetric sensors have been employed to assess the quality of edible oils and fats through the application of chemometric or machine-learning approaches. Sanjaya et al. (2018) used a device comprising various light-emitting diodes and a light sensor to distinguish palm oil, olive oil, sesame oil, soybean oil, and lard [11]. Furthermore, a low-cost fluorescence sensor discriminated between olive oils of different quality levels, namely, extra virgin olive oil, virgin olive oil, and lampante olive oil [12]. In another study, a hyphenated photonics sensor detected fraud in extra virgin olive oil with refined and virgin olive oils, olive-pomace olive oils, and other common edible oils [13]. Similarly, a method based on a colourimetric sensor array was used to identify extra virgin olive oil mixed with soybean oil and corn oil [14].
The advancements in technology, specifically in miniaturization and cost reduction, can be leveraged to explore alternatives with potential to be scaled up for quality assurance. In this context, a rapid and inexpensive analytical tool could be useful for assessing the quality of avocado oils, especially for detecting mixtures with cheap oils, even in a screening approach. Therefore, the main objective of this proof-of-concept study was to explore the feasibility of using a low-cost colour sensor to detect the presence of soybean, canola, corn, sunflower, and olive oils in avocado oil. This study focused on evaluating the responsiveness of the sensor output to the presence of blends in avocado oil and its potential to predict their proportion in the blend. Furthermore, the study explored the more suitable modelling approach (linear or nonlinear) and the type of illuminant (white or UV light).

2. Materials and Methods

2.1. Samples Preparation

Soybean, canola, corn, and sunflower refined oils were purchased from a local market, while virgin avocado oil and extra virgin olive oil were obtained from local producers. All oils were acquired within their expiration dates and stored at a temperature of 5 °C until subjected to analysis.
For classification purposes, the pure avocado oil was analysed in 25 replicates. Additionally, blends of avocado oil with 5%, 10%, 20%, 35%, and 50% of each oil (namely, soybean, canola, corn, sunflower, and olive oil) were analysed in five replicates, resulting in total of 125 blends (five oils × five concentrations × five replicates).
For calibration purposes, both pure avocado oil and its blends with 5% to 50% in 5% intervals of these oils were analysed in five replicates, resulting in 55 samples for each blend. The blending procedure involved weighing the respective oils in 4 mL glass vials and manually agitating them for approximately 30 s. The analyses were conducted at least 4 h after sample preparation, with no visible bubbles in the oil medium.

2.2. Colour Sensor Analysis

A TCS34725 colour sensor (Texas Advanced Optoelectronic Solutions Inc., Plano, TX, USA) was utilised to acquire digital readings of red, green, blue (RGB), and clear light (C) values. This sensor was interfaced with an Arduino Uno, employing an integration time of 24 milliseconds and a gain set at 1×. A sample holder was constructed using white ethylene-vinyl acetate (EVA) material. The samples, contained in 4 mL cuvettes, were analysed without the use of any solvent. The analysis of the samples took place under two distinct lighting conditions: ultraviolet light (3V, 395 nm LED) and white light from the sensor’s light source (Figure 1). The closed sample holder ensured lighting standardisation. Raw readings for red (R), green (G), blue (B), and clear light (C) outputs were acquired by averaging 10 readings. Subsequently, the raw RGB values were normalised by dividing them by the C value, resulting in the R, G, and B values used as descriptors in the models. The sensor’s output was captured using Realterm software (version 2.0.0.70, i2cchip). The Arduino code is available in the Supplementary Materials (File S1).

2.3. Statistical Analysis

The data analysis was explored through two main tasks: a supervised classification to discriminate blends of different vegetable oils in avocado oil and a multivariate calibration to predict the proportion of a specific oil blended with avocado oil. Two classification methods were used: Linear Discriminant Analysis (LDA) and Least Squares Support Vector Machine (LS-SVM). LDA is a technique that finds a linear combination of features that characterises or separates two or more classes, resulting in a linear classifier [15]. LS-SVM, widely used in classification and nonlinear function estimation, is a version of SVM that solves linear equations instead of a quadratic programming problem. This overcomes the major drawback of SVM, which is its higher computational burden for constrained optimisation programming [16]. In the same way, both linear and non-linear methodologies were used for the multivariate calibrations: Multiple Linear Regression (MLR) and LS-SVM. The used dataset is available in the Supplementary Materials (File S2).

2.3.1. Supervised Classification

The classification task was executed using two distinct approaches: (i) a binary classification contrasting pure avocado oil against blends of avocado oil mixed with soybean, canola, corn, sunflower, and olive oils; and (ii) a simultaneous six-class classification involving pure avocado oil and each of the five oil blends. Two classification methods were employed for this task: LDA and LS-SVM, employing a radial basis function, implemented through the LS-SVM lab version 1.8 toolbox [17]. All computations were conducted using Octave version 5.2.0 [18].
The dataset was partitioned into a calibration set, encompassing 70% of the total samples, and a test set consisting of the remaining 30%, employing the Kennard-Stone algorithm [19].
The robustness of the models was assessed using the y-randomization test, which consists of fixing the X matrix (independent variables) and shuffling the y vector (dependent variables, classes) to obtain new models. It is expected that the predictive performance will decrease as the response is truly related to its predictor, thus validating the relationship between independent and dependent variables.
Model validation parameters encompassed Precision (PRE), Recall (REC), Accuracy (ACU), Error rate (ERR), F1-score (F1S), and Matthews Correlation Coefficient (MCC) [20,21] based on the total of true positives (TP), true negatives (TN), false positives (FP), and false negatives (FN):
P R E = T P T P + F P × 100
R E C = T P T P + F N × 100
A C U = T P + T N T P + T N + F P + F N × 100
E R R = F P + F N T P + T N + F P + F N × 100
F 1 S = 2 T P 2 T P + F P + F N
M C C = T P × T N F N × F P T P + F N T P + F P T N + F N ( T N + F P )
The MCC is a reliable statistical parameter that produces a high score only if the prediction achieves good results in all four categories of the confusion matrix (true positives, false negatives, true negatives, and false positives), proportionally to both the number of positive and negative elements in the dataset [22]. The MCC values can range from −1 to +1. A value of +1 indicates a perfect prediction, 0 represents a random prediction, and −1 indicates an inverse prediction.

2.3.2. Multivariate Calibration

Two modelling approaches were examined to predict the proportion of soybean, canola, corn, sunflower, and olive oils blended within avocado oil: MLR and LS-SVM. All computations were conducted using Octave version 5.2.0 [18].
The dataset was partitioned into a calibration set, encompassing 70% of the total samples, and a test set, comprising the remaining 30%, employing the Kennard-Stone algorithm. The adequacy of model fitting was evaluated using the determination coefficient (R2) and the root mean squared error (RMSE) for calibration, y-randomization, and external validation (test set).
The R m 2 value was computed (Equation (7)) to ensure that the predicted values obtained through external validation not only exhibit a strong correlation with the observed values but also demonstrate congruency. A threshold of 0.5 was adopted as valid [23].
R m 2 = R 2   1 R 2 R 0 2
where R 2 and R 0 2 represent the quadratic correlation coefficients between the actual and predicted values, with and without the intercept, respectively.
Furthermore, the robustness of the models was examined via the y-randomization test. The c R p 2 value was computed, which accounts for the distinction between the y-randomization R2 ( R r a n d 2 ) and calibration R2 ( R c a l 2 ) (Equation (8)). A c R p 2 > 0.5 was established to attest to the absence of overfitting or random adjustment [23].
c R p 2 = R c a l 2 R c a l 2 R r a n d 2

3. Results

3.1. Discriminating between Pure and Blended Avocado Oil

The initial approach was a binary assessment for evaluating the discriminative potential between pure avocado oil and its blends with various vegetable oils. To achieve this, blends of 5%, 10%, 20%, 35%, and 50% of these oils were denoted as the blended class, whereas pure avocado oil was considered as the pure class. The effect of the light source, whether white or UV light, on the classification outcomes was analysed. Detailed classification results are presented in Table 1 and Tables S1–S4 in the Supplementary Materials.
The differentiation between the two classes, namely pure and blended avocado oil, was attempted through LDA and LS-SVM models. The LDA models, whether employing white or UV light, exhibited unsatisfactory performance in the classification of pure avocado oil versus blended oil. The results revealed a 100% recall for the blended avocado oil class but produced a recall of 0 for pure avocado oil, both for calibration and test sets. The practical interpretation of these findings indicates that this model exhibited excessive stringency, thereby categorising all samples, including those of pure avocado oil, as blends.
Conversely, the LS-SVM model yielded praiseworthy results in the binary classification between pure and blended avocado oil (Table 1), achieving flawless classifications (with an accuracy of 100%) under white light. The MCC values of +1 for both calibration and test sets further corroborated these outcomes. Additionally, the low MCC values observed in the y-randomization test indicated the absence of overfitting or random adjustments in the model.

3.2. Discriminating between Blend Types in Avocado Oil

The next approach aimed to achieve multi-class discrimination between pure avocado oil and avocado oil blended with canola, sunflower, corn, olive, and soybean oils. Similar to the initial approach, discrimination among samples was attempted with LDA and LS-SVM models under two distinct illuminants (white or UV light). The performance parameters of this approach are presented in Table 2 and Tables S5–S8 in the Supplementary Materials.
The use of white light generally resulted in superior performance compared to the UV light condition across all classes, for both LDA and LS-SVM models. As in the binary classification, the LDA models exhibited inferior performance to the LS-SVM. Specifically, the LDA models had accuracies hovering around 80%; however, the low values of precision, recall, F1-score, and MCC indicated inadequate classification performance across all classes. Moreover, the relatively high accuracy observed in the y-randomization test suggested a potential tendency towards random adjustments. Thus, it can be inferred that the colourimetric data read by the sensor might not have been adequate to linearly describe the differentiation between pure avocado oil and its blends.
On the other hand, the LS-SVM models had superior performance, particularly under white light condition, with a low error rate across all classes. The models exhibited accuracy levels exceeding 90% for most classes in both the calibration and test sets. Furthermore, the elevated values of precision, recall, F1-score, and MCC confirmed the efficacy of this approach, while the poor performance in the y-randomization test, especially with low MCC values, suggested the absence of overfitting or random adjustments [23].
Lower MCC values were observed for the test set in the cases of canola (MCC = 0.56) and soybean (MCC = 0.78) blends. In these instances, a few samples assumed to be soybean blends were classified as canola oil blends (Table S2). Nonetheless, the model indicated that these samples were not pure avocado oil; rather, they lacked the specific oil blended with the avocado oil.

3.3. Predicting the Blend Level in Avocado Oil

In order to construct the calibration models, samples for each blend, ranging from 0% to 50% vegetable oil (canola, corn, soy, sunflower, and olive), were analysed. The statistical parameters from the MLR and LS-SVM models for all blends under the two illuminants (white and UV light) are detailed in Table 3.
The MLR models were able to predict the levels of canola, sunflower, corn, olive, and soybean oils blended with avocado oil, achieving calibration R2 > 0.8 for both illuminants (Table 3). However, the MLR models for canola and corn oil blends exhibited relatively lower calibration R2 values (0.78 and 0.66, respectively) under UV light. Also, R2 values ranging from 0.75 to 0.98 were obtained for the test set, in addition to R2m values > 0.5, indicating congruence between actual and predicted values. Despite high RMSE values and low R2, the cR2p > 0.5 suggested no overfitting or random adjustments.
Conversely, the LS-SVM models produced superior outcomes compared to the MLR models, particularly under white light, with R2 values > 0.93 for both calibration and test sets. The RMSE values from the LS-SVM models were notably lower than those obtained from the MLR models. Furthermore, the elevated R2m values (ranging from 0.87 to 0.99) indicated excellent congruence between actual and predicted values. The LS-SVM models exhibited poor performance in the y-randomization test, with cR2p values exceeding 0.5, suggesting the robustness of these models without overfitting or random adjustments. Comparisons between actual and predicted percentages of the vegetable oils in the blends with avocado oil by LS-SVM using white light for both calibration and test sets are presented in Figure 2.

4. Discussion

Certainly, the outcomes reveal that the models generated under white light conditions exhibited superior classification metrics compared to those under UV light for both calibration and test sets. A long-wavelength band at 350–420 nm in excitation and 660–700 nm in emission is attributed to the fluorescence of pigments of the chlorophyll group in olive oils [24], while excitation at 320–420 nm and emission at 400–500 nm is associated with oxidation products [25,26]. According to Hakonen and Beves [7], the fluorescence detected at a 90° angle from an excitation light might produce inner filter effects due to the presence of particles in a liquid medium. They suggested that this effect, when using a 405 nm excitation light, could provide additional informative details for distinguishing pure oils based on colour parameters obtained via a smartphone camera. However, they highlighted a possible drawback of inhomogeneous sample images, which might have contributed to the unsatisfactory classification performance for the oil blends using the colour sensor under UV light. The evident difference in performance attributed to different light sources aligns with the known significance of illumination in colourimetric techniques [26,27,28].
A noticeable disparity in classification performance and superior outcomes for LS-SVM models over LDA was evident. LDA stands out as a prevalent choice among supervised methods for tasks like food matrix authentication, characterization, and adulteration detection [29]. LDA is frequently used as a linear classifier [30], similar to MLR, a regression method relying on the linear relationship between dependent and independent variables. In contrast, LS-SVM employs a non-linear algorithm, which, although more computationally intensive, exhibits greater generalisation power [31]. Some authors emphasise that machine learning techniques such as SVM complement the implementation of low-cost sensors, compensating for limitations in their design and manufacture [32]. This is feasible because SVM operates as an optimisation-based model, seeking the best hyperplane to maximise margins within a high-dimensional space. Unlike in linear regression, where the impact of all data points is uniform, in SVM, each data point influences the final optimisation [33]. Therefore, the superiority of LS-SVM over LDA can be attributed to the mathematical qualities of each model in terms of data processing and their ability to discriminate between classes, with LS-SVM classification performing better than LDA.
These outcomes confirm that the RGB sensor coupled with LS-SVM not only detected blends of vegetable oils in avocado oil but was also able to predict the blend proportion. Assessing oil authenticity typically involves quantifying triacylglycerol components using gas chromatography or high-performance liquid chromatography, especially when evaluating blends of virgin oils, such as avocado or olive, with refined vegetable oils [34]. Another common approach involves spectroscopic methods coupled with chemometric tools [35]. However, both of these methods require the use of expensive equipment, reagents, and/or considerable time, in contrast to the colour sensor-based device used in the present work.
This study had similar or superior performance compared to previous studies that used colourimetric sensors or traditional analytical techniques to assess oil quality. Huang et al. (2022) achieved cross-validation with accuracy of 90.7% and 81.5% for distinguishing extra virgin olive oil from its mixtures with soybean and corn oil, respectively, using a colourimetric sensor array [17]. Naik et al. (2023) demonstrated that a paper-based colour sensor was able to detect the presence of palm oil and sunflower oil added to cow ghee at a concentration of 2.5% or more [36]. Amit et al. (2020) achieved an RMSE lower than 1% for a test set when using Fourier transform infrared spectroscopy to detect fried coconut oil mixed with pure coconut oil [37]. Tian et al. (2019) reported that gas chromatography can reliably identify peanut oil mixed with a minimum of 5% rapeseed oil based on fatty acid profiles [38]. Similar to the present study and others [39,40,41,42,43], all of these studies focused on demonstrating the feasibility of analytical techniques without examine mixtures of oils from different suppliers. Therefore, once the feasibility of an analytical technique has been demonstrated, further research can be conducted to validate and investigate the robustness of methods using larger and more diverse sample sets from different sources and suppliers.

5. Conclusions

This proof-of-concept study presents evidence regarding a cost-effective colour sensor (RGB), which can be a feasible solution for detecting and distinguishing blends of vegetable oils in avocado oil. This RGB sensor was able to quantify blends in avocado oil and their proportions.
The classification models effectively identified mixtures of various vegetable oils in avocado oil, with an accuracy exceeding 90%. Notably, non-linear LS-SVM models performed better under white light conditions, using the sensor’s light source, thereby streamlining the analysis process. In addition, the method proved to be rapid and cost-effective, without the necessity of any additional sample pretreatment.
This evidence can be used in future research for further validation and robustness studies with even higher number of samples and other oils or mixtures, thus further establishing this portable device as useful for accurately detecting oil blends.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/foods13040572/s1, Table S1: Confusion matrix for the test set obtained by LDA two-class model to discriminate pure avocado oil from its blends with canola, sunflower, corn, olive, and soybean oils using the TCS34725 sensor under white light; Table S2: Confusion matrix for the test set obtained by LDA two-class model to discriminate pure avocado oil from its blends with canola, sunflower, corn, olive, and soybean oils using the TCS34725 sensor under UV light; Table S3: Confusion matrix for the test set obtained by LS-SVM two-class model to discriminate pure avocado oil from its blends with canola, sunflower, corn, olive, and soybean oils using the TCS34725 sensor under white light; Table S4: Confusion matrix for the test set obtained by LS-SVM two-class model to discriminate pure avocado oil from its blends with canola, sunflower, corn, olive, and soybean oils using the TCS34725 sensor under UV light; Table S5: Confusion matrix for the test set obtained by LDA six-class model to classify pure avocado oil and avocado oil blended with canola, sunflower, corn, olive, and soybean oils using the TCS34725 sensor under white light; Table S6: Confusion matrix for the test set obtained by LDA six-class model to classify pure avocado oil and avocado oil blended with canola, sunflower, corn, olive, and soybean oils using the TCS34725 sensor under UV light; Table S7: Confusion matrix for the test set obtained by LS-SVM six-class model to classify pure avocado oil and avocado oil blended with canola, sunflower, corn, olive, and soybean oils using the TCS34725 sensor under white light; Table S8: Confusion matrix for the test set obtained by LS-SVM six-class model to classify pure avocado oil and avocado oil blended with canola, sunflower, corn, olive, and soybean oils using the TCS34725 sensor under UV light; File S1: Arduino code for TCS34725 sensor; File S2: Dataset with sensor readings, oil classes and percentages.

Author Contributions

Conceptualization, N.D.L. and C.A.N.; methodology, C.A.N.; software, C.A.N. and R.A.d.R.; validation, N.D.L. and C.A.N.; formal analysis, N.D.L.; investigation, N.D.L.; resources, C.A.N.; data curation, N.D.L. and C.A.N.; writing—original draft preparation, N.D.L.; writing—review and editing, N.D.L., C.A.N., E.H.P., L.L.G.T. and Y.S.M.; visualization, C.A.N., L.L.G.T. and Y.S.M.; supervision, C.A.N. and E.H.P.; project administration, C.A.N.; funding acquisition, N.D.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Coordination of Superior Level Staff Improvement—CAPES grant number 88887.463675/2019-00 and CAPES Print Program, grant number 88887.682557/2022-00.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data is contained within the article or Supplementary Material.

Acknowledgments

The authors thank National Council for Scientific and Technological Development—CNPq (305628/2022-4), São Paulo Research Foundation—FAPESP (grant #2023/00474-4), Universidade Federal de Lavras—UFLA and Lancaster University (School of Engineering) for accepting to host the visitor in the UK.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Flores, M.; Saravia, C.; Vergara, C.E.; Avila, F.; Valdés, H.; Ortiz-Viedma, J. Avocado Oil: Characteristics, Properties, and Applications. Molecules 2019, 24, 2172. [Google Scholar] [CrossRef]
  2. Cervantes-Paz, B.; Yahia, E.M. Avocado Oil: Production and Market Demand, Bioactive Components, Implications in Health, and Tendencies and Potential Uses. Compr. Rev. Food Sci. Food Saf. 2021, 20, 4120–4158. [Google Scholar] [CrossRef]
  3. Rohman, A.; Irnawati; Windarsih, A.; Riswanto, F.D.; Indrayanto, G.; Fadzillah, N.A.; Riyanto, S.; Bakar, N.K. Application of Chromatographic and Spectroscopic-Based Methods for Analysis of Omega-3 (ω-3 FAs) and Omega-6 (ω-6 FAs) Fatty Acids in Marine Natural Products. Molecules 2023, 28, 5524. [Google Scholar] [CrossRef]
  4. Song, W.; Jiang, N.; Wang, H.; Vincent, J. Use of Smartphone Videos and Pattern Recognition for Food Authentication. Sens. Actuators B Chem. 2020, 304, 127247. [Google Scholar] [CrossRef]
  5. Nelis, J.L.D.; Tsagkaris, A.S.; Dillon, M.J.; Hajslova, J.; Elliott, C.T. Smartphone-Based Optical Assays in the Food Safety Field. TrAC-Trends Anal. Chem. 2020, 129, 115934. [Google Scholar] [CrossRef] [PubMed]
  6. Rodriguez-Saona, L.; Aykas, D.P.; Borba, K.R.; Urtubia, A. Miniaturization of Optical Sensors and Their Potential for High-Throughput Screening of Foods. Food Chem. Biochem. Food Bioprocess. 2020, 31, 136–150. [Google Scholar] [CrossRef]
  7. Hakonen, A.; Beves, J.E. Hue Parameter Fluorescence Identification of Edible Oils with a Smartphone. ACS Sens. 2018, 3, 2061–2065. [Google Scholar] [CrossRef]
  8. Resende, L.M.B.; Magalhães, E.J.; Nunes, C.A. Optimization and Validation of a Smartphone-Based Method for the Determination of Total Sterols in Selected Vegetable Oils by Digital Image Colorimetry. J. Food Compos. Anal. 2023, 117, 105111. [Google Scholar] [CrossRef]
  9. Anconi, A.C.S.A.; Brito, N.C.S.; Nunes, C.A. Determination of Peroxide Value in Edible Oils Based on Digital Image Colorimetry. J. Food Compos. Anal. 2022, 113, 104724. [Google Scholar] [CrossRef]
  10. Arslan, M.; Tahir, H.E.; Zareef, M.; Shi, J.; Rakha, A.; Bilal, M.; Xiaowei, H.; Zhihua, L.; Xiaobo, Z. Recent Trends in Quality Control, Discrimination and Authentication of Alcoholic Beverages Using Nondestructive Instrumental Techniques. Trends Food Sci. Technol. 2021, 107, 80–113. [Google Scholar] [CrossRef]
  11. Sanjaya, W.S.M.; Anggraeni, D.; Mira, S.; Maryanti, C.; Wardoyo, L.; Marlina, A.; Roziqin, A. Kusumorini Low-Cost Portable Spectrometer for Lard Detection Based on SVM Method. In Proceedings of the 2018 International Conference on Information and Communications Technology (ICOIACT), Yogyakarta, Indonesia, 6–7 March 2018; pp. 923–928. [Google Scholar]
  12. Venturini, F.; Sperti, M.; Michelucci, U.; Herzig, I.; Baumgartner, M.; Caballero, J.P.; Jimenez, A.; Deriu, M.A. Exploration of Spanish Olive Oil Quality with a Miniaturized Low-Cost Fluorescence Sensor and Machine Learning Techniques. Foods 2021, 10, 1010. [Google Scholar] [CrossRef] [PubMed]
  13. Weesepoel, Y.; Alewijn, M.; Wijtten, M.; Müller-Maatsch, J. Detecting Food Fraud in Extra Virgin Olive Oil Using a Prototype Portable Hyphenated Photonics Sensor. J. AOAC Int. 2021, 104, 7–15. [Google Scholar] [CrossRef]
  14. Huang, L.; Wang, M.; Liu, H. Identification of Adulterated Extra Virgin Olive Oil by Colorimetric Sensor Array. Food Anal. Methods 2022, 15, 647–657. [Google Scholar] [CrossRef]
  15. Izenman, A.J. Linear Discriminant Analysis. In Modern Multivariate Statistical Techniques: Regression, Classification, and Manifold Learning; Izenman, A.J., Ed.; Springer: New York, NY, USA, 2008; pp. 237–280. ISBN 978-0-387-78189-1. [Google Scholar]
  16. Wang, H.; Hu, D. Comparison of SVM and LS-SVM for Regression. In Proceedings of the 2005 International Conference on Neural Networks and Brain, Beijing, China, 13–15 October 2005; Volume 1, pp. 279–283. [Google Scholar]
  17. Suykens, J.; Van Gestel, T.; De Brabanter, J.; De Moor, B.; Vandewalle, J. Least Square Support Vector Machine; World Scientific Pub. Co.: Singapore, 2002. [Google Scholar]
  18. Eaton, J.W.; Bateman, D.; Hauberg, S. A High-Level Interactive Language for Numerical Computations. In GNU Octave Manual Version 3; Network Theory Ltd.: Surrey, UK, 2008. [Google Scholar]
  19. Yun, Y.-H. Method of Selecting Calibration Samples. In Chemometric Methods in Analytical Spectroscopy Technology; Chu, X., Huang, Y., Yun, Y.-H., Bian, X., Eds.; Springer: Singapore, 2022; pp. 297–308. ISBN 978-981-19162-5-0. [Google Scholar]
  20. Grandini, M.; Bagli, E.; Visani, G. Metrics for Multi-Class Classification: An Overview. arXiv 2020, arXiv:200805756. [Google Scholar]
  21. Sokolova, M.; Lapalme, G. A Systematic Analysis of Performance Measures for Classification Tasks. Inf. Process. Manag. 2009, 45, 427–437. [Google Scholar] [CrossRef]
  22. Chicco, D.; Jurman, G. The Advantages of the Matthews Correlation Coefficient (MCC) over F1 Score and Accuracy in Binary Classification Evaluation. BMC Genom. 2020, 21, 6. [Google Scholar] [CrossRef] [PubMed]
  23. Mitra, I.; Saha, A.; Roy, K. Exploring Quantitative Structure–Activity Relationship Studies of Antioxidant Phenolic Compounds Obtained from Traditional Chinese Medicinal Plants. Mol. Simul. 2010, 36, 1067–1079. [Google Scholar] [CrossRef]
  24. Sikorska, E.; Khmelinskii, I.V.; Sikorski, M.; Caponio, F.; Bilancia, M.T.; Pasqualone, A.; Gomes, T. Fluorescence Spectroscopy in Monitoring of Extra Virgin Olive Oil during Storage. Int. J. Food Sci. Technol. 2008, 43, 52–61. [Google Scholar] [CrossRef]
  25. Ammari, F.; Cordella, C.B.Y.; Boughanmi, N.; Rutledge, D.N. Independent Components Analysis Applied to 3D-Front-Face Fluorescence Spectra of Edible Oils to Study the Antioxidant Effect of Nigella sativa L. Extract on the Thermal Stability of Heated Oils. Chemom. Intell. Lab. Syst. 2012, 113, 32–42. [Google Scholar] [CrossRef]
  26. Lleó, L.; Hernández-Sánchez, N.; Ammari, F.; Roger, J.-M. 3D Front-Face Fluorescence Spectroscopy for Characterization of Extra Virgin Olive Oil and Olive Oil According to the Spectral Pattern. CIGR J. 2016, 18, 190–199. [Google Scholar]
  27. Song, W.; Song, Z.; Vincent, J.; Wang, H.; Wang, Z. Quantification of Extra Virgin Olive Oil Adulteration Using Smartphone Videos. Talanta 2020, 216, 120920. [Google Scholar] [CrossRef]
  28. de Carvalho, I.M.; da Silva Mutz, Y.; Machado, A.C.; de Lima Santos, A.A.; Magalhães, E.J.; Nunes, C.A. Exploring Strategies to Mitigate the Lightness Effect on the Prediction of Soybean Oil Content in Blends of Olive and Avocado Oil Using Smartphone Digital Image Colorimetry. Foods 2023, 12, 3436. [Google Scholar] [CrossRef]
  29. Esteki, M.; Shahsavari, Z.; Simal-Gandara, J. Use of Spectroscopic Methods in Combination with Linear Discriminant Analysis for Authentication of Food Products. Food Control 2018, 91, 100–112. [Google Scholar] [CrossRef]
  30. Ye, J.; Janardan, R.; Li, Q. Two-Dimensional Linear Discriminant Analysis. In Proceedings of the 2004 Annual Conference on Neural Information Processing Systems, Vancouver, Canada, 13–16 December 2004; Volume 17, pp. 1569–1576. [Google Scholar]
  31. Yu, L.; Wang, S.; Cao, J. A Modified Least Squares Support Vector Machine Classifier with Application to Credit Risk Analysis. Int. J. Inf. Technol. Decis. Mak. IJITDM 2009, 8, 697–710. [Google Scholar] [CrossRef]
  32. Payette, J.; Vaussenat, F.; Cloutier, S. Deep Learning Framework for Sensor Array Precision and Accuracy Enhancement. Sci. Rep. 2023, 13, 11237. [Google Scholar] [CrossRef]
  33. Othman, S.; Mavani, N.R.; Hussain, M.A.; Rahman, N.A.; Mohd Ali, J. Artificial Intelligence-Based Techniques for Adulteration and Defect Detections in Food and Agricultural Industry: A Review. J. Agric. Food Res. 2023, 12, 100590. [Google Scholar] [CrossRef]
  34. de la Mata-Espinosa, P.; Bosque-Sendra, J.M.; Bro, R.; Cuadros-Rodríguez, L. Olive Oil Quantification of Edible Vegetable Oil Blends Using Triacylglycerols Chromatographic Fingerprints and Chemometric Tools. Talanta 2011, 85, 177–182. [Google Scholar] [CrossRef]
  35. Aroca-Santos, R.; Lastra-Mejias, M.; Cancilla, J.C.; Torrecilla, J.S. Linear and Non-Linear Quantification of Extra Virgin Olive Oil, Soybean Oil, and Sweet Almond Oil in Blends to Assess Their Commercial Labels. J. Food Compos. Anal. 2019, 75, 70–74. [Google Scholar] [CrossRef]
  36. Naik, Y.K.; Sharma, V.; Arora, S.; Seth, R. Development and Application of DPPH Impregnated Paper Based Color Sensor Disc to Detect Vegetable Oils Addition in Cow Ghee. J. Food Sci. Technol. 2023, 60, 3014–3023. [Google Scholar] [CrossRef]
  37. Amit; Jamwal, R.; Kumari, S.; Kelly, S.; Cannavan, A.; Singh, D.K. Rapid Detection of Pure Coconut Oil Adulteration with Fried Coconut Oil Using ATR-FTIR Spectroscopy Coupled with Multivariate Regression Modelling. LWT 2020, 125, 109250. [Google Scholar] [CrossRef]
  38. Tian, L.; Zeng, Y.; Zheng, X.; Chiu, Y.; Liu, T. Detection of Peanut Oil Adulteration Mixed with Rapeseed Oil Using Gas Chromatography and Gas Chromatography–Ion Mobility Spectrometry. Food Anal. Methods 2019, 12, 2282–2292. [Google Scholar] [CrossRef]
  39. Jamwal, R.; Amit; Kumari, S.; Balan, B.; Kelly, S.; Cannavan, A.; Singh, D.K. Rapid and Non-Destructive Approach for the Detection of Fried Mustard Oil Adulteration in Pure Mustard Oil via ATR-FTIR Spectroscopy-Chemometrics. Spectrochim. Acta A. Mol. Biomol. Spectrosc. 2021, 244, 118822. [Google Scholar] [CrossRef]
  40. Wang, R.; Liu, K.; Wang, X.; Tan, M. Detection of Sesame Oil Adulteration Using Low-Field Nuclear Magnetic Resonance and Chemometrics. Int. J. Food Eng. 2019, 15, 20180349. [Google Scholar] [CrossRef]
  41. Su, N.; Weng, S.; Wang, L.; Xu, T. Reflectance Spectroscopy with Multivariate Methods for Non-Destructive Discrimination of Edible Oil Adulteration. Biosensors 2021, 11, 492. [Google Scholar] [CrossRef]
  42. de Lima, T.K.; Musso, M.; Bertoldo Menezes, D. Using Raman Spectroscopy and an Exponential Equation Approach to Detect Adulteration of Olive Oil with Rapeseed and Corn Oil. Food Chem. 2020, 333, 127454. [Google Scholar] [CrossRef]
  43. Popa, S.; Milea, M.S.; Boran, S.; Nițu, S.V.; Moșoarcă, G.E.; Vancea, C.; Lazău, R.I. Rapid Adulteration Detection of Cold Pressed Oils with Their Refined Versions by UV–Vis Spectroscopy. Sci. Rep. 2020, 10, 16100. [Google Scholar] [CrossRef]
Figure 1. Device used to read colour parameters of oils based on a TCS34725 sensor interfaced with Arduino.
Figure 1. Device used to read colour parameters of oils based on a TCS34725 sensor interfaced with Arduino.
Foods 13 00572 g001
Figure 2. Actual and predicted proportion of canola, sunflower, corn, olive, or soybean oils blended with avocado oil using the TCS34725 colour sensor under white light and LS-SVM models.
Figure 2. Actual and predicted proportion of canola, sunflower, corn, olive, or soybean oils blended with avocado oil using the TCS34725 colour sensor under white light and LS-SVM models.
Foods 13 00572 g002
Table 1. Performance parameters for LDA and LS-SVM two-class models to discriminate pure avocado oil from its blends with canola, sunflower, corn, olive, and soybean oils using the TCS34725 colour sensor under white and UV light.
Table 1. Performance parameters for LDA and LS-SVM two-class models to discriminate pure avocado oil from its blends with canola, sunflower, corn, olive, and soybean oils using the TCS34725 colour sensor under white and UV light.
White LightUV Light
LDALS-SVMLDALS-SVM
OverallPureBlended *OverallPureBlended *OverallPureBlended *OverallPureBlended *
calibrationPRE42.00.084.0100.0100.0100.092.9100.085.995.392.997.7
REC50.00.0100.0100.0100.0100.053.36.7100.092.786.798.8
ACU84.084.084.0100.0100.0100.086.086.086.097.097.097.0
ERR16.016.016.00.00.00.014.014.014.03.03.03.0
F1S0.460.000.911.001.001.000.520.130.920.940.900.98
MCC0.000.000.001.001.001.000.240.240.240.880.880.88
y-rand.PRE42.00.084.051.518.284.952.520.085.159.030.088.1
REC50.00.0100.053.06.399.850.21.399.160.320.7100.0
ACU84.084.084.084.884.884.884.484.484.488.188.188.1
ERR16.016.016.015.215.215.215.615.615.611.911.911.9
F1S0.460.000.910.500.080.920.470.030.920.570.210.94
MCC0.000.000.000.090.090.090.010.010.010.220.220.22
testPRE41.00.082.0100.0100.0100.040.00.080.082.775.090.5
REC50.00.0100.0100.0100.0100.050.00.0100.077.560.095.0
ACU82.082.082.0100.0100.0100.080.080.080.088.088.088.0
ERR18.018.018.00.00.00.020.020.020.012.012.012.0
F1S0.450.000.901.001.001.000.440.000.890.800.670.93
MCC0.000.000.001.001.001.000.000.000.000.600.600.60
PRE: Precision. REC: Recall. ACU: Accuracy. ERR: Error rate. F1S: F1-score. MCC: Matthews correlation coefficient. * Avocado oil blended with 5, 10, 20, 35, or 50% canola, sunflower, corn, olive, or soybean oils.
Table 2. Performance parameters for LDA and LS-SVM six-class models to classify pure avocado oil and avocado oil blended with canola, sunflower, corn, olive, and soybean oils using the TCS34725 colour sensor under white and UV light.
Table 2. Performance parameters for LDA and LS-SVM six-class models to classify pure avocado oil and avocado oil blended with canola, sunflower, corn, olive, and soybean oils using the TCS34725 colour sensor under white and UV light.
White Light
LDALS−SVM
OverallPureCanolaSunflowerCornOliveSoybeanOverallPureCanolaSunflowerCornOliveSoybean
calibrationPRE62.182.442.2100.068.280.00.098.5100.090.9100.0100.0100.0100.0
REC56.887.595.06.788.263.20.097.8100.0100.0100.0100.094.792.3
ACU87.095.073.086.091.090.087.099.3100.098.0100.0100.099.099.0
ERR13.05.027.014.09.010.013.00.70.02.00.00.01.01.0
F1S0.510.850.580.130.770.710.000.981.000.951.001.000.970.96
MCC0.490.820.500.240.720.650.000.981.000.941.001.000.970.96
y-rand.PRE19.211.820.750.017.715.30.038.228.238.735.245.345.236.8
REC16.212.546.53.322.912.10.036.776.975.58.015.318.925.4
ACU72.771.053.685.068.870.687.079.463.769.786.084.583.389.3
ERR27.329.046.415.031.229.413.020.636.330.314.015.516.710.7
F1S0.10.10.30.10.20.10.00.300.410.510.120.220.240.29
MCC0.01−0.050.020.100.01−0.040.000.260.280.360.150.220.230.28
testPRE26.663.616.70.054.525.50.089.7100.038.5100.0100.0100.0100.0
REC41.677.880.00.075.016.70.086.7100.0100.070.0100.083.366.7
ACU78.788.058.080.086.084.076.094.7100.084.094.0100.098.092.0
ERR21.312.042.020.014.016.024.05.30.016.46.00.02.08.0
F1S0.300.700.280.000.630.200.000.851.000.560.821.000.910.80
MCC0.250.630.210.000.560.120.000.841.000.560.811.000.900.78
UV Light
LDALS−SVM
OverallPureCanolaSunflowerCornOliveSoybeanOverallPureCanolaSunflowerCornOliveSoybean
calibrationPRE36.046.740.050.033.346.20.099.093.8100.0100.0100.0100.0100.0
REC42.593.331.636.833.360.00.099.1100.0100.094.7100.0100.0100.0
ACU81.383.078.081.080.078.088.099.799.0100.099.0100.0100.0100.0
ERR18.717.022.019.020.022.012.00.31.00.01.00.00.00.0
F1S0.380.620.350.420.330.520.000.990.971.000.971.001.001.00
MCC0.290.580.220.320.220.390.000.990.961.000.971.001.001.00
y-rand.PRE14.014.016.022.911.319.60.041.731.639.745.643.954.335.0
REC15.728.012.616.811.325.50.044.086.065.333.713.341.025.0
ACU72.263.470.873.473.464.288.081.767.677.183.386.186.090.3
ERR27.836.629.226.626.635.812.018.332.422.916.713.914.09.7
F1S0.140.190.140.190.110.220.000.360.460.480.330.190.430.26
MCC−0.01−0.02−0.030.04−0.04−0.010.000.320.370.390.310.200.420.26
testPRE34.945.014.328.6100.021.40.052.163.625.062.566.733.361.5
REC36.790.016.733.320.060.00.051.470.033.383.340.020.061.5
ACU78.076.078.082.084.074.074.085.086.080.092.084.088.080.0
ERR22.024.022.018.016.026.026.015.014.020.08.016.012.020.0
F1S0.290.600.150.310.330.320.000.510.670.290.710.500.250.62
MCC0.230.510.030.210.410.240.000.420.580.170.680.430.200.48
PRE: Precision. REC: Recall. ACU: Accuracy. ERR: Error rate. F1S: F1-score. MCC: Matthews correlation coefficient. Canola, sunflower, corn, olive, and soybean oil percentages in avocado oil were 5, 10, 20, 35, or 50%.
Table 3. Performance parameters for MLR and LS-SVM models to predict the proportion of canola, sunflower, corn, olive, or soybean oils blended with avocado oil using the TCS34725 colour sensor under white and UV light.
Table 3. Performance parameters for MLR and LS-SVM models to predict the proportion of canola, sunflower, corn, olive, or soybean oils blended with avocado oil using the TCS34725 colour sensor under white and UV light.
White LightUV Light
MLRLS-SVMMLRLS-SVM
canola oil
calibrationRMSE6.021.447.605.37
R20.860.990.780.90
y-randomizationRMSE20.979.4821.4013.52
R20.020.640.010.44
cR2p0.850.590.770.64
testRMSE6.362.557.127.35
R20.830.970.770.77
R2m0.700.970.570.60
sunflower oil
calibrationRMSE3.081.892.892.91
R20.960.990.970.97
y-randomizationRMSE22.386.7721.1910.65
R20.060.780.040.61
cR2p0.930.450.950.59
testRMSE2.631.373.863.81
R20.970.990.940.94
R2m0.960.980.920.92
corn oil
calibrationRMSE4.382.298.954.61
R20.930.980.660.91
y-randomizationRMSE23.376.0319.958.25
R20.010.720.030.81
cR2p0.930.510.640.30
testRMSE4.312.627.537.91
R20.910.970.760.77
R2m0.880.960.580.64
olive oil
calibrationRMSE7.142.536.884.08
R20.820.980.820.94
y-randomizationRMSE22.0711.7121.8113.61
R20.020.600.010.57
cR2p0.810.610.820.59
testRMSE6.393.075.744.92
R20.750.930.870.90
R2m0.540.870.530.75
soybean oil
calibrationRMSE2.450.902.201.54
R20.981.000.980.99
y-randomizationRMSE22.2612.7922.378.07
R20.030.400.010.63
cR2p0.960.770.970.60
testRMSE2.231.172.271.62
R20.980.990.980.99
R2m0.960.990.980.99
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Lorenzo, N.D.; da Rocha, R.A.; Papaioannou, E.H.; Mutz, Y.S.; Tessaro, L.L.G.; Nunes, C.A. Feasibility of Using a Cheap Colour Sensor to Detect Blends of Vegetable Oils in Avocado Oil. Foods 2024, 13, 572. https://doi.org/10.3390/foods13040572

AMA Style

Lorenzo ND, da Rocha RA, Papaioannou EH, Mutz YS, Tessaro LLG, Nunes CA. Feasibility of Using a Cheap Colour Sensor to Detect Blends of Vegetable Oils in Avocado Oil. Foods. 2024; 13(4):572. https://doi.org/10.3390/foods13040572

Chicago/Turabian Style

Lorenzo, Natasha D., Roney A. da Rocha, Emmanouil H. Papaioannou, Yhan S. Mutz, Leticia L. G. Tessaro, and Cleiton A. Nunes. 2024. "Feasibility of Using a Cheap Colour Sensor to Detect Blends of Vegetable Oils in Avocado Oil" Foods 13, no. 4: 572. https://doi.org/10.3390/foods13040572

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop