Transmittance Multispectral Imaging for Reheated Coconut Oil Differentiation

D. Y. L. Ranasinghe, H. M. H. K. Weerasooriya, Sanjaya Herath, M. P. B. Ekanayake, H. M. V. R. Herath, G. M. R. I. Godaliyadda, Terrence MadhujithIEEE Access 2022

TL;DR

This paper introduces a novel application of multispectral imaging (MSI) for differentiating reheated coconut oil based on its "reheat cycle count." By analyzing the transmittance spectra of the oil, the researchers developed a cost-effective, non-destructive method to estimate how many times oil has been heated, a crucial factor for food safety and quality. This work addresses a significant gap in food analysis by providing a rapid screening tool for a common but understudied food degradation process.

What Problem Does This Paper Address?

The widespread practice of reheating cooking oil, particularly in South Asia, poses significant health risks due to the formation of harmful compounds. While traditional chemical analyses exist, they are often time-consuming and destructive. Existing rapid screening methods like RGB photography lack the spectral sensitivity to detect subtle changes in oils. This paper tackles the challenge of developing a fast, non-destructive, and cost-effective method to assess the extent of oil degradation caused by repeated heating, specifically focusing on identifying "critical classes" of reheating where substantial changes occur.

Methods

The core of this research lies in two main analytical approaches applied to transmittance multispectral images of reheated coconut oil:

  • Reheat Cycle Count Classification:
    • Feature Extraction: Fisher Discriminant Analysis (FDA) was used for dimensionality reduction of the spectral data.
  • Classification: Bhattacharyya distance was calculated between the spectral features of a reheated oil sample and a pure oil sample. This distance was then used as input for a Support Vector Machine (SVM) classifier to estimate the reheat cycle count.
  • Significant Alteration Detection:
    • Unsupervised Clustering: A modified spectral clustering (SC) algorithm was employed to identify "critical classes" where significant changes in spectral properties occur.
  • Optimal Cluster Selection: Two algorithms, Largest Gap Value (LGV) and Largest Bandwidth (LBW), were used to determine the optimal number of clusters, aiming to group classes with marginal changes while separating those with significant alterations.

The system utilizes a custom-built, low-cost transmittance-based Multispectral Imaging System (MIS) with nine narrow-band LEDs covering wavelengths from UV to near-infrared.

Datasets

The study utilized a dataset of spectral signatures acquired from reheated coconut oil.

  • Dataset Creation: Nine independent trials were conducted, with oil reheated six times in each trial. MSI images were acquired after each reheating instance.
  • Dataset Size: After pre-processing, approximately 8100 spectral signatures were recorded for each reheat cycle count class.
  • Training/Testing: For the classification study (III-D2), a dataset of 360 labeled sets (135 signatures per set) was created, with an 80:20 train-test split.
  • Unsupervised Study: For the alteration detection study (III-D3), the dataset was separated by trial into nine subsets, each containing 5400 spectral signatures, to maintain trial integrity for unsupervised learning.

Key Insights and Ideas

  • MSI Superiority over RGB: Transmittance MSI demonstrates a clear advantage over RGB photography in differentiating reheated oil, as subtle spectral changes are not visible in standard RGB images.
  • Bhattacharyya Distance as a Proxy: The Bhattacharyya distance effectively captures the spectral changes in oil due to reheating, serving as a reliable statistical feature for classification.
  • Unsupervised Detection of Critical Changes: Spectral clustering offers a powerful way to identify "critical reheat cycle count classes" where significant chemical property changes occur, without prior labeling.
  • Cost-Effective Solution: The development of a low-cost MIS makes this technology more accessible for practical applications, especially in regions where oil reheating is prevalent.
  • Potential for Broader Application: The methodology is presented as a novel approach for food image analysis, with potential to be extended to other oil types and food items.

Key Results

  • Reheat Cycle Count Classification Accuracy: The SVM classifier achieved an overall accuracy of 86.84% for training data and 83.34% for test data in classifying reheat cycle counts. When considering only heated oil samples, accuracies of 84.21% (train) and 80.00% (test) were achieved.
  • Critical Alteration Detection: The spectral clustering framework, particularly the LBW algorithm, successfully identified critical reheat cycle count classes that showed significant spectral property changes, aligning well with chemical analysis results (TBARS and TOTOX).
  • Chemical Analysis Correlation: Chemical analysis confirmed significant increases in TBARS and TOTOX values with increasing reheat cycles, validating the spectral findings. For instance, a 20% and 200% increase in TBARS and TOTOX was observed with p < 0.05.

Limitations and Future Work

  • Trial-Specific Analysis: The study suggests that analyzing different oil samples separately is necessary for optimal performance of the framework, as mixing data from different trials led to inconsistencies in clustering.
  • Generalizability: While the study used coconut oil and potato chips as a case study, the authors propose expanding the application and frameworks to other oil types (palm, soybean) and fryable food items.
  • Direct Chemical Measurement: The authors suggest extending the MIS to directly measure changes in TBARS and TOTOX values, as significant variations were observed with reheat cycles.
  • Algorithm Refinement: Further research could explore other clustering algorithms or refine the current ones to better handle inter-trial variations and improve the accuracy of critical stage identification.

Summary updated

BibTeX
@article{ranasinghe2022transmittance,
  author = {D. Y. L. Ranasinghe and H. M. H. K. Weerasooriya and Sanjaya Herath and M. P. B. Ekanayake and H. M. V. R. Herath and G. M. R. I. Godaliyadda and Terrence Madhujith},
  title = {{Transmittance Multispectral Imaging for Reheated Coconut Oil Differentiation}},
  journal = {IEEE Access},
  year = {2022},
  doi = {10.1109/access.2022.3144841},
}
Figure